SchnorrkelKeypair class
Represents a Schnorrkel key pair, consisting of a secret key and a public key.
A Schnorrkel key pair is used for various cryptographic operations, including signing and verification.
Constructors:
SchnorrkelKeypair.fromBytes(List<int> bytes)
: Creates a key pair from raw bytes.SchnorrkelKeypair.fromEd25519(List<int> bytes)
: Creates a key pair from Ed25519 key bytes.
Example Usage:
List<int> keyPairBytes = ...;
SchnorrkelKeypair keyPair = SchnorrkelKeypair.fromBytes(keyPairBytes);
SchnorrkelPublicKey publicKey = keyPair.publicKey();
SchnorrkelSecretKey secretKey = keyPair.secretKey();
The SchnorrkelKeypair
class represents a key pair used for Schnorrkel cryptographic operations.
It includes methods for obtaining the public and secret keys.
Constructors
-
SchnorrkelKeypair.fromBytes(List<
int> bytes) -
Creates a key pair from raw bytes.
factory
-
SchnorrkelKeypair.fromEd25519(List<
int> bytes) -
Creates a key pair from Ed25519 key bytes.
factory
Properties
- hashCode → int
-
The hash code for this object.
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
-
publicKey(
) → SchnorrkelPublicKey - public key
-
secretKey(
) → SchnorrkelSecretKey - secret key
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited