|
@ -41,6 +41,12 @@ Armory.prototype.next = function () { |
|
|
return new Armory(this.chaincode, next_pubkey); |
|
|
return new Armory(this.chaincode, next_pubkey); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
Armory.fromMasterPublicKey = function (mpk) { |
|
|
|
|
|
var pubkey = mpk.substr(0, 130); |
|
|
|
|
|
var chaincode = mpk.substr(130, mpk.length); |
|
|
|
|
|
return new Armory(chaincode, pubkey); |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
function decode (str) { |
|
|
function decode (str) { |
|
|
var from = '0123456789abcdef'; |
|
|
var from = '0123456789abcdef'; |
|
|
var to = 'asdfghjkwertuion'; |
|
|
var to = 'asdfghjkwertuion'; |
|
|