Real World Crypto 2020 kicked off with a talk featuring TLS 1.3 deployments in real world at Columbia University, NY, on 8 January. The conference program is here, and you can watch the livestream here.
Day 1 was full of great talks including practical attacks on RSA key exchange (used in TLS), OCB2, E-Voting systems, as well as HSM and TPM. In this post, however, we will focus on a talk on a protocol, namely, DECO — a (privacy-preserving) decentralised oracle protocol with some cool features.
Before talking about DECO, let us look at what users can and cannot do with TLS. With TLS, users can access their private data, say, stored at a web server, with end-to-end confidentiality and integrity guarantees. But, users cannot prove to 3rd parties the provenance (i.e., the origin) of the data. What that means is that users cannot export their data from the website in an integrity-protected way and that their data is locked up at the web server, so to speak. They could export their data with the help and permission from the data holder (i.e., the web server where the data is stored). However, this would require some server-side modifications and trust assumptions.
DECO addresses this problem without requiring any trusted hardware or server-side modifications. Using DECO, users can prove to 3rd parties that a piece of data accessed via TLS did originate a particular website. Furthermore, users can prove statements about such data in zero-knowledge, without leaking any information about the data to the 3rd parties.
Designing DECO is not straightforward, and requires to overcome some not so trivial technical challenges. One main challenge is the fact that TLS uses symmetric crypto (symmetric encryption and message auathentication code) for confidentiality and integrity of TLS sessions between the users and a website. As such, the session data cannot be transferred to a 3rd party in an integrity-protected way by the users, since they could have produced the data themselves using their share of the symmetric crypto keys, without involving the website.
DECO tackled this challenge by introducing a 3-party handshake protocol among a prover (or a user), a verifier, and a web server. The 3-party handshake creates an unforgeable commitment by the prover to the verifier on a piece of TLS session data, say, D, obtained from the web server. The verifier can check that D did originate from the web server. From the user’s perspective, the confidentiality of the contents of D is preserved even in the presence of a malicious verifier.
DECO has a feature called selective opening, which allows the prover to only reveal a substring D’ of D. As a result, selective opening allows the prover to hide sensitive information and reduce the input length to the subsequent proofs about statements about D. In addition, DECO also offers context integrity. What that means is that the prover not just proves that (a substring) D’ appears in D, but that it appears in the expected context as well, meaning that D’ has context integrity with respect to D.
The authors also implemented DECO as a complete end-to-end system and demonstrated its power in three applications: 1) a confidentiality-preserving financial instrument using smart contracts, 2) converting legacy credentials to anonymous credentials, and 3) verifiable claims against price discrimination.
The paper on DECO can be found here.


