Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
870 changes: 448 additions & 422 deletions Cargo.lock

Large diffs are not rendered by default.

46 changes: 23 additions & 23 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ tlsn-formats = { path = "crates/formats" }
tlsn-hmac-sha256 = { path = "crates/components/hmac-sha256" }
tlsn-key-exchange = { path = "crates/components/key-exchange" }
tlsn-mpc-tls = { path = "crates/mpc-tls" }
tlsn-mux = { git = "https://github.com/tlsnotary/tlsn-utils", rev = "64722f7" }
tlsn-mux = { git = "https://github.com/tlsnotary/tlsn-utils", rev = "e99c00d" }
tlsn-server-fixture = { path = "crates/server-fixture/server" }
tlsn-server-fixture-certs = { path = "crates/server-fixture/certs" }
tlsn-tls-client = { path = "crates/tls/client" }
Expand All @@ -71,27 +71,27 @@ tlsn-sdk-core = { path = "crates/sdk-core" }
tlsn-wasm = { path = "crates/wasm" }
tlsn = { path = "crates/tlsn" }

mpz-circuits = { git = "https://github.com/privacy-ethereum/mpz", rev = "v0.1.0-alpha.6" }
mpz-circuits-data = { git = "https://github.com/privacy-ethereum/mpz", rev = "v0.1.0-alpha.6" }
mpz-memory-core = { git = "https://github.com/privacy-ethereum/mpz", rev = "v0.1.0-alpha.6" }
mpz-common = { git = "https://github.com/privacy-ethereum/mpz", rev = "v0.1.0-alpha.6" }
mpz-core = { git = "https://github.com/privacy-ethereum/mpz", rev = "v0.1.0-alpha.6" }
mpz-vm-core = { git = "https://github.com/privacy-ethereum/mpz", rev = "v0.1.0-alpha.6" }
mpz-garble = { git = "https://github.com/privacy-ethereum/mpz", rev = "v0.1.0-alpha.6" }
mpz-garble-core = { git = "https://github.com/privacy-ethereum/mpz", rev = "v0.1.0-alpha.6" }
mpz-ole = { git = "https://github.com/privacy-ethereum/mpz", rev = "v0.1.0-alpha.6" }
mpz-ot = { git = "https://github.com/privacy-ethereum/mpz", rev = "v0.1.0-alpha.6" }
mpz-share-conversion = { git = "https://github.com/privacy-ethereum/mpz", rev = "v0.1.0-alpha.6" }
mpz-fields = { git = "https://github.com/privacy-ethereum/mpz", rev = "v0.1.0-alpha.6" }
mpz-zk = { git = "https://github.com/privacy-ethereum/mpz", rev = "v0.1.0-alpha.6" }
mpz-hash = { git = "https://github.com/privacy-ethereum/mpz", rev = "v0.1.0-alpha.6", default-features = false }
mpz-ideal-vm = { git = "https://github.com/privacy-ethereum/mpz", rev = "v0.1.0-alpha.6" }
mpz-circuits = { git = "https://github.com/privacy-ethereum/mpz", rev = "3acfac364ec559a117999c10c782e2b28e83eddf" }
mpz-circuits-data = { git = "https://github.com/privacy-ethereum/mpz", rev = "3acfac364ec559a117999c10c782e2b28e83eddf" }
mpz-memory-core = { git = "https://github.com/privacy-ethereum/mpz", rev = "3acfac364ec559a117999c10c782e2b28e83eddf" }
mpz-common = { git = "https://github.com/privacy-ethereum/mpz", rev = "3acfac364ec559a117999c10c782e2b28e83eddf" }
mpz-core = { git = "https://github.com/privacy-ethereum/mpz", rev = "3acfac364ec559a117999c10c782e2b28e83eddf" }
mpz-vm-core = { git = "https://github.com/privacy-ethereum/mpz", rev = "3acfac364ec559a117999c10c782e2b28e83eddf" }
mpz-garble = { git = "https://github.com/privacy-ethereum/mpz", rev = "3acfac364ec559a117999c10c782e2b28e83eddf" }
mpz-garble-core = { git = "https://github.com/privacy-ethereum/mpz", rev = "3acfac364ec559a117999c10c782e2b28e83eddf" }
mpz-ole = { git = "https://github.com/privacy-ethereum/mpz", rev = "3acfac364ec559a117999c10c782e2b28e83eddf" }
mpz-ot = { git = "https://github.com/privacy-ethereum/mpz", rev = "3acfac364ec559a117999c10c782e2b28e83eddf" }
mpz-share-conversion = { git = "https://github.com/privacy-ethereum/mpz", rev = "3acfac364ec559a117999c10c782e2b28e83eddf" }
mpz-fields = { git = "https://github.com/privacy-ethereum/mpz", rev = "3acfac364ec559a117999c10c782e2b28e83eddf" }
mpz-zk = { git = "https://github.com/privacy-ethereum/mpz", rev = "3acfac364ec559a117999c10c782e2b28e83eddf" }
mpz-hash = { git = "https://github.com/privacy-ethereum/mpz", rev = "3acfac364ec559a117999c10c782e2b28e83eddf", default-features = false }
mpz-ideal-vm = { git = "https://github.com/privacy-ethereum/mpz", rev = "3acfac364ec559a117999c10c782e2b28e83eddf" }

