ValidatedED25519SigningApi class
Validates argument lengths/key types before delegating to the inner backend.
- Implemented types
Constructors
- ValidatedED25519SigningApi(ED25519SigningApi inner)
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- inner → ED25519SigningApi
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
normalizePublicKey(
List< int> publicKey) → BuBytes? -
Validates 32-byte
publicKey(33-byte0xed-prefixed form accepted) and returns its canonical 32-byte base encoding, or null when invalid (bad length, prefix, range, curve membership, or identity).override -
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) withskand 32-bytepublicKey.skis 32 bytes for CryptoKeyType.ed25519/CryptoKeyType.ed25519Blake2b and 64 bytes for CryptoKeyType.ed25519Monero/CryptoKeyType.ed25519Kholaw.typeselects the ed25519 domain; returns 64-byteR || s. Throws on invalid type or lengths.override -
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
signatureovermessagewith 32-bytepublicKey. Returns false if invalid; throws on malformed input or invalidtype.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited