From 49799fc0c8b5245a7931d0437a68172f9b6efbbc Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 11 Nov 2020 09:41:24 +0200 Subject: [PATCH] allow creation of deterministic pubkey without access to bc --- .../com/sparrowwallet/drongo/crypto/DeterministicKey.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/com/sparrowwallet/drongo/crypto/DeterministicKey.java b/src/main/java/com/sparrowwallet/drongo/crypto/DeterministicKey.java index 37d663b..9d4d588 100644 --- a/src/main/java/com/sparrowwallet/drongo/crypto/DeterministicKey.java +++ b/src/main/java/com/sparrowwallet/drongo/crypto/DeterministicKey.java @@ -40,6 +40,14 @@ public class DeterministicKey extends ECKey { this.parentFingerprint = parentFingerprint; } + public DeterministicKey(List childNumberPath, + byte[] chainCode, + byte[] publicKey, + int depth, + byte[] parentFingerprint) { + this(childNumberPath, chainCode, new LazyECPoint(ECKey.CURVE.getCurve(), publicKey), depth, parentFingerprint); + } + public DeterministicKey(List childNumberPath, byte[] chainCode, LazyECPoint publicAsPoint,