From 7d69fafc3e435c810eba7ccd43db08302c2ba010 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Mon, 20 Apr 2020 16:30:40 +0200 Subject: [PATCH] add private key support to eckey #2 --- .../com/sparrowwallet/drongo/crypto/DeterministicKey.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/sparrowwallet/drongo/crypto/DeterministicKey.java b/src/main/java/com/sparrowwallet/drongo/crypto/DeterministicKey.java index 3f242ef..2cb36b4 100644 --- a/src/main/java/com/sparrowwallet/drongo/crypto/DeterministicKey.java +++ b/src/main/java/com/sparrowwallet/drongo/crypto/DeterministicKey.java @@ -28,7 +28,7 @@ public class DeterministicKey extends ECKey { LazyECPoint publicAsPoint, int depth, byte[] parentFingerprint) { - super(compressPoint(publicAsPoint)); + super(null, compressPoint(publicAsPoint)); if(chainCode.length != 32) { throw new IllegalArgumentException("Chaincode not 32 bytes in length"); } @@ -43,7 +43,7 @@ public class DeterministicKey extends ECKey { byte[] chainCode, LazyECPoint publicAsPoint, DeterministicKey parent) { - super(compressPoint(publicAsPoint)); + super(null, compressPoint(publicAsPoint)); if(chainCode.length != 32) { throw new IllegalArgumentException("Chaincode not 32 bytes in length"); }