|
|
@ -7,7 +7,6 @@ var PublicX = '9df5 23e7 18b9 1f59 a790 2d46 999f 9357 ccf8 7208 24d4 3076 4516 |
|
|
|
var PublicY = '66ba 5d21 4682 0dae 401d 9506 8437 2516 79f9 0c56 4186 cc50 07df c6d0 6989 1ff4'; |
|
|
|
var pubkey = '04' + PublicX.split(' ').join('') + PublicY.split(' ').join(''); |
|
|
|
|
|
|
|
|
|
|
|
// Chain code can be generated by entering paper backup
|
|
|
|
// on brainwallet.org/#chains or by using Armory.fromSeed() below
|
|
|
|
|
|
|
@ -15,7 +14,12 @@ var chaincode = '84ac14bc4b388b33da099a0b4ee3b507284d99e1476639e36e5ca5e6af86481 |
|
|
|
|
|
|
|
var armory = new Armory(chaincode, pubkey); |
|
|
|
|
|
|
|
var pubkey; |
|
|
|
console.log('Deriving public keys for'); |
|
|
|
console.log('------------------------'); |
|
|
|
console.log('Chain code: %s', chaincode); |
|
|
|
console.log('Public key: %s', pubkey); |
|
|
|
console.log(''); |
|
|
|
|
|
|
|
for (var i = 0; i < 5; i++) { |
|
|
|
console.log(Address.fromPubKey(armory.pubkey).as('base58')); |
|
|
|
armory = armory.next(); |
|
|
@ -25,9 +29,19 @@ for (var i = 0; i < 5; i++) { |
|
|
|
var seed = [ |
|
|
|
'aagh hjfj sihk ietj giik wwai awtd uodh hnji', |
|
|
|
'soss uaku egod utai itos fijj ihgi jhau jtoo' |
|
|
|
].join('\n'); |
|
|
|
]; |
|
|
|
|
|
|
|
console.log(''); |
|
|
|
console.log(''); |
|
|
|
console.log('Deriving public keys for'); |
|
|
|
console.log('------------------------'); |
|
|
|
console.log('Seed: %s', seed.join(' ')); |
|
|
|
console.log(''); |
|
|
|
|
|
|
|
var a = Armory.fromSeed(seed); |
|
|
|
// skip first public key
|
|
|
|
var a = Armory.fromSeed(seed.join('\n')).next(); |
|
|
|
|
|
|
|
console.log(Address.fromPubKey(a.next().pubkey).as('base58')); |
|
|
|
for (var i = 0; i < 5; i++) { |
|
|
|
console.log(Address.fromPubKey(a.pubkey).as('base58')); |
|
|
|
a = a.next(); |
|
|
|
} |
|
|
|