DartEd25519 class
Ed25519 signature algorithm implemented in pure Dart.
For examples and more information about the algorithm, see documentation for the class Ed25519.
- Inheritance
-
- Object
- SignatureAlgorithm<
PublicKey> - Ed25519
- DartEd25519
Constructors
- DartEd25519({Sha512? sha512, Random? random})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
keyPairType
→ KeyPairType<
KeyPairData, PublicKey> -
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
newKeyPair(
) → Future< SimpleKeyPair> -
Generates a new KeyPair for this algorithm.
inherited
-
newKeyPairFromSeed(
List< int> seed) → Future<SimpleKeyPair> -
Generates a new KeyPair that uses the seed bytes.
override
-
newSignatureWand(
) → Future< SignatureWand> -
Generates a new SignatureWand that has a random KeyPair.
inherited
-
newSignatureWandFromKeyPair(
KeyPair keyPair) → Future< SignatureWand> -
Generates a new SignatureWand that uses the given KeyPair.
inherited
-
newSignatureWandFromSeed(
List< int> seed) → Future<SignatureWand> -
Generates a new SignatureWand that uses the given seed bytes.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sign(
List< int> message, {required KeyPair keyPair, PublicKey? publicKey}) → Future<Signature> -
Signs bytes.
override
-
signString(
String message, {required KeyPair keyPair}) → Future< Signature> -
Signs a string.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
verify(
List< int> message, {required Signature signature}) → Future<bool> -
Verifies whether bytes was signed with
signature
.override -
verifyString(
String message, {required Signature signature}) → Future< bool> -
Verifies whether a string was signed with
signature
.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited