ED25519SigningApi class abstract interface

Backend interface for ed25519-family signing/verification.

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

normalizePublicKey(List<int> publicKey) → BuBytes?
Validates 32-byte publicKey (33-byte 0xed-prefixed form accepted) and returns its canonical 32-byte base 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> message, required List<int> publicKey, CryptoKeyType type = CryptoKeyType.ed25519}) → BuBytes
Signs message (arbitrary bytes) with sk and 32-byte publicKey. sk is 32 bytes for CryptoKeyType.ed25519/CryptoKeyType.ed25519Blake2b and 64 bytes for CryptoKeyType.ed25519Monero/CryptoKeyType.ed25519Kholaw. type selects the ed25519 domain; returns 64-byte R || s. Throws on invalid type or lengths.
toString() → String
A string representation of this object.
inherited
verify({required List<int> message, required List<int> signature, required List<int> publicKey, CryptoKeyType type = CryptoKeyType.ed25519}) → bool
Verifies 64-byte signature over message with 32-byte publicKey. Returns false if invalid; throws on malformed input or invalid type.

Operators

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