Package ch.bitagent.bitcoin.lib.wallet
Class ExtendedKey
- java.lang.Object
-
- ch.bitagent.bitcoin.lib.wallet.ExtendedKey
-
-
Field Summary
Fields Modifier and Type Field Description static IntPREFIX_XPRVstatic IntPREFIX_XPUBstatic IntPREFIX_YPRVstatic IntPREFIX_YPUBstatic IntPREFIX_ZPRVstatic IntPREFIX_ZPUB
-
Constructor Summary
Constructors Constructor Description ExtendedKey(String extendedKey)ExtendedKey
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtendedKeyderive(int index)ExtendedKeyderive(int index, boolean harden, boolean neutral)byte[]getChainCode()byte[]getChildNumber()intgetDepth()byte[]getFingerprint()byte[]getKey()byte[]getPrefix()booleanisKeyPrivate()static ExtendedKeyparse(String extendedKey)parse
-
-
-
Field Detail
-
PREFIX_XPRV
public static final Int PREFIX_XPRV
-
PREFIX_XPUB
public static final Int PREFIX_XPUB
-
PREFIX_YPRV
public static final Int PREFIX_YPRV
-
PREFIX_YPUB
public static final Int PREFIX_YPUB
-
PREFIX_ZPRV
public static final Int PREFIX_ZPRV
-
PREFIX_ZPUB
public static final Int PREFIX_ZPUB
-
-
Constructor Detail
-
ExtendedKey
public ExtendedKey(String extendedKey)
ExtendedKey- Parameters:
extendedKey- .
-
-
Method Detail
-
parse
public static ExtendedKey parse(String extendedKey)
parse- Parameters:
extendedKey- .- Returns:
- .
-
isKeyPrivate
public boolean isKeyPrivate()
-
derive
public ExtendedKey derive(int index)
-
derive
public ExtendedKey derive(int index, boolean harden, boolean neutral)
-
getPrefix
public byte[] getPrefix()
-
getDepth
public int getDepth()
-
getFingerprint
public byte[] getFingerprint()
-
getChildNumber
public byte[] getChildNumber()
-
getChainCode
public byte[] getChainCode()
-
getKey
public byte[] getKey()
-
-