Terminology§
The key words "MUST", "MUST NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", and "MAY" in this document are to be interpreted as described in BCP 14 1 when, and only when, they appear in all capitals.
The term "Recovery Protocol" in this document is to be interpreted as described in 29.
The term below is to be interpreted as follows:
- Unlinkability
- The property of statistical independence of signatures from the signers' long-term keys, ensuring that (for perfectly uniform generation of Randomizers and no leakage of metadata) it is impossible to determine whether two transactions were generated by the same party.
Abstract§
This proposal adapts FROST 3, a threshold signature scheme, to make it support key re-randomization as described in 15. This is a requirement in order for it to be used to implement unlinkable spend authorization signatures in the Orchard and Sapling shielded protocols, as deployed in Zcash.
Motivation§
In the Zcash protocol, Spend Authorization Signatures are employed to authorize a transaction. The ability to generate these signatures with the user's private key is what effectively allows the user to spend funds.
This is a security-critical step, since anyone who obtains access to the private key will be able to spend the user's funds. For this reason, one interesting possibility is to ensure that authorization from multiple parties is needed in order for the transaction to go through. This can be accomplished with threshold signatures, where the private key is split between parties (or generated already split using a distributed protocol) in such a way that a threshold (e.g. 2 out of 3) of them must sign the transaction in order to create the final signature. This enables scenarios such as users and third-party services sharing custody of a wallet, or a group of people managing shared funds, for example.
FROST is one of such threshold signature protocols. However, it can't be used as-is since the Zcash protocol also requires re-randomizing public and private keys to ensure unlinkability between transactions. This ZIP specifies a variant of FROST with re-randomization support. This variant is named "Re-Randomized FROST" and has been described in 4.
Requirements§
- All signatures generated by following this ZIP must be verified successfully as Sapling or Orchard spend authorization signatures using the appropriate validating key.
- The signatures generated by following this ZIP should meet the security criteria for Signature with Re-Randomizable Keys as specified in the Zcash protocol 20.
- The threat model described below must be taken into account.
- The key generation must be compatible with Quantum Recoverability 29.
Threat Model§
In normal usage, a Zcash user follows multiple steps in order to generate a shielded transaction:
- The transaction is created.
- The transaction is signed with a re-randomized version of the user's spend authorization private key.
- The zero-knowledge proof for the transaction is created with the randomizer as an auxiliary (secret) input, among others.
When employing re-randomizable FROST as specified in this ZIP, the goal is to split the spend authorization private key \(\mathsf{ask}\) among multiple possible signers. This means that the proof generation will still be performed by a single participant, likely the one that created the transaction in the first place. Note that this user already controls the privacy of the transaction since they are responsible for creating the proof.
This fits well into the "Coordinator" role from the FROST specification 8. The Coordinator is responsible for sending the message to be signed to all participants, and to aggregate the signature shares.
With those considerations in mind, the threat model considered in this ZIP is:
- The Coordinator is trusted with the privacy of the transaction (which includes the unlinkability property). A rogue Coordinator will be able to break unlinkability and privacy, but should not be able to create signed transactions without the approval of
MIN_PARTICIPANTSparticipants, as specified in FROST. - All key share holders are also trusted with the privacy of the transaction, thus a rogue key share holder will be able to break its privacy and unlinkability.
Caveats concerning the security model for use of FROST keys in a Quantum Recovery protocol are covered in 30.
Non-requirements§
- This ZIP does not support removing the Coordinator role, as described in 11.
- This ZIP does not prevent key share holders from linking the signing operation to a transaction in the blockchain.
- Like the FROST specification 3, this ZIP does not require a particular key generation procedure, although it does suggest one.
- Network privacy is not in scope for this ZIP, and must be obtained with other tools if desired.
Specification§
Algorithms in this section are specified using Python pseudo-code, in the same fashion as the FROST specification 3.
We define the following as in 3 for a specific FROST ciphersuite:
- Let \(G\) be a group of prime order \(p\) as described in 6, with element type \(\mathtt{Element}\kern-0.03em\textsf{,}\) identity \(I \;{\small ⦂}\; \mathtt{Element}\kern-0.03em\textsf{,}\) base element \(B \;{\small ⦂}\; \mathtt{Element}\) where \(B \neq I\kern-0.03em\textsf{,}\) and scalar type \(\mathtt{Scalar} = \mathbb{F}_p\kern-0.03em\textsf{.}\)
- Let \(\mathtt{Ne}\) and \(\mathtt{Ns}\) be the sizes in bytes of a serialized Element representation and Scalar representation, respectively.
- Let functions \(\mathsf{Scalar} \;{\small ⦂}\; \{ 0 .. p-1 \} \rightarrow \mathtt{Scalar}\kern-0.03em\textsf{,}\) \(\mathsf{RandomScalar} \;{\small ⦂}\; () \stackrel{\tiny\mathrm{R}}{\rightarrow} \mathtt{Scalar}\kern-0.03em\textsf{,}\) \(\mathsf{ScalarMult} \;{\small ⦂}\; \mathtt{Element} \times \mathtt{Scalar} \rightarrow \mathtt{Element}\kern-0.03em\textsf{,}\) \(\mathsf{ScalarBaseMult} \;{\small ⦂}\; \mathtt{Scalar} \rightarrow \mathtt{Element}\kern-0.03em\textsf{,}\) \(\mathsf{SerializeElement} \;{\small ⦂}\; \mathtt{Element} \rightarrow \mathbb{B}^{{\kern-0.05em\tiny\mathbb{Y}}[\mathtt{Ne}]}\kern-0.03em\textsf{,}\) \(\mathsf{DeserializeElement} \;{\small ⦂}\; \mathbb{B}^{{\kern-0.05em\tiny\mathbb{Y}}[\mathtt{Ne}]} \rightarrow \mathtt{Element} \cup \{ \bot \}\kern-0.03em\textsf{,}\) \(\mathsf{SerializeScalar} \;{\small ⦂}\; \mathtt{Scalar} \rightarrow \mathbb{B}^{{\kern-0.05em\tiny\mathbb{Y}}[\mathtt{Ns}]}\kern-0.03em\textsf{,}\) \(\mathsf{DeserializeScalar} \;{\small ⦂}\; \mathbb{B}^{{\kern-0.05em\tiny\mathbb{Y}}[\mathtt{Ns}]} \rightarrow \mathtt{Scalar} \cup \{ \bot \}\) also be as described in 6 (where "raising an error" corresponds to returning \(\bot\kern-0.03em\textsf{).}\)
Note that the notation for elliptic-curve scalar multiplication, \(\mathsf{G.ScalarMult}(P, k)\kern-0.03em\textsf{,}\) differs from that used in the Zcash Protocol Specification, which would use \([k]\, P\) with the group implied by \(P\) 16.
Key Generation§
FROST key generation with a trusted dealer is described in 13. That description does not support key re-randomization but can be adapted to do so, as described in section 5 of 4.
Instead, it is RECOMMENDED to instead use Distributed Key Generation.
A suitable DKG protocol is COCKTAIL-DKG 26. COCKTAIL-DKG assumes that each participant has a static public key known to all other participants.
The DKG MUST be run over the same group and base point as the FROST ciphersuite that will use its output: \(\mathcal{G}^{\mathsf{Orchard}}\) for FROST(Pallas, BLAKE2b-512) and \(\mathcal{G}^{\mathsf{Sapling}}\) for FROST(Jubjub, BLAKE2b-512). Otherwise the group public key that the DKG outputs is not \([\mathsf{ask}]\, \mathcal{G}\) for the shared \(\mathsf{ask}\kern-0.03em\textsf{,}\) and is not a valid \(\mathsf{ak}\) for the key shares.
When COCKTAIL-DKG is used, the FROST identifier of participant \(i\kern-0.03em\textsf{,}\) for \(1 \leq i \leq n\kern-0.03em\textsf{,}\) is the \(\mathtt{Scalar}\) with value \(i\kern-0.03em\textsf{.}\)
Other Distributed Key Generation protocols MAY be used.
To define a spending or viewing key that uses FROST, the Orchard and Sapling key trees 18 17 are adjusted as follows:
- The Spend validating key \(\mathsf{ak}\) is replaced by the FROST group public key PK 8 when deriving other key components.
- The Spend authorizing key \(\mathsf{ask}\) 19 is replaced by the logical signing key that corresponds to the group public key PK. By design, this key is never explicitly constructed (unless trusted dealer key generation was used), and instead is represented by any sufficient subset of the participant FROST signing key shares sk_i.
For both Orchard and Sapling, use of Distributed Key Generation precludes generating \(\mathsf{ask}\) from a spending key \(\mathsf{sk}\kern-0.03em\textsf{.}\) Instead the Distributed Key Generation protocol will output the FROST group public key PK (equivalent to \(\mathsf{ak}\kern-0.03em\textsf{).}\)
The remaining parts of the Orchard or Sapling key tree are still derived from \(\mathsf{sk}\) (not to be confused with the FROST signing key shares \(\mathtt{sk\_i}\kern-0.03em\textsf{)}\) as described later in this section.
For the Orchard protocol, § 4.2.3 ‘Orchard Key Components’ 18 requires the last bit (the \(\tilde{y}\) bit) of \(\mathsf{repr}_{\mathbb{P}}(\mathsf{ak}^{\mathbb{P}})\) to be \(0\kern-0.03em\textsf{.}\) So when the FROST(Pallas, BLAKE2b-512) ciphersuite is used, after key generation by either method, if the last bit of \(\mathsf{SerializeElement}`(`PK\) ) is \(1\) then \(\mathtt{PK}:math:\) MUST be replaced by kern-0.15em` -mathtt{PK}kern-0.03emtextsf{,}` every signing key share \(\mathtt{sk\_i}:math:\) MUST be replaced by kern-0.15em` -mathtt{sk_i}kern-0.03emtextsf{,}` and every public verifying share \(\mathtt{PK\_i}:math:\) MUST be replaced by kern-0.15em` -mathtt{PK_i}kern-0.03emtextsf{.}` Each participant can perform this replacement locally, since negation preserves the relation between the shares and the group key. Values recomputed later from the DKG transcript (for example when a participant restores its key material, or recomputes a verifying share) are the values before this replacement, so the replacement MUST be applied again whenever they are recomputed.
When generating FROST key components for the Orchard shielded protocol, the remaining parts of the Orchard key tree apart from \(\mathsf{ask}\) and \(\mathsf{ak}\) SHOULD be generated as described in 30. The specification there is normative, and is only summarized here. It requires the participants to privately agree on a value \(\mathsf{sk}\) (which is no longer sufficient by itself for spend authorization), and then use it to obtain the nullifier deriving key \(\mathsf{nk}\kern-0.03em\textsf{,}\) the quantum spending key \(\mathsf{qsk}\kern-0.03em\textsf{,}\) the quantum intermediate key \(\mathsf{qk}\kern-0.03em\textsf{,}\) and (using the FROST group public key in place of \(\mathsf{ak}\kern-0.03em\textsf{)}\) \(\mathsf{rivk\_ext}\kern-0.03em\textsf{.}\) This process is specified in § 4.2.3 ‘Orchard Key Components’ 18 as modified by 30.
Similarly, when generating a FROST key for the Sapling shielded protocol, the remaining parts of the Sapling key tree apart from \(\mathsf{ask}\) and \(\mathsf{ak}\) (that is, \(\mathsf{nk}\kern-0.03em\textsf{,}\) \(\mathsf{rivk\_ext}\kern-0.03em\textsf{,}\) and further values derived from them and \(\mathsf{ak}\kern-0.03em\textsf{)}\) SHOULD be generated from a common value \(\mathsf{sk}\) (again, not sufficient by itself for spend authorization) as described in 17.
Regardless of how the Orchard or Sapling key components are generated, the participants MUST ensure that they have obtained the same values for \(\mathsf{ak}\kern-0.03em\textsf{,}\) \(\mathsf{nk}\kern-0.03em\textsf{,}\) and \(\mathsf{rivk\_ext}\kern-0.03em\textsf{.}\)
Since Sapling will not be modified to support Quantum Recoverability 29, Orchard is RECOMMENDED for new FROST keys.
In order for all participants to agree on the value of \(\mathsf{sk}\kern-0.03em\textsf{,}\) one of the following options SHOULD be used:
- Participants generate a \(\mathsf{sk}\) in a contributory manner, for example using the method defined in Contributory Generation of sk. This approach SHOULD be used to generate \(\mathsf{sk}\) if Distributed Key Generation was employed.
- One participant generates a random \(\mathsf{sk}\) and sends it to the others via an encrypted and authenticated channel. This option SHOULD be used if trusted dealer key generation was used, and the \(\mathsf{sk}\) value can be sent along with the FROST shares during key generation. This option is NOT RECOMMENDED if Distributed Key Generation was employed.
Randomizer Generation§
Re-Randomized FROST uses randomizers. This section specifies how they are generated; this will be required for the Signature Share Generation specification below.
Two functions are provided to generate randomizers: randomizer_generate() and randomizer_regenerate(). Both use helper functions and a constant which are defined as follows:
- The encode_group_commitment_list() function is defined in 7. It returns a byte serialization of a commitment_list value.
- The random_bytes(n) function is defined in 5 and it returns a sequence of n bytes sampled uniformly at random.
- The HR(m) function is a ciphersuite-generic function that maps an arbitrary byte string to a scalar and is instantiated in the Ciphersuites section.
randomizer_generate(): Inputs: - commitment_list = [(i, hiding_nonce_commitment_i, binding_nonce_commitment_i), ...], a list of commitments issued by each participant, where each element in the list indicates a NonZeroScalar identifier i and two commitment Element values (hiding_nonce_commitment_i, binding_nonce_commitment_i). This list MUST be sorted in ascending order by identifier. Outputs: (randomizer_seed, randomizer), a byte sequence and a Scalar def randomizer_generate(commitment_list): # Generate a random byte sequence with the size of a serialized scalar. randomizer_seed = random_bytes(Ns) signing_commitments_enc = encode_group_commitment_list(commitment_list) randomizer_input = randomizer_seed || signing_commitments_enc return (randomizer_seed, HR(randomizer_input))
randomizer_regenerate(): Inputs: - randomizer_seed = a sequence of Ns bytes - commitment_list = [(i, hiding_nonce_commitment_i, binding_nonce_commitment_i), ...], a list of commitments issued by each participant, where each element in the list indicates a NonZeroScalar identifier i and two commitment Element values (hiding_nonce_commitment_i, binding_nonce_commitment_i). This list MUST be sorted in ascending order by identifier. Outputs: randomizer, a Scalar def randomizer_regenerate(randomizer_seed, commitment_list): signing_commitments_enc = encode_group_commitment_list(commitment_list) randomizer_input = randomizer_seed || signing_commitments_enc return HR(randomizer_input)
Re-Randomized FROST§
To add re-randomization to FROST, the signers MUST follow the specification 3 with the following modifications.
Round One - Commitment§
Round One is exactly the same as specified 3. But for context, it involves these steps:
- Each signer generates nonces and their corresponding public commitments. A nonce is a pair of \(\mathtt{Scalar}\) values, and a commitment is a pair of \(\mathtt{Element}\) values.
- The nonces are stored locally by the signer and kept private for use in the second round.
- The commitments are sent to the Coordinator.
Contributory Generation of sk§
The contributory generation of \(\mathsf{sk}\) uses the application payloads and the application-specific extension of COCKTAIL-DKG 26. Payloads are encrypted to their recipients and are not part of the transcript; the extension is part of the transcript, which is public.
Let \(n\) be the number of participants, with identifiers \(1 \leq i \leq n\kern-0.03em\textsf{.}\) Define:
-
\(\mathsf{H_{sk}}(m)\)
as BLAKE2b-256 2 with the personalization string
"ZcashFROST_sk_v1"applied to \(m\kern-0.03em\textsf{;}\) -
\(\mathsf{H_{commit}}(m)\)
as BLAKE2b-256 with the personalization string
"ZcashFROST_skcmt"applied to \(m\kern-0.03em\textsf{.}\)
The participants proceed as follows:
- In Round 1, each participant
\(i\)
generates a contribution
contrib_i = random_bytes(32), and sets \(\mathsf{payload}_{i,j} = \mathtt{contrib\_i}\) for every participant \(j\kern-0.03em\textsf{,}\) including \(j = i\kern-0.03em\textsf{.}\) The contribution is unrelated to the participant's FROST signing key share sk_i, which is never sent. - After decrypting its Round 2 payloads, each participant computes
sk = H_sk(contrib_1 || contrib_2 || ... || contrib_n), with the contributions in ascending order of participant identifier. Each contribution is exactly 32 bytes, so no length prefixes are needed. A participant MUST abort, without signing the transcript, if any decrypted payload is not exactly 32 bytes. - In Round 3, each participant uses
ext = H_commit(sk)as the extension.
The extension is covered by the signatures that every participant makes in Round 3, so the protocol completes only if all participants computed the same \(\mathsf{sk}\kern-0.03em\textsf{.}\) Since \(\mathsf{sk}\) has 256 bits of entropy that is unknown outside the group, the extension reveals nothing about it. \(\mathsf{sk}\) itself MUST NOT be placed in the extension or anywhere else in the transcript.
Ciphersuites§
FROST(Jubjub, BLAKE2b-512)§
This ciphersuite uses Jubjub for the Group and BLAKE2b-512 for the Hash function \(\mathtt{H}\) meant to produce signatures indistinguishable from RedJubjub Sapling Spend Authorization Signatures as specified in 21.
- Group: Jubjub 22 with base point
\(\mathcal{G}^{\mathsf{Sapling}}\)
as defined in 21.
- Order: \(r_{\mathbb{J}}\) as defined in 22.
- Identity: as defined in 22.
- \(\mathsf{RandomScalar}()\kern-0.03em\textsf{:}\) Implemented by returning a uniformly random \(\mathtt{Scalar}\) in the range \([0, \mathsf{G.Order}() - 1]\kern-0.03em\textsf{.}\) Refer to 14 for implementation guidance.
- \(\mathsf{SerializeElement}(P)\kern-0.03em\textsf{:}\) Implemented as \(\mathsf{repr}_{\mathbb{J}}(P)\) as defined in 22.
- \(\mathsf{DeserializeElement}(P)\kern-0.03em\textsf{:}\) Implemented as \(\mathsf{abst}_{\mathbb{J}}(P)\) as defined in 22, returning an error if \(\bot\) is returned. Additionally, this function validates that the resulting element is in the subgroup of order \(r_{\mathbb{J}}\) and is not the group identity element, returning an error if either check fails.
- \(\mathsf{SerializeScalar}\kern-0.03em\textsf{:}\) Implemented by outputting the little-endian 32-byte encoding of the \(\mathtt{Scalar}\) value.
- \(\mathsf{DeserializeScalar}\kern-0.03em\textsf{:}\) Implemented by attempting to deserialize a \(\mathtt{Scalar}\) from a little-endian 32-byte string. This function can fail if the input does not represent a \(\mathtt{Scalar}\) in the range \([0, \mathsf{G.Order}() - 1]\kern-0.03em\textsf{.}\)
- Hash (
\(\mathtt{H}\kern-0.03em\textsf{):}\) BLAKE2b-512 2 (BLAKE2b with 512-bit output and 16-byte personalization string), and
\(\mathtt{Nh} = 64\kern-0.03em\textsf{.}\)
- H1(m): Implemented by computing BLAKE2b-512("FROST_RedJubjubR", m), interpreting the 64 bytes as a little-endian integer, and reducing the resulting integer modulo \(\mathsf{G.Order}()\kern-0.03em\textsf{.}\)
- H2(m): Implemented by computing BLAKE2b-512("Zcash_RedJubjubH", m), interpreting the 64 bytes as a little-endian integer, and reducing the resulting integer modulo \(\mathsf{G.Order}()\kern-0.03em\textsf{.}\) (This is equivalent to \(\mathsf{H}^\circledast(m)\kern-0.03em\textsf{,}\) as defined by the \(\mathsf{RedJubjub}\) scheme instantiated in 20.)
- H3(m): Implemented by computing BLAKE2b-512("FROST_RedJubjubN", m), interpreting the 64 bytes as a little-endian integer, and reducing the resulting integer modulo \(\mathsf{G.Order}()\kern-0.03em\textsf{.}\)
- H4(m): Implemented by computing BLAKE2b-512("FROST_RedJubjubM", m).
- H5(m): Implemented by computing BLAKE2b-512("FROST_RedJubjubC", m).
- HR(m): Implemented by computing BLAKE2b-512("FROST_RedJubjubA", m), interpreting the 64 bytes as a little-endian integer, and reducing the resulting integer modulo \(\mathsf{G.Order}()\kern-0.03em\textsf{.}\)
Signature verification is as specified in 21 for RedJubjub.
FROST(Pallas, BLAKE2b-512)§
This ciphersuite uses Pallas for the Group and BLAKE2b-512 for the Hash function H meant to produce signatures indistinguishable from RedPallas Orchard Spend Authorization Signatures as specified in 21. The same ciphersuite produces spend authorization signatures for actions of the Ironwood pool 29, which are also RedPallas signatures.
- Group: Pallas 23 with base point
\(\mathcal{G}^{\mathsf{Orchard}}\)
as defined in 21.
- Order: \(r_\mathbb{P}\) as defined in 23.
- Identity: as defined in 23.
- \(\mathsf{RandomScalar}()\kern-0.03em\textsf{:}\) Implemented by returning a uniformly random \(\mathtt{Scalar}\) in the range \([0, \mathsf{G.Order}() - 1]\kern-0.03em\textsf{.}\) Refer to 14 for implementation guidance.
- \(\mathsf{SerializeElement}(P)\kern-0.03em\textsf{:}\) Implemented as \(\mathsf{repr}_\mathbb{P}(P)\) as defined in 23.
- \(\mathsf{DeserializeElement}(P)\kern-0.03em\textsf{:}\) Implemented as \(\mathsf{abst}_\mathbb{P}(P)\) as defined in 23, failing if \(\bot\) is returned. Additionally, this function validates that the resulting element is not the group identity element, returning an error if the check fails.
- \(\mathsf{SerializeScalar}\kern-0.03em\textsf{:}\) Implemented by outputting the little-endian 32-byte encoding of the \(\mathtt{Scalar}\) value.
- \(\mathsf{DeserializeScalar}\kern-0.03em\textsf{:}\) Implemented by attempting to deserialize a \(\mathtt{Scalar}\) from a little-endian 32-byte string. This function can fail if the input does not represent a \(\mathtt{Scalar}\) in the range \([0, \mathsf{G.Order}() - 1]\kern-0.03em\textsf{.}\)
- Hash (
\(\mathtt{H}\kern-0.03em\textsf{):}\) BLAKE2b-512 2 (BLAKE2b with 512-bit output and 16-byte personalization string), and
\(\mathtt{Nh} = 64\kern-0.03em\textsf{.}\)
- H1(m): Implemented by computing BLAKE2b-512("FROST_RedPallasR", m), interpreting the 64 bytes as a little-endian integer, and reducing the resulting integer modulo \(\mathsf{G.Order}()\kern-0.03em\textsf{.}\)
- H2(m): Implemented by computing BLAKE2b-512("Zcash_RedPallasH", m), interpreting the 64 bytes as a little-endian integer, and reducing the resulting integer modulo \(\mathsf{G.Order}()\kern-0.03em\textsf{.}\) (This is equivalent to \(\mathsf{H}^\circledast(m)\kern-0.03em\textsf{,}\) as defined by the \(\mathsf{RedPallas}\) scheme instantiated in 20.)
- H3(m): Implemented by computing BLAKE2b-512("FROST_RedPallasN", m), interpreting the 64 bytes as a little-endian integer, and reducing the resulting integer modulo \(\mathsf{G.Order}()\kern-0.03em\textsf{.}\)
- H4(m): Implemented by computing BLAKE2b-512("FROST_RedPallasM", m).
- H5(m): Implemented by computing BLAKE2b-512("FROST_RedPallasC", m).
- HR(m): Implemented by computing BLAKE2b-512("FROST_RedPallasA", m), interpreting the 64 bytes as a little-endian integer, and reducing the resulting integer modulo \(\mathsf{G.Order}()\kern-0.03em\textsf{.}\)
Signature verification is as specified in 21 for RedPallas.
Rationale§
FROST is a threshold Schnorr signature scheme, and Zcash Spend Authorization are also Schnorr signatures, which allows the usage of FROST with Zcash. However, since there is no widespread standard for Schnorr signatures, it must be ensured that the signatures generated by the FROST variant specified in this ZIP can be verified successfully by a Zcash implementation following its specification. In practice this entails making sure that the generated signature can be verified by the \(\mathsf{RedDSA.Validate}\) function specified in 20:
- The FROST signature, when split into \(R\) and \(S\) in the first step of \(\mathsf{RedDSA.Validate}\kern-0.03em\textsf{,}\) must yield the values expected by the function. This is ensured by defining \(\mathsf{SerializeElement}\) and \(\mathsf{SerializeScalar}\) in each ciphersuite to yield those values.
- The challenge \(c\) used during FROST signing must be equal to the challenge \(c\) computed during \(\mathsf{RedDSA.Validate}\kern-0.03em\textsf{.}\) This requires defining the ciphersuite H2 function as the \(\mathsf{H}^\circledast(m)\) Zcash function in the ciphersuites, and making sure its input will be the same. Fortunately FROST and Zcash use the same input order ( \(R\kern-0.03em\textsf{,}\) public key, message) so we just need to make sure that \(\mathsf{SerializeElement}\) (used to compute the encoded public key before passing to the hash function) matches what \(\mathsf{RedDSA.Validate}\) expects; which is possible since both \(R\) and \(\mathsf{vk}\) (the public key) are encoded in the same way as in Zcash.
- Note that \(r\) (and thus \(R\kern-0.03em\textsf{)}\) will not be generated as specified in \(\mathsf{RedDSA.Sign}\kern-0.03em\textsf{.}\) This is not an issue however, since with Schnorr signatures it does not matter for the verifier how the \(r\) value was chosen, it just needs to be a uniformly distributed random element, which is true for FROST.
- The above will ensure that the verification equation in \(\mathsf{RedDSA.Validate}\) will pass, since FROST ensures the exact same equation will be valid as described in 12.
The second step is adding the re-randomization functionality so that each FROST signing generates a re-randomized signature:
- Anywhere the public key is used, the randomized public key must be used instead. This is exactly what is done in the functions defined above.
- The re-randomization must be done in each signature share generation, such that the aggregated signature must be valid under verification with the randomized public key. This is shown to be true in 4.
- The re-randomization procedure must be exactly the same as in 20 to ensure that re-randomized keys are uniformly distributed and signatures are unlinkable. This is also true; observe that \(\mathtt{randomizer\_generate}()\) generates the randomizer uniformly at random as required by \(\mathsf{RedDSA.GenRandom}\kern-0.03em\textsf{;}\) and signature generation is compatible with \(\mathsf{RedDSA.RandomizePrivate}\kern-0.03em\textsf{,}\) \(\mathsf{RedDSA.RandomizePublic}\kern-0.03em\textsf{,}\) \(\mathsf{RedDSA.Sign}\) and \(\mathsf{RedDSA.Validate}\) as explained in the previous item.
The security of Re-Randomized FROST with respect to the security assumptions of regular FROST is shown in 4.
Regarding the contributory generation of \(\mathsf{sk}\kern-0.03em\textsf{:}\) every participant learns \(\mathsf{sk}\) by design, since it is needed to derive the viewing key components. So a participant that chooses its contribution after seeing the others', for example by colluding with the Coordinator, can only select \(\mathsf{sk}\) among values that it could compute anyway, and gains nothing that a participant does not already have. The commitment in the extension serves agreement, not secrecy: it lets every participant check that all of them derived the same \(\mathsf{sk}\kern-0.03em\textsf{,}\) without placing a value in the public transcript from which \(\mathsf{sk}\) could be recovered.
Regarding randomizer handling, in Zcash, the \(\mathtt{randomizer}\) is called \(\alpha\) and is usually generated using the \(\mathsf{RedDSA.GenRandom}\) function as defined in the Zcash specification 19. Note that the choice of \(\alpha\) influences the SIGHASH computation, so it is impossible to compute the \(\mathtt{randomizer}\) based on the message (SIGHASH), as suggested in 4. This is not an issue as long as the \(\mathtt{randomizer}\) is generated with the same security properties as \(\mathsf{RedDSA.GenRandom}\kern-0.03em\textsf{.}\) We ensure that by using a very similar approach; while the original \(\mathsf{RedDSA.GenRandom}\) uses \(\mathsf{H}^\circledast(T)\) where \(T\) is a random byte sequence with a certain size, in this ZIP we effectively use \(\mathsf{H}^\circledast(T || \mathsf{signing\_commitments\_enc})\kern-0.03em\textsf{,}\) i.e. we concatenate the random bytes with the encoding of the signing commitments. This preserves the security assumptions and also hedges against issues in the Coordinator random byte generator and prevents the Coordinator from fully influencing the randomizer, reducing its trust assumptions.
Reference implementation§
The frost-rerandomized crate 25, from version 3.0.0, implements Re-Randomized FROST over any FROST ciphersuite, including \(\mathtt{randomizer\_generate}()\) and \(\mathtt{randomizer\_regenerate}()\) as specified here. The two ciphersuites of this ZIP are implemented in versions 0.5.x of the reddsa crate 24; version 0.6.0 of that crate removed them, and at the time of writing they are not published elsewhere.
References§
| 1 | Information on BCP 14 — "RFC 2119: Key words for use in RFCs to Indicate Requirement Levels" and "RFC 8174: Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words" |
|---|
| 2 | BLAKE2: simpler, smaller, fast as MD5 |
|---|
| 3 | RFC 9591: The Flexible Round-Optimized Schnorr Threshold (FROST) Protocol for Two-Round Schnorr Signatures |
|---|
| 4 | Re-Randomized FROST (ePrint 2024/436) |
|---|
| 5 | RFC 9591: The Flexible Round-Optimized Schnorr Threshold (FROST) Protocol for Two-Round Schnorr Signatures. Section 2: Conventions and Definitions |
|---|
| 6 | RFC 9591: The Flexible Round-Optimized Schnorr Threshold (FROST) Protocol for Two-Round Schnorr Signatures. Section 3.1: Prime-Order Group |
|---|
| 7 | RFC 9591: The Flexible Round-Optimized Schnorr Threshold (FROST) Protocol for Two-Round Schnorr Signatures. Section 4.3: List Operations |
|---|
| 8 | RFC 9591: The Flexible Round-Optimized Schnorr Threshold (FROST) Protocol for Two-Round Schnorr Signatures. Section 5: Two-Round FROST Signing Protocol |
|---|
| 9 | RFC 9591: The Flexible Round-Optimized Schnorr Threshold (FROST) Protocol for Two-Round Schnorr Signatures. Section 5.2: Round Two - Signature Share Generation |
|---|
| 10 | RFC 9591: The Flexible Round-Optimized Schnorr Threshold (FROST) Protocol for Two-Round Schnorr Signatures. Section 5.3: Signature Share Aggregation |
|---|
| 11 | RFC 9591: The Flexible Round-Optimized Schnorr Threshold (FROST) Protocol for Two-Round Schnorr Signatures. Section 7.5: Removing the Coordinator Role |
|---|
| 12 | RFC 9591: The Flexible Round-Optimized Schnorr Threshold (FROST) Protocol for Two-Round Schnorr Signatures. Appendix B: Schnorr Signature Generation and Verification for Prime-Order Groups |
|---|
| 13 | RFC 9591: The Flexible Round-Optimized Schnorr Threshold (FROST) Protocol for Two-Round Schnorr Signatures. Appendix C: Trusted Dealer Key Generation |
|---|
| 14 | RFC 9591: The Flexible Round-Optimized Schnorr Threshold (FROST) Protocol for Two-Round Schnorr Signatures. Appendix D: Random Scalar Generation |
|---|
| 15 | Zcash Protocol Specification, Version 2026.8.0 [NU6.3]. Section 4.1.7.1: Signature with Re-Randomizable Keys |
|---|
| 16 | Zcash Protocol Specification, Version 2026.8.0 [NU6.3]. Section 4.1.9: Represented Group |
|---|
| 17 | Zcash Protocol Specification, Version 2026.8.0 [NU6.3]. Section 4.2.2: Sapling Key Components |
|---|
| 18 | Zcash Protocol Specification, Version 2026.8.0 [NU6.3]. Section 4.2.3: Orchard Key Components |
|---|
| 19 | Zcash Protocol Specification, Version 2026.8.0 [NU6.3]. Section 4.15: Spend Authorization Signature (Sapling and Orchard) |
|---|
| 20 | Zcash Protocol Specification, Version 2026.8.0 [NU6.3]. Section 5.4.7: RedDSA, RedJubjub, and RedPallas |
|---|
| 21 | Zcash Protocol Specification, Version 2026.8.0 [NU6.3]. Section 5.4.7.1: Spend Authorization Signature (Sapling and Orchard) |
|---|
| 22 | Zcash Protocol Specification, Version 2026.8.0 [NU6.3]. Section 5.4.9.3: Jubjub |
|---|
| 23 | Zcash Protocol Specification, Version 2026.8.0 [NU6.3]. Section 5.4.9.6: Pallas and Vesta |
|---|
| 24 | reddsa Rust crate |
|---|
| 25 | frost-rerandomized Rust crate |
|---|
| 26 | COCKTAIL-DKG: Distributed Key Generation protocol for FROST, version 0.2.1 |
|---|
| 27 | ZIP 374: Partially Created Zcash Transaction Format |
|---|
| 28 | ZIP 374: Partially Created Zcash Transaction Format — Signer |
|---|
| 29 | ZIP 2005: Quantum recoverability |
|---|
| 30 | ZIP 2005: Quantum recoverability - Usage with FROST |
|---|