Sr25519KeyPair class

Inheritance

Constructors

Sr25519KeyPair()

Properties

address String
Get the Substrate address encoded in SS58 format.
no setteroverride
hashCode int
Returns the hash code of the KeyPair.
no setteroverride
isLocked bool
Returns true if the KeyPair is locked.
no setterinherited
keyPairType KeyPairType
finalinherited
publicKey PublicKey
Get the public key.
no setteroverride
rawAddress String
Get the raw address of the KeyPair.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
ss58Format int
getter/setter pairoverride

Methods

bytes([bool compressed = true]) Uint8List
override
deriveHardSoft(bool hard, DerivableKey key, DeriveJunction junction) → ExtendedKey
deriveCommon provides common functions for testing Soft and Hard key derivation
fromMnemonic(String uri, [String? password]) Future<KeyPair>
Generate a KeyPair from a BIP39 mnemonic.
override
fromSeed(Uint8List seed) KeyPair
Create a new KeyPair from a given seed.
override
fromUri(String uri, [String? password]) Future<KeyPair>
Generate a KeyPair from a uri.
override
lock() → void
Add lock functionality to a KeyPair.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
seedFromUri(String uri, [String? password]) Future<List<int>>
sign(Uint8List message) Uint8List
Sign a given message with the private key.
override
toString() String
A string representation of this object.
inherited
unlockFromMnemonic(String mnemonic, [String? password]) Future<void>
Unlock a KeyPair from a given BIP39 mnemonic.
override
unlockFromSeed(Uint8List seed) → void
Unlock a KeyPair from a given seed.
override
unlockFromUri(String uri, [String? password]) Future<void>
Unlock a KeyPair from a given uri.
override
verify(Uint8List message, Uint8List signature) bool
Verify a message's signature using the public key.
override

Operators

operator ==(Object other) bool
Returns true if the KeyPair matches with the other object.
override