RatchetEphemeral class

One side's per-connection X25519 keypair. Lives in memory only; destroy it when the session ends.

Properties

hashCode → int
The hash code for this object.
no setterinherited
publicKey → List<int>
The 32-byte public key, sent to the peer in a signed hello.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

agree(List<int> peerPublicKey) → Future<List<int>?>
The X25519 agreement with peerPublicKey, or null when the peer key is malformed or of low order (an all-zero result), which would make the agreement contribute nothing.
destroy() → void
Wipes the private key.
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<RatchetEphemeral>
Generates a fresh keypair.