add getForPath with tests
This commit is contained in:
parent
4e6d572de0
commit
a10e6f4908
1 changed files with 3 additions and 4 deletions
|
|
@ -288,16 +288,15 @@ PublicKeyRing.prototype.getAddressesInfoForIndex = function(index, opts, copayer
|
|||
return ret;
|
||||
};
|
||||
|
||||
PublicKeyRing.prototype.getForPaths = function(paths) {
|
||||
return paths.map(this.getForPath.bind(this));
|
||||
};
|
||||
|
||||
PublicKeyRing.prototype.getForPath = function(path) {
|
||||
var p = HDPath.indexesForPath(path);
|
||||
var pubKeys = this.getPubKeys(p.addressIndex, p.isChange, p.copayerIndex);
|
||||
return pubKeys;
|
||||
};
|
||||
|
||||
PublicKeyRing.prototype.getForPaths = function(paths) {
|
||||
return paths.map(this.getForPath.bind(this));
|
||||
};
|
||||
|
||||
// TODO this could be cached
|
||||
PublicKeyRing.prototype._addScriptMap = function(map, path) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue