Secp256r1Keypair class
An Secp256r1 Keypair used for signing transactions.
- Mixed-in types
Constructors
- Secp256r1Keypair([Secp256KeypairData? keypair])
- Create a new keypair instance. Generate random keypair if no Secp256r1Keypair is provided.
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
-
getKeyScheme(
) → SignatureScheme -
Get the key scheme of the keypair Secp256r1
override
-
getKeySchemeFalg(
) → int -
getPublicKey(
) → PublicKey -
The public key for this keypair
override
-
getSecretKey(
) → Uint8List -
The secret key for this keypair
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
publicKeyBytes(
[bool isCompressed = true]) → Uint8List -
sign(
Uint8List bytes) → Uint8List -
inherited
-
signData(
Uint8List data) → Uint8List -
Return the signature for the data
override
-
signPersonalMessage(
Uint8List bytes) → SignatureWithBytes -
inherited
-
signTransactionBlock(
Uint8List bytes) → SignatureWithBytes -
inherited
-
signWithIntent(
Uint8List bytes, IntentScope intent) → SignatureWithBytes -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
verify(
Uint8List data, Uint8List signature, Uint8List publicKey) → bool -
Verify signature
override
-
verifyPersonalMessage(
Uint8List message, String signature) → bool -
Verifies that the signature is valid for for the provided PersonalMessage
inherited
-
verifySerialized(
Uint8List message, String signature, Uint8List publicKey) → bool -
Verify serialized signature
override
-
verifyTransaction(
Uint8List transaction, String signature) → bool -
inherited
-
verifyWithIntent(
Uint8List bytes, String signature, IntentScope intent) → bool -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
deriveKeypair(
String path, String mnemonics) → Secp256r1Keypair - Derive Secp256r1 keypair from mnemonics and path. The mnemonics must be normalized and validated against the english wordlist.
-
fromMnemonics(
String mnemonics, {int accountIndex = 0, int addressIndex = 0, int changeIndex = 0}) → Secp256r1Keypair -
Generate a keypair from
mnemonics
string. -
fromSecretKey(
Uint8List secretKey, {bool? skipValidation}) → Secp256r1Keypair - Create a keypair from a raw secret key byte array.
-
fromSeed(
Uint8List seed) → Secp256r1Keypair -
Generate a keypair from a 32 byte
seed
.