EcdsaKeyPair class
Constructors
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 theKeyPair
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
-
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
-
publicKeyHex(
[bool compressed = true]) → String -
Returns the public key of the
KeyPair
as a hex string. -
seedHex(
) → String -
Returns the seed of the
KeyPair
as a hex string. -
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 givenseed
.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 theKeyPair
matches with the other object.override