Backend interface for secp256r1 signing/verification operations.
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
-
normalizePublicKey(
List< int> publicKey) → BuBytes? -
Validates 33/65-byte
publicKeyand returns its canonical base (compressed) encoding, or null when invalid (bad length, prefix, range, curve membership, or identity). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sign(
{required List< int> sk, required List<int> publicKey, required List<int> digest, List<int> ? extraEntropy}) → IECDSASignature -
Signs
digestwith 32-byte big-endianskusing ECDSA on P-256.publicKeyis 33/65 bytes;extraEntropyis optional RFC6979 entropy. Throws on invalid input. -
toString(
) → String -
A string representation of this object.
inherited
-
verify(
{required List< int> digest, required IECDSASignature signature, required List<int> publicKey}) → bool -
Verifies ECDSA
signatureoverdigestwith 33/65-bytepublicKey. Returns false if invalid; throws on malformed input.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited