Musig2PrivateKey class
- Inheritance
-
- Object
- IMuSig2SigningKey<
MuSig2AggregatePublicKey> - Musig2PrivateKey
- Implemented types
- Mixed-in types
Constructors
-
Musig2PrivateKey.fromBytes(List<
int> keysBytes) -
factory
-
Musig2PrivateKey.generate(List<
Secp256k1PrivateKey> secretKeys, {bool sortPubKeys = false}) -
factory
-
Musig2PrivateKey.partial({required MuSig2AggregatePublicKey publicKey, List<
Secp256k1PrivateKey> secretKeys = const []}) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- publicKey → MuSig2AggregatePublicKey
-
Get the associated public key.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
secretKeys
→ List<
Secp256k1PrivateKey> -
final
- 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
-
generateNonces(
MuSig2GenerateNoncesParams params) → List< MuSig2Nonce> -
inherited
-
generateSession(
MuSig2GenerateSessionParams params) → List< MuSig2PartialSigningParams> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
partialSign(
MuSig2PartialSigningParams params) → MuSig2PartialSignature -
inherited
-
sign(
MuSig2GenerateSessionParams params) → MuSig2Signature -
inherited
-
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
-
tweakedPoint(
List< MuSig2Tweak> tweaks) → Secp256k1Point -
verificationKey(
) → MuSig2AggregatePublicKey -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
isValidBytes(
List< int> keysBytes) → bool -
Static method to check the validity of key bytes for a specific elliptic curve type.
override
-
layout(
) → Layout< Musig2PrivateKey>