Package org.web3j.crypto
Class Bip32ECKeyPair
- java.lang.Object
-
- org.web3j.crypto.ECKeyPair
-
- org.web3j.crypto.Bip32ECKeyPair
-
public class Bip32ECKeyPair extends ECKeyPair
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 Modifier and Type Field Description static intHARDENED_BIT
-
Constructor Summary
Constructors Constructor Description Bip32ECKeyPair(java.math.BigInteger privateKey, java.math.BigInteger publicKey, int childNumber, byte[] chainCode, Bip32ECKeyPair parent)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Bip32ECKeyPaircreate(byte[] privateKey, byte[] chainCode)static Bip32ECKeyPaircreate(java.math.BigInteger privateKey, byte[] chainCode)static Bip32ECKeyPairderiveKeyPair(Bip32ECKeyPair master, int[] path)static Bip32ECKeyPairgenerateKeyPair(byte[] seed)byte[]getChainCode()intgetChildNumber()intgetDepth()intgetParentFingerprint()byte[]getPrivateKeyBytes33()org.bouncycastle.math.ec.ECPointgetPublicKeyPoint()-
Methods inherited from class org.web3j.crypto.ECKeyPair
create, create, create, equals, getPrivateKey, getPublicKey, hashCode, sign
-
-
-
-
Field Detail
-
HARDENED_BIT
public static final int HARDENED_BIT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Bip32ECKeyPair
public Bip32ECKeyPair(java.math.BigInteger privateKey, java.math.BigInteger publicKey, int childNumber, byte[] chainCode, Bip32ECKeyPair parent)
-
-
Method Detail
-
create
public static Bip32ECKeyPair create(java.math.BigInteger privateKey, byte[] chainCode)
-
create
public static Bip32ECKeyPair create(byte[] privateKey, byte[] chainCode)
-
generateKeyPair
public static Bip32ECKeyPair generateKeyPair(byte[] seed)
-
deriveKeyPair
public static Bip32ECKeyPair deriveKeyPair(Bip32ECKeyPair master, int[] path)
-
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()
-
-