SchnorrkelMiniSecretKey class
The SchnorrkelMiniSecretKey
class represents a mini-secret key used for generating Schnorr key pairs.
In the Schnorrkel signature scheme, a mini-secret key is used to generate Schnorr key pairs, which consist of a public key and a corresponding secret key.
Members:
_bytes
: AList<int>
containing the bytes of the mini-secret key.
This class provides methods for creating, converting, and validating mini-secret keys used in the generation of Schnorr key pairs.
Constructors
-
SchnorrkelMiniSecretKey.fromBytes(List<
int> keyBytes) -
Creates a
SchnorrkelMiniSecretKey
instance from a byte representation. The input bytes are expected to have the correct length for a mini-secret key.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
-
toBytes(
) → List< int> -
Converts the mini-secret key to a
List<int>
. -
toSecretKey(
[ExpansionMode mode = ExpansionMode.ed25519]) → SchnorrkelSecretKey -
Converts the
SchnorrkelSecretKey
into a full secret key using a specified expansion mode. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited