Package org.web3j.crypto
Class Bip32ECKeyPair
java.lang.Object
org.web3j.crypto.ECKeyPair
org.web3j.crypto.Bip32ECKeyPair
BIP-32 key pair.
Adapted from: https://github.com/bitcoinj/bitcoinj/blob/master/core/src/main/java/org/bitcoinj/crypto/DeterministicKey.java
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBip32ECKeyPair(BigInteger privateKey, BigInteger publicKey, int childNumber, byte[] chainCode, Bip32ECKeyPair parent) -
Method Summary
Modifier and TypeMethodDescriptionstatic Bip32ECKeyPaircreate(byte[] privateKey, byte[] chainCode) static Bip32ECKeyPaircreate(BigInteger privateKey, byte[] chainCode) static Bip32ECKeyPairderiveKeyPair(Bip32ECKeyPair master, int[] path) static Bip32ECKeyPairgenerateKeyPair(byte[] seed) byte[]intintgetDepth()intbyte[]org.bouncycastle.math.ec.ECPointMethods inherited from class org.web3j.crypto.ECKeyPair
create, create, create, equals, getPrivateKey, getPublicKey, hashCode, sign
-
Field Details
-
HARDENED_BIT
public static final int HARDENED_BIT- See Also:
-
-
Constructor Details
-
Bip32ECKeyPair
public Bip32ECKeyPair(BigInteger privateKey, BigInteger publicKey, int childNumber, byte[] chainCode, Bip32ECKeyPair parent)
-
-
Method Details
-
create
-
create
-
generateKeyPair
-
deriveKeyPair
-
getDepth
public int getDepth() -
getParentFingerprint
public int getParentFingerprint() -
getChainCode
public byte[] getChainCode() -
getChildNumber
public int getChildNumber() -
getPublicKeyPoint
public org.bouncycastle.math.ec.ECPoint getPublicKeyPoint() -
getPrivateKeyBytes33
public byte[] getPrivateKeyBytes33()
-