hydra
In this document we present a list of different multisignature constructions in order to compare them, and further select which construction fits best the protocol requirements. We study different constructions which might be contestants for such functionality, and determine whether there exists implementations. For self-containedness we include the formal definitions and security properties of multisignature schemes in Appendix A and Appendix B respectively.
In the Hydra paper, there are a few referenced works. In particular, those cited references are:
However, there has been some recent constructions which are better suited for our needs. We base the analysis in this document in the constructions presented in [BDN18], and in the following constructions:
Scheme | Key update | Sign | Verify | Forward security | Rounds | EdComp | Assumptions | |||
---|---|---|---|---|---|---|---|---|---|---|
[BDN18] (pairing) | N/A | 1 exp | 2 pair | 1 | 1 | no | non-interactive | no | RO and coDH | |
Pixel | 2 exp | 4 exp | 3 pair + 1 exp | 2 | 1 | yes | non-interactive | no | RO and wBDHI | |
MuSig | N/A | no | yes | RO and DL | ||||||
MuSig2 | N/A | no | yes | RO and OMDL |
My preliminary selection is MuSig2. It is Schnorr compatible, making it easy to transition to. It can be made non-interactive–-the first round can be pre-computed before knowing the message. MuSig is also an interesting contestant, as it is also Schnorr compatible. The main difference between the two is in a trade-off between the number of rounds and the protocol complexity. The former requires only two rounds, and can be made non-interactive. This is clearly an interesting property for our use case. However, it requires a higher communication complexity, as commitments to
Finally, in case we are willing to switch to pairing based signatures, Boneh et al.'s construction seems to be the best suited, as we do not require forward secrecy for the multi sig, and therefore Pixel is an overkill. Boneh et al.'s construction is simple to prove, to audit and has minimal overhead.
In general, I have found no implementation over Libsodium, but implementing MuSig or MuSig2 on top of it should not be too much effort. However, if we decide to go for a pairing-based solution, Libsodium currently does not support pairing friendly curves.
We now expose details of the constructions in two groups: the Schnorr-compatible
and the Schnorr-incompatible
constructions. The former are the multi-signature constructions that allow the verification procedure to be as with Schnorr signatures. In contrast, the Schnorr-incompatible
constructions have a signature verification different to those of Schnorr. Positive point of the Schnorr-compatible
signatures, is that the key material is exactly the same as the Schnorr signature scheme key material. We begin our analysis with Schnorr-compatible
schemes, and proceed with Schnorr-incompatible
schemes.
Schnorr-compatible
schemesIn this section wqe present MuSig and MuSig2. Two schemes that present a construction which is compatible with Schnorr verification procedure.
This scheme was independently presented and proven secure by Boneh et al. [BDN18] (in Compact multi-signatures for smaller blockchains) and by Maxwell et al. [MPSW19] (in Simple Schnorr Multi-Signatures with Applications to Bitcoin).
This scheme achieves Schnorr compatibility in exchange of interaction among the signees. Each signer first sends a hash of the commitment of the randomness. Then it waits for all users to send their hashes. Once all are received, it sends the commitments themselves. Waits untill all send it back. Finally, each signer individually signs the message and sends it back to the other signers (this step may be performed directly by the verifier). Any third party can act as a verifier by taking all corresponding signatures and public keys, appending them, and perform a signature verification.
The complexity of this scheme is the following:
Apparently a musig implementation for Bitcoin
Notes: proposed adoption in BIP-0340, and available since soft fork Taproot.
Other important names that have implemented this are
System is proven secure in the Random Oracle model under Discrete Log problem.
There are two proofs. One that depends solely in the one-more discrete logarithm (OMDL) assumption in the Random Oracle Model (ROM), and another which is a combination of the ROM and the Algebraic Group Model (AGM).
This scheme is the first two round scheme which is secure in the concurrent setting, where users are allowed to sign several messages concurrently.
This scheme achieves the same as MuSig describe above, but requires 2 rounds by the signees in exchange of some performance. In particular, the participants share
It is crucial to never reuse the nonces in other signature procedures. They should be safely deleted. Otherwise, if the signer reuses the nonce, an adversary can trivially extract the secret key.
The complexity of this scheme is the following:
Implementation:
System is proven secure in the Random Oracle model under the One More Discrete Logarithm (OMDL) problem. In a nutshell:
Input:
for
Compute:
This proof works for
Schnorr-incompatible
schemesIn this section we study the schemes presented in [BDN18] and [DGNW19] which are not compatible with Schnorr signatures.
This paper also presents a DL-based solution (not pairing based), which is the same as the one presented in [MPSW19]. In this section we only study the pairing based solution, and describe the DL solution in this section.
The scheme is simple–- no need of interaction between the different signees, at the cost of using pairings. A multi-signature run consists on each of the signees performing a signature locally, with no need of communicating with the other signees, and publishing their corresponding signature. Any third party can act as a verifier by aggregating the distinct signatures, and performing a single verification check. The complexity of this scheme is the following:
This scheme might be of interest in the medium term, as we will need to add support to pairing friendly curves for the ongoing projects of Midnight.
Existing imlementations:
System is proven secure in the Random Oracle model under the co-Diffie-Hellman (coDH) problem. In a nutshell:
Input:
for
Compute:
This scheme is similar to the scheme above, where the signing procedure is non-interactive, and the scheme is pairing-based. It has worst performance numbers with the benefit that it is forward secure. This means that the scheme considers a key update after each signature. As far as I understood the usage of multisignatures in the context of Hydra, we do not require forward secrecy. In Cardano, the forward secrecy property is only required for Key Evolving Signatures (KES), which are used by the stake pool owner to sign blocks.
The complexity of this scheme is the following:
Existing implementations:
System is proven secure in the Random Oracle Model under the Weak bilinear Diffie-Hellman (wBDHI) inversion problem over type-3 pairings (a variant of the Diffie-Hellman inversion problem over bilinear groups). In a nutshell:
Input:
for
Compute:
A multisignature scheme is defined as a tuple of algorithms
To generate an aggregate verification key
, one calls the function
Paraphrasing the above, a multisignature scheme is expected to be a protocol where distinct parties may generate signatures, such that any party with access to the message signed, the signatures, and the verification keys may aggregate them (signatures and verification keys) into a single signature verification.
A secure multisignature scheme needs to satisfy two properties: completeness and unforgeability.
Completeness. For any
Paraphrasing, if the signers follow the protocol, then the verifier must accept.
Unforgeability. This property is defined by a three-stage game: