Fixed testnet exteneded private keys (#553).

This commit is contained in:
Richard Moore 2019-06-28 15:38:19 -04:00
parent 10fdbe7274
commit fbf15c0ffe
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295

View File

@ -240,7 +240,7 @@ export function fromExtendedKey(extendedKey: string): HDNode {
return new HDNode(_constructorGuard, null, hexlify(key), parentFingerprint, chainCode, index, depth, null, null);
// Private Key
case "0x0488ade4": case "0x04358394 ":
case "0x0488ade4": case "0x04358394":
if (key[0] !== 0) { break; }
return new HDNode(_constructorGuard, hexlify(key.slice(1)), null, parentFingerprint, chainCode, index, depth, null, null);
}