allow creation of deterministic pubkey without access to bc

This commit is contained in:
Craig Raw 2020-11-11 09:41:24 +02:00
parent f3e1fe6df4
commit 49799fc0c8

View file

@ -40,6 +40,14 @@ public class DeterministicKey extends ECKey {
this.parentFingerprint = parentFingerprint; this.parentFingerprint = parentFingerprint;
} }
public DeterministicKey(List<ChildNumber> childNumberPath,
byte[] chainCode,
byte[] publicKey,
int depth,
byte[] parentFingerprint) {
this(childNumberPath, chainCode, new LazyECPoint(ECKey.CURVE.getCurve(), publicKey), depth, parentFingerprint);
}
public DeterministicKey(List<ChildNumber> childNumberPath, public DeterministicKey(List<ChildNumber> childNumberPath,
byte[] chainCode, byte[] chainCode,
LazyECPoint publicAsPoint, LazyECPoint publicAsPoint,