public final class Account
extends java.lang.Object
Change.
m / purpose' / coin_type' / account' / change / address_index
This level splits the key space into independent user identities, so the wallet never mixes the coins across different accounts.
Users can use these accounts to organize the funds in the same fashion as bank accounts; for donation purposes (where all addresses are considered public), for saving purposes, for common expenses etc.
Accounts are numbered from index 0 in sequentially increasing manner. This number is used as child index in BIP32 derivation.
Hardened derivation is used at this level.
| Modifier and Type | Field and Description |
|---|---|
static io.github.novacrypto.bip32.derivation.Derivation<Account> |
DERIVATION |
| Modifier and Type | Method and Description |
|---|---|
Change |
external()
Create a
Change for this purpose, coin type and account. |
CoinType |
getParent() |
int |
getValue() |
Change |
internal()
Create a
Change for this purpose, coin type and account. |
java.lang.String |
toString() |
public static final io.github.novacrypto.bip32.derivation.Derivation<Account> DERIVATION
public int getValue()
public CoinType getParent()
public java.lang.String toString()
toString in class java.lang.Objectpublic Change external()
Change for this purpose, coin type and account.
Constant 0 is used for external chain. External chain is used for addresses that are meant to be visible outside of the wallet (e.g. for receiving payments).
Change = 0 instance for this purpose, coin type and accountpublic Change internal()
Change for this purpose, coin type and account.
Constant 1 is used for internal chain (also known as change addresses). Internal chain is used for addresses which are not meant to be visible outside of the wallet and is used for return transaction change.
Change = 1 instance for this purpose, coin type and account