X25519KeyPair class

X25519 key pair used for Diffie–Hellman key agreement.

Both public and private keys are 32-byte raw values encoded as base64 strings, so they fit the existing AsymmetricKeyPair String contract. Use publicKeyBytes/privateKeyBytes to consume the raw bytes at the algorithm boundary.

Inheritance
Mixed-in types
Implementers

Constructors

X25519KeyPair.create(String publicKey, String privateKey)

Properties

atPrivateKey AtPrivateKey
no setterinherited
atPublicKey AtPublicKey
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
privateKeyBytes Uint8List
The raw private key bytes (atPrivateKey base64-decoded).
no setterinherited
publicKeyBytes Uint8List
The raw public key bytes (atPublicKey base64-decoded).
no setterinherited
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
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

generate() Future<X25519KeyPair>
Generates an X25519 key pair for Diffie–Hellman key agreement.