public class Bip32ECKeyPair extends ECKeyPair
Adapted from: https://github.com/bitcoinj/bitcoinj/blob/master/core/src/main/java/org/bitcoinj/crypto/DeterministicKey.java
Implementation based and adapted from:
https://github.com/web3j/web3j/blob/116539fff875a083c896b2d569d17416dfeb8a6f/crypto/src/main/java/org/web3j/crypto/Bip32ECKeyPair.javaECKeyPair.ECPrivateKey, ECKeyPair.ECPublicKey| Modifier and Type | Field and Description |
|---|---|
static int |
HARDENED_BIT |
| Constructor and Description |
|---|
Bip32ECKeyPair(ECKeyPair.ECPrivateKey privateKey,
ECKeyPair.ECPublicKey publicKey,
int childNumber,
byte[] chainCode,
Bip32ECKeyPair parent) |
| Modifier and Type | Method and Description |
|---|---|
static Bip32ECKeyPair |
create(java.math.BigInteger privateKey,
byte[] chainCode) |
static Bip32ECKeyPair |
create(byte[] privateKey,
byte[] chainCode) |
static Bip32ECKeyPair |
create(ECKeyPair.ECPrivateKey privateKey,
byte[] chainCode) |
static Bip32ECKeyPair |
deriveKeyPair(Bip32ECKeyPair master,
int[] path) |
static Bip32ECKeyPair |
generateKeyPair(byte[] seed) |
byte[] |
getChainCode() |
int |
getChildNumber() |
int |
getDepth() |
int |
getParentFingerprint() |
byte[] |
getPrivateKeyBytes33() |
org.bouncycastle.math.ec.ECPoint |
getPublicKeyPoint() |
create, create, create, create, createEcKeyPair, equals, exportAsWIF, getAddress, getPrivateKey, getPublicKey, hashCode, sign, signAndGetArrayBytes, signAndGetECDSASignaturepublic static final int HARDENED_BIT
public Bip32ECKeyPair(ECKeyPair.ECPrivateKey privateKey, ECKeyPair.ECPublicKey publicKey, int childNumber, byte[] chainCode, Bip32ECKeyPair parent)
public static Bip32ECKeyPair create(ECKeyPair.ECPrivateKey privateKey, byte[] chainCode)
public static Bip32ECKeyPair create(java.math.BigInteger privateKey, byte[] chainCode)
public static Bip32ECKeyPair create(byte[] privateKey, byte[] chainCode)
public static Bip32ECKeyPair generateKeyPair(byte[] seed)
public static Bip32ECKeyPair deriveKeyPair(Bip32ECKeyPair master, int[] path)
public int getDepth()
public int getParentFingerprint()
public byte[] getChainCode()
public int getChildNumber()
public org.bouncycastle.math.ec.ECPoint getPublicKeyPoint()
public byte[] getPrivateKeyBytes33()