X25519Keypair class
Represents an X25519 keypair used for elliptic curve Diffie-Hellman (ECDH).
Constructors
-
X25519Keypair.new({required List<
int> privateKey, required List<int> publicKey, bool validatePublicKey = false}) -
Public constructor with validation of key lengths and public key canonicality.
factory
-
X25519Keypair.generate({List<
int> ? seed}) -
Generates a new X25519 keypair.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
privateKey
→ List<
int> -
The 32-byte clamped private scalar.
final
-
publicKey
→ List<
int> -
The corresponding 32-byte public key (u-coordinate).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
privateKeyHex(
) → String -
publicKeyHex(
) → String -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited