|
|
@ -61,8 +61,8 @@ WalletUtils.getProposalHash = function(toAddress, amount, message) { |
|
|
|
}; |
|
|
|
|
|
|
|
WalletUtils.xPubToCopayerId = function(xpub) { |
|
|
|
//return (new Bitcore.HDPublicKey(xpub)).derive(HDPath.IdBranch).publicKey.toString();
|
|
|
|
return crypto.Hash.sha256(new Buffer(xpub)).toString('hex'); |
|
|
|
var hash = sjcl.hash.sha256.hash(xpub); |
|
|
|
return sjcl.codec.hex.fromBits(hash); |
|
|
|
}; |
|
|
|
|
|
|
|
WalletUtils.toSecret = function(walletId, walletPrivKey, network) { |
|
|
|