Stateless tree signatures from an indexed signature scheme #
The stateless Merkle signature system of [BS23], Section 14.6.3 (Fig. 14.7), over an
indexed signature scheme used at indices 0 and 1. The signer owns a binary tree of depth
depth n. Every node a ∈ {0, 1}^{< depth n} holds a key pair of the indexed scheme derived from
a coin function coins k: the node's coins are coins k (keyInput a) budget, and the coins of the
signature at its index u are coins k (signInput a u) budget. Deriving both from the secret key
k makes every key pair and every internal signature a deterministic function of k, so repeated
signatures reuse them ([BS23], Section 14.6.2, "The key management problem" and
"Generating internal keys using a PRF"); the indexed scheme's own randomized signer is run on
derived coins through IndexedSignatureScheme.Seeded (Exercise 13.6).
To sign msg, the signer checks that msg has length n (returning [] otherwise, matching
SignatureScheme's n-bit message space), samples a uniform leaf a₁ ⋯ a_d, and certifies the
path: the node a₁ ⋯ a_{i-1} signs the public key of its child a₁ ⋯ a_i at index a_i for
i < d, and the node a₁ ⋯ a_{d-1} signs msg at index a_d. The signature is the leaf, the
d - 1 certified child keys with their signatures, and the final signature. Verification
recomputes the chain from the root, checking that the leaf has length depth n and the chain
depth n - 1 certificates. The public key is (n, root public key) and the secret key (n, k)
with k uniform of length keyLen n.
The scheme differs from Fig. 14.7 in four labelled ways: the root key pair is derived from k
like every other node, rather than sampled by key generation and stored in the secret key; the
tree is binary, using only the indices 0 and 1 of the indexed scheme; the public key carries
n, from which verification fixes the depth, which the source leaves to global parameters; and
verification checks the leaf length and the certificate count explicitly. The coins of a node's
signature depend on the node and the index only, not on what is signed.
The coin function is a parameter with a polynomial-time certificate. This module provides the
scheme, its completeness and its efficiency. Its security is [BS23], Theorem 14.6,
p. 600, in the binary case q = 2.
CslibFrontier.Crypto.Computational.TreeSignature.Security instantiates the coins with a
pseudorandom function and proves steps toward that theorem, under a PRF premise stronger than the
source's; the theorem itself is open (#5293).
Main definitions #
Cslib.Crypto.TreeSignature.nodeKey,Cslib.Crypto.TreeSignature.signAt: node keys and signatures from derived coins.Cslib.Crypto.TreeSignature.CertState,Cslib.Crypto.TreeSignature.encCertState,Cslib.Crypto.TreeSignature.certify,Cslib.Crypto.TreeSignature.signWithLeaf: the certification chain, its state encoding and the signature at a leaf.Cslib.Crypto.TreeSignature.keyGen,Cslib.Crypto.TreeSignature.sign,Cslib.Crypto.TreeSignature.verify,Cslib.Crypto.TreeSignature.scheme: the algorithms and the signature scheme.
Main results #
Cslib.Crypto.TreeSignature.certify_spec,Cslib.Crypto.TreeSignature.verify_signWithLeaf,Cslib.Crypto.TreeSignature.verify_sign: completeness.Cslib.Crypto.TreeSignature.computableInPolyTime_certify,Cslib.Crypto.TreeSignature.isPPTOn_keyGen,Cslib.Crypto.TreeSignature.isPPTOn_sign,Cslib.Crypto.TreeSignature.computableInPolyTime_verify: efficiency.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Sections 14.6.2 and 14.6.3.
Derived keys and signatures #
The certification chain #
The state of the certification chain: the current node, its key pair and the certificates issued so far, each a child public key with its signature.
The current tree node.
The current node's verification and signing keys.
The certified child keys and their signatures.
Instances For
Read the leaf, the certificates and the final signature of a signature word.
Read the parameter and the word of a key: the public key is (n, root public key) and the
secret key (n, k).
The algorithms #
Verification: the leaf has length depth n with depth n - 1 certificates, the certificates
chain from the root along the leaf's prefix, and the last certified key signs msg at the leaf's
last bit.
Completeness #
The chain reaches the node bits with its key, issues one certificate per bit, and its
certificates verify from the root when both indices are below the capacity.
Completeness at a leaf: a signature at a leaf of length depth n ≥ 1 verifies under the
public key of the root.
Every supported key pair is ((n, root public key), (n, k)) for a k of length
keyLen n.
Completeness: every honest signature on an n-bit message verifies, when the indexed
scheme has at least two indices and the tree has depth at least one.
Efficiency #
The encoding of a certification-chain state CertState: the current tree path node framed,
then the node's key pair keyPair framed (pk framed followed by sk unframed), followed by the
list certificates of framed (childPk, sig) pairs (childPk framed followed by sig unframed),
with every component a bit word (encBits).
Node keys are computable in polynomial time from the parameter, the secret and the path.
Node signatures are computable in polynomial time.
One chain step is computable in polynomial time.
The chain is computable in polynomial time: every node key and signature on the path is polynomially bounded, and the chain has one certificate per bit.
Signing at a given leaf is computable in polynomial time.
Key generation is uniformly strict PPT.
Signing is uniformly strict PPT.
Verification is computable in polynomial time.
The stateless tree signature scheme ([BS23], Section 14.6.3, Fig. 14.7) over an
indexed scheme S with at least two indices, seeded by T, with node coins from coins, secrets
of length keyLen n and trees of depth depth n ≥ 1.