Tech●●●●●Difficulty 4 of 5

How can three of five devices sign a transaction without the key ever existing in one place?

Five devices hold pieces of one signing key. Any three can sign together, and the signature checks out as if one signer made it.

▶ Start the story

A threshold cryptosystem is one where the secret key is split into pieces given to different parties, and several of them, more than some threshold number, cooperate to use it. For signatures, this is a (t, n) threshold scheme: a signing key is split into n shares, any t or more honest parties can jointly sign a message, and fewer than t cannot forge a signature, even if they . Three of five devices signing a transaction is the case t = 3, n = 5.

Splitting a key the way Shamir's secret sharing does leaves a weak spot: the secret must exist in one place when it is split into shares, and again in one place when it is reassembled. Threshold signing sidesteps the second moment: the signers combine shares of a signature, not shares of the key. In a protocol called FROST, published as RFC 9591, participants first publish one-time-use . Then each produces a share of the signature, and a aggregates the signature shares into a final signature. The key is Shamir secret-shared among the participants, and the output can be verified as if it came from a single signer with a single public key.

Signing with 3 of 5 devices
  1. Step 1: Each device holds a key share

    The full key is not stored on any one device

  2. Step 2: Round 1:

    Three devices publish one-time-use

  3. Step 3: Round 2: signature shares

    Each of the three produces a share of the signature

  4. Step 4: A aggregates

    The shares become one final signature

  5. Step 5: Anyone verifies

    It checks out as if a single signer made it

The first moment, creating the shares, is still a risk if a does it. That dealer must be trusted to generate good randomness, delete secret values after handing out shares, and keep them confidential. Removing the dealer is the job of a technique called distributed key generation.

Why not simply have every party sign separately and attach all the signatures? That trivial approach works, but the signature and the checking time grow linearly with t. Schnorr signatures do better: n-of-n multisignatures are, from a 's perspective, no different from ordinary signatures, and k-of-n threshold signatures are possible too.

Quiz me

0/3

  1. 1.In a (3, 5) threshold signature scheme, who can produce a valid signature?
  2. 2.How does a FROST signing session avoid rebuilding the secret key?
  3. 3.If a trusted dealer creates the shares, what weak spot remains?

Recap

Threshold signing combines shares of the signature, not shares of the key, but the shares still have to be created without a weak dealer.

💡 A trick to remember it · Three keys turn together and the chest sees one lock open; nobody ever held the master key in one hand.

Surprising fact · The result can be verified as if produced by a single signer with a single public key.

Sources (6)

No source, no claim. Every fact in this lesson (16 claims) cites at least one of these.

  1. [1]Threshold cryptosystem · Wikipedia
  2. [2]Shamir's secret sharing · Wikipedia
  3. [3]Cryptocurrency wallet · Wikipedia
  4. [4]BIP 340: Schnorr Signatures for secp256k1 · Bitcoin Improvement Proposals
  5. [5]RFC 9591: The Flexible Round-Optimized Schnorr Threshold (FROST) Protocol for Two-Round Schnorr Signatures · IETF / IRTF
  6. [6]Multi-Party Threshold Cryptography · NIST Computer Security Resource Center
More lessons in 💻 Tech (3) See all tech lessons →

One more light on your map.

Get one lesson like this every day, about the things you love. Free, in two or five minutes.

Get the share card for this lesson ↗