By: Alyssa Chen
1.1 Abstract
1.2 Decentralization and Trust
1.3 Threshold Signature Schemes
1.3.1 Shamir’s Secret Sharing and Lagrange
1.3.2 Overview of TSS
1.3.3 BLS Scheme
1.3.4 FROST Protocol
1.4 Use Cases, Scalability & Security Improvements
1.5 Risks, Challenges & Limitations
A.1 Shamir
A.2 BLS Definitions
A.3 Schnorr Algorithm
The world of Decentralized Finance (DeFi) has grown exponentially over the past few years, opening avenues for innovation but also bringing challenges in security and scalability. Threshold cryptography incorporates similar encoding processes utilized in classical cryptographic schemes such as RSA and ECC while simultaneously combining secret-sharing-esque decoding. This paper explores the integration of threshold cryptographic techniques in DeFi platforms as a primitive to key generation and signing to address new DeFi use cases as well as limitations of the technology.
The essence of DeFi lies in its decentralized nature, where traditional banking systems and intermediaries are replaced by smart contracts and protocols. Trust in DeFi is established not by institutions but by cryptographic proofs and consensus algorithms. While this decentralization offers increased transparency and control to users, it also creates vulnerabilities. If not properly secured, malicious actors can exploit these systems, leading to substantial financial losses.
1.3.1 Shamir’s Secret Sharing and Lagrange
To intuitively go over threshold schemes, it is important to discuss the underlying ideas behind Shamir's scheme. Suppose you are a parent that doesn't want your kids to snack whenever they want, and wish to devise a scheme in which at least out of kids who want snacks are needed to unlock the snack cabinet. Then, we can say the reconstruction threshold is , and construct a degree polynomial , with and distribute shares to each child. When the required threshold of at least children come together, they can reconstruct the code for the lock and retrieve their snacks! A.1
1.3.2 Overview of TSS
Threshold signature schemes (TSS) divide a private key among multiple parties, ensuring that no single party has access to the entire key. To produce a valid signature, a minimum number of these parties (the threshold) must collaborate. TSS provides an added layer of security as compromising a system would require breaching multiple parties, making attacks more difficult.
In distributed ledger technology (DLT) platforms, digital signatures play a critical role in enabling the identification and authentication of the parties involved in the network. A digital signature scheme consists of the private and public key, where the private key belongs to the owner and is used to sign data, and the public key is used by other parties in the network to validate the signatures of the private key holder.
Since the management of the private key is integral to the validity of the DLT platform, entrusting this responsibility to a single party creates a potential single point of failure that could compromise the system. However, there is a way to thwart this single point of failure by implementing threshold signature schemes, which is a branch of secure multiparty computation to reveal the private key when a subset of parties come together and combine their shares. This cryptographic technique relies on the idea that multiple parties collaboratively compute a function over their inputs while keeping those inputs private from each other. For example, if Alice and Bob wanted to know who is richer without revealing their individual wealths, MPC would take in their salaries as the private inputs, and output the name of the person with more wealth. This is done so in a manner that keeps the input's of each part secret, allowing individuals who don't necessarily trust each other to perform operations without revealing sensitive information.
A secure protocol in a given threshold scheme should achieve three main properties:
Correctness: Each party receives the correct output as the result of the computation.
Privacy: Each party receives the correct output as the result of the computation.
Fairness: All parties should be guaranteed to receive the output.
Typically, the threshold scheme consists of the key generation stage followed by the signing and verification stages.
1.3.3 BLS Scheme
The Boneh Lynn Shacham (BLS) scheme is not inherently a threshold scheme, but is commonly used as an underlying infrastructure to construct one. More on the underlying mathematical implementation can be found in A.2. This section covers a conceptual, high level understanding of the BLS scheme.
Aggregation: A special property the BLS scheme grants is the ability to condense multiple signatures into one, making it possible for increased efficiencies in storage, computational costs, and many more. For example, for distinct signers and signatures, the signatures can be aggregated by setting . Alice will then broadcast and aggregate the partial signatures (after receiving t+1 shares of the partial signatures) to generate the threshold signature, .
This property is particularly significant in contexts like Ethereum's transition from Proof-of-Work to Proof-of-Stake. With over 800,000 validators as of September 2023, efficient signature verification is crucial for scalability. The BLS scheme addresses this by enabling the aggregation of numerous signatures into one, simplifying the verification process to just two pairings, regardless of the number of validators.
1.3.4 FROST Protocol
In the current landscape of DeFi, many threshold schemes are rapidly developing and evolving. One such protocol is the FROST (Flexible Round-Optimized Schnorr Threshold signature scheme) protocol, the threshold counterpart of the Schnorr signature scheme.
Signatures produced by the FROST method and Schnorr signatures are indistinguishable and similarly verifiable per the standard verification process.
On a high level, FROST consists of either (1) a two round signing protocol or (2) a single round protocol with preprocessing, and unlike similar schemes, signing operations achieve more security from concurrently performed actions. FROST can be implemented with a Distributed Key Generation (DKG) Protocol, an -wise Shamir Secret Sharing protocol in which each participant takes the role of a dealer. The protocol also favors efficiency by allowing honest participants to rerun the protocol after identifying and excluding the misbehaving participant.
The authors of the original FROST whitepaper instantiates the protocol using an optionally implemented signature aggregator role , delegated to report dishonest parties and publish the signature -- allowing for optimized communication overhead and increased practicality. Additionally, even if up to participants, including the are misbehaving, the infrastructure of FROST guarantees that without the approval of at least one honest party, the signature cannot be published and verified. For more on the specific implementations of the protocol, refer to section A.3.
In a multisignature scheme, two or more participants who each hold their own public key are usually required to sign off on a transaction which can be a lengthy process. Using a threshold implementation, number of parties hold shares of the public key, but only up to participants are required to sign off on the transaction. Because threshold signature schemes are able to be computed and operate off chain, they are more cost effective than the multisig approach, which relays each transaction separately to the blockchain as compared to the threshold scheme, which delivers each contribution as a single transaction. At the time of writing, many companies such as Coinbase, Binance, and Bitgo are working on incorporating MPC protocols into their wallets infrastructure.
Schnorr signatures (which are used in the FROST protocol) allow for an anonymity characteristic, making it more difficult for an attacker to distinguish between single and multisig spends when observing on-chain activity and for observers to determine which participants signed a transaction and which did not. Similarly to the BLS scheme, Schnorr signatures also have an aggregation property, and compared to the currently used Elliptic Curve Digital Signature Algorithm (ECDSA), Schnorr signatures are more suitible for cryptocurrency and DeFi infrastructure as they require fewer computations and allow for faster efficiency with smaller signature sizes and faster verification processes.
In addition to the active security measures present in the underlying structure of threshold schemes, there are additional mechanisms that can be implemented in order to achieve proactive security. A secret is distributed amongst members, and shares are needed to uncover the secret, so a successful attacker must breach at least shares. If we implement a key refreshing mechanism and refresh secret shares after a certain period, assuming an attacker successfully breaches a percentage of shares in one period, and breaches the remaining in the next, they are unable to uncover the secret. This has an especially interesting use case in multisignature (multisig) wallets.
Updating the shares of a multisig wallet periodically introduces a moving target for attackers. Even if they compromise a fraction of the shares within one time frame, the refresh process would invalidate these efforts in the next period. This method not only increases the complexity of a successful attack but also provides a window of opportunity for detecting and responding to breaches before the secret/access to the wallet can be reconstructed. In practice, this is more suitable for maintaining continuous security and ongoing trust among participants in the system.
This security approach can be particularly effective in environments where the threat landscape is dynamic and the value of the protected asset (like cryptocurrency in a multisig wallet) is high, and the applications of this approach is infinitely dynamic -- the multisig wallet is just one of many use cases.
The tBTC is a project that integrates with Base, a Layer 2 blockchain incubated by Coinbase aimed to lower costs and improve scalability in DeFi using threshold cryptographic techniques. Read more here: Navigating the Future of DeFi: tBTC Launches on Base. Another use case utilizes threshold cryptography to aid in social recovery for Web3 wallets by breaking users' private keys into multiple shards, and allowing for recovery with a certain threshold of those shards.
1.5 Risks, Challenges & Limitations
Just as any given cryptographic protocol, it is essential to provide sufficient mathematical proofs to demonstrate the MPC protocol to operate as desired. However, given the complex nature of the technology, this requires a high level of mathematical maturity and understanding. Additionally, the protocol must not only be designed correctly, but also have an efficient technological implementation. [can explain this a bit more] Finally, to address the functional perspective of an MPC protocol, especially in terms of security factors, several considerations must be taken into account. For example:
Scalability- How does the protocol scales with the number of participants? Is there a trade-off between the number of participants and the protocol's efficiency or security?
Recovery mechanism- What recovery mechanisms are in place if a computation is disrupted? (this includes data redundancy and protocol restart capabilities).
Threshold- Up to how many malicious parties can the protocol tolerate? The minimum number of parties needed to collaborate to perform computations or to reconstruct the secret?
Privacy- Can the protocol ensure that no information other than the computation outcome is leaked, even if some participants are compromised?
[A] G. Tillem, O. Burundukov. Threshold Signatures using Secure Multiparty Computation
[B] Chelsea Komlo, Ian Goldberg. FROST: Flexible Round-Optimized Schnorr Threshold Signatures
[C] Ahmet Ramazan Agirtas, Jorge Arce-Garro, Yevgeny Zaytman, Jelilat Anofiu. Threshold Signature Schemes
[D] Omer Shlomovits, ZenGo.Threshold Signatures Explained
[E] Cassandra Heart, Arash Afshar. Threshold Digital Signatures
[F] Chainlink. What Is a Schnorr Signature?
[G] Panther. Threshold Cryptography, MPC, and MultiSigs: A Complete Overview
[H] Adi Shamir. How to Share a Secret
Shamir's Secret Sharing is based off polynomial interpolation over a Galois (or finite) field , where shares being generated. Since a polynomial is uniquely determined by degree points, the secret is able to be reconstructed from or more shares of using the formula for Lagrange interpolation . For further reading: Shamir's Secret Sharing: Explanation and Visualization is a quick read that offers great visuals.
is a bilinear pairing function which maps , where and are groups of prime order and satisfies two properties:
bilinearity -- multiplication in one group corresponds to exponentiation in the target group.
non-degeneracy -- there exist elements in and such that their pairing is not the identity element in .
are generators of , respectively. A generator is an element such that repeated application of the group operation to it generates every element of the group.
is an output of hash function , which maps arbitrary length input message onto group . The hashed value of the message is then used in the signature generation and verification process.
, the public key is computed as , where represents the secret key and is a generator of .
, the signature is computed as .
Key Generation:
Partial signature computed by
Secret key uniformly at random
Computing public key
Signature Generation:
Hashing the message
Computing the signature
Verification Phase
Given a message , secret key , and public key :
Signer KeyGen()
Verifier asks to sign message in respect to their public key
Generate nonce , public commitment , challenge where is a hash function, and response .
Signature tuple
To verify signature:
Verifier re-derives challenge from computing .
Using the public key, response, and challenge compute
Output of if success, 0 otherwise.