Threshold BLS: How to do it right
tl;dr: Most people implement threshold BLS naively, using a algorithm to compute Lagrange coefficients. We show how to use a faster -time algorithm for this. This makes aggregating BLS threshold signatures much faster, both at small and large scales.
The question of scaling threshold signatures came to us at VMware Research, in 2017, after we finished working on SBFT [^GAGplus19], a scalable Byzantine Fault Tolerance (BFT) protocol that uses BLS threshold signatures [^BLS04].
We recently published our work [^TCZplus20] in IEEE S&P’20. Our work also address how to scale the necessary distributed key generation (DKG) protocol needed to bootstrap a BLS threshold signature scheme. We present these results in another post.
A prototype implementation is available on GitHub here.
Preliminaries
Let . Let be a sufficiently large prime that denotes the order of our groups.
In this post, beyond basic group theory for cryptographers [^KL15], I will assume you are familiar with a few concepts:
- Bilinear maps[^GPS08]. Specifically, a bilinear map such that:
- where are the generators of and respectively and is the identity of
- BLS signatures[^BLS04]. Specifically,
- Let be a collision-resistant hash-function (CRHF)
- The secret key is and the public key is
- is a signature on under secret key
- To verify a signature, one checks if
-out-of- threshold BLS signatures
Recall the well-known scheme by Boldyreva [^Bold03]. This scheme assumes a DKG has already been run such that:
- A Shamir secret sharing[^Shamir79] of a secret key has been established
- i.e., where is random, degree polynomial
- Signer has his secret key share and verification key
- Nobody knows , so nobody can directly produce a signature on
To sign, or more signers have to co-operate:
- Each signer computes a signature share or sigshare
- Then, an aggregator:
- Collects as many ’s as possible
- Verifies each under its signer’s verification key: Is ?
- …and thus identifies valid sigshares
- Aggregates the signature via “interpolation in the exponent” from the valid sigshares (see next section).
Basics of polynomial interpolation
A good source for this is Berrut and Trefethen [^BT04].
Let be a polynomial of degree . Suppose there are evaluations “out there” and we have out of these evaluations. Specifically, let denote this subset, where and .
How can we recover or interpolate from these evaluations?
We can use Lagrange’s formula, which says:
The ’s are called Lagrange polynomials and are defined as:
The key property of these polynomials is that and .
We are artificially restricting ourselves to evaluations of at points since this is the setting that arises in BLS threshold signatures. However, these protocols work for any set of points . For example, as we’ll see later, it can be useful to replace the signer IDs with roots of unity .
Faster BLS threshold signatures
As explained before, aggregating a threshold signature such as BLS, requires interpolating the secret key “in the exponent.” This is typically done naively in time.
In our paper [^TCZplus20], we adapt well-known, fast polynomial interpolation algorithms [^vG13ModernCh10] to do this in time. This not only scales BLS threshold signature aggregation to millions of signers, but also speeds up aggregation at smaller scales of hundreds of signers.
First, I’ll describe the naive, quadratic-time algorithm for aggregation. Then, I’ll introduce the quasilinear-time algorithm, adapted for the “in the exponent” setting.
Quadratic-time BLS threshold signature aggregation
Having identified valid signature shares , the aggregator will recover but do so “in the exponent”, by recovering .
For this, the aggregator computes all the ’s by computing Equation at :
Computing a single can be done in time by simply carrying out the operations above in the field . However, we need to compute all of them: , which takes time. We will describe how to reduce this time in the next subsection.
The final step consists of several exponentiations in , which actually computes the secret key in the exponent, as per Equation at :
This last step takes time and is sped up in practice using multi-exponentiation techniques.
This naive algorithm works quite well, especially at small scales, but the performance deteriorates fast, as computing the ’s becomes very expensive. The figure below depicts this trend.

