Ed25519Keys class

Keys using the Ed25519 signature scheme.

Inheritance

Constructors

Ed25519Keys({required Uint8List public_key, required Uint8List private_key})

Properties

hashCode int
The hash code for this object.
no setterinherited
private_key Uint8List
The ed25519 private-key of these keys.
final
public_key Uint8List
The ed25519 public-key of these keys without the DER prefix.
no setter
public_key_DER Uint8List
The DER encoded public-key of these Keys.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

authorize(Uint8List message) Future<Uint8List>
Signs a message using the private-key of these Keys. Returns a signature on the message.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

DER_public_key_start Uint8List
The DER prefix for the DER encoding of the ed25519 public_key.
getter/setter pair

Static Methods

new_keys() Ed25519Keys
Generates a new pair of ed25519 keys.
verify({required Uint8List message, required Uint8List signature, required Uint8List pubkey}) bool
Verifies a message signed by an Ed25519 key-pair.