SignatureWand class abstract
An opaque object that has some key pair and support for sign.
You can extract the PublicKey with extractPublicKeyUsedForSignatures. The private key is not extractable.
Example
import 'package:cryptography/cryptography.dart';
Future<void> main() async {
final ed25519 = Ed25519();
final wand = await ed25519.newSignatureWand();
final signature = await wand.sign(someData);
}
Constructors
- SignatureWand.constructor()
- Constructor for subclasses.
Properties
- hasBeenDestroyed → bool
-
Whether destroy has been called.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
destroy(
) → Future< void> -
Prevents this object from being used anymore and attempts to erase
cryptographic keys from memory.
inherited
-
extractPublicKeyUsedForSignatures(
) → Future< PublicKey> - Extracts the public key that is used for signatures.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sign(
List< int> message) → Future<Signature> - Signs bytes.
-
signString(
String message) → Future< Signature> - Signs a string.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited