Confidential transactions
Confidential transactions (CT) is a cryptographic protocol which results in the amount value of a transaction being encrypted. The encryption is special because it is still possible to verify that no bitcoins can be created or destroyed within a transaction but without revealing the exact transaction amounts.
Confidential transactions requires a softfork consensus change to be added to bitcoin, although they could be added to a sidechain too.
How it works
CT replaces the plain integer amounts in a transaction with Pedersen commitments. A commitment has the form xG + aH, where x is a secret blinding factor chosen by the sender, a is the amount, G is the ordinary elliptic-curve generator, and H is a second generator for which nobody knows the discrete log with respect to G. Because these commitments are additively homomorphic, a verifier can check that the sum of the input commitments minus the sum of the output commitments minus an explicit fee commitment is the commitment to zero, without learning any of the amounts.[1]
The design was first proposed by Adam Back in a 2013 Bitcointalk thread titled "bitcoins with homomorphic value". Maxwell's write-up gives a concrete privacy motivation: if an employer pays wages in bitcoin and the employee later spends those coins on rent and groceries, the landlord and the supermarket can learn the employee's income from the visible amounts. Ordinary CoinJoin is also weakened while amounts stay visible, because amount matching can often re-link the joined inputs and outputs; CT removes that signal.[1][2]
Range proofs
Homomorphic commitments alone are not enough. Values wrap around the group order, so a negative output can look like a large positive one. Maxwell's note shows that (1 + 1) − (−5 + 7) = 0, which would let a user create five coins from nothing. Each confidential output therefore carries a range proof that the committed amount lies in a small non-negative range.[1]
Maxwell's original range proof for a 32-bit value is 2,564 bytes and can carry up to 2,048 bytes of private memo data for the recipient, such as invoice numbers or refund addresses, without growing the transaction further.[1] In 2017 Benedikt Bünz, Jonathan Bootle, Dan Boneh, Andrew Poelstra, Pieter Wuille and Greg Maxwell published Bulletproofs, a non-interactive zero-knowledge proof system with much shorter proofs and no trusted setup, aimed at confidential transactions and related constructions. The paper was received by the IACR Cryptology ePrint Archive on 10 November 2017 as report 2017/1066.[3]
History
Adam Back sketched homomorphic bitcoin amounts on Bitcointalk in 2013.[4] Greg Maxwell developed the practical CT construction and published the primer later archived from people.xiph.org; the scheme was enabled by default for ordinary transactions in Elements Alpha.[1] Bulletproofs followed in 2017 as a shorter range-proof system.[5]
The Liquid Network sidechain went live on 27 September 2018. Liquid uses confidential transactions so that amounts and asset types are known only to the participants and those they designate.[6]
What remains visible
On Liquid, CT hides the amount in each output and which asset type each output carries. What stays visible on Liquid is the transaction graph (which inputs a transaction spends), the number of inputs and outputs, the addresses involved, and the fee amount, which is always unblinded and always in L-BTC, together with ordinary timestamp and block information.[7]
Use in Bitcoin
Liquid is a deployed sidechain that uses confidential transactions by default. Adding the same feature to bitcoin itself would still need a softfork consensus change.[6]
External links
- https://web.archive.org/web/20151205091500/https://people.xiph.org/~greg/confidential_values.txt
- https://elementsproject.org/features/confidential-transactions
- https://github.com/AdamISZ/ConfidentialTransactionsDoc
- https://joinmarket.me/blog/blog/finessing-commitments/
- https://eprint.iacr.org/2017/1066
- https://docs.liquid.net/docs/confidential-transactions
References
- ↑ 1.0 1.1 1.2 1.3 1.4 Confidential Transactions, Greg Maxwell, Wayback Machine capture of people.xiph.org/~greg/confidential_values.txt, 5 December 2015.
- ↑ bitcoins with homomorphic value, Adam Back, Bitcointalk, 2013.
- ↑ Bulletproofs: Short Proofs for Confidential Transactions and More, Benedikt Bünz, Jonathan Bootle, Dan Boneh, Andrew Poelstra, Pieter Wuille and Greg Maxwell, IACR ePrint 2017/1066, received 10 November 2017.
- ↑ bitcoins with homomorphic value, Adam Back, Bitcointalk, 2013.
- ↑ Bulletproofs: Short Proofs for Confidential Transactions and More, IACR ePrint 2017/1066, received 10 November 2017.
- ↑ 6.0 6.1 Blockstream Launches the Liquid Network, Blockstream press release, 10 October 2018.
- ↑ Confidential Transactions, Liquid Network documentation, Blockstream.