Instance Method
partialSignature(for:pubnonce:secureNonce:publicNonceAggregate:publicKeyAggregate:)
Convenience overload of partialSignature(for:pubnonce:secureNonce:publicNonceAggregate:xonlyKeyAggregate:) that derives the x-only key from a P256K.MuSig.PublicKey.
- iOS 13.0+
- macCatalyst 13.0+
- macOS 10.15+
- tvOS 13.0+
- visionOS 1.0+
- watchOS 6.0+
func partialSignature<D>(for digest: D, pubnonce: P256K.Schnorr.Nonce, secureNonce: consuming P256K.Schnorr.SecureNonce, publicNonceAggregate: P256K.MuSig.Nonce, publicKeyAggregate: P256K.MuSig.PublicKey) throws -> P256K.Schnorr.PartialSignature where D : Digest
Parameters
-
digest
-
The message digest to sign.
-
pubnonce
-
This signer’s public nonce.
-
secureNonce
-
This signer’s secret nonce; consumed and zeroed on return.
-
publicNonceAggregate
-
The P256K.MuSig.Nonce from all signers’ public nonces.
-
publicKeyAggregate
-
The P256K.MuSig.PublicKey returned by aggregate(_:).
Return Value
A P256K.Schnorr.PartialSignature to send to the aggregator.
Discussion
Throws
secp256k1Error.underlyingCryptoError if signing fails or the secnonce was already used.