ServiceKeyring class

Constructors

ServiceKeyring(SubstrateService serviceRoot)

Properties

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

Methods

addressFromKeyStore(int ss58, {required Map keyStore}) Future
get address and avatar from KeyStore.
addressFromMnemonic(int ss58, {CryptoType cryptoType = CryptoType.sr25519, String derivePath = '', required String mnemonic}) Future<AddressIconData>
get address and avatar from mnemonic.
addressFromRawSeed(int ss58, {CryptoType cryptoType = CryptoType.sr25519, String derivePath = '', required String rawSeed}) Future<AddressIconData>
get address and avatar from rawSeed.
changePassword(String? pubKey, dynamic passOld, dynamic passNew) Future<Map?>
change password of account
checkDerivePath(String seed, dynamic path, CryptoType cryptoType) Future<String?>
checkMnemonicValid(String mnemonic) Future<bool>
check mnemonic valid.
checkPassword(String? pubKey, dynamic pass) Future<bool>
check password of account
generateMnemonic(int ss58, {CryptoType cryptoType = CryptoType.sr25519, String derivePath = '', String key = ''}) Future<AddressIconDataWithMnemonic>
Generate a set of new mnemonic.
getPubKeyAddressMap(List keyPairs, List<int> ss58) Future<Map?>
getPubKeyIconsMap(List<String?> pubKeys) Future<List?>
importAccount({required KeyType keyType, required String key, required dynamic name, required dynamic password, CryptoType cryptoType = CryptoType.sr25519, String derivePath = ''}) Future
Import account from mnemonic/rawSeed/keystore. param cryptoType can be sr25519(default) or ed25519. return null if import failed.
injectKeyPairsToWebView(Keyring keyring) Future<Map?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
signAsExtension(String password, Map args) Future<Map?>
signatureVerify(String message, dynamic signature, dynamic address) Future<Map?>
toString() String
A string representation of this object.
inherited
updateKeyPairMetaData(Map acc, String? name) Map

Operators

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