FrostEd25519PrivateKey class
A FROST(Ed25519) coordinator key: threshold shares in position order,
parallel FROST identifiers, and the aggregate public key. The sign
behavior itself lives in IFrostSigningKey (verify_signing.dart).
Input to fromSecretKeys is seeds (ED25519PrivateKey); stored
secretKeys are the resharded threshold shares b_i in the same
32-byte wrapper (not the original seeds). The backend expands seeds
once at creation (isScalar:false) and uses stored shares as scalars
after (isScalar:true).
- Inheritance
-
- Object
- IFrostSigningKey<
FrostEd25519PublicKey, ED25519PrivateKey, ED25519PublicKey> - FrostEd25519PrivateKey
- Implemented types
- Mixed-in types
Constructors
-
FrostEd25519PrivateKey.fromBytes(List<
int> bytes) -
factory
-
FrostEd25519PrivateKey.fromSecretKeys(List<
ED25519PrivateKey> keys, {List<int> ? identifiers, int? threshold, List<int> ? coefficients}) -
Threshold creation from independent seeds.
thresholdnull = additive (stores seeds, full set signs); explicit2 <= t <= n= reshare into correlated sharesb_i(any>=tsubset signs). Stored secretKeys are seeds (additive) orb_ishares in the same wrapper (threshold).coefficientsholdsn*(t-1)explicit 32-byte seeds for deterministic tests; null generates fresh seeds (reshare).factory -
FrostEd25519PrivateKey.partial({required FrostEd25519PublicKey publicKey, List<
ED25519PrivateKey> secretKeys = const [], List<int> identifiers = const []}) -
factory
Properties
- curve → FrostCurve
-
Curve of this quorum.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
-
identifiers
→ List<
int> -
FROST identifiers parallel to secretKeys.
final
- publicKey → FrostEd25519PublicKey
-
Get the associated public key.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
secretKeys
→ List<
ED25519PrivateKey> -
Threshold shares
b_i(resharded scalars in seed wrapper), parallel to identifiers.final - threshold → int?
-
Threshold
tof this quorum (null= full quorum).no setteroverride - type → CryptoKeyType
-
no setteroverride
- variables → List
-
no setteroverride
Methods
-
dispose(
) → void -
Releases the native allocation and wipes owned key material.
Idempotent: safe to call twice.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sign(
FrostSigningParams params) → FrostSignature -
inherited
-
takeSecretAt(
int index) → SecretBytes -
Resharded share bytes at
index(threshold) or seed bytes (additive). BackendisScalarfollowsthreshold==null?false:true.override -
takeSecretKey(
{SecretTransform? transform}) → SecretBytes -
Returns the live secret key object (not a copy). Do not zero,
transform-destructively, or retain it past the key's dispose;
after dispose
override
-
toBytes(
{SecretTransform? transform}) → SecretBytes -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
verificationKey(
) → FrostEd25519PublicKey -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
isValidBytes(
List< int> bytes) → bool -
Static method to check the validity of key bytes for a specific elliptic curve type.
override
-
layout(
) → Layout< FrostEd25519PrivateKey>