Package ch.bitagent.bitcoin.lib.wallet
Class Wallet
- java.lang.Object
-
- ch.bitagent.bitcoin.lib.wallet.Wallet
-
public class Wallet extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intCOIN_TYPE_BITCOINstatic intPURPOSE_NATIVE_SEGWIT
-
Constructor Summary
Constructors Constructor Description Wallet(ExtendedKey extendedKey, int gapLimit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringcreateMnemonic(int entropyStrength)static List<Address>deriveAddresses(ExtendedKey extendedKey, int change, int indexFrom, int indexTo)List<Address>getAddressList0()List<Address>getAddressList1()ExtendedKeygetExtendedKey()PrivateKeygetPrivateKeyForChangeIndex(AddressChangeIndex changeIndex)List<Utxo>getUtxoList()voidhistory(int change)AddressnextChangeAddress()AddressnextReceiveAddress()static Walletparse(ExtendedKey extendedKey, int gapLimit)static Walletparse(String mnemonicSentence, String passphrase, int purpose, int coinType, int account, int gapLimit)StringsignMessage(String address, String message)StringtoString()booleanverifyMessage(String address, String signature, String message)
-
-
-
Field Detail
-
PURPOSE_NATIVE_SEGWIT
public static final int PURPOSE_NATIVE_SEGWIT
- See Also:
- Constant Field Values
-
COIN_TYPE_BITCOIN
public static final int COIN_TYPE_BITCOIN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Wallet
public Wallet(ExtendedKey extendedKey, int gapLimit)
-
-
Method Detail
-
createMnemonic
public static String createMnemonic(int entropyStrength)
-
parse
public static Wallet parse(ExtendedKey extendedKey, int gapLimit)
-
parse
public static Wallet parse(String mnemonicSentence, String passphrase, int purpose, int coinType, int account, int gapLimit)
-
deriveAddresses
public static List<Address> deriveAddresses(ExtendedKey extendedKey, int change, int indexFrom, int indexTo)
-
history
public void history(int change)
-
nextReceiveAddress
public Address nextReceiveAddress()
-
nextChangeAddress
public Address nextChangeAddress()
-
getPrivateKeyForChangeIndex
public PrivateKey getPrivateKeyForChangeIndex(AddressChangeIndex changeIndex)
-
getExtendedKey
public ExtendedKey getExtendedKey()
-
-