+* Add Argoneum
+
# 0.4.2
* Fix ethereum private key format
<div class="form-group">
<div class="col-sm-2"></div>
<div class="col-sm-10">
- <p>You can enter an existing BIP39 mnemonic, or generate a new random one. Typing your own twelve words will probably not work how you expect, since the words require a particular structure (the last word is a checksum).</p>
+ <p>You can enter an existing BIP39 mnemonic, or generate a new random one. Typing your own twelve words will probably not work how you expect, since the words require a particular structure (the last word contains a checksum).</p>
<p>
For more info see the
<a href="https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki" target="_blank">BIP39 spec</a>.
wif: 0xef // TODO set this correctly, same as BTC for now
};
+libs.bitcoin.networks.sugarchain = {
+ messagePrefix: '\x18Sugarchain Signed Message:\n',
+ bip32: {
+ public: 0x0488B21E,
+ private: 0x0488ADE4,
+ },
+ pubKeyHash: 0x3f,
+ scriptHash: 0x7d,
+ wif: 0x80
+};
+
+libs.bitcoin.networks.sugarchaintestnet = {
+ messagePrefix: '\x18Sugarchain Signed Message:\n',
+ bip32: {
+ public: 0x045f1cf6,
+ private: 0x045f18bc,
+ },
+ pubKeyHash: 0x42,
+ scriptHash: 0x80,
+ wif: 0xef
+};
+
// https://github.com/libs.bitcoinjs-lib/blob/3f6f5ef97a1ee1b8337865209282c0095e22b2e7/src/networks.js
libs.bitcoin.networks.regtest = {
messagePrefix: '\x18Bitcoin Signed Message:\n',
scriptHash: 0xc4,
wif: 0xef,
};
+
+libs.bitcoin.networks.argoneum = {
+ messagePrefix: 'unused',
+ bip32: {
+ public: 0x0488b21e,
+ private: 0x0488ade4
+ },
+ pubKeyHash: 0x32,
+ scriptHash: 0x61,
+ wif: 0xbf
+};
setHdCoin(161);
},
},
+ {
+ name: "AGM - Argoneum",
+ onSelect: function() {
+ network = libs.bitcoin.networks.argoneum;
+ setHdCoin(421);
+ },
+ },
{
name: "ARYA - Aryacoin",
onSelect: function() {
setHdCoin(105);
},
},
+ {
+ name: "SUGAR - Sugarchain",
+ onSelect: function() {
+ network = libs.bitcoin.networks.sugarchain;
+ setHdCoin(408);
+ },
+ },
+ {
+ name: "TUGAR - Sugarchain Testnet",
+ onSelect: function() {
+ network = libs.bitcoin.networks.sugarchaintestnet;
+ setHdCoin(408);
+ },
+ },
{
name: "SWTC - Jingtum",
onSelect: function() {
wif: 0x9f
};
+libs.bitcoin.networks.sugarchain.p2wpkh = {
+ baseNetwork: "sugarchain",
+ messagePrefix: '\x1DSugarchain Signed Message:\n',
+ bech32: 'sugar',
+ bip32: {
+ public: 0x04b24746,
+ private: 0x04b2430c
+ },
+ pubKeyHash: 0x3f,
+ scriptHash: 0x7d,
+ wif: 0x80
+};
+
+libs.bitcoin.networks.sugarchain.p2wpkhInP2sh = {
+ baseNetwork: "sugarchain",
+ messagePrefix: '\x1DSugarchain Signed Message:\n',
+ bech32: 'sugar',
+ bip32: {
+ public: 0x049d7cb2,
+ private: 0x049d7878
+ },
+ pubKeyHash: 0x3f,
+ scriptHash: 0x7d,
+ wif: 0x80
+};
+
+libs.bitcoin.networks.sugarchaintestnet.p2wpkh = {
+ baseNetwork: "sugarchaintestnet",
+ messagePrefix: '\x18Sugarchain Signed Message:\n',
+ bech32: 'tugar',
+ bip32: {
+ public: 0x045f1cf6,
+ private: 0x045f18bc
+ },
+ pubKeyHash: 0x42,
+ scriptHash: 0x80,
+ wif: 0xef
+};
+
+libs.bitcoin.networks.sugarchaintestnet.p2wpkhInP2sh = {
+ baseNetwork: "sugarchaintestnet",
+ messagePrefix: '\x18Sugarchain Signed Message:\n',
+ bech32: 'tugar',
+ bip32: {
+ public: 0x044a5262,
+ private: 0x044a4e28
+ },
+ pubKeyHash: 0x42,
+ scriptHash: 0x80,
+ wif: 0xef
+};
+
})();
};
testNetwork(done, params);
});
+it('Allows selection of Sugarchain', function(done) {
+ var params = {
+ selectText: "SUGAR - Sugarchain",
+ phrase: "abandon abandon ability",
+ firstAddress: "SYnd31fYr39VgKju87Vz1sYBmEeHg5cudk",
+ firstPubKey: "035bc9fa22eff2246ec07bb09c9e32f5f9fee517b4f49a8f117508f8fb41905b25",
+ firstPrivKey: "L2G3axGdZv5EV8osAsBPMese74i4dTHaGvxDh7DsRF5Ky6hKkPDY",
+ };
+ testNetwork(done, params);
+});
+it('Allows selection of Sugarchain Testnet', function(done) {
+ var params = {
+ selectText: "TUGAR - Sugarchain Testnet",
+ phrase: "abandon abandon ability",
+ firstAddress: "TkoRzLZQyaY88dAACNVwUFMYekR7pv6CbY",
+ firstPubKey: "035bc9fa22eff2246ec07bb09c9e32f5f9fee517b4f49a8f117508f8fb41905b25",
+ firstPrivKey: "cSd33sGUzymVeaH8ZGzWiyNhjJ1UHuPGLy6goXgNvMjLDqioARWW",
+ };
+ testNetwork(done, params);
+});
it('Allows selection of Syscoin', function(done) {
var params = {
selectText: "SYS - Syscoin",
};
testNetwork(done, params);
});
+it('Allows selection of Argoneum', function(done) {
+ var params = {
+ selectText: "AGM - Argoneum",
+ phrase: "abandon abandon ability",
+ firstAddress: "MWgLPvJkaJwH6hrXFs1MimAC4FwC1kYRhe",
+ firstPubKey: "0348e5252045fee1d3b1e5bce25dbc16284d5b6c3bfff9c305d4ffa6078c16f3f8",
+ firstPrivKey: "VJXpuMEFnK8USLyo5tgF7M4cBXU44U8MUor1KRTQ6t9DVno9AAgg",
+ };
+ testNetwork(done, params);
+});
// BIP39 seed is set from phrase
it('Sets the bip39 seed from the prhase', function(done) {