SimpleKeyPair class abstract
An opaque KeyPair that is made of two simple byte sequences.
The private key bytes of the key may not be in the memory. The private key bytes may not even be extractable. If the private key is in memory, it's an instance of SimpleKeyPairData.
The public key is always SimplePublicKey.
This class is used with algorithms such as Ed25519 and X25519.
- Inheritance
- Implementers
Constructors
- SimpleKeyPair.constructor()
- Constructor for subclasses.
-
SimpleKeyPair.lazy(Future<
SimpleKeyPair> f()) -
factory
Properties
- hasBeenDestroyed → bool
-
Whether destroy has been called.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
destroy(
) → void -
Overwrites sensitive parts of the private key data with zeroes and
prevents the private key from being used anymore.
inherited
-
extract(
) → Future< SimpleKeyPairData> -
Reads the private key into memory.
override
-
extractPrivateKeyBytes(
) → Future< List< int> > - Extracts the private key bytes.
-
extractPublicKey(
) → Future< SimplePublicKey> -
Reads the public key.
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