Skip to content
Merged
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
216 changes: 126 additions & 90 deletions CHANGELOG.md

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions benches/circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use pprof::criterion::{Output, PProfProfiler};

use orchard::{
builder::{Builder, BundleType},
bundle::BundlePoolRestrictions,
bundle::BundleVersion,
circuit::{OrchardCircuitVersion, ProvingKey, VerifyingKey},
keys::{FullViewingKey, Scope, SpendingKey},
value::NoteValue,
Expand All @@ -27,10 +27,12 @@ fn criterion_benchmark(c: &mut Criterion) {

let create_bundle = |num_recipients| {
let mut builder = Builder::new(
BundlePoolRestrictions::OrchardNu6_2Only,
BundleType::DEFAULT,
BundleVersion::orchard_v2(),
BundleVersion::orchard_v2().default_flags(),
Anchor::from_bytes([0; 32]).unwrap(),
);
)
.unwrap();
for _ in 0..num_recipients {
builder
.add_output(None, recipient, NoteValue::from_raw(10), [0; 512])
Expand Down
8 changes: 5 additions & 3 deletions benches/note_decryption.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion, Throughput};
use orchard::{
builder::{Builder, BundleType},
bundle::BundlePoolRestrictions,
bundle::BundleVersion,
circuit::{OrchardCircuitVersion, ProvingKey},
keys::{FullViewingKey, PreparedIncomingViewingKey, Scope, SpendingKey},
note_encryption::{CompactAction, OrchardDomain},
Expand Down Expand Up @@ -46,10 +46,12 @@ fn bench_note_decryption(c: &mut Criterion) {

let bundle = {
let mut builder = Builder::new(
BundlePoolRestrictions::OrchardNu6_2Only,
BundleType::DEFAULT,
BundleVersion::orchard_v2(),
BundleVersion::orchard_v2().default_flags(),
Anchor::from_bytes([0; 32]).unwrap(),
);
)
.unwrap();
// The builder pads to two actions, and shuffles their order. Add two recipients
// so the first action is always decryptable.
builder
Expand Down
Loading
Loading