Stored Key
class StoredKey
Represents a key stored as an encrypted file.
Constructors
Functions
Link copied to clipboard
The number of accounts.
Link copied to clipboard
Returns the account for a specific coin, creating it if necessary.
Link copied to clipboard
open fun accountForCoinDerivation(coin: CoinType, derivation: Derivation, wallet: HDWallet): Account
Returns the account for a specific coin + derivation, creating it if necessary.
Link copied to clipboard
open fun addAccount(address: String, coin: CoinType, derivationPath: String, publicKey: String, extendedPublicKey: String)
Adds a new account, using given derivation path.
Link copied to clipboard
open fun addAccountDerivation(address: String, coin: CoinType, derivation: Derivation, derivationPath: String, publicKey: String, extendedPublicKey: String)
Adds a new account, using given derivation (usually TWDerivationDefault) and derivation path (usually matches path from derivation, but custom possible).
Link copied to clipboard
Decrypts the mnemonic phrase.
Link copied to clipboard
Decrypts the private key.
Link copied to clipboard
Retrieve stored key encoding parameters, as JSON string.
Link copied to clipboard
Exports the key as JSON
Link copied to clipboard
Fills in empty and invalid addresses.
Link copied to clipboard
Stored key unique identifier.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Imports a key from JSON.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Whether this key is a mnemonic phrase for a HD wallet.
Link copied to clipboard
Returns the private key for a specific coin.
Link copied to clipboard
Remove the account for a specific coin
Link copied to clipboard
Remove the account for a specific coin with the given derivation.
Link copied to clipboard
Remove the account for a specific coin with the given derivation path.
Link copied to clipboard
Re-derives address for the account(s) associated with the given coin.