Merged
Conversation
…j/human_readable_authwits_2
…j/human_readable_authwits_2
Contributor
Docs PreviewYou can check your preview here. |
…j/human_readable_authwits_2
…j/human_readable_authwits_2
…j/human_readable_authwits_2
…j/human_readable_authwits_2
…j/human_readable_authwits_2
…j/human_readable_authwits_2
benesjan
reviewed
Jul 2, 2025
Contributor
benesjan
left a comment
There was a problem hiding this comment.
Very nice but needs more docs
noir-projects/aztec-nr/aztec/src/macros/functions/auth_registry.nr
Outdated
Show resolved
Hide resolved
noir-projects/noir-contracts/contracts/app/app_subscription_contract/src/main.nr
Show resolved
Hide resolved
…j/human_readable_authwits_2
nventuro
reviewed
Jul 2, 2025
noir-projects/noir-contracts/contracts/app/app_subscription_contract/src/main.nr
Show resolved
Hide resolved
yarn-project/pxe/src/contract_function_simulator/contract_function_simulator.ts
Show resolved
Hide resolved
Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
nventuro
approved these changes
Jul 3, 2025
Contributor
nventuro
left a comment
There was a problem hiding this comment.
Look how quickly they grow 🥹
danielntmd
pushed a commit
to danielntmd/aztec-packages
that referenced
this pull request
Jul 16, 2025
Initial implementation of human readable authwits. I've tried to separate concepts like follows: - Authorization: is the action to be authorized. By definition it's human-readable and contains rich information the user can interpret. - Auhtwit: Usually the result of signing the hash of an authorization, but more generally a piece of data that only the authorizer can generate from the human readable authorization. Authorizations are emitted as offchain effects to be displayed and/or verified. Authwits are validated against the user's account contract. This PR also introduces the `authorize_once` macro that replaces a lot of boilerplate authwit code while also capturing the args to be emitted as part of the human readable authorization. Its syntax will be improved (removing the `as_ctstring()` cast) once noir-lang/noir#9032 is synched to aztec-packages. --------- Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Initial implementation of human readable authwits. I've tried to separate concepts like follows:
Authorizations are emitted as offchain effects to be displayed and/or verified. Authwits are validated against the user's account contract.
This PR also introduces the
authorize_oncemacro that replaces a lot of boilerplate authwit code while also capturing the args to be emitted as part of the human readable authorization. Its syntax will be improved (removing theas_ctstring()cast) once noir-lang/noir#9032 is synched to aztec-packages.