-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: variable_base_scalar_mul
blackbox func
#6039
feat: variable_base_scalar_mul
blackbox func
#6039
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Benchmark resultsNo metrics with a significant change found. Detailed resultsAll benchmarks are run on txs on the This benchmark source data is available in JSON format on S3 here. L2 block published to L1Each column represents the number of txs on an L2 block published to L1.
L2 chain processingEach column represents the number of blocks on the L2 chain where each block has 16 txs.
Circuits statsStats on running time and I/O sizes collected for every circuit run across all benchmarks.
Tree insertion statsThe duration to insert a fixed batch of leaves into each tree type.
MiscellaneousTransaction sizes based on how many contract classes are registered in the tx.
Transaction size based on fee payment method
Transaction processing duration by data writes.
|
59fa1d8
to
19ffa0e
Compare
19ffa0e
to
409d6b7
Compare
variable_base_scalar_mul
blacbox func
17cc273
to
2464302
Compare
@@ -1,3 +1,4 @@ | |||
// TODO(https://github.com/AztecProtocol/aztec-packages/issues/6058): rename this file to something more generic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will tackle this issue in a separate PR.
2464302
to
1072846
Compare
@@ -1,3 +1,4 @@ | |||
// TODO(https://github.com/AztecProtocol/aztec-packages/issues/6058): rename this file to something more generic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will tackle this issue in a separate PR.
variable_base_scalar_mul
blacbox funcvariable_base_scalar_mul
blackbox func
noir/noir-repo/acvm-repo/bn254_blackbox_solver/src/fixed_base_scalar_mul.rs
Outdated
Show resolved
Hide resolved
noir/noir-repo/acvm-repo/bn254_blackbox_solver/src/fixed_base_scalar_mul.rs
Outdated
Show resolved
Hide resolved
We can follow this up in a separate PR but we may want to instead expose an equivalent to |
Opened an issue to replace this with an MSM opcode here: noir-lang/noir#4928 |
bdb456d
to
10ea4d4
Compare
@@ -141,12 +161,52 @@ mod grumpkin_fixed_base_scalar_mul { | |||
assert_eq!( | |||
res, | |||
Err(BlackBoxResolutionError::Failed( | |||
BlackBoxFunc::FixedBaseScalarMul, | |||
BlackBoxFunc::VariableBaseScalarMul, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This passed? I would expect it to return a FixedBaseScalarMul
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e4811b5
to
60d5f07
Compare
df898b9
to
aa56324
Compare
bb8be33
to
969c224
Compare
@@ -22,7 +22,7 @@ describe('e2e_state_vars', () => { | |||
beforeAll(async () => { | |||
({ teardown, wallet, pxe } = await setup(2)); | |||
contract = await DocsExampleContract.deploy(wallet).send().deployed(); | |||
}, 30_000); | |||
}, 60_000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This started failing for me in CI but the code in this PR is not used in this test so it should not lead to slowdown.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Currently we only had fixed_base_scalar_mul blackbox function available. With the new key stuff we need variable base as well. This PR is an attempt at implementing that.