Secp256k1SigningKey class

The ECDSASigningKey class represents a key pair for ECDSA (Elliptic Curve Digital Signature Algorithm) signing. It encapsulates the private key and provides methods for signing digests and generating deterministic signatures.

Inheritance

Constructors

Secp256k1SigningKey({required Secp256k1ECmultGenContext ecMultContext, required ECDSAPrivateKey privateKey})
Constructs an ECDSASigningKey instance with the given private key.
Secp256k1SigningKey.fromBytes({required List<int> keyBytes, Secp256k1ECmultGenContext? ecMultContext})
factory

Properties

ecMultContext Secp256k1ECmultGenContext
final
generator ProjectiveECCPoint
The projective ECC (Elliptic Curve Cryptography) point generator associated with the key.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
privateKey ECDSAPrivateKey
The ECDSA private key associated with this signing key.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sign({required List<int> digest, List<int>? extraEntropy}) Tuple<ECDSASignature, int>
signBip340({required List<int> digest, List<int>? tapTweakHash, List<int>? aux}) List<int>
signBip340Const({required List<int> digest, List<int>? tapTweakHash, List<int>? aux}) List<int>
signConst({required List<int> digest, List<int>? extraEntropy}) Tuple<ECDSASignature, int>
signConstDer({required List<int> digest, List<int>? extraEntropy}) List<int>
signDer({required List<int> digest, List<int>? extraEntropy}) List<int>
signDigest({required List<int> digest, List<int>? entropy, required BigInt k, bool truncate = false}) ECDSASignature
Signs a given digest using the private key and a specified value of 'k'.
inherited
signDigestDeterminstic({required List<int> digest, required HashFunc hashFunc, List<int>? extraEntropy, bool truncate = false, int retry = 0}) ECDSASignature
Generates a deterministic signature for a given digest using the private key.
inherited
signSchnorr(List<int> digest, {List<int>? extraEntropy}) List<int>
signSchnorrConst({required List<int> digest, List<int>? extraEntropy}) List<int>
toString() String
A string representation of this object.
inherited
toVerifyKey() ECDSAVerifyKey

Operators

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