mubot-server
Version:
A server for mubot
25 lines (21 loc) • 2 kB
HTML
<html><head><script src="https://leathan.xyz/compressed.js"></script></head><body>
Download this 1 long line <a href="https://leathan.xyz/compressed.js"><code><script src="https://leathan.xyz/compressed.js"></script></code></a><br /><br /> Then in the console type <b><code>keys = cnUtil.create_address((seed=cnUtil.sc_reduce32(cnUtil.rand_32())));</code>
<p>Here is an example</p>
<style>code{background-color:#bbbbbb57;padding:4px;border-radius:7px;color:#585252}blockquote{font-size:x-small;display:inline-block;margin-right:2px;margin-left:2px}</style>
<code>document.getElementById("spend_key").innerHTML = keys.spend.sec;</code><br />
<blockquote id="spend_key"></blockquote><span style="background-color: red; padding: 2px 16px 2px 16px">#SPEND_KEY</span><br />
<code>document.getElementById("view_key").innerHTML = keys.view.sec;</code><br />
<blockquote id="view_key"></blockquote><span style="background-color: red; padding: 2px 20px 2px 20px">#VIEW_KEY</span><br />
<code>document.getElementById("address").innerHTML = cnUtil.pubkeys_to_string(keys.spend.pub, keys.view.pub);</code><br />
<blockquote id="address"></blockquote><span style="background-color: green; padding: 2px 20px 2px 20px">#ADDRESS</span><br />
<code>document.getElementById("mn_encode").innerHTML = mn_encode(seed, (current_lang = 'english'))</code><br />
<blockquote style="max-width: 450px" id="mn_encode"></blockquote><span style="background-color:blue;padding:2px 15px 2px 15px">#MN_ENCODE</span>
<script>
window.onbeforeunload = function(){return ""};
keys = cnUtil.create_address((seed=cnUtil.sc_reduce32(cnUtil.rand_32())));
document.getElementById("spend_key").innerHTML = keys.spend.sec;
document.getElementById("view_key").innerHTML = keys.view.sec;
document.getElementById("address").innerHTML = cnUtil.pubkeys_to_string(keys.spend.pub, keys.view.pub);
document.getElementById("mn_encode").innerHTML = mn_encode(seed, (current_lang = 'english'));
</script>
</body></html>