document.getElementById('btnStartTest').addEventListener('click', startTest)
</script>
<style>
- body{background:black;color:white;}a{color:darkcyan;}input[type=number]{width:5em;}input[type=checkbox]{margin-right:2em;}
+ body{background:black;color:white;font-size:0.9rem;line-height:140%;margin:0 auto;max-width:900px;}a{color:darkcyan;}input[type=number]{width:5em;}input[type=checkbox]{margin-right:2em;}
div.hex{display:inline-block;font-family:monospace;}
div.hex::before{color:grey;content:'0x';display:inline-block;font-family:monospace;font-size:90%;left:0.5em;position:relative;width:0;}
div.hex>input{font-family:monospace;padding-left:1.5em;}
</head>
<body>
- <h1>nano25519</h1>
- <h4><a href="https://www.npmjs.com/package/nano25519">https://www.npmjs.com/package/nano25519</a></h4>
- <h2>Speed test for nano25519</h2>
+ <h1>Speed test for nano25519</h1>
+ <h2><a href="https://www.npmjs.com/package/nano25519">https://www.npmjs.com/package/nano25519</a></h2>
<p>This test compares different Ed25519 implementations by running a sequence of functions. A random 32-byte value is generated for a message and private key, and then the test uses the values to derive a public key, sign the message, and verify the signature.</p>
<ul>
<li>Each derive-sign-verify sequence is timed as a unit.</li>
<li>Calculate the harmonic mean of the truncated results.</li>
</ol>
<hr />
- <label for="signature">Verify Signature</label>
+ <h3>Verification Tool</h3>
+ <label for="signature">Signature</label>
<div class="hex"><input id="signature" type="text" /></div>
<label for="blockHash" class="hex">Block Hash</label>
<div class="hex"><input id="blockHash" type="text" /></div>