The -axis is where is the threshold, which doubles for every tick. The -axis is the time to aggregate a BLS threshold signature in seconds. This consists of (1) the time to compute the Lagrange coefficients and (2) the time to compute the multi-exponentiation. As you can see, for , the time to aggregate is less than 1 second.
The BLS threshold signature aggregation code was implemented using libff and libfqfft and is available on GitHub here. We used various optimizations using roots-of-unity to speed up this naive implementation.
Our quasilinear-time BLS threshold signature aggregation
This is going to get a bit mathematical, so hold on tight. Everything explained here is just a slight modification of the fast polynomial interpolation techniques explained in “Modern Computer Algebra”[^vG13ModernCh10].
We’ll refer to as a Lagrange coefficient: this is just the Lagrange polynomial from Equation evaluated at . Recall that the aggregator must compute all Lagrange coefficients.
Step 1: Numerators and denominators of Lagrange coefficients
Notice that each Lagrange coefficient can be rewritten as a numerator divided by a denominator. All numerators can be computed very fast in time, but the denominators will be a bit more challenging.
First, we define a vanishing polynomial that has roots at all :
Similarly, let have roots at all :
Second, we rewrite the Lagrange polynomials using these vanishing polynomials.
As a result, we can rewrite the Lagrange coefficients as:
Finally, we note that computing all numerators can be done in time by:
- Computing in time
- Dividing it by for all , also in time
Step 2: Computing all denominators evaluate some polynomial at points
(It is a bit more difficult to) notice that the denominator equals exactly , where is the derivative of . This means that we can compute all denominators by evaluating at all . We will explain later how we can do this evaluation very efficiently.
First, let us see what looks like. Here, it’s helpful to take an example. Say (i.e., the aggregator identified 3 valid sigshares from players 1, 3 and 9), which means .
If we apply the product rule of differentiation, we get:
In general, for any set of signers, it is the case that:
We leave proving this as an exercise. The example above should give you enough intuition for why this holds.
Second, notice that does appear to hold for this example where :
We can easily prove this holds for any set of signers:
In other words, this means the denominator of the th Lagrange coefficient exactly equals , as we promised in the beginning.
If you missed the transition from Equation to Equation recall that is zero for all in except for . Thus, since and , we have .
Step 3: Evaluating fast at all
The road so far (to fast BLS threshold signature aggregation):
- Compute all numerators in time
- Compute the vanishing polynomial in time. How?
- Build a tree!
- Each leaf stores a monomial , for all
- The parent of two nodes stores the product of their children’s polynomials
- As a result, the root will store
- (See an example figure below for .)
- Compute its derivative in time. How?
- Rewrite in coefficient form as
- Then,
- Evaluate at all points in . Let’s see how!

Here we are computing when . At each node in the tree, the two children’s polynomials are being multiplied. Multiplication can be done fast in time using the Fast Fourier Transform (FFT)[^CLRS09], where is the degree of the children polynomials.
Evaluate using a polynomial multipoint evaluation
We want to evaluate of degree at points: i.e., at all . If we do this naively, one evaluation takes time and thus all evaluations take time. Fortunately, a algorithm exists and is called a polynomial multipoint evaluation[^vG13ModernCh10], or a multipoint eval for short.
To understand how a multipoint eval works, first you must understand two things:
- The polynomial remainder theorem, which says polynomials and , , where is the remainder of the division .
- We’ll refer to these operations as “modular reductions.”
- Recursion!
A multipoint eval computes by recursively computing in an efficient manner. Since a picture is worth a thousands words, please take a look at the figure below, which depicts a multipoint eval of at .

Each node in the multipoint eval tree stores two polynomials: a vanishing polynomial and a remainder . If we let denote node ’s parent, then the multipoint evaluation operates as follows: For every node , compute . (In the tree, this is depicted more simply using a “” at each node .) To start the recursive computation, the root node has . The other important rule is for every node , the children of node will store the “left” and “right” halves of . This helps split the problem into two halves and halves the degree of the remainders at each level.
Each path in the tree corresponds to a sequence of modular reductions applied to , ultimately leading to an evaluation . For example, the red path to gives the evaluation and corresponds to the following sequence of modular reductions:
My explanation here is in many ways inadequate. Although the figure should be of some help, you should see “Modern Computer Algebra”, Chapter 10 [^vG13ModernCh10] and our paper [^TCZplus20] for more background on polynomial multipoint evaluations.
By reasoning about the degrees of the polynomials involved in the tree, one can show that at most work is being done at each level in the multipoint eval tree. Since there are roughly levels, this means the multipoint eval only takes time.
In practice, a multipoint eval requires implementing fast polynomial division using FFT. Next, we explain how to avoid this and get a considerable speed-up.
Evaluate using the Fast Fourier Transform (FFT)
If we pick the signer IDs to be roots of unity rather than , we can evaluate fast in time with a single Fast Fourier Transform (FFT). For example, let be a primitive th root of unity (where is the smallest power of 2 that is ). Then, signer could have ID rather than . This would slightly change the definitions of the Lagrange polynomials and the vanishing polynomials too: they would be of the form rather than .
This is actually the route we take in our paper [^TCZplus20], since a single FFT will be much faster than a polynomial multipoint evaluation which requires multiple polynomial divisions, which in turn require multiple FFTs. You can see the performance boost and scalability gained in the figure below.

The -axis is where is the threshold, which doubles for every tick. The -axis is the time to aggregate, using the quasilinear-time Lagrange algorithm, a BLS threshold signature in seconds. As you can see, for , the time to aggregate decreases from 1 second to 0.1 seconds. We also scale better: in 1 second we can aggregate a signature with . Furthermore, we get a performance boost even at scales as small as .
Again, the code is available on GitHub here.
Ending notes
We showed how existing algorithms for polynomial interpolation can (and should) be used to speed up and scale BLS threshold signatures. In fact, these techniques can be applied to any threshold cryptosystem whose secret lies in a prime-order finite field with support for roots of unity.
References
[^GAGplus19]: SBFT: A Scalable and Decentralized Trust Infrastructure, by G. Golan Gueta and I. Abraham and S. Grossman and D. Malkhi and B. Pinkas and M. Reiter and D. Seredinschi and O. Tamir and A. Tomescu, in 2019 49th Annual IEEE/IFIP International Conference on Dependable Systems and Networks (DSN), 2019, [PDF]. [^BLS04]: Short Signatures from the Weil Pairing, by Boneh, Dan and Lynn, Ben and Shacham, Hovav, in Journal of Cryptology, 2004 [^TCZplus20]: Towards Scalable Threshold Cryptosystems, by Alin Tomescu and Robert Chen and Yiming Zheng and Ittai Abraham and Benny Pinkas and Guy Golan Gueta and Srinivas Devadas, in 2020 IEEE Symposium on Security and Privacy (SP), 2020, [PDF]. [^KL15]: Introduction to Modern Cryptography, by Jonathan Katz and Yehuda Lindell, 2007 [^GPS08]: Pairings for cryptographers, by Steven D. Galbraith and Kenneth G. Paterson and Nigel P. Smart, in Discrete Applied Mathematics, 2008 [^Bold03]: Threshold Signatures, Multisignatures and Blind Signatures Based on the Gap-Diffie-Hellman-Group Signature Scheme, by Boldyreva, Alexandra, in PKC 2003, 2002 [^Shamir79]: How to Share a Secret, by Shamir, Adi, in Commun. ACM, 1979 [^BT04]: Barycentric Lagrange Interpolation, by Berrut, J. and Trefethen, L., in SIAM Review, 2004 [^vG13ModernCh10]: Fast polynomial evaluation and interpolation, by von zur Gathen, Joachim and Gerhard, Jurgen, in Modern Computer Algebra, 2013 [^CLRS09]: Introduction to Algorithms, Third Edition, by Cormen, Thomas H. and Leiserson, Charles E. and Rivest, Ronald L. and Stein, Clifford, 2009