KeyPair class
An Ed25519 key pair consisting of a 32-byte private key and a 32-byte public key.
Key bytes are stored internally and defensive copies are returned from getters to prevent external mutation of key material.
When the KeyPair is garbage collected, the internal key bytes are zeroed out as a best-effort security measure. For explicit control, call dispose to zero the bytes immediately.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisposed → bool
-
Whether dispose has been called.
no setter
- privateKey → Uint8List
-
The 32-byte Ed25519 private key (seed).
no setter
- publicKey → Uint8List
-
The 32-byte Ed25519 public key.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void - Explicitly zeros out the internal key bytes.
-
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