futures-plex = { git = "https://github.com/tlsnotary/tlsn-utils", rev = "64722f7" }
futures-plex = { git = "https://github.com/tlsnotary/tlsn-utils", rev = "e99c00d" }
rangeset = { version = "0.4" }
serio = { version = "0.2" }
spansy = { git = "https://github.com/tlsnotary/tlsn-utils", rev = "64722f7" }
websocket-relay = { git = "https://github.com/tlsnotary/tlsn-utils", rev = "64722f7" }
spansy = { git = "https://github.com/tlsnotary/tlsn-utils", rev = "e99c00d" }
websocket-relay = { git = "https://github.com/tlsnotary/tlsn-utils", rev = "e99c00d" }

aead = { version = "0.4" }
aes = { version = "0.8" }
Expand Down Expand Up @@ -137,10 +137,10 @@ opaque-debug = { version = "0.3" }
p256 = { version = "0.13" }
pin-project-lite = { version = "0.2" }
pollster = { version = "0.4" }
rand = { version = "0.9" }
rand_chacha = { version = "0.9" }
rand_core = { version = "0.9" }
rand06-compat = { version = "0.1" }
rand = { version = "0.10" }
rand_chacha = { version = "0.10" }
rand_core = { version = "0.10" }
rand06-compat = { git = "https://github.com/tlsnotary/tlsn-utils", rev = "e99c00d" }
rayon = { version = "1.10" }
regex = { version = "1.10" }
ring = { version = "0.17" }
Expand Down
2 changes: 1 addition & 1 deletion crates/attestation/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ p256 = { workspace = true, features = ["serde"] }
k256 = { workspace = true }
opaque-debug = { workspace = true }
rand = { workspace = true }
rand06-compat = { workspace = true }
serde = { workspace = true, features = ["derive"] }
thiserror = { workspace = true }
tiny-keccak = { workspace = true, features = ["keccak"] }
Expand All @@ -27,7 +28,6 @@ bincode = { workspace = true }
alloy-primitives = { version = "1.3.1", default-features = false }
alloy-signer = { version = "1.0", default-features = false }
alloy-signer-local = { version = "1.0", default-features = false }
rand06-compat = { workspace = true }
rangeset = { workspace = true }
rstest = { workspace = true }
tlsn-core = { workspace = true, features = ["fixtures"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/attestation/src/builder.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::error::Error;

use rand::{Rng, rng};
use rand::{RngExt, rng};

use tlsn_core::{
connection::{ConnectionInfo, ServerEphemKey},
Expand Down
2 changes: 1 addition & 1 deletion crates/attestation/tests/api.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use rand::{Rng, SeedableRng, rngs::StdRng};
use rand::{RngExt, SeedableRng, rngs::StdRng};
use rangeset::set::RangeSet;
use tlsn_attestation::{
Attestation, AttestationConfig, CryptoProvider,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ tlsn-data-fixtures = { path = "../../../data-fixtures" }

use std::fs;

use rand::{Rng, SeedableRng, rngs::StdRng};
use rand::{RngExt, SeedableRng, rngs::StdRng};
use tlsn_attestation::{
Attestation, AttestationConfig, CryptoProvider,
request::{Request, RequestConfig},
Expand Down
2 changes: 1 addition & 1 deletion crates/components/hmac-sha256/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ mod tests {
Execute,
memory::{Array, MemoryExt, ViewExt, binary::U8},
};
use rand::{Rng, SeedableRng, rngs::StdRng};
use rand::{RngExt, SeedableRng, rngs::StdRng};

#[tokio::test]
async fn test_prf_reduced() {
Expand Down
2 changes: 1 addition & 1 deletion crates/components/hmac-sha256/src/prf/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ mod tests {
Execute,
memory::{Array, MemoryExt, ViewExt, binary::U8},
};
use rand::{Rng, rngs::ThreadRng};
use rand::{RngExt, rngs::ThreadRng};

const IPAD: [u8; 64] = [0x36; 64];
const OPAD: [u8; 64] = [0x5c; 64];
Expand Down
2 changes: 1 addition & 1 deletion crates/components/hmac-sha256/src/test_utils.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::{sha256, state_to_bytes};
use rand::{Rng, SeedableRng, rngs::StdRng};
use rand::{RngExt, SeedableRng, rngs::StdRng};

pub(crate) const SHA256_IV: [u32; 8] = [
0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19,
Expand Down
2 changes: 1 addition & 1 deletion crates/components/key-exchange/src/point_addition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ mod tests {
EncodedPoint, NonZeroScalar, ProjectivePoint, PublicKey,
elliptic_curve::sec1::{FromEncodedPoint, ToEncodedPoint},
};
use rand::{Rng, SeedableRng, rngs::StdRng};
use rand::{RngExt, SeedableRng, rngs::StdRng};

#[tokio::test]
async fn test_point_addition() {
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/fixtures/transcript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use aead::Payload as AeadPayload;
use aes_gcm::{Aes128Gcm, NewAead, aead::Aead};
#[allow(deprecated)]
use generic_array::GenericArray;
use rand::{Rng, SeedableRng, rngs::StdRng};
use rand::{RngExt, SeedableRng, rngs::StdRng};
use tls_core::msgs::{
base::Payload,
codec::Codec,
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ impl Blinder {
impl Distribution<Blinder> for StandardUniform {
fn sample<R: rand::Rng + ?Sized>(&self, rng: &mut R) -> Blinder {
let mut blinder = [0; 16];
rng.fill(&mut blinder);
rng.fill_bytes(&mut blinder);
Blinder(blinder)
}
}
Expand Down
6 changes: 3 additions & 3 deletions crates/core/src/transcript/proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ impl fmt::Display for TranscriptProofBuilderError {
#[allow(clippy::single_range_in_vec_init)]
#[cfg(test)]
mod tests {
use rand::{Rng, SeedableRng};
use rand::{RngExt, SeedableRng};
use rangeset::prelude::*;
use rstest::rstest;
use tlsn_data_fixtures::http::{request::GET_WITH_HEADER, response::OK_JSON};
Expand Down Expand Up @@ -692,7 +692,7 @@ mod tests {
#[case] reveal_recv_rangeset: RangeSet<usize>,
#[case] success: bool,
) {
use rand::{Rng, SeedableRng};
use rand::{RngExt, SeedableRng};

let mut rng = rand::rngs::StdRng::seed_from_u64(0);
let transcript = Transcript::new(GET_WITH_HEADER, OK_JSON);
Expand Down Expand Up @@ -763,7 +763,7 @@ mod tests {
#[case] uncovered_sent_rangeset: RangeSet<usize>,
#[case] uncovered_recv_rangeset: RangeSet<usize>,
) {
use rand::{Rng, SeedableRng};
use rand::{RngExt, SeedableRng};

let mut rng = rand::rngs::StdRng::seed_from_u64(0);
let transcript = Transcript::new(GET_WITH_HEADER, OK_JSON);
Expand Down
Loading
Loading