Skip to content

Commit 570d5af

Browse files
committed
feat+doc: expose toPublic and document wipePrivateData
1 parent d0b70ab commit 570d5af

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dashhd.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,12 @@ var DashHd = ("object" === typeof module && exports) || {};
705705
return hdkey;
706706
};
707707

708+
DashHd.toPublic = function (_hdkey) {
709+
let hdkey = Object.assign({}, _hdkey);
710+
hdkey.privateKey = null;
711+
return hdkey;
712+
};
713+
708714
/**
709715
* @param {Boolean} assertion
710716
* @param {String} message

0 commit comments

Comments
 (0)