ECDSAPrivateKey class

Represents an ECDSA (Elliptic Curve Digital Signature Algorithm) private key.

Mixed-in types

Constructors

ECDSAPrivateKey(ECDSAPublicKey publicKey, BigInt secretMultiplier)
ECDSAPrivateKey.fromBytes(List<int> secrentKey, ProjectiveECCPoint curve)
Creates an ECDSA private key from bytes.
factory
ECDSAPrivateKey.fromBytesConst({required List<int> secretKey, EllipticCurveTypes type = EllipticCurveTypes.secp256k1})
Creates an ECDSA private key from bytes.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
publicFields List<Object?>
Public, non-secret fields that can be compared normally.
no setteroverride
publicKey ECDSAPublicKey
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secretFields List<List<int>>
Secret fields that MUST be compared in constant time.
no setterinherited
secretMultiplier BigInt
final

Methods

constantEquality(ECDSAPrivateKey other) bool
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sign(BigInt hash, BigInt randomK) ECDSASignature
Signs a hash value using the private key.
toBytes() List<int>
Converts the private key to bytes.
toString() String
A string representation of this object.
inherited

Operators

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