AtSignatureAlgorithm class abstract interface

Stateless signing interface — all key material passed per call.

Safe to share as a singleton.

Key material is passed via named parameters so that call sites cannot silently transpose same-typed byte arguments (the published 3.3.0 FFI backend took (secretKey, data); a positional reorder would keep compiling while binding arguments to the wrong slots).

Implementers

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

generateKeyPair() Future<({Uint8List publicKey, Uint8List secretKey})>
Generate a fresh signing key pair.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
signBytes(Uint8List message, {required Uint8List secretKey}) Future<Uint8List>
Signs message with secretKey; returns the signature bytes.
toString() String
A string representation of this object.
inherited
verifyBytes(Uint8List message, {required Uint8List signature, required Uint8List publicKey}) Future<bool>
Returns true if signature was produced over message with the private key corresponding to publicKey.

Operators

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