jr code cleanups

This commit is contained in:
2023-07-09 15:03:53 -06:00
parent ef112d7da4
commit b76397b723
4 changed files with 8 additions and 21 deletions
-10
View File
@@ -12,15 +12,5 @@ main
()
: Promise<void>
{
// detect button action
document.getElementById('generate')!.onclick = generate_keypair;
}
async function
generate_keypair
()
{
let keypair = nacl.sign.keyPair();
document.getElementById('scratch')!.innerHTML += JSON.stringify(keypair, undefined, 4);
}