|
|
@ -15,10 +15,10 @@ var LEN = 78 |
|
|
|
var N = ecparams.params.n |
|
|
|
|
|
|
|
//Bitcoin hardcoded by default, can use package `coininfo` for others
|
|
|
|
var VERSIONS = {private: 0x0488ADE4, public: 0x0488B21E} |
|
|
|
var BITCOIN_VERSIONS = {private: 0x0488ADE4, public: 0x0488B21E} |
|
|
|
|
|
|
|
function HDKey(versions) { |
|
|
|
this.versions = versions || VERSIONS |
|
|
|
this.versions = versions || BITCOIN_VERSIONS |
|
|
|
this.depth = 0 |
|
|
|
this.index = 0 |
|
|
|
this._privateKey = null |
|
|
|