Skip to content

Commit

Permalink
Fixed testnet exteneded private keys (#553).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jun 28, 2019
1 parent 10fdbe7 commit fbf15c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src.ts/utils/hdnode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit fbf15c0

Please sign in to comment.