Skip to content
Open
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
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ features = ["nightly"]
keccak = { version = "0.1.0", default-features = false }
byteorder = { version = "1.2.4", default-features = false }
zeroize = { version = "1", default-features = false, features = ["zeroize_derive"] }
rand_core = { version = "0.5", default-features = false }
rand_core = { version = "0.9", default-features = false, features = ["os_rng"] }
hex = {version = "0.3", default-features = false, optional = true}

[dev-dependencies]
strobe-rs = "0.5"
curve25519-dalek = "2"
rand_chacha = "0.2"
curve25519-dalek = { version = "4", features = ["rand_core"] }
rand_chacha = "0.9"

[features]
default = ["std"]
Expand Down
5 changes: 0 additions & 5 deletions src/transcript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,11 +366,6 @@
self.strobe.meta_ad(&dest_len, false);
self.strobe.prf(dest, false);
}

fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), rand_core::Error> {
self.fill_bytes(dest);
Ok(())
}
}

impl rand_core::CryptoRng for TranscriptRng {}
Expand Down Expand Up @@ -521,10 +516,10 @@
.rekey_with_witness_bytes(b"witness", witness2)
.finalize(&mut ChaChaRng::from_seed([0; 32]));

let s1 = Scalar::random(&mut r1);

Check failure on line 519 in src/transcript.rs

View workflow job for this annotation

GitHub Actions / native-test (stable, ubuntu-latest)

the trait bound `TranscriptRng: rand_core::CryptoRngCore` is not satisfied

Check failure on line 519 in src/transcript.rs

View workflow job for this annotation

GitHub Actions / native-test (stable, ubuntu-latest)

the trait bound `TranscriptRng: rand_core::CryptoRngCore` is not satisfied

Check failure on line 519 in src/transcript.rs

View workflow job for this annotation

GitHub Actions / native-test (nightly, ubuntu-latest)

the trait bound `TranscriptRng: rand_core::CryptoRngCore` is not satisfied

Check failure on line 519 in src/transcript.rs

View workflow job for this annotation

GitHub Actions / native-test (nightly, ubuntu-latest)

the trait bound `TranscriptRng: rand_core::CryptoRngCore` is not satisfied
let s2 = Scalar::random(&mut r2);

Check failure on line 520 in src/transcript.rs

View workflow job for this annotation

GitHub Actions / native-test (stable, ubuntu-latest)

the trait bound `TranscriptRng: rand_core::CryptoRngCore` is not satisfied

Check failure on line 520 in src/transcript.rs

View workflow job for this annotation

GitHub Actions / native-test (stable, ubuntu-latest)

the trait bound `TranscriptRng: rand_core::CryptoRngCore` is not satisfied

Check failure on line 520 in src/transcript.rs

View workflow job for this annotation

GitHub Actions / native-test (nightly, ubuntu-latest)

the trait bound `TranscriptRng: rand_core::CryptoRngCore` is not satisfied

Check failure on line 520 in src/transcript.rs

View workflow job for this annotation

GitHub Actions / native-test (nightly, ubuntu-latest)

the trait bound `TranscriptRng: rand_core::CryptoRngCore` is not satisfied
let s3 = Scalar::random(&mut r3);

Check failure on line 521 in src/transcript.rs

View workflow job for this annotation

GitHub Actions / native-test (stable, ubuntu-latest)

the trait bound `TranscriptRng: rand_core::CryptoRngCore` is not satisfied

Check failure on line 521 in src/transcript.rs

View workflow job for this annotation

GitHub Actions / native-test (stable, ubuntu-latest)

the trait bound `TranscriptRng: rand_core::CryptoRngCore` is not satisfied

Check failure on line 521 in src/transcript.rs

View workflow job for this annotation

GitHub Actions / native-test (nightly, ubuntu-latest)

the trait bound `TranscriptRng: rand_core::CryptoRngCore` is not satisfied

Check failure on line 521 in src/transcript.rs

View workflow job for this annotation

GitHub Actions / native-test (nightly, ubuntu-latest)

the trait bound `TranscriptRng: rand_core::CryptoRngCore` is not satisfied
let s4 = Scalar::random(&mut r4);

Check failure on line 522 in src/transcript.rs

View workflow job for this annotation

GitHub Actions / native-test (stable, ubuntu-latest)

the trait bound `TranscriptRng: rand_core::CryptoRngCore` is not satisfied

Check failure on line 522 in src/transcript.rs

View workflow job for this annotation

GitHub Actions / native-test (stable, ubuntu-latest)

the trait bound `TranscriptRng: rand_core::CryptoRngCore` is not satisfied

Check failure on line 522 in src/transcript.rs

View workflow job for this annotation

GitHub Actions / native-test (nightly, ubuntu-latest)

the trait bound `TranscriptRng: rand_core::CryptoRngCore` is not satisfied

Check failure on line 522 in src/transcript.rs

View workflow job for this annotation

GitHub Actions / native-test (nightly, ubuntu-latest)

the trait bound `TranscriptRng: rand_core::CryptoRngCore` is not satisfied

// Transcript t1 has different commitments than t2, t3, t4, so
// it should produce distinct challenges from all of them.
Expand Down
Loading