You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Generate partial threshold Schnorr signatures for a given message using a presigning triple.
15
+
/// Generate partial threshold Schnorr signatures for a given message using a presigning tuple.
16
+
/// The presigning tuple must be taken from a [Presignatures] iterator, the other parties should use the same tuple and one tuple may only be used once.
17
17
/// Returns also the public nonce R.
18
18
///
19
19
/// The signatures produced follow the BIP-0340 standard (https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki).
@@ -22,20 +22,16 @@ use itertools::Itertools;
22
22
/// [derive_verifying_key]), and the signature is adjusted accordingly.
23
23
/// The signature will be valid for the derived verifying key.
24
24
///
25
-
/// Returns an `OutOfPresigs` error if the presignatures iterator is exhausted.
26
25
/// `GeneralOpaqueError` is returned if the generated nonce R is the identity element (should happen only with negligible probability).
27
26
/// `InvalidInput` is returned if the verifying key is the identity element.
28
27
pubfngenerate_partial_signatures(
29
28
message:&[u8],
30
-
presignatures:&mutPresignatures,
29
+
(mut secret_presigs, public_presig):(Vec<S>,G),
31
30
beacon_value:&S,
32
31
my_signing_key_shares:&avss::SharesForNode,
33
32
verifying_key:&G,
34
33
derivation_address:Option<&Address>,
35
34
) -> FastCryptoResult<(G,Vec<Eval<S>>)>{
36
-
// TODO: Each output from an instance of Presigning has a unique index. Perhaps this is needed for coordination?
0 commit comments