Skip to content

Commit

Permalink
Remove Schnorr from stdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
aakoshh committed Dec 9, 2024
1 parent 909b22b commit 04940ae
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 260 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ fn call_foreign(
"sha256_compression" => sha256_compression(interner, args, location),
_ => {
let explanation = match name {
"schnorr_verify" => "Schnorr verification will be removed.".into(),
"and" | "xor" => "It should be turned into a binary operation.".into(),
"recursive_aggregation" => "A proof cannot be verified at comptime.".into(),
_ => {
Expand Down
1 change: 0 additions & 1 deletion docs/docs/noir/standard_library/black_box_fns.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ Here is a list of the current black box functions:

- [AES128](./cryptographic_primitives/ciphers.mdx#aes128)
- [SHA256](./cryptographic_primitives/hashes.mdx#sha256)
- [Schnorr signature verification](./cryptographic_primitives/schnorr.mdx)
- [Blake2s](./cryptographic_primitives/hashes.mdx#blake2s)
- [Blake3](./cryptographic_primitives/hashes.mdx#blake3)
- [Pedersen Hash](./cryptographic_primitives/hashes.mdx#pedersen_hash)
Expand Down

This file was deleted.

95 changes: 0 additions & 95 deletions noir_stdlib/src/schnorr.nr

This file was deleted.

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions test_programs/execution_success/schnorr/Nargo.toml

This file was deleted.

70 changes: 0 additions & 70 deletions test_programs/execution_success/schnorr/Prover.toml

This file was deleted.

24 changes: 0 additions & 24 deletions test_programs/execution_success/schnorr/src/main.nr

This file was deleted.

28 changes: 28 additions & 0 deletions tooling/nargo_cli/src/cli/test_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,3 +304,31 @@ fn display_test_report(

Ok(())
}

#[cfg(test)]
mod tests {
use std::io::Write;
use std::{thread, time::Duration};
use termcolor::{ColorChoice, StandardStream};

#[test]
fn test_stderr_lock() {
for i in 0..4 {
thread::spawn(move || {
let mut writer = StandardStream::stderr(ColorChoice::Always);
//let mut writer = writer.lock();

let mut show = |msg| {
thread::sleep(Duration::from_millis(10));
//println!("{i} {msg}");
writeln!(writer, "{i} {msg}").unwrap();
};

show("a");
show("b");
show("c");
});
}
thread::sleep(Duration::from_millis(100));
}
}

0 comments on commit 04940ae

Please sign in to comment.