X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=bip39-standalone.html;h=dd397ac0a0ccfd452d57a6a9cfd0cff02f88d6c7;hb=c0386f3b78c31bc23c935603abe9ed9fafe300d4;hp=09634b882b150ab98c796adc8b8901b0ab00186b;hpb=81ee6e893229013d38d3a231ffbadb1e61576ba6;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git diff --git a/bip39-standalone.html b/bip39-standalone.html index 09634b8..dd397ac 100644 --- a/bip39-standalone.html +++ b/bip39-standalone.html @@ -107,12 +107,18 @@ border-bottom: 1px dashed #000; text-decoration: none; } + .version { + position: absolute; + top: 5px; + right: 5px; + }

Mnemonic Code Converter

+

v0.1.0


@@ -19906,6 +19912,16 @@ bitcoin.networks.dash = { wif: 0xcc, }; +bitcoin.networks.dashtn = { + bip32: { + public: 0x043587cf, + private: 0x04358394 + }, + pubKeyHash: 0x8c, + scriptHash: 0x13, + wif: 0xef, +}; + bitcoin.networks.game = { bip32: { public: 0x0488b21e, @@ -38726,7 +38742,7 @@ module.exports = function stripHexPrefix(str) { } function convertRipplePriv(priv) { - return window.basex('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz').decode(priv).toString("hex").slice(2) + return window.basex('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz').decode(priv).toString("hex").slice(2,66) } @@ -44310,6 +44326,8 @@ window.Entropy = new (function() { var hexAddress = addressBuffer.toString('hex'); var checksumAddress = ethUtil.toChecksumAddress(hexAddress); address = ethUtil.addHexPrefix(checksumAddress); + privkey = ethUtil.addHexPrefix(privkey); + pubkey = ethUtil.addHexPrefix(pubkey); } // Ripple values are different if (networks[DOM.network.val()].name == "Ripple") { @@ -44829,6 +44847,13 @@ window.Entropy = new (function() { DOM.bip44coin.val(5); }, }, + { + name: "DASH Testnet", + onSelect: function() { + network = bitcoin.networks.dashtn; + DOM.bip44coin.val(1); + }, + }, { name: "Ethereum", onSelect: function() {