tl;dr:
Do you want to sign (committed) field elements without relying on random oracles?
Do you want to efficiently prove (in zero-knowledge) relations over your signed messages?
BBS+ is here to help you!
The BBS+ signature scheme is a transformation [^ASM08e] of the Boneh-Boyen-Shacham (BBS)group signature scheme [^BBS04] into a standalone signature scheme.
This blog post describes BBS+ as well as a recent improvement over it dubbed standalone BBS[^TZ23e].
Can sign a vector of field elements (m1,m2,…,mℓ)∈\Zp
The signing can be done blindly over a Pedersen vector commitment to the elements
This way, the signer gets the commitment to sign and never sees the messages mi themselves
Does not rely on random oracles
As a result, it admits efficient protocols for proving knowledge of a signature over a (committed) message
It is almost as fast to verify as BLS [^BLS01] signatures: a size-2 multipairing, a size-(ℓ+1)\Gr1 multiexp, and one \Gr1 exponentiation
It admits fast batch verification of signatures under the same public key
These properties makes BBS+ (and standalone BBS) very useful for building anonymous credential (AC) schemes.
(In a future post, I hope to constrast BBS+ with other schemes like CL or Pointcheval-Sanders (PS).)
For some of the disadvantages, see the conclusion.
Preliminaries
There is a bilinear mape:\Gr1×\Gr2→\GrT, where \Gr1=⟨g1⟩,\Gr2=⟨g2⟩ and \GrT are of prime order p
Let \Zp={0,1,2,…,p−1} denote the finite field of order p.
A Pedersen commitment to a vector (m1,…,mℓ)∈\Zpℓ is C=h0r∏i∈[ℓ]himi, where r\randget\Zp is a uniformly-picked blinding factor and (h0,…,hℓ) are fixed generators in a group \Gr of order p whose pairwise discrete logs are unknown.
The blind signing subsection(s) assume familiarity with ZKPoKs of Pedersen commitment openings.
We use two algorithms for this ZK.ProveKnowledge to create a proof and ZK.VerifyProofOfKnowledge to verify it
The BBS+ signature scheme
Note: BBS+ is slightly less efficient than standalone BBS, so it should probably be dropped in favor of the latter.
BBS+.KeyGen(1λ,ℓ)→(\sk,\pk):
h=def(h0,h1…,hℓ)←\Gr1ℓ+1
x\randget\Zp
y←g2x
\sk←(x,h)
\pk←(y,h)
BBS+.Sign((m1,…,mℓ),\sk)→σ:
(x,h)←\sk
(e,s)\randget\Zp2
C←g1h0s∏i∈[ℓ]himi
Note: This is a Pedersen-like commitment to the mi’s. (Except it is not blinded, since the randomness s is publicly-exposed as part of the signature.)
σ=def(A,e,s)←(Cx+e1,e,s)
The randomness s is needed to prove BBS+ secure. Fortunately, the recent stBBS variant can be proven secure without such an s, which results in slightly faster signing and smaller signatures!
BBS+.Verify((m1,…,mℓ),\pk,σ)→{0,1}:
(y,h)←\pk
(A,e,s)←σ
C←g1h0s∏i∈[ℓ]himi
asserte(A,y⋅g2e)\equalse(C,g2)
Correctness:
It is easy to see why correctness holds (i.e., signatures produced by BBS+.Sign pass verification in BBS+.Verify):
Existential unforgeability under chosen message attack (EUF-CMA): Unfortunately, it is not so easy to see why the scheme is secure. For the curious reader, a security proof can be found in Appendix B of the original paper [^ASM08e].
How to batch verify in BBS+
BBS+ admits a faster batch verification algorithm when verifying a batch of b signatures, all under the same public key.
This algorithm outputs 1 if all signatures verify or outputs 0 if one of the signatures does not.
(To identify the bad signature(s), one typically naively re-verifies all signatures individually, or resorts to fancier techniques [^LM07].)
The key observation is that given a bunch of signatures:
(Aj,ej,sj)←σj,∀j∈[b]
…each over a commitment Cj, the verification equation for each signature can be decomposed as follows:
As a result, to verify this equation holds for all j∈[b], we can combine all equations into one via a linear combination with random coefficients (α1,α2,…,αb):
M←∏j∈[b]Aj−ejαjCjαj, where Cj=g1h0sj∏i∈[ℓ]himj,i
Note that M can be carefully-computed in a single size-(b(ℓ+3)) multiexp!
asserte(∏j∈[b]Ajαj,y)\equalse(M,g2)
How to sign blindly in BBS+
We will introduce some new algorithms to allow for the blind signing flow, which works as follows:
The user, who is trying to get the signature, uses a new BBS+.Commit algorithm to produce a blinded Pedersen commitment C (with blinder s1) to the messages he is trying to sign without revealing.
The user sends the commitment C together with a ZKPoK of opening π to the signer.
The signer calls a new BBS+.BlindSign algorithm on this commitment C and the proof π.
This algorithm verifies the proof π against C and returns a blind signature (A,e,s2).
The user unblinds this signature by calling BBS+.Unblind on (A,e,s2) and the commitment blinder s1.
The final (unblinded) signature is (A,e,s)\bydef(A,e,s1+s2).
Note: This is a properly-blinded Pedersen commitment. There is no g1 component; it will be added later during signing.
BBS+.BlindSign(C,π)→(A,e,s2):
assertZK.VerifyProofOfKnowledge(C,π)\equals1
s2\randget\Zp
e\randget\Zp
A←(g1h0s2⋅C)x+e1
BBS+.Unblind(A,e,s1,s2)→σ
σ←(A,e,s1+s2)
Note:BBS+.Unblind returns a BBS+ signature that can be verified via BBS+.Verify. The nice thing is that the signer did not learn the signed messages, since it only saw (and blindly-signed) a Pedersen commitment to these messages. However, beware that once σ=(A,e,s1+s2) is revealed, the signer learns s1, can unblind the commitment C, and brute-force the messages mi. As a result, some privacy-preserving protocols aim to never reveal the signature σ. Instead, they reveal a zero-knowledge proof-of-knowledge (ZKPoK) of such a signature over messages that satisfy useful properties in these protocols. This can be done very efficiently via Σ protocols.
The standalone BBS signature scheme
BBS+ was a transformation of the BBS group signature scheme [^BBS04] into a standalone signature scheme by Au et al.[^ASM08e].
Unfortunately, BBS+ signature sizes are larger: from (A,e)∈\Gr×\Zp to (A,e,s)∈\Gr×\Zp2.
Interestingly, the s component only had to be included so that the security proof could pass.
Recently, Tessaro and Zhu [^TZ23e] fixed this in their new standalone BBS variant.
First, they gave a (non-tight) security proof for the strong existential unforgeability of standalone BBS, under the q-SDH assumption, assuming the e’s are randomly picked (see Theorem 1 in [TZ23e][^TZ23e]).
Second, they gave a tight security proof in the algebraic group model (AGM)[^FKL18], additionally allowing for unique, deterministically-generated e’s (see Theorem 2 in [TZ23e][^TZ23e]).
This suggests that the loss in tightness in the original proof may be artificial.
Third, they proved that standalone BBS signatures are secure even when directly signing Pedersen commitments (see Theorem 3 in [TZ23e][^TZ23e]).
So one can regard them as a kind of weaker structure-preserving signatures.
(Note that they are not secure for signing arbitrary group elements, since a signature (A,e) on a group element C can be easily mauled into a new signature (A2,e) on C2.)
I guess the alternative BBS++ name would have been worse?
On the other hand “[standalone] BBS”[^TZ23e] stands to be confused with the BBS [group] signature scheme [^BBS04].
Naming issues aside, Tessaro and Zhu’s standalone BBS (stBBS) scheme’s decription follows below.
(It is denoted as stBBS to avoid confusing it with the BBS group signature scheme.)
stBBS.KeyGen(1λ,ℓ)→(\sk,\pk):
(This is almost the same as in BBS+, except only ℓhi’s are needed.)
h=def(h1,…,hℓ)←\Gr1ℓ
x\randget\Zp
y←g2x
\sk←(x,h)
\pk←(y,h)
stBBS.Sign((m1,…,mℓ),\sk)→σ:
(x,h)←\sk
e\randget\Zp
C←g1∏i∈[ℓ]himi
Note: This is a Pedersen-like commitment to the mi’s. (Except it is not blinded.)
σ=def(A,e)←(Cx+e1,e)
Signing is slightly faster than in BBS+ because there is no h0s
stBBS.Verify((m1,…,mℓ),\pk,σ)→{0,1}:
(y,h)←\pk
(A,e)←σ
C←g1∏i∈[ℓ]himi
asserte(A,y⋅g2e)\equalse(C,g2)
How to batch verify in stBSS
Much like BBS+, stBBS also admits a similar batch verification algorithm:
M←∏j∈[b]Aj−ejαjCjαj, where Cj=g1∏i∈[ℓ]himj,i
Note that M can be carefully-computed in a single size-(b(ℓ+2)) multiexp!
asserte(∏j∈[b]Ajαj,y)\equalse(M,g2)
How to sign blindly in stBBS
Blind-signing in stBBS works only slightly differently than in BBS+
This is because stBBS signatures lack the s component.
As a result, one of the signed messages themselves has to be used as Pedersen commitment blinder.
Nonetheless, the blind-signing flow remains largely the same as in BBS+:
The user, who is trying to get the signature, uses a new stBBS.Commit algorithm to produce a blinded Pedersen commitment C (with blinder r) to the secret messages (m1,m2,…,mℓ−1) he is trying to.
Note that there are ℓ−1 instead of ℓ messages because the last message mℓ will be set to the blinder r.
The user sends the commitment C together with a ZKPoK of opening π to the signer.
The signer calls a new stBBS.BlindSign algorithm on this commitment C and the proof π.
This algorithm verifies the proof π against C and returns an stBBS signature σ=(A,e) over the messages (m1,m2,…,mℓ−1,r). (Note that the blinder r is part of the signed message.)
Note: There is no need to unblind the signature here, unlike in BBS+.
Note that the signature verification is done as stBBS.Verify((m1,…,mℓ−1,r),\pk,σ) and accounts for the blinder r as one of the signed messages!
How to pick e’s simply and securely
If one is comfortable with the AGM, then you no longer need to pick e uniformly at random. Instead, you only need to make sure e’s don’t collide. The simplest way is to treat e as an always-increasing counter. Or, to derive it pseudo-randomly (via hashing) from the signed message (in the non-blinded variant) or the signed commitment (in the blinded variant).
Warning: Avoiding collisions is really key: reusing e leads to a forgery attack! Given a signature σ1=(C1x+e1,e), if e is reused to create another signature σ2=(C2x+e1,e), then an attacker can combine these into a signature σ=((C1⋅C2)x+e1,e). If C1 commits to (m1,…,mℓ) and C2 commits to (m1’,…,mℓ’), then the forged signature σ would be over a commitment to (m1+m1’,…,mℓ+mℓ’). In many applications, such as anonymous credentials or anonymous payment systems [^TBAplus22e], this would break security.
Conclusion
BBS+ and standalone BBS are versatile signature schemes (e.g., can sign [commitments to] field element(s) without random oracles, can verify almost as fast as BLS [^BLS01], etc.).
However, like any signature scheme, they have their disadvantages:
Larger signatures for BBS+: 1 group element and 2 field elements.
Standalone BBS has smaller signatures: 1 group element and 1 field element.
They do not “thresholdize” very well: t-out-of-n threshold protocols for BBS+ (and standalone BBS) either require offline preprocessing or multiple rounds of interaction between signers.
Signing requires picking randomness e (although stBBS’s AGM proof relaxes this to picking unique e’s).
Signatures are not re-randomizable[^PS16]. (It may be sufficient to expose h0x+e1 next to each signature (A,e) to allow for re-randomizability?)
$
$
[^ASM08e]: Constant-Size Dynamic k-TAA, by Man Ho Au and Willy Susilo and Yi Mu, in Cryptology ePrint Archive, Paper 2008/136, 2008, [URL]
[^BBS04]: Short Group Signatures, by Boneh, Dan and Boyen, Xavier and Shacham, Hovav, in Advances in Cryptology – CRYPTO 2004, 2004
[^TZ23e]: Revisiting BBS Signatures, by Stefano Tessaro and Chenzhi Zhu, in Cryptology ePrint Archive, Paper 2023/275, 2023, [URL]
[^BLS01]: Short Signatures from the Weil Pairing, by Boneh, Dan and Lynn, Ben and Shacham, Hovav, in Advances in Cryptology — ASIACRYPT 2001, 2001
[^LM07]: Finding Invalid Signatures in Pairing-Based Batches, by Law, Laurie and Matt, Brian J., in Cryptography and Coding, 2007
[^FKL18]: The Algebraic Group Model and its Applications, by Fuchsbauer, Georg and Kiltz, Eike and Loss, Julian, in Advances in Cryptology – CRYPTO 2018, 2018
[^TBAplus22e]: UTT: Decentralized Ecash with Accountable Privacy, by Alin Tomescu and Adithya Bhat and Benny Applebaum and Ittai Abraham and Guy Gueta and Benny Pinkas and Avishay Yanai, in Cryptology ePrint Archive, Paper 2022/452, 2022, [URL]
[^PS16]: Short Randomizable Signatures, by Pointcheval, David and Sanders, Olivier, in CT-RSA 2016, 2016