automatic peer discovery
This commit is contained in:
parent
d62dbeffca
commit
4ba65dd4e1
9 changed files with 103 additions and 44 deletions
|
|
@ -21,7 +21,7 @@ function PrivateKey(opts) {
|
|||
PrivateKey.prototype.getId = function(prefix) {
|
||||
var buf = this.bip.extendedPublicKey;
|
||||
if (prefix) {
|
||||
buf = Buffer.concat([prefix, this.bip.extendedPublicKey]);
|
||||
buf = Buffer.concat([prefix, buf]);
|
||||
}
|
||||
return util.ripe160(buf).toString('hex');
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue