This repository was archived by the owner on Apr 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
fix: Implements handling of the high limb during fixed base scalar multiplication #535
Merged
Merged
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
cac232b
add a test which uses the high limb
kevaundray 42c782a
add check for limbs not being less than 2^128
kevaundray f724ec3
update fixed base mul code
kevaundray bbb307f
move 16 byte check to fields
kevaundray aa3148f
move comment up
kevaundray 3a20c9e
Update blackbox_solver/src/barretenberg/wasm/scalar_mul.rs
kevaundray 7f65bd5
chore: use `try_into_u128` in `fixed_base`
TomAFrench File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,18 @@ | ||
| // See `fixed_base_scalar_mul_circuit` integration test in `acir/tests/test_program_serialization.rs`. | ||
| export const bytecode = Uint8Array.from([ | ||
| 31, 139, 8, 0, 0, 0, 0, 0, 0, 255, 93, 202, 65, 10, 0, 64, 8, 2, 64, 183, 246, | ||
| 212, 255, 223, 27, 21, 21, 72, 130, 12, 136, 31, 192, 67, 167, 180, 209, 73, | ||
| 201, 234, 249, 109, 132, 84, 218, 3, 23, 46, 165, 61, 88, 0, 0, 0, | ||
| 31, 139, 8, 0, 0, 0, 0, 0, 0, 255, 77, 138, 91, 10, 0, 48, 12, 194, 178, 215, | ||
| 207, 78, 189, 163, 175, 165, 10, 21, 36, 10, 57, 192, 160, 146, 188, 226, 139, | ||
| 78, 113, 69, 183, 190, 61, 111, 218, 182, 231, 124, 68, 185, 243, 207, 92, 0, | ||
| 0, 0, | ||
| ]); | ||
| export const initialWitnessMap = new Map([ | ||
| [1, "0x0000000000000000000000000000000000000000000000000000000000000001"], | ||
| [2, "0x0000000000000000000000000000000000000000000000000000000000000000"], | ||
| ]); | ||
|
|
||
| export const expectedWitnessMap = new Map([ | ||
| [1, "0x0000000000000000000000000000000000000000000000000000000000000001"], | ||
| [2, "0x0000000000000000000000000000000000000000000000000000000000000001"], | ||
| [3, "0x0000000000000002cf135e7506a45d632d270d45f1181294833fc48d823f272c"], | ||
| [2, "0x0000000000000000000000000000000000000000000000000000000000000000"], | ||
| [3, "0x0000000000000000000000000000000000000000000000000000000000000001"], | ||
| [4, "0x0000000000000002cf135e7506a45d632d270d45f1181294833fc48d823f272c"], | ||
| ]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.