mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-12-26 10:06:45 +00:00
allow creation of deterministic pubkey without access to bc
This commit is contained in:
parent
f3e1fe6df4
commit
49799fc0c8
1 changed files with 8 additions and 0 deletions
|
@ -40,6 +40,14 @@ public class DeterministicKey extends ECKey {
|
|||
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,
|
||||
byte[] chainCode,
|
||||
LazyECPoint publicAsPoint,
|
||||
|
|
Loading…
Reference in a new issue