Skip to content
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

msgpack serialization initial support #340

Merged
merged 105 commits into from
May 19, 2023
Merged

msgpack serialization initial support #340

merged 105 commits into from
May 19, 2023

Conversation

ludamad
Copy link
Collaborator

@ludamad ludamad commented Apr 21, 2023

Description

Lands msgpack support. This serialization scheme uses a JSON-like binary format, along with a custom schema compiler, to make typesafe bindings for the C++. As an example, two functions are bound. More functions will be bound in followup, and eventually old serialization code removed. See barretenberg's msgpack.hpp for more information on usage.

End-to-end example of a msgpack cbind

Checklist:

  • I have reviewed my diff in github, line by line.
  • Every change is related to the PR description.
  • I have linked this pull request to the issue(s) that it resolves.
  • There are no unexpected formatting changes, superfluous debug logs, or commented-out code.
  • The branch has been merged or rebased against the head of its merge target.
  • I'm happy for the PR to be merged at the reviewer's next convenience.

@ludamad ludamad changed the title msgpack: end-to-end experiment msgpack serialization initial support May 18, 2023
Copy link
Collaborator

@dbanks12 dbanks12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Well done! Some minor comments.

circuits/cpp/src/CMakeLists.txt Show resolved Hide resolved
Comment on lines -106 to -108
// Leaves that will be added to the new trees
std::array<NT::fr, KERNEL_NEW_COMMITMENTS_LENGTH * 2> const commitment_leaves;

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup

yarn-project/aztec-rpc/src/contract_tree/contract_tree.ts Outdated Show resolved Hide resolved
yarn-project/circuits.js/src/structs/function_data.ts Outdated Show resolved Hide resolved
yarn-project/foundation/src/serialize/types.ts Outdated Show resolved Hide resolved
@ludamad ludamad merged commit 38e43da into master May 19, 2023
@ludamad ludamad deleted the adam/msgpack branch May 19, 2023 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants