]> zoso.dev Git - libnemo.git/commitdiff
Split test webpage into three based on usage.
authorChris Duncan <chris@zoso.dev>
Sun, 8 Dec 2024 11:22:21 +0000 (03:22 -0800)
committerChris Duncan <chris@zoso.dev>
Sun, 8 Dec 2024 11:22:21 +0000 (03:22 -0800)
index.html [new file with mode: 0644]
performance.html [new file with mode: 0644]
test.html

diff --git a/index.html b/index.html
new file mode 100644 (file)
index 0000000..73dd084
--- /dev/null
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+
+<head>
+       <link rel="icon" href="./favicon.ico">
+       <script type="module" src="./dist/global.min.js"></script>
+       <style>body{background:black;}</style>
+</head>
+
+<body></body>
+
+</html>
diff --git a/performance.html b/performance.html
new file mode 100644 (file)
index 0000000..106863b
--- /dev/null
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+
+<head>
+       <link rel="icon" href="./favicon.ico">
+       <script type="module" src="./dist/perf.min.js"></script>
+       <style>body{background:black;}</style>
+</head>
+
+<body></body>
+
+</html>
index 4b265bd5b13cbc61bb5dc46052f4d9ec39315ef5..39ee1f90d5b4a07047a6c46cab91c1c53e4e37fe 100644 (file)
--- a/test.html
+++ b/test.html
@@ -2,75 +2,7 @@
 
 <head>
        <link rel="icon" href="./favicon.ico">
-       <!-- <script type="module" src="./dist/global.min.js"></script> -->
        <script type="module" src="./dist/test.min.js"></script>
-       <!-- <script type="module" src="./dist/perf.min.js"></script> -->
-       <script type="module">
-               // console.log(`bip44`)
-               // const bipWallet = await libnemo.Bip44Wallet.create('test')
-               // await bipWallet.unlock('test')
-               // console.log(bipWallet.mnemonic)
-               // let now = performance.now()
-               // const bipAccounts = await bipWallet.accounts(0, 0x2000)
-               // console.log(`${bipAccounts.length} bip44 accounts done: ${performance.now() - now} ms`)
-               // const bipAccount = bipAccounts[0]
-               // console.log(bipAccount.privateKey)
-               // console.log(bipAccount.publicKey)
-               // console.log(bipAccount.address)
-
-               // console.log(`blake2b`)
-               // const blakeWallet = await libnemo.Blake2bWallet.create('test')
-               // await blakeWallet.unlock('test')
-               // console.log(blakeWallet.mnemonic)
-               // now = performance.now()
-               // const blakeAccounts = await blakeWallet.accounts(0, 0x2000)
-               // console.log(`${blakeAccounts.length} blake2b accounts done: ${performance.now() - now} ms`)
-               // const blakeAccount = blakeAccounts[0]
-               // console.log(blakeAccount.privateKey)
-               // console.log(blakeAccount.publicKey)
-               // console.log(blakeAccount.address)
-
-               // console.log('PoW')
-               // let blocks = []
-               // console.log(`send blocks`)
-               // now = performance.now()
-               // for (let i = 0; i < 10; i++) {
-               //      const block = new libnemo.SendBlock(
-               //              'nano_1xmastiputrdrhnf35jdh4yj1q339tyuk86w3k6oy5knede8zfowpa1rgjpn',
-               //              '100000000000000000000000000',
-               //              'nano_1xmastreedxwfhpktqxppwgwwhdx1p6hiskpw7jt8g5y19khyy38axg4tohm',
-               //              '1',
-               //              'nano_3rw4un6ys57hrb39sy1qx8qy5wukst1iiponztrz9qiz6qqa55kxzx4491or',
-               //              '4E5004CA14899B8F9AABA7A76D010F73E6BAE54948912588B8C4FE0A3B558CA5')
-               //      try {
-               //              await block.pow()
-               //              console.log(`block ${i + 1} work: ${block.work}`)
-               //      } catch (err) {
-               //              console.error(err)
-               //      }
-               //      blocks.push(block)
-               // }
-               // console.log(`send pow done (${performance.now() - now} ms)`)
-               // now = performance.now()
-               // for (let i = 0; i < 10; i++) {
-               //      const block = new libnemo.ReceiveBlock(
-               //              'nano_1xmastiputrdrhnf35jdh4yj1q339tyuk86w3k6oy5knede8zfowpa1rgjpn',
-               //              '0',
-               //              'FB0D886948EF4BBC410C0C64C16291E31AB360BEB21B338988A6C37D89C24362',
-               //              '1',
-               //              'nano_3rw4un6ys57hrb39sy1qx8qy5wukst1iiponztrz9qiz6qqa55kxzx4491or',
-               //              'B320F9AD2C3341E0FA6EFAF093C2D618036D10DB800F14830A928A44B8DD265C')
-               //      try {
-               //              await block.pow()
-               //              console.log(`block ${i + 1} work: ${block.work}`)
-               //      } catch (err) {
-               //              console.error(err)
-               //      }
-               //      blocks.push(block)
-               // }
-               // console.log(`receive done (${performance.now() - now} ms)`)
-               // console.log(`pow done (${performance.now() - now} ms)`)
-       </script>
        <style>body{background:black;}</style>
 </head>