Commitment scheme
A commitment scheme is a cryptographic primitive that allows one to commit to a chosen value (or chosen statement) while keeping it hidden to others, with the ability to reveal the committed value later.[1] Commitment schemes are designed so that a party cannot change the value or statement after they have committed to it: that is, commitment schemes are binding. Commitment schemes have important applications in a number of cryptographic protocols including secure coin flipping, zero-knowledge proofs, and secure computation.
A way to visualize a commitment scheme is to think of a sender as putting a message in a locked box, and giving the box to a receiver. The message in the box is hidden from the receiver, who cannot open the lock themselves. Since the receiver has the box, the message inside cannot be changed—merely revealed if the sender chooses to give them the key at some later time.
Interactions in a commitment scheme take place in two phases:
- the commit phase during which a value is chosen and committed to
- the reveal phase during which the value is revealed by the sender, then the receiver verifies its authenticity
In the above metaphor, the commit phase is the sender putting the message in the box, and locking it. The reveal phase is the sender giving the key to the receiver, who uses it to open the box and verify its contents. The locked box is the commitment, and the key is the proof.
In simple protocols, the commit phase consists of a single message from the sender to the receiver. This message is called the commitment. It is essential that the specific value chosen cannot be known by the receiver at that time (this is called the hiding property). A simple reveal phase would consist of a single message, the opening, from the sender to the receiver, followed by a check performed by the receiver. The value chosen during the commit phase must be the only one that the sender can compute and that validates during the reveal phase (this is called the binding property).
The concept of commitment schemes was perhaps first formalized by Gilles Brassard, David Chaum, and Claude Crépeau in 1988,[2] as part of various zero-knowledge protocols for NP, based on various types of commitment schemes.[3][4] But the concept was used prior to that without being treated formally.[5][6] The notion of commitments appeared earliest in works by Manuel Blum,[7] Shimon Even,[8] and Adi Shamir et al.[9] The terminology seems to have been originated by Blum,[6] although commitment schemes can be interchangeably called bit commitment schemes—sometimes reserved for the special case where the committed value is a bit. Earlier to that, commitment via one-way hash functions was considered, e.g., as part of, say, Lamport signature, the original one-time one-bit signature scheme.
Applications
Coin flipping
Suppose Alice and Bob want to resolve some dispute via coin flipping. If they are physically in the same place, a typical procedure might be:
- Alice "calls" the coin flip,
- Bob flips the coin,
- If Alice's call is correct, she wins, otherwise Bob wins.
If Alice and Bob are not in the same place a problem arises. Once Alice has "called" the coin flip, Bob can stipulate the flip "results" to be whatever is most desirable for him. Similarly, if Alice doesn't announce her "call" to Bob, after Bob flips the coin and announces the result, Alice can report that she called whatever result is most desirable for her. Alice and Bob can use commitments in a procedure that will allow both to trust the outcome:
- Alice "calls" the coin flip but only tells Bob a commitment to her call,
- Bob flips the coin and reports the result,
- Alice reveals what she committed to,
- Bob verifies that Alice's call matches her commitment,
- If Alice's revelation matches the coin result Bob reported, Alice wins.
For Bob to be able to skew the results to his favor, he must be able to understand the call hidden in Alice's commitment. If the commitment scheme is a good one, Bob cannot skew the results. Similarly, Alice cannot affect the result if she cannot change the value she commits to.
A real-life application of this problem exists, when people (often in media) commit to a decision or give an answer in a "sealed envelope", which is then opened later. "Let's find out if that's what the candidate answered", for example on a game show, can serve as a model of this system.
Zero-knowledge proofs
One particular motivating example is the use of commitment schemes in zero-knowledge proofs. Commitments are used in zero-knowledge proofs for two main purposes: first, to allow the prover to participate in "cut and choose" proofs where the verifier will be presented with a choice of what to learn, and the prover will reveal only what corresponds to the verifier's choice. Commitment schemes allow the prover to specify all the information in advance, and only reveal what should be revealed later in the proof.[10] Second, commitments are also used in zero-knowledge proofs by the verifier, who will often specify their choices ahead of time in a commitment. This allows zero-knowledge proofs to be composed in parallel without revealing additional information to the prover.[11]
Signature schemes
The Lamport signature scheme is a digital signature system that relies on maintaining two sets of secret data packets, publishing verifiable hashes of the data packets, and then selectively revealing partial secret data packets in a manner that conforms specifically to the data to be signed. In this way, the prior public commitment to the secret values becomes a critical part of the functioning of the system.
Because the Lamport signature system cannot be used more than once, a system to combine many Lamport key-sets under a single public value that can be tied to a person and verified by others was developed. This system uses trees of hashes to compress many published Lamport-key-commitment sets into a single hash value that can be associated with the prospective author of later-verified data.
Verifiable secret sharing
Another important application of commitments is in verifiable secret sharing, a critical building block of secure multiparty computation. In a secret sharing scheme, each of several parties receive "shares" of a value that is meant to be hidden from everyone. If enough parties get together, their shares can be used to reconstruct the secret, but even a malicious cabal of insufficient size should learn nothing. Secret sharing is at the root of many protocols for secure computation: in order to securely compute a function of some shared input, the secret shares are manipulated instead. However, if shares are to be generated by malicious parties, it may be important that those shares can be checked for correctness. In a verifiable secret sharing scheme, the distribution of a secret is accompanied by commitments to the individual shares. The commitments reveal nothing that can help a dishonest cabal, but the shares allow each individual party to check to see if their shares are correct.[12]
Defining the security
Formal definitions of commitment schemes vary strongly in notation and in flavour. The first such flavour is whether the commitment scheme provides perfect or computational security with respect to the hiding or binding properties. Another such flavour is whether the commitment is interactive, i.e. whether both the commit phase and the reveal phase can be seen as being executed by a cryptographic protocol or whether they are non-interactive, consisting of two algorithms Commit and CheckReveal. In the latter case CheckReveal can often be seen as a derandomised version of Commit, with the randomness used by Commit constituting the opening information.
If the commitment C to a value x is computed as C:=Commit(x,open) with open being the randomness used for computing the commitment, then CheckReveal (C,x,open) reduces to simply verifying the equation C=Commit (x,open).
Using this notation and some knowledge about mathematical functions and probability theory we formalise different versions of the binding and hiding properties of commitments. The two most important combinations of these properties are perfectly binding and computationally hiding commitment schemes and computationally binding and perfectly hiding commitment schemes. Note that no commitment scheme can be at the same time perfectly binding and perfectly hiding – a computationally unbounded adversary can simply generate Commit(x,open) for every value of x and open until finding a pair that outputs C, and in a perfectly binding scheme this uniquely identifies x.
Computational binding
Let open be chosen from a set of size [math]\displaystyle{ 2^k }[/math], i.e., it can be represented as a k bit string, and let [math]\displaystyle{ \text{Commit}_k }[/math] be the corresponding commitment scheme. As the size of k determines the security of the commitment scheme it is called the security parameter.
Then for all non-uniform probabilistic polynomial time algorithms that output [math]\displaystyle{ x,x' }[/math] and [math]\displaystyle{ open, open' }[/math] of increasing length k, the probability that [math]\displaystyle{ x \neq x' }[/math] and [math]\displaystyle{ \text{Commit}_k(x,open)=\text{Commit}_k(x',open') }[/math] is a negligible function in k.
This is a form of asymptotic analysis. It is also possible to state the same requirement using concrete security: A commitment scheme Commit is [math]\displaystyle{ (t,\epsilon) }[/math] secure, if for all algorithms that run in time t and output [math]\displaystyle{ x,x',open,open' }[/math] the probability that [math]\displaystyle{ x \neq x' }[/math] and [math]\displaystyle{ \text{Commit}(x,open)=\text{Commit}(x',open') }[/math] is at most [math]\displaystyle{ \epsilon }[/math].
Perfect, statistical, and computational hiding
Let [math]\displaystyle{ U_k }[/math] be the uniform distribution over the [math]\displaystyle{ 2^k }[/math] opening values for security parameter k. A commitment scheme is respectively perfect, statistical, or computational hiding, if for all [math]\displaystyle{ x\neq x' }[/math] the probability ensembles [math]\displaystyle{ \{\text{Commit}_k(x,U_k)\}_{k\in\N} }[/math] and [math]\displaystyle{ \{\text{Commit}_k(x',U_k)\}_{k\in\N} }[/math] are equal, statistically close, or computationally indistinguishable.
Impossibility of universally composable commitment schemes
It is impossible to realize commitment schemes in the universal composability (UC) framework. The reason is that UC commitment has to be extractable, as shown by Canetti and Fischlin[13] and explained below.
The ideal commitment functionality, denoted here by F, works roughly as follows. Committer C sends value m to F, which stores it and sends "receipt" to receiver R. Later, C sends "open" to F, which sends m to R.
Now, assume we have a protocol π that realizes this functionality. Suppose that the committer C is corrupted. In the UC framework, that essentially means that C is now controlled by the environment, which attempts to distinguish protocol execution from the ideal process. Consider an environment that chooses a message m and then tells C to act as prescribed by π, as if it has committed to m. Note here that in order to realize F, the receiver must, after receiving a commitment, output a message "receipt". After the environment sees this message, it tells C to open the commitment.
The protocol is only secure if this scenario is indistinguishable from the ideal case, where the functionality interacts with a simulator S. Here, S has control of C. In particular, whenever R outputs "receipt", F has to do likewise. The only way to do that is for S to tell C to send a value to F. However, note that by this point, m is not known to S. Hence, when the commitment is opened during protocol execution, it is unlikely that F will open to m, unless S can extract m from the messages it received from the environment before R outputs the receipt.
However a protocol that is extractable in this sense cannot be statistically hiding. Suppose such a simulator S exists. Now consider an environment that, instead of corrupting C, corrupts R instead. Additionally it runs a copy of S. Messages received from C are fed into S, and replies from S are forwarded to C.
The environment initially tells C to commit to a message m. At some point in the interaction, S will commit to a value m′. This message is handed to R, who outputs m′. Note that by assumption we have m' = m with high probability. Now in the ideal process the simulator has to come up with m. But this is impossible, because at this point the commitment has not been opened yet, so the only message R can have received in the ideal process is a "receipt" message. We thus have a contradiction.
Construction
A commitment scheme can either be perfectly binding (it is impossible for Alice to alter her commitment after she has made it, even if she has unbounded computational resources); or perfectly concealing (it is impossible for Bob to find out the commitment without Alice revealing it, even if he has unbounded computational resources); or formulated as an instance-dependent commitment scheme, which is either hiding or binding depending on the solution to another problem.[14][15] A commitment scheme can not be both perfectly hiding and perfectly binding at the same time.
Bit-commitment in the random oracle model
Bit-commitment schemes are trivial to construct in the random oracle model. Given a hash function H with a 3k bit output, to commit the k-bit message m, Alice generates a random k bit string R and sends Bob H(R||m). The probability that any R′, m′ exist where m′ ≠ m such that H(R′||m′) = H(R||m) is ≈ 2−k, but to test any guess at the message m Bob will need to make 2k (for an incorrect guess) or 2k-1 (on average, for a correct guess) queries to the random oracle.[16] We note that earlier schemes based on hash functions, essentially can be thought of schemes based on idealization of these hash functions as random oracle.
Bit-commitment from any one-way permutation
One can create a bit-commitment scheme from any one-way function that is injective. The scheme relies on the fact that every one-way function can be modified (via the Goldreich-Levin theorem) to possess a computationally hard-core predicate (while retaining the injective property).
Let f be an injective one-way function, with h a hard-core predicate. Then to commit to a bit b Alice picks a random input x and sends the triple
- [math]\displaystyle{ (h,f(x),b \oplus h(x)) }[/math]
to Bob, where [math]\displaystyle{ \oplus }[/math] denotes XOR, i.e., bitwise addition modulo 2. To decommit, Alice simply sends x to Bob. Bob verifies by computing f(x) and comparing to the committed value. This scheme is concealing because for Bob to recover b he must recover h(x). Since h is a computationally hard-core predicate, recovering h(x) from f(x) with probability greater than one-half is as hard as inverting f. Perfect binding follows from the fact that f is injective and thus f(x) has exactly one preimage.
Bit-commitment from a pseudo-random generator
Note that since we do not know how to construct a one-way permutation from any one-way function, this section reduces the strength of the cryptographic assumption necessary to construct a bit-commitment protocol.
In 1991 Moni Naor showed how to create a bit-commitment scheme from a cryptographically secure pseudorandom number generator.[17] The construction is as follows. If G is a pseudo-random generator such that G takes n bits to 3n bits, then if Alice wants to commit to a bit b:
- Bob selects a random 3n-bit vector R and sends R to Alice.
- Alice selects a random n-bit vector Y and computes the 3n-bit vector G(Y).
- If b=1 Alice sends G(Y) to Bob, otherwise she sends the bitwise exclusive-or of G(Y) and R to Bob.
To decommit Alice sends Y to Bob, who can then check whether he initially received G(Y) or G(Y) [math]\displaystyle{ \oplus }[/math] R.
This scheme is statistically binding, meaning that even if Alice is computationally unbounded she cannot cheat with probability greater than 2−n. For Alice to cheat, she would need to find a Y', such that G(Y') = G(Y) [math]\displaystyle{ \oplus }[/math] R. If she could find such a value, she could decommit by sending the truth and Y, or send the opposite answer and Y'. However, G(Y) and G(Y') are only able to produce 2n possible values each (that's 22n) while R is picked out of 23n values. She does not pick R, so there is a 22n/23n = 2−n probability that a Y' satisfying the equation required to cheat will exist.
The concealing property follows from a standard reduction, if Bob can tell whether Alice committed to a zero or one, he can also distinguish the output of the pseudo-random generator G from true-random, which contradicts the cryptographic security of G.
A perfectly binding scheme based on the discrete log problem and beyond
Alice chooses a ring of prime order p, with multiplicative generator g.
Alice randomly picks a secret value x from 0 to p − 1 to commit to and calculates c = gx and publishes c. The discrete logarithm problem dictates that from c, it is computationally infeasible to compute x, so under this assumption, Bob cannot compute x. On the other hand, Alice cannot compute a x′ <> x, such that gx′ = c, so the scheme is binding.
This scheme isn't perfectly concealing as someone could find the commitment if he manages to solve the discrete logarithm problem. In fact, this scheme isn't hiding at all with respect to the standard hiding game, where an adversary should be unable to guess which of two messages he chose were committed to - similar to the IND-CPA game. One consequence of this is that if the space of possible values of x is small, then an attacker could simply try them all and the commitment would not be hiding.
A better example of a perfectly binding commitment scheme is one where the commitment is the encryption of x under a semantically secure, public-key encryption scheme with perfect completeness, and the decommitment is the string of random bits used to encrypt x. An example of an information-theoretically hiding commitment scheme is the Pedersen commitment scheme,[18] which is computationally binding under the discrete logarithm assumption. [19] Additionally to the scheme above, it uses another generator h of the prime group and a random number r. The commitment is set [math]\displaystyle{ c=g^x h^r }[/math].[20]
These constructions are tightly related to and based on the algebraic properties of the underlying groups, and the notion originally seemed to be very much related to the algebra. However, it was shown that basing statistically binding commitment schemes on general unstructured assumption is possible, via the notion of interactive hashing for commitments from general complexity assumptions (specifically and originally, based on any one way permutation) as in.[21]
A perfectly hiding commitment scheme based on RSA
Alice selects [math]\displaystyle{ N }[/math] such that [math]\displaystyle{ N = p \cdot q }[/math], where [math]\displaystyle{ p }[/math] and [math]\displaystyle{ q }[/math] are large secret prime numbers. Additionally, she selects a prime [math]\displaystyle{ e }[/math] such that [math]\displaystyle{ e \gt N^2 }[/math] and [math]\displaystyle{ gcd(e, \phi(N^2)) = 1 }[/math]. Alice then computes a public number [math]\displaystyle{ g_m }[/math] as an element of maximum order in the [math]\displaystyle{ \Z^*_{N^2} }[/math] group.[22] Finally, Alice commits to her secret [math]\displaystyle{ m }[/math] by first generating a random number [math]\displaystyle{ r }[/math] from [math]\displaystyle{ \Z^*_{N^2} }[/math] and then by computing [math]\displaystyle{ c=m^e g_{m}^{r} }[/math].
The security of the above commitment relies on the hardness of the RSA problem and has perfect hiding and computational binding.[23]
Additive and multiplicative homomorphic properties of commitments
The Pedersen commitment scheme introduces an interesting homomorphic property that allows performing addition between two commitments. More specifically, given two messages [math]\displaystyle{ m_1 }[/math] and [math]\displaystyle{ m_2 }[/math] and randomness [math]\displaystyle{ r_1 }[/math] and [math]\displaystyle{ r_2 }[/math], respectively, it is possible to generate a new commitment such that: [math]\displaystyle{ C(m_1, r_1) \cdot C(m_2, r_2) = C(m_1 + m_2, r_1 + r_2) }[/math]. Formally:
[math]\displaystyle{ C(m_1, r_1) \cdot C(m_2, r_2) = g^{m_1} h^{r_1} \cdot g^{m_2} h^{r_2} = g^{m_1+m_2} h^{r_1+r_2} = C(m_1 + m_2, r_1 + r_2) }[/math]
To open the above Pedersen commitment to a new message [math]\displaystyle{ m_1 + m_2 }[/math], the randomness [math]\displaystyle{ r_1 }[/math] and [math]\displaystyle{ r_2 }[/math] has to be added.
Similarly, the RSA-based commitment mentioned above has a homomorphic property with respect to the multiplication operation. Given two messages [math]\displaystyle{ m_1 }[/math] and [math]\displaystyle{ m_2 }[/math] with randomness [math]\displaystyle{ r_1 }[/math] and [math]\displaystyle{ r_2 }[/math], respectively, one can compute: [math]\displaystyle{ C(m_1, r_1) \cdot C(m_2, r_2) = C(m_1 \cdot m_2, r_1 + r_2) }[/math]. Formally: [math]\displaystyle{ C(m_1, r_1) \cdot C(m_2, r_2) = m_1^{e} g_{m}^{r_1} \cdot m_2^{e} g_{m}^{r_2} = (m_1 \cdot m_2)^{e} g_{m}^{r_1 + r_2} = C(m_1 \cdot m_2, r_1 + r_2) }[/math].
To open the above commitment to a new message [math]\displaystyle{ m_1 \cdot m_2 }[/math], the randomness [math]\displaystyle{ r_1 }[/math] and [math]\displaystyle{ r_2 }[/math] has to be added. This newly generated commitment is distributed similarly to a new commitment to [math]\displaystyle{ m_1 \cdot m_2 }[/math].
Partial reveal
Some commitment schemes permit a proof to be given of only a portion of the committed value. In these schemes, the secret value [math]\displaystyle{ X }[/math] is a vector of many individually separable values.
- [math]\displaystyle{ X = (x_1, x_2, ..., x_n) }[/math]
The commitment [math]\displaystyle{ C }[/math] is computed from [math]\displaystyle{ X }[/math] in the commit phase. Normally, in the reveal phase, the prover would reveal all of [math]\displaystyle{ X }[/math] and some additional proof data (such as [math]\displaystyle{ R }[/math] in simple bit-commitment). Instead, the prover is able to reveal any single value from the [math]\displaystyle{ X }[/math] vector, and create an efficient proof that it is the authentic [math]\displaystyle{ i }[/math]th element of the original vector that created the commitment [math]\displaystyle{ C }[/math]. The proof does not require any values of [math]\displaystyle{ X }[/math] other than [math]\displaystyle{ x_i }[/math] to be revealed, and it is impossible to create valid proofs that reveal different values for any of the [math]\displaystyle{ x_i }[/math] than the true one.[24]
Vector hashing
Vector hashing is a naive vector commitment partial reveal scheme based on bit-commitment. Values [math]\displaystyle{ m_1, m_2, ... m_n }[/math] are chosen randomly. Individual commitments are created by hashing [math]\displaystyle{ y_1=H(x_1||m_1), y_2=H(x_2||m_2), ... }[/math]. The overall commitment is computed as
- [math]\displaystyle{ C=H(y_1||y_2||...||y_n) }[/math]
In order to prove one element of the vector [math]\displaystyle{ X }[/math], the prover reveals the values
- [math]\displaystyle{ (i, y_1, y_2, ..., y_{i-1}, x_i, m_i, y_{i+1}, ..., y_n) }[/math]
The verifier is able to compute [math]\displaystyle{ y_i }[/math] from [math]\displaystyle{ x_i }[/math] and [math]\displaystyle{ m_i }[/math], and then is able to verify that the hash of all [math]\displaystyle{ y }[/math] values is the commitment [math]\displaystyle{ C }[/math]. Unfortunately the proof is [math]\displaystyle{ O(n) }[/math] in size and verification time. Alternately, if [math]\displaystyle{ C }[/math] is the set of all [math]\displaystyle{ y }[/math] values, then the commitment is [math]\displaystyle{ O(n) }[/math] in size, and the proof is [math]\displaystyle{ O(1) }[/math] in size and verification time. Either way, the commitment or the proof scales with [math]\displaystyle{ O(n) }[/math] which is not optimal.
Merkle tree
A common example of a practical partial reveal scheme is a Merkle tree, in which a binary hash tree is created of the elements of [math]\displaystyle{ X }[/math]. This scheme creates commitments that are [math]\displaystyle{ O(1) }[/math] in size, and proofs that are [math]\displaystyle{ O(\log_2{n}) }[/math] in size and verification time. The root hash of the tree is the commitment [math]\displaystyle{ C }[/math]. To prove that a revealed [math]\displaystyle{ x_i }[/math] is part of the original tree, only [math]\displaystyle{ \log_2{n} }[/math] hash values from the tree, one from each level, must be revealed as the proof. The verifier is able to follow the path from the claimed leaf node all the way up to the root, hashing in the sibling nodes at each level, and eventually arriving at a root node value that must equal [math]\displaystyle{ C }[/math].[25]
KZG commitment
A Kate-Zaverucha-Goldberg commitment uses pairing-based cryptography to build a partial reveal scheme with [math]\displaystyle{ O(1) }[/math] commitment sizes, proof sizes, and proof verification time. In other words, as [math]\displaystyle{ n }[/math], the number of values in [math]\displaystyle{ X }[/math], increases, the commitments and proofs do not get larger, and the proofs do not take any more effort to verify.
A KZG commitment requires a predetermined set of parameters to create a pairing, and a trusted trapdoor element. For example, a Tate pairing can be used. Assume that [math]\displaystyle{ \mathbb{G}_1, \mathbb{G}_2 }[/math] are the additive groups, and [math]\displaystyle{ \mathbb{G}_T }[/math] is the multiplicative group of the pairing. In other words, the pairing is the map [math]\displaystyle{ e: \mathbb{G}_1 \times \mathbb{G}_2 \rightarrow \mathbb{G}_T }[/math]. Let [math]\displaystyle{ t \in \mathbb{F}_p }[/math] be the trapdoor element (if [math]\displaystyle{ p }[/math] is the prime order of [math]\displaystyle{ \mathbb{G}_1 }[/math] and [math]\displaystyle{ \mathbb{G}_2 }[/math]), and let [math]\displaystyle{ G }[/math] and [math]\displaystyle{ H }[/math] be the generators of [math]\displaystyle{ \mathbb{G}_1 }[/math] and [math]\displaystyle{ \mathbb{G}_2 }[/math] respectively. As part of the parameter setup, we assume that [math]\displaystyle{ G \cdot t^i }[/math] and [math]\displaystyle{ H \cdot t^i }[/math] are known and shared values for arbitrarily many positive integer values of [math]\displaystyle{ i }[/math], while the trapdoor value [math]\displaystyle{ t }[/math] itself is discarded and known to no one.
Commit
A KZG commitment reformulates the vector of values to be committed as a polynomial. First, we calculate a polynomial such that [math]\displaystyle{ p(i)=x_i }[/math] for all values of [math]\displaystyle{ x_i }[/math] in our vector. Lagrange interpolation allows us to compute that polynomial
- [math]\displaystyle{ p(x)=\sum_{i=0}^{n-1}x_i\prod_{0\leq j \lt n, j\neq i}\frac{x-j}{i-j} }[/math]
Under this formulation, the polynomial now encodes the vector, where [math]\displaystyle{ p(0)=x_0, p(1)=x_1, ... }[/math]. Let [math]\displaystyle{ p_0, p_1, ..., p_{n-1} }[/math] be the coefficients of [math]\displaystyle{ p }[/math], such that [math]\displaystyle{ p(x)=\sum_{i=0}^{n-1} p_i x^i }[/math]. The commitment is calculated as
- [math]\displaystyle{ C=\sum_{i=0}^{n-1} p_i G t^i }[/math]
This is computed simply as a dot product between the predetermined values [math]\displaystyle{ G \cdot t^i }[/math] and the polynomial coefficients [math]\displaystyle{ p_i }[/math]. Since [math]\displaystyle{ \mathbb{G}_1 }[/math] is an additive group with associativity and commutativity, [math]\displaystyle{ C }[/math] is equal to simply [math]\displaystyle{ G \cdot p(t) }[/math], since all the additions and multiplications with [math]\displaystyle{ G }[/math] can be distributed out of the evaluation. Since the trapdoor value [math]\displaystyle{ t }[/math] is unknown, the commitment [math]\displaystyle{ C }[/math] is essentially the polynomial evaluated at a number known to no one, with the outcome obfuscated into an opaque element of [math]\displaystyle{ \mathbb{G}_1 }[/math].
Reveal
A KZG proof must demonstrate that the revealed data is the authentic value of [math]\displaystyle{ x_i }[/math] when [math]\displaystyle{ C }[/math] was computed. Let [math]\displaystyle{ y=x_i }[/math], the revealed value we must prove. Since the vector of [math]\displaystyle{ x_i }[/math] was reformulated into a polynomial, we really need to prove that the polynomial [math]\displaystyle{ p }[/math], when evaluated at [math]\displaystyle{ i }[/math] takes on the value [math]\displaystyle{ y }[/math]. Simply, we just need to prove that [math]\displaystyle{ p(i)=y }[/math]. We will do this by demonstrating that subtracting [math]\displaystyle{ y }[/math] from [math]\displaystyle{ p }[/math] yields a root at [math]\displaystyle{ i }[/math]. Define the polynomial [math]\displaystyle{ q }[/math] as
- [math]\displaystyle{ q(x)=\frac{p(x)-y}{x-i} }[/math]
This polynomial is itself the proof that [math]\displaystyle{ p(i)=y }[/math], because if [math]\displaystyle{ q }[/math] exists, then [math]\displaystyle{ p(x)-y }[/math] is divisible by [math]\displaystyle{ x-i }[/math], meaning it has a root at [math]\displaystyle{ i }[/math], so [math]\displaystyle{ p(i)-y=0 }[/math] (or, in other words, [math]\displaystyle{ p(i)=y }[/math]). The KZG proof will demonstrate that [math]\displaystyle{ q }[/math] exists and has this property.
The prover computes [math]\displaystyle{ q }[/math] through the above polynomial division, then calculates the KZG proof value [math]\displaystyle{ \pi }[/math]
- [math]\displaystyle{ \pi=\sum_{i=0}^{n-1} q_i G t^i }[/math]
This is equal to [math]\displaystyle{ G \cdot q(t) }[/math], as above. In other words, the proof value is the polynomial [math]\displaystyle{ q }[/math] again evaluated at the trapdoor value [math]\displaystyle{ t }[/math], hidden in the generator [math]\displaystyle{ G }[/math] of [math]\displaystyle{ \mathbb{G}_1 }[/math].
This computation is only possible if the above polynomials were evenly divisible, because in that case the quotient [math]\displaystyle{ q }[/math] is a polynomial, not a rational function. Due to the construction of the trapdoor, it is not possible to evaluate a rational function at the trapdoor value, only to evaluate a polynomial using linear combinations of the precomputed known constants of [math]\displaystyle{ G \cdot t^i }[/math]. This is why it is impossible to create a proof for an incorrect value of [math]\displaystyle{ x_i }[/math].
Verify
To verify the proof, the bilinear map of the pairing is used to show that the proof value [math]\displaystyle{ \pi }[/math] summarizes a real polynomial [math]\displaystyle{ q }[/math] that demonstrates the desired property, which is that [math]\displaystyle{ p(x)-y }[/math] was evenly divided by [math]\displaystyle{ x-i }[/math]. The verification computation checks the equality
- [math]\displaystyle{ e(\pi, H \cdot t - H \cdot i)\ \stackrel{?}{=}\ e(C - G \cdot y, H) }[/math]
where [math]\displaystyle{ e }[/math] is the bilinear map function as above. [math]\displaystyle{ H \cdot t }[/math] is a precomputed constant, [math]\displaystyle{ H \cdot i }[/math] is computed based on [math]\displaystyle{ i }[/math].
By rewriting the computation in the pairing group [math]\displaystyle{ \mathbb{G}_T }[/math], substituting in [math]\displaystyle{ \pi=q(t) \cdot G }[/math] and [math]\displaystyle{ C=p(t) \cdot G }[/math], and letting [math]\displaystyle{ \tau(x)=e(G,H)^x }[/math] be a helper function for lifting into the pairing group, the proof verification is more clear.
- [math]\displaystyle{ e(\pi, H \cdot t - H \cdot i) = e(C - G \cdot y, H) }[/math]
- [math]\displaystyle{ e(G \cdot q(t), H \cdot t - H \cdot i) = e(G \cdot p(t) - G \cdot y, H) }[/math]
- [math]\displaystyle{ e(G \cdot q(t), H \cdot (t-i)) = e(G \cdot (p(t) - y), H) }[/math]
- [math]\displaystyle{ e(G, H)^{q(t)\cdot(t-i)} = e(G, H)^{p(t) - y} }[/math]
- [math]\displaystyle{ \tau(q(t) \cdot (t-i)) = \tau(p(t)-y) }[/math]
Assuming that the bilinear map is validly constructed, this demonstrates that [math]\displaystyle{ q(x)(x-i) = p(x)-y }[/math], without the validator knowing what [math]\displaystyle{ p }[/math] or [math]\displaystyle{ q }[/math] are. The validator can be assured of this because if [math]\displaystyle{ \tau(q(t) \cdot (t-i)) = \tau(p(t)-y) }[/math], then the polynomials evaluate to the same output at the trapdoor value [math]\displaystyle{ x=t }[/math]. This demonstrates the polynomials are identical, because, if the parameters were validly constructed, the trapdoor value is known to no one, meaning that engineering a polynomial to have a specific value at the trapdoor is impossible (according to the Schwartz–Zippel lemma). If [math]\displaystyle{ q(x)(x-i) = p(x)-y }[/math] is now verified to be true, then [math]\displaystyle{ q }[/math] is verified to exist, therefore [math]\displaystyle{ p(x)-y }[/math] must be polynomial-divisible by [math]\displaystyle{ (x-i) }[/math], so [math]\displaystyle{ p(i)-y=0 }[/math] due to the factor theorem. This proves that the [math]\displaystyle{ i }[/math]th value of the committed vector must have equaled [math]\displaystyle{ y }[/math], since that is the output of evaluating the committed polynomial at [math]\displaystyle{ i }[/math].
The utility of the bilinear map pairing is to allow the multiplication of [math]\displaystyle{ q(x) }[/math] by [math]\displaystyle{ x-i }[/math] to happen securely. These values truly lie in [math]\displaystyle{ \mathbb{G}_1 }[/math], where division is assumed to be computationally hard. For example, [math]\displaystyle{ \mathbb{G}_1 }[/math] might be an elliptic curve over a finite field, as is common in elliptic-curve cryptography. Then, the division assumption is called the elliptic curve discrete logarithm problem, and this assumption is also what guards the trapdoor value from being computed, making it also a foundation of KZG commitments. In that case, we want to check if [math]\displaystyle{ q(x)(x-i) = p(x)-y }[/math]. This cannot be done without a pairing, because with values on the curve of [math]\displaystyle{ G \cdot q(x) }[/math] and [math]\displaystyle{ G \cdot (x-i) }[/math], we cannot compute [math]\displaystyle{ G \cdot (q(x)(x-i)) }[/math]. That would violate the computational Diffie–Hellman assumption, a foundational assumption in elliptic-curve cryptography. We instead use a pairing to sidestep this problem. [math]\displaystyle{ q(x) }[/math] is still multiplied by [math]\displaystyle{ G }[/math] to get [math]\displaystyle{ G \cdot q(x) }[/math], but the other side of the multiplication is done in the paired group [math]\displaystyle{ \mathbb{G}_2 }[/math], so, [math]\displaystyle{ H \cdot (t-i) }[/math]. We compute [math]\displaystyle{ e(G \cdot q(t), H \cdot (t-i)) }[/math], which, due to the bilinearity of the map, is equal to [math]\displaystyle{ e(G, H)^{q(t)\cdot(t-i)} }[/math]. In this output group [math]\displaystyle{ \mathbb{G}_T }[/math] we still have the discrete logarithm problem, so even though we know that value and [math]\displaystyle{ e(G, H) }[/math], we cannot extract the exponent [math]\displaystyle{ q(t)\cdot(t-i) }[/math], preventing any contradiction with discrete logarithm earlier. This value can be compared to [math]\displaystyle{ e(G \cdot (p(t) - y), H)=e(G, H)^{p(t) - y} }[/math] though, and if [math]\displaystyle{ e(G, H)^{q(t)\cdot(t-i)} = e(G, H)^{p(t) - y} }[/math] we are able to conclude that [math]\displaystyle{ q(t) \cdot (t-i) = p(t)-y }[/math], without ever knowing what the actual value of [math]\displaystyle{ t }[/math] is, let alone [math]\displaystyle{ q(t)(t-i) }[/math].
Additionally, a KZG commitment can be extended to prove the values of any arbitrary [math]\displaystyle{ k }[/math] values of [math]\displaystyle{ X }[/math] (not just one value), with the proof size remaining [math]\displaystyle{ O(1) }[/math], but the proof verification time scales with [math]\displaystyle{ O(k) }[/math]. The proof is the same, but instead of subtracting a constant [math]\displaystyle{ y }[/math], we subtract a polynomial that causes multiple roots, at all the locations we want to prove, and instead of dividing by [math]\displaystyle{ x-i }[/math] we divide by [math]\displaystyle{ \prod_i x-i }[/math] for those same locations.[26]
Quantum bit commitment
It is an interesting question in quantum cryptography if unconditionally secure bit commitment protocols exist on the quantum level, that is, protocols which are (at least asymptotically) binding and concealing even if there are no restrictions on the computational resources. One could hope that there might be a way to exploit the intrinsic properties of quantum mechanics, as in the protocols for unconditionally secure key distribution.
However, this is impossible, as Dominic Mayers showed in 1996 (see[27] for the original proof). Any such protocol can be reduced to a protocol where the system is in one of two pure states after the commitment phase, depending on the bit Alice wants to commit. If the protocol is unconditionally concealing, then Alice can unitarily transform these states into each other using the properties of the Schmidt decomposition, effectively defeating the binding property.
One subtle assumption of the proof is that the commit phase must be finished at some point in time. This leaves room for protocols that require a continuing information flow until the bit is unveiled or the protocol is cancelled, in which case it is not binding anymore.[28] More generally, Mayers' proof applies only to protocols that exploit quantum physics but not special relativity. Kent has shown that there exist unconditionally secure protocols for bit commitment that exploit the principle of special relativity stating that information cannot travel faster than light.[29]
Commitments based on physical unclonable functions
Physical unclonable functions (PUFs) rely on the use of a physical key with internal randomness, which is hard to clone or to emulate. Electronic, optical and other types of PUFs[30] have been discussed extensively in the literature, in connection with their potential cryptographic applications including commitment schemes.[31][32]
See also
- Oblivious transfer
- Accumulator (cryptography)
- Key signing party
- Web of trust
- Zerocoin
- Anagrams — used by 17th-century natural philosophers to establish priority of a discovery without revealing it to others
References
- ↑ Oded Goldreich (2001). Foundations of Cryptography: Volume 1, Basic Tools. Cambridge University Press. ISBN:0-521-79172-3.:224
- ↑ Gilles Brassard, David Chaum, and Claude Crépeau, Minimum Disclosure Proofs of Knowledge, Journal of Computer and System Sciences, vol. 37, pp. 156–189, 1988.
- ↑ Goldreich, Oded; Micali, Silvio; Wigderson, Avi (1991). "Proofs that yield nothing but their validity". Journal of the ACM 38 (3): 690–728. doi:10.1145/116825.116852.
- ↑ Russell Impagliazzo, Moti Yung: Direct Minimum-Knowledge Computations. CRYPTO 1987: 40-51
- ↑ Naor, Moni (1991). "Bit commitment using pseudorandomness". Journal of Cryptology 4 (2): 151–158. doi:10.1007/BF00196774.
- ↑ 6.0 6.1 Claude Crépeau, Commitment, Cryptography and Quantum Information Lab, McGill University School of Computer Science, accessed April 11, 2008
- ↑ Manuel Blum, Coin Flipping by Telephone, Proceedings of CRYPTO 1981, pp. 11–15, 1981, reprinted in SIGACT News vol. 15, pp. 23–27, 1983, Carnegie Mellon School of Computer Science.
- ↑ Shimon Even. Protocol for signing contracts. In Allen Gersho, ed., Advances in Cryptography (proceedings of CRYPTO '82), pp. 148–153, Santa Barbara, CA, US, 1982.
- ↑ A. Shamir, R. L. Rivest, and L. Adleman, "Mental Poker". In David A. Klarner, ed., The Mathematical Gardner (ISBN:978-1-4684-6686-7), pp. 37–43. Wadsworth, Belmont, California, 1981.
- ↑ Oded Goldreich, Silvio Micali, and Avi Wigderson, Proofs that yield nothing but their validity, or all languages in NP have zero-knowledge proof systems, Journal of the ACM, 38: 3, pp. 690–728, 1991
- ↑ Oded Goldreich and Hugo Krawczyk, On the Composition of Zero-Knowledge Proof Systems, SIAM Journal on Computing, 25: 1, pp. 169–192, 1996
- ↑ Gennaro; Rosario; Rabin, Michael O.; Rabin, Tal. "Simplified VSS and fast-track multiparty computations with applications to threshold cryptography". Proceedings of the Seventeenth Annual ACM Symposium on Principles of Distributed Computing. 1998, June.
- ↑ R. Canetti and M. Fischlin. Universally Composable Commitments.
- ↑ Shien Hin Ong and Salil Vadhan (1990). Perfect zero knowledge in constant round, In Proc. STOC, p. 482-493, cited in Shien Hin Ong and Salil Vadhan (2008). An Equivalence between Zero Knowledge and Commitments, Theory of Cryptography.
- ↑ Toshiya Itoh, Yiji Ohta, Hiroki Shizuya (1997). A language dependent cryptographic primitive, In J. Cryptol., 10(1):37-49, cited in Shien Hin Ong and Salil Vadhan (2008). An Equivalence between Zero Knowledge and Commitments, Theory of Cryptography.
- ↑ Wagner, David (2006), Midterm Solution, p. 2, http://www.cs.berkeley.edu/~daw/teaching/cs276-s06/mtsol.ps, retrieved 26 October 2015
- ↑ "Citations: Bit Commitment using Pseudorandom Generators - Naor (ResearchIndex)". Citeseer.ist.psu.edu. http://citeseer.ist.psu.edu/context/22544/0.
- ↑ Pedersen, Torben Pryds (1992). "Non-Interactive and Information-Theoretic Secure Verifiable Secret Sharing". Advances in Cryptology – CRYPTO '91. Lecture Notes in Computer Science. 576. Berlin, Heidelberg: Springer Berlin Heidelberg. pp. 129–140. doi:10.1007/3-540-46766-1_9. ISBN 978-3-540-55188-1.
- ↑ Metere, Roberto; Dong, Changyu (2017). "Automated cryptographic analysis of the pedersen commitment scheme". Springer. pp. 275–287.
- ↑ Tang, Chunming; Pei, Dingyi; Liu, Zhuojun; He, Yong (16 August 2004) (in en). Pedersen: Non-interactive and information-theoretic secure verifiable secret sharing. Advances in Cryptology CRYPTO 1991 Springer. https://eprint.iacr.org/2004/201.pdf. Retrieved 2 February 2019.
- ↑ Moni Naor, Rafail Ostrovsky, Ramarathnam Venkatesan, Moti Yung: Perfect Zero-Knowledge Arguments for NP Using Any One-Way Permutation. J. Cryptology 11(2): 87-108 (1998)[1]
- ↑ Menezes, Alfred J; Van Oorschot, Paul C; Vanstone, Scott A (2018). Handbook of applied cryptography. CRC press.
- ↑ Mouris, Dimitris; Tsoutsos, Nektarios Georgios (26 January 2022) (in en). Masquerade: Verifiable Multi-Party Aggregation with Secure Multiplicative Commitments. https://eprint.iacr.org/2021/1370.pdf.
- ↑ Catalano, Dario; Fiore, Dario (2013). "Vector Commitments and Their Applications". Public-Key Cryptography – PKC 2013. Lecture Notes in Computer Science. 7778. Springer Berlin Heidelberg. pp. 55–72. doi:10.1007/978-3-642-36362-7_5. ISBN 978-3-642-36362-7. https://link.springer.com/chapter/10.1007/978-3-642-36362-7_5. Catalano, Dario; Fiore, Dario (2013). "Vector Commitments and Their Applications". International Association for Cryptologic Research. https://www.iacr.org/archive/pkc2013/77780054/77780054.pdf.
- ↑ Becker, Georg (2008-07-18). "Merkle Signature Schemes, Merkle Trees and Their Cryptanalysis". Ruhr-Universität Bochum. p. 16. http://www.emsec.rub.de/media/crypto/attachments/files/2011/04/becker_1.pdf.
- ↑ Kate, Aniket; Zaverucha, Gregory; Goldberg, Ian (2010). "Constant-size commitments to polynomials and their applications.". International Conference on the Theory and Application of Cryptology and Information Security. https://www.iacr.org/archive/asiacrypt2010/6477178/6477178.pdf.
- ↑ Brassard, Crépeau, Mayers, Salvail: A brief review on the impossibility of quantum bit commitment
- ↑ A. Kent: Secure classical Bit Commitment using Fixed Capacity Communication Channels
- ↑ Kent, A. (1999). "Unconditionally Secure Bit Commitment" (in en). Phys. Rev. Lett. 83 (7): 1447–1450. doi:10.1103/PhysRevLett.83.1447. Bibcode: 1999PhRvL..83.1447K.
- ↑ McGrath, Thomas; Bagci, Ibrahim E.; Wang, Zhiming M.; Roedig, Utz; Young, Robert J. (2019-02-12). "A PUF taxonomy". Applied Physics Reviews 6 (1): 011303. doi:10.1063/1.5079407. Bibcode: 2019ApPRv...6a1303M.
- ↑ Rührmair, Ulrich; van Dijk, Marten (2013-04-01). "On the practical use of physical unclonable functions in oblivious transfer and bit commitment protocols" (in en). Journal of Cryptographic Engineering 3 (1): 17–28. doi:10.1007/s13389-013-0052-8. ISSN 2190-8516.
- ↑ Nikolopoulos, Georgios M. (2019-09-30). "Optical scheme for cryptographic commitments with physical unclonable keys" (in EN). Optics Express 27 (20): 29367–29379. doi:10.1364/OE.27.029367. ISSN 1094-4087. PMID 31684673. Bibcode: 2019OExpr..2729367N.
External links
- Quantum bit commitment on arxiv.org
- Kate-Zaverucha-Goldberg (KZG) Constant-Sized Polynomial Commitments - Alin Tomescu
- Kate polynomial commitments
Original source: https://en.wikipedia.org/wiki/Commitment scheme.
Read more |