-
Notifications
You must be signed in to change notification settings - Fork 37
/
banano.html
1 lines (1 loc) · 1.91 KB
/
banano.html
1
<!DOCTYPE html><html lang=en><head><meta charset=UTF-8><title>Banano Cold Wallet Generator</title><meta name=description content="Create your own Banano cold wallet today and feel the freedom of loading/spending your Banano coins."><meta name=keywords content="minimal, reliable, fast, universal, cold, wallet, generator, offline, banano, cryptocurrency"><meta name=viewport content="width=device-width, initial-scale=1"><link rel=canonical href=https://thebestcoldwallet.com/banano.html><link rel="stylesheet" href="css/style2.css"></head><body onload=generate()><div id=container><br><div class=noprint><button onclick=generate()>Generate</button> <button onclick=window.print()>Print</button> <a href=index.html><input type=button value=Home></a></div><img src=img/banano.png class=center alt=banano><table><tr><h1 class=titlemain>Banano Cold Wallet</h1></tr><tr><th class=grayHeaders>Public Address <span id=shareColor>(SHARE)</span></th></tr><tr><td><div id=public>Generating...</div></td></tr><tr><td><div id=public_qr></div></td></tr><tr><th class=grayHeaders><div id=secretLabel>Private Key <span id=secretColor>(SECRET)</span></div></th></tr><tr><td><div id=secret>Generating...</div></td></tr><tr><td><div id=secret_qr></div></td></tr><tr></table><script src=js/banano.js></script><script src=js/qrcode.js></script><script>function generate(){const seedBytes=nacl_randomBytes(32);const privKey=bananoSeed(seedBytes);const pubKey=bananoPubKey(bananoPrivKey(seedBytes));document.getElementById("public").textContent=pubKey;document.getElementById("secret").textContent=privKey;document.getElementById("public_qr").textContent="";document.getElementById("secret_qr").textContent="";new QRCode(document.getElementById("public_qr"),{text: pubKey,width: 128,height: 128,correctLevel: QRCode.CorrectLevel.H});new QRCode(document.getElementById("secret_qr"),{text: privKey,width: 128,height: 128,correctLevel: QRCode.CorrectLevel.H});}</script></body></html>