-
Notifications
You must be signed in to change notification settings - Fork 129
msgpack: friendly binary serialization format #374
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
Merged
Merged
Changes from all commits
Commits
Show all changes
97 commits
Select commit
Hold shift + click to select a range
f5378ee
Regenerate pedersen lookup tables if they're empty
suyash67 6b4eaa9
re-init generator tables if they're empty.
suyash67 e884272
feat(nullifier_tree): make empty nullifier tree leaves hash be 0 (#360)
Maddiaa0 42b7f17
More generators for aztec3.
suyash67 16df5ac
update js vk (because we now use UP for merkle hashing)
suyash67 274c862
Helpers for ECDSA in A3 (#364)
suyash67 7ed6df4
feat(nullifier_tree): make empty nullifier tree leaves hash be 0 (#360)
Maddiaa0 27f5f8b
Change pedersen hash c_bind to use `pedersen_hash::lookup`.
suyash67 2a72649
feat: add msgpack-c submodule
ludamad 1ae2066
Give up on msgpack c_master
ludamad db7c2bb
Working hacky msgpack test
ludamad 8a3adc8
Interim work
ludamad b475c3f
Interim work
ludamad 5769a0c
Getting rid of memory hacks
ludamad 22a2c5d
fix: memory leaks
ludamad e110c27
Start of demoing cbinds
ludamad 0077d20
Align with other methods
ludamad a81f909
chore: Remove need to return from msgpack method
ludamad 4abc221
Iterate example
ludamad 8f4fb51
fix: Hack around generator issues
ludamad d4901fb
feat: iterate on msgpack in bb
ludamad b76b7b2
fix: fork msgpack for greater checks
ludamad 4f685b3
Refactor
ludamad 5662640
cleanup
ludamad 53e0e1b
Update turbo_circuit_constructor.cpp
ludamad 2322e82
chore: continued cleanup
ludamad 70aff20
chore: continued cleanup
ludamad 3a22e06
chore: continued cleanup
ludamad 8b5e224
Refactor
ludamad 0ebf8f5
Refactor
ludamad 47c4a1f
fix: ci
ludamad 3fb25dc
feat(wasm): hacks to make work in a fno-exceptions wasm environment
ludamad 493c678
feat(wasm): bump msgpack-c
ludamad b35018f
feat(msgpack): first 'complex' object bound
ludamad a234981
More wasm fixes. Was breaking throw() declaration
ludamad 403992e
Fix field serialization
ludamad 489c492
refactoring
ludamad 69b73c0
Update CMakeLists.txt
ludamad 7e9d3fa
Remove // TODO redundant with msgpack
ludamad e70396a
Merge remote-tracking branch 'origin/adam/msgpack-aztec3' into adam/m…
ludamad 1d350c9
Refactor to use macro
ludamad bf1630f
Refactor to use macro
ludamad f903ab1
fix printing bug
ludamad 0615923
fix: fieldd msgpack endianness fix
ludamad 8d37c48
Merge aztec3 branch
ludamad c3d90da
fix: remove shared ptr reference
ludamad 9aafc34
doc
ludamad 716ff15
Add static checking for MSGPACK usage
ludamad bc792d0
Revert log.hpp change
ludamad 73c4b64
Update struct_map_impl.hpp
ludamad 276a9a5
Revert
ludamad 91cb331
remote_build fix
ludamad 50551e6
Keep trying to init submodules
ludamad 3dbe446
Keep trying to init submodules
ludamad 9ca6b53
Bump
ludamad 76ae948
Add missing init_submodules
ludamad 37122e7
Msgpack test fix
ludamad 66e22e6
Msgpack test fix
ludamad 54b655d
Msgpack test fix
ludamad 432ba96
Msgpack test fix
ludamad ea1b6de
Update polynomial_store.test.cpp
ludamad 1afc7f9
Merge remote-tracking branch 'origin/master' into adam/msgpack-aztec3
ludamad 129c9aa
Merge remote-tracking branch 'origin/master' into adam/msgpack-aztec3
ludamad 38fb021
Merge master
ludamad de02925
Update msgpack error
ludamad 0018e93
Better abort distinguishing
ludamad 4f94d55
fix: join split VK hash
ludamad 5c569c7
Serialization updates
ludamad b32bd48
Fix circuits build
ludamad 4a4e899
Try to make circuits test work again
ludamad 5818f3a
Try to make circuits test work again
ludamad 4ad083e
Try to make circuits test work again
ludamad cec5613
fix: initialization warning
ludamad 930b283
fix: prefer default constructor for field, related cleanup
ludamad e9c4d6e
Grand rename
ludamad f5c4f4b
chore: remove unused funcs
ludamad 4cc89e5
Revert fields constructor change for now
ludamad 264225c
chore: Revert .circleci changes
ludamad 0e0df3c
chore: Revert foundation removal
ludamad e5d8fe5
Revert .gitmodules
ludamad 88f79c7
Update affine_element.hpp
ludamad a50c338
Update element.hpp
ludamad cb01cf9
Revert header optimizations
ludamad 17e61fa
Revert init line
ludamad 47b4ea9
Update polynomial_store.test.cpp
ludamad 33aceca
Revert header optimization
ludamad cfc5a2d
Merge remote-tracking branch 'origin/adam/msgpack-aztec3' into adam/m…
ludamad af1e97e
Update raw_pointer.hpp
ludamad e3c8f9d
Update raw_pointer.hpp
ludamad 712ca1c
Update func_traits.hpp documentation
ludamad d5ae7b4
Document msgpack methods in field_impl.hpp
ludamad e3d0368
Update msgpack.hpp
ludamad 6c16964
Update cbind.hpp
ludamad 4e7f48c
Update msgpack.hpp
ludamad 4533702
Update msgpack.hpp
ludamad 3ff51bb
Update schema_impl.hpp
ludamad 579cc77
Update g1.hpp
ludamad 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
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
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
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
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
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
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
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
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 |
|---|---|---|
|
|
@@ -925,7 +925,6 @@ element<Fq, Fr, T> element<Fq, Fr, T>::random_coordinates_on_curve(numeric::rand | |
| Fq yy; | ||
| Fq x; | ||
| Fq y; | ||
| Fq t0; | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. unused |
||
| while (!found_one) { | ||
| x = Fq::random_element(engine); | ||
| yy = x.sqr() * x + T::b; | ||
|
|
@@ -935,8 +934,6 @@ element<Fq, Fr, T> element<Fq, Fr, T>::random_coordinates_on_curve(numeric::rand | |
| auto [found_root, y1] = yy.sqrt(); | ||
| y = y1; | ||
| found_one = found_root; | ||
| // t0 = y.sqr(); | ||
| // found_one = (yy == t0); | ||
| } | ||
| return { x, y, Fq::one() }; | ||
| } | ||
|
|
||
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 |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| #include <gtest/gtest.h> | ||
| #include "barretenberg/serialize/test_helper.hpp" | ||
| #include "barretenberg/ecc/fields/field.hpp" | ||
|
|
||
| TEST(msgpack_tests, msgpack_field) | ||
| { | ||
| auto [actual, expected] = msgpack_roundtrip(barretenberg::fr{1ull, 2ull, 3ull, 4ull}); | ||
| EXPECT_EQ(actual, expected); | ||
| } |
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 |
|---|---|---|
|
|
@@ -96,7 +96,6 @@ TEST(Sumcheck, PolynomialNormalization) | |
| std::array<FF, multivariate_n> id_3; | ||
| std::array<FF, multivariate_n> lagrange_first; | ||
| std::array<FF, multivariate_n> lagrange_last; | ||
| std::array<FF, multivariate_n> pow_zeta; | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. unused |
||
| for (size_t i = 0; i < multivariate_n; i++) { | ||
| w_l[i] = FF::random_element(); | ||
| w_r[i] = FF::random_element(); | ||
|
|
||
Oops, something went wrong.
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.