Skip to content

Commit 81aaa33

Browse files
feat(core): find set cover across different commitment kinds in TranscriptProofBuilder (#765)
* Init. * Cover range in order of preference of kinds. * Fix comment. * Adjust error message. * Return tuple from set cover and address comments. * Fix comments. * Update utils version. --------- Co-authored-by: yuroitaki <> Co-authored-by: dan <[email protected]>
1 parent f331a7a commit 81aaa33

File tree

4 files changed

+332
-148
lines changed

4 files changed

+332
-148
lines changed

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ tlsn-tls-backend = { path = "crates/tls/backend" }
6262
tlsn-tls-client = { path = "crates/tls/client" }
6363
tlsn-tls-client-async = { path = "crates/tls/client-async" }
6464
tlsn-tls-core = { path = "crates/tls/core" }
65-
tlsn-utils = { git = "https://github.com/tlsnotary/tlsn-utils", rev = "6650a95" }
65+
tlsn-utils = { git = "https://github.com/tlsnotary/tlsn-utils", rev = "6168663" }
6666
tlsn-verifier = { path = "crates/verifier" }
6767

6868
mpz-circuits = { git = "https://github.com/privacy-scaling-explorations/mpz", tag = "v0.1.0-alpha.2" }
@@ -78,11 +78,11 @@ mpz-share-conversion = { git = "https://github.com/privacy-scaling-explorations/
7878
mpz-fields = { git = "https://github.com/privacy-scaling-explorations/mpz", tag = "v0.1.0-alpha.2" }
7979
mpz-zk = { git = "https://github.com/privacy-scaling-explorations/mpz", tag = "v0.1.0-alpha.2" }
8080

81-
rangeset = { version = "0.1" }
81+
rangeset = { version = "0.2" }
8282
serio = { version = "0.2" }
83-
spansy = { git = "https://github.com/tlsnotary/tlsn-utils", rev = "6650a95" }
83+
spansy = { git = "https://github.com/tlsnotary/tlsn-utils", rev = "6168663" }
8484
uid-mux = { version = "0.2" }
85-
websocket-relay = { git = "https://github.com/tlsnotary/tlsn-utils", rev = "6650a95" }
85+
websocket-relay = { git = "https://github.com/tlsnotary/tlsn-utils", rev = "6168663" }
8686

8787
aes = { version = "0.8" }
8888
aes-gcm = { version = "0.9" }

crates/core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
//!
118118
//! builder
119119
//! // Use transcript encoding commitments.
120-
//! .default_kind(TranscriptCommitmentKind::Encoding)
120+
//! .commitment_kinds(&[TranscriptCommitmentKind::Encoding])
121121
//! // Disclose the first 10 bytes of the sent data.
122122
//! .reveal(&(0..10), Direction::Sent)?
123123
//! // Disclose all of the received data.

crates/core/src/transcript/commit.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ pub(crate) const MAX_TOTAL_COMMITTED_DATA: usize = 1_000_000_000;
2121

2222
/// Kind of transcript commitment.
2323
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
24+
#[non_exhaustive]
2425
pub enum TranscriptCommitmentKind {
2526
/// A commitment to encodings of the transcript.
2627
Encoding,

0 commit comments

Comments
 (0)