Skip to content

Comments

feat: replace _validate_from for #[authorize_once] macro#247

Open
wei3erHase wants to merge 7 commits intodevfrom
feat/authorize-once
Open

feat: replace _validate_from for #[authorize_once] macro#247
wei3erHase wants to merge 7 commits intodevfrom
feat/authorize-once

Conversation

@wei3erHase
Copy link
Member

@wei3erHase wei3erHase commented Dec 29, 2025

Description

https://docs.aztec.network/developers/docs/aztec-js/how_to_use_authwit


Note

Migrates authorization to the #[authorize_once("from", "_nonce")] macro and removes bespoke authwit checks.

  • Add #[authorize_once] to NFT and Token contract entrypoints (private/public transfer, burn, deposit, withdraw, redeem, issue) and drop _validate_from_private/_validate_from_public calls
  • Remove authwit imports and helper implementations; retain _validate_minter
  • Update Aztec privacy guidelines to recommend #[authorize_once("from", "_nonce")]
  • Minor TS cleanup in tests (remove unused import)

Written by Cursor Bugbot for commit ca6ed6a. This will update automatically on new commits. Configure here.

zkfrov and others added 3 commits December 17, 2025 18:59
# 🤖 Linear

Closes AZT-XXX

## Description
# 🤖 Linear

Closes AZT-494

## Description 

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Upgrade to Aztec v3 devnet.20251212 and refactor Noir contracts,
benchmarks, JS tests, and GitHub workflows to new APIs and state
patterns.
> 
> - **Dependencies & Versions**
> - Bump package to `3.0.0-devnet.20251212`; switch all Aztec deps and
Noir `Nargo.toml` tags to `v3.0.0-devnet.20251212`.
>   - Update `config.aztecVersion` and yarn lock to devnet.
> - **Contracts (Noir)**
> - Replace `Map<AztecAddress, PrivateSet<...>>` with
`Owned<PrivateSet<...>>` and use `get_storage_slot()`.
> - Update note/message APIs (`emit` → `deliver`, use
`MessageDelivery.CONSTRAINED_ONCHAIN`).
> - Refactor NFT note to `NFTNote { token_id }`, revise note
hash/nullifier and partial-note commitment logic.
> - Adjust token balance set to use `OwnedStateVariable` and
`MaybeNoteMessage`; adapt getters and storage access.
> - **Benchmarks**
> - Inject `AztecLMDBStoreV2` into contexts and add `teardown` to delete
store.
> - Adapt to new deploy helpers (`deployEscrow` returns `{ contract,
instance }`) and updated method signatures.
> - Comment out `escrow` and `logic` entries in root `Nargo.toml`
benchmark config.
> - **JS Tests/Utils**
> - Update crypto/import paths, event fetching API (scoped options,
`.event` access), and private log field indexing.
> - Use shared node from setup; adjust `deployEscrow` to return instance
for `registerContract`.
> - **CI/CD**
> - Workflows: use "local network" nomenclature, ensure Buildx, tag
docker `latest`, start/kill `--local-network`, and minor step renames in
benchmarks/tests.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
1a3fca1. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: zorzal <zorzal@defi.sucks>
Base automatically changed from chore/nightly to dev January 14, 2026 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants