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

Auxiliary data for program evaluation #475

Merged
merged 18 commits into from
Nov 9, 2023
Merged

Auxiliary data for program evaluation #475

merged 18 commits into from
Nov 9, 2023

Conversation

jakehemmerle
Copy link
Contributor

@jakehemmerle jakehemmerle commented Nov 2, 2023

This allows programs to include an auxiliary data field, which can include data relevant to the evaluation of the program (eg zero knowledge proofs, third party signatures), but data that should not be part of the actual message that will be signed.

@frankiebee @jawndiego This changes the JSON payload body of the /sign_tx endpoint as follows:

  • transaction_request is renamed to message
  • optional new field auxilary_data is a hex encoded string (just like message) of the extra data the user might want to include in their signature request

Copy link

vercel bot commented Nov 2, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
entropy-core ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 9, 2023 0:23am

crypto/server/Cargo.toml Outdated Show resolved Hide resolved
crypto/server/src/user/api.rs Outdated Show resolved Hide resolved
@HCastano
Copy link
Collaborator

HCastano commented Nov 3, 2023

(I'm gonna take a look at this in a couple of hours, don't merge it in yet 🙏)

Copy link
Collaborator

@HCastano HCastano left a comment

Choose a reason for hiding this comment

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

Left a few comments, but otherwise looks good.

Can you add an entry to the CHANGELOG and indicate that this is a breaking change?

crypto/server/src/user/api.rs Outdated Show resolved Hide resolved
crypto/server/src/user/api.rs Outdated Show resolved Hide resolved
crypto/server/src/user/api.rs Outdated Show resolved Hide resolved
crypto/server/src/user/tests.rs Outdated Show resolved Hide resolved
crypto/server/src/user/tests.rs Outdated Show resolved Hide resolved
crypto/testing-utils/src/constants.rs Outdated Show resolved Hide resolved
pallets/transaction-pause/src/tests.rs Show resolved Hide resolved
@HCastano HCastano changed the title feat: auxiliary data for program evaluation Auxiliary data for program evaluation Nov 3, 2023
@HCastano
Copy link
Collaborator

HCastano commented Nov 3, 2023

(Changed the title since we don't use conventional commits)

jakehemmerle and others added 2 commits November 6, 2023 13:27
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>
Copy link
Collaborator

@HCastano HCastano left a comment

Choose a reason for hiding this comment

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

Thanks for answering my questions. Still missing a CHANGELOG entry 😉

crypto/server/Cargo.toml Outdated Show resolved Hide resolved
crypto/server/src/user/api.rs Outdated Show resolved Hide resolved
crypto/server/src/user/tests.rs Outdated Show resolved Hide resolved
crypto/server/src/user/tests.rs Outdated Show resolved Hide resolved
crypto/testing-utils/src/constants.rs Outdated Show resolved Hide resolved
crypto/server/src/helpers/signing.rs Show resolved Hide resolved
crypto/server/src/user/api.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@HCastano HCastano left a comment

Choose a reason for hiding this comment

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

Just the CHANGELOG thing, but otherwise looks good!

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
jakehemmerle and others added 2 commits November 8, 2023 18:30
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>
@jakehemmerle jakehemmerle merged commit b0bf381 into master Nov 9, 2023
5 checks passed
@jakehemmerle jakehemmerle deleted the add-aux-data branch November 9, 2023 03:04
ameba23 added a commit that referenced this pull request Nov 14, 2023
* master:
  Integration test for validator joining network (#493)
  Add `ENTROPY_NODE` environment variable (#497)
  Change `SocketAddr` type for `String` (#496)
  Allow big protocol messages (#495)
  Add test for `EncryptedConnection` (#494)
  Use bincode rather than JSON for protocol and subscribe messages (#492)
  Remark on possible need to address TSS server from the Docker host. (#490)
  no proactive refresh on private key visibility (#485)
  Auxiliary data for program evaluation (#475)
  Validate proactive refresh endpoint (#483)
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