WalletFactory class

WalletFactory has several functions that assist with Axentro based crypto such as wallet generation, signing, verifying etc

Constructors

WalletFactory()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decryptHdWallet(EncryptedWallet wallet, String password) HdWallet
Decrypts an hd wallet
decryptWallet(EncryptedWallet wallet, String password) BasicWallet
Decrypts a basic wallet
encryptHdWallet(HdWallet wallet, String password) EncryptedWallet
Encrypts an hd wallet
encryptWallet(BasicWallet wallet, String password) EncryptedWallet
Encrypts a basic wallet
generateAddress(HexPublicKey hexPublicKey, NetworkPrefix networkPrefix) Address
Generates an address given a hexPublicKey and target network
generateKeyPair() KeyPair
Generates an EDDSA ED25519 key pair
generateNewEncryptedHdWallet(Network network, String password) Future<EncryptedWallet>
Generates a new encrypted wallet for the specified network with the supplied password
generateNewEncryptedWallet(Network network, String password) EncryptedWallet
Generates a new encrypted wallet for the specified network with the supplied password
generateNewHdWallet(Network network) Future<HdWallet>
Generates a new hd wallet for the network provided
generateNewWallet(Network network) BasicWallet
Generates a new wallet for the network provided
generateWif(HexPrivateKey hexPrivateKey, NetworkPrefix networkPrefix) Wif
Generates a WIF given a hexPrivateKey and target network
getFullWalletFromWif(Wif wif) Future<FullWallet>
Gets a full wallet from the supplied wif
getPrivateKeyAndNetworkFromWif(Wif wif) NetworkPKey
Gets the hexPrivateKey and the network from a wif
getPublicKeyFromPrivateKey(HexPrivateKey hexPrivateKey) Future<HexPublicKey>
Gets the hexPublicKey from the hexPrivateKey
getWalletFromWif(Wif wif) Future<BasicWallet>
Gets a wallet from the supplied wif
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recoverHdWalletFromMnemonic(String mnemonic, Network network) Future<HdWallet>
Recovers an hd wallet from a mnemonic and target network
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited