add forPath and tests
This commit is contained in:
parent
a10e6f4908
commit
96a5f0aeb8
2 changed files with 32 additions and 0 deletions
|
|
@ -298,6 +298,15 @@ PublicKeyRing.prototype.getForPaths = function(paths) {
|
|||
return paths.map(this.getForPath.bind(this));
|
||||
};
|
||||
|
||||
|
||||
PublicKeyRing.prototype.forPaths = function(paths) {
|
||||
return {
|
||||
pubKeys: paths.map(this.getForPath.bind(this)),
|
||||
copayerIds: this.copayerIds,
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
// TODO this could be cached
|
||||
PublicKeyRing.prototype._addScriptMap = function(map, path) {
|
||||
var p = HDPath.indexesForPath(path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue