]> zoso.dev Git - libnemo.git/commitdiff
Add quick performance checks to test page.
authorChris Duncan <chris@zoso.dev>
Wed, 27 Nov 2024 21:58:09 +0000 (13:58 -0800)
committerChris Duncan <chris@zoso.dev>
Wed, 27 Nov 2024 21:58:09 +0000 (13:58 -0800)
test.html

index f7cc454b1c0ae57cfe4577e0cdffb165e8f7432a..8a29fdc92e8d1627bb5a9ea3c0c98a8d6d75f39c 100644 (file)
--- a/test.html
+++ b/test.html
@@ -2,6 +2,27 @@
 
 <head>
        <script type="module" src="./dist/global.min.js"></script>
+       <script type="module">
+               console.log(`bip44`)
+               const bipWallet = await libnemo.Bip44Wallet.create('test')
+               await bipWallet.unlock('test')
+               console.log(bipWallet.mnemonic)
+               const bipAccounts = await bipWallet.accounts(0, 0x2000)
+               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)
+               const blakeAccounts = await blakeWallet.accounts(0, 0xffff)
+               const blakeAccount = blakeAccounts[0]
+               console.log(blakeAccount.privateKey)
+               console.log(blakeAccount.publicKey)
+               console.log(blakeAccount.address)
+       </script>
        <style>body{background:black;}</style>
 </head>