jr code cleanups
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user