tlsnotary / tlsn

Rust implementation of the TLSNotary protocol
https://tlsnotary.org
274 stars 70 forks source link

Use hashes of binary labels as arithmetic labels in authdecode #98

Open themighty1 opened 2 years ago

themighty1 commented 2 years ago

Currently in authdecode, the Notary generates random arithmetic labels and encrypts them with binary labels as the keys. Then the ciphertext are sent on the wire.

A better approach would be to just hash the binary label and use the hash as the arithmetic label. Then there is no need for the Notary to send the ciphertexts, since the User can now generate arithmetic labels locally from his binary labels.

Moreover, this approach opens up a possibility to create authdecode zk proofs about the User's request (or even about the server response, if it has a predictabe structure) even before the TLS session starts:

sinui0 commented 1 year ago

Relevant: tlsnotary/mpz#4