Skip to content

refactor(authwit): split into utils/private/public#23214

Draft
dbanks12 wants to merge 16 commits into
merge-train/fairiesfrom
dbanks12/authwit-split
Draft

refactor(authwit): split into utils/private/public#23214
dbanks12 wants to merge 16 commits into
merge-train/fairiesfrom
dbanks12/authwit-split

Conversation

@dbanks12

Copy link
Copy Markdown
Contributor

Splits aztec-nr/aztec/src/authwit/auth.nr into common/private/public submodules. No behavior change.

@dbanks12 dbanks12 changed the base branch from merge-train/fairies to graphite-base/23214 May 13, 2026 17:27
@dbanks12 dbanks12 force-pushed the dbanks12/authwit-split branch from 46be8da to 3aa310c Compare May 13, 2026 17:27
@dbanks12 dbanks12 changed the base branch from graphite-base/23214 to dbanks12/shift-protocol-addresses May 13, 2026 17:28
@dbanks12 dbanks12 force-pushed the dbanks12/authwit-split branch from 3aa310c to 2a9f5a2 Compare May 13, 2026 18:47
@dbanks12 dbanks12 force-pushed the dbanks12/shift-protocol-addresses branch from caf7ccf to e07ba01 Compare May 13, 2026 19:28
@dbanks12 dbanks12 force-pushed the dbanks12/authwit-split branch from 2a9f5a2 to 061c06b Compare May 13, 2026 19:28
@dbanks12 dbanks12 force-pushed the dbanks12/shift-protocol-addresses branch from e07ba01 to d2f6d24 Compare May 13, 2026 21:06
@dbanks12 dbanks12 force-pushed the dbanks12/authwit-split branch from 061c06b to 7324ae0 Compare May 13, 2026 21:06
@dbanks12 dbanks12 changed the base branch from dbanks12/shift-protocol-addresses to graphite-base/23214 May 13, 2026 21:15
@dbanks12 dbanks12 force-pushed the dbanks12/authwit-split branch from 7324ae0 to 8e7c296 Compare May 13, 2026 21:15
@dbanks12 dbanks12 force-pushed the dbanks12/authwit-split branch from 8e7c296 to e04739f Compare May 14, 2026 13:42
@dbanks12 dbanks12 changed the base branch from graphite-base/23214 to dbanks12/standard-contracts-pin-artifacts May 14, 2026 13:42
@dbanks12 dbanks12 force-pushed the dbanks12/standard-contracts-pin-artifacts branch from 3702cda to c291b97 Compare May 14, 2026 14:18
@dbanks12 dbanks12 force-pushed the dbanks12/authwit-split branch from e04739f to 20bd4d9 Compare May 14, 2026 14:18
@dbanks12 dbanks12 force-pushed the dbanks12/standard-contracts-pin-artifacts branch from c291b97 to 91cba07 Compare May 14, 2026 19:26
@dbanks12 dbanks12 force-pushed the dbanks12/authwit-split branch from 20bd4d9 to 5ea28bf Compare May 14, 2026 19:26
@dbanks12 dbanks12 force-pushed the dbanks12/standard-contracts-pin-artifacts branch from 91cba07 to 991fe58 Compare May 14, 2026 19:37
@dbanks12 dbanks12 force-pushed the dbanks12/authwit-split branch from 5ea28bf to 04a5762 Compare May 14, 2026 19:37
@dbanks12 dbanks12 force-pushed the dbanks12/standard-contracts-pin-artifacts branch from 991fe58 to c312b64 Compare May 14, 2026 19:45
@dbanks12 dbanks12 force-pushed the dbanks12/standard-contracts-pin-artifacts branch from 4c835f9 to d6e9df3 Compare May 26, 2026 19:46
@dbanks12 dbanks12 force-pushed the dbanks12/authwit-split branch from d66c264 to 8f3cc74 Compare May 26, 2026 19:47
@dbanks12 dbanks12 force-pushed the dbanks12/standard-contracts-pin-artifacts branch from d6e9df3 to 86d275f Compare May 26, 2026 19:47
@dbanks12 dbanks12 force-pushed the dbanks12/authwit-split branch from 8f3cc74 to affed80 Compare May 26, 2026 19:52
@dbanks12 dbanks12 force-pushed the dbanks12/standard-contracts-pin-artifacts branch from 86d275f to 9e247a0 Compare May 26, 2026 19:52
@dbanks12 dbanks12 force-pushed the dbanks12/authwit-split branch from affed80 to 9d6c7b8 Compare May 26, 2026 20:11
@dbanks12 dbanks12 force-pushed the dbanks12/standard-contracts-pin-artifacts branch 2 times, most recently from 77567be to 22d9842 Compare May 26, 2026 20:15
@dbanks12 dbanks12 force-pushed the dbanks12/authwit-split branch 2 times, most recently from 267bd1d to 72a2ae7 Compare May 26, 2026 20:36
@dbanks12 dbanks12 force-pushed the dbanks12/standard-contracts-pin-artifacts branch from 22d9842 to b17d197 Compare May 26, 2026 20:36
@dbanks12 dbanks12 force-pushed the dbanks12/authwit-split branch from 72a2ae7 to 4791e9f Compare May 26, 2026 20:47
@dbanks12 dbanks12 force-pushed the dbanks12/standard-contracts-pin-artifacts branch 2 times, most recently from 5c65007 to f753b35 Compare May 27, 2026 13:57
dbanks12 added 16 commits May 28, 2026 20:24
…ad provider method

EmbeddedWallet now registers the MultiCallEntrypoint instance with PXE on
creation (mirroring registerAuthRegistry), so DefaultMultiCallEntrypoint
works post-demotion. Removed unused getMulticallContract from the account
contracts provider interface and impls.
multi_call_entrypoint is now a standard (non-protocol) contract. The SDK's
self-paid account deploy flow (DeployAccountMethod with from = NO_FROM) routes
its payload through the multi-call entrypoint, so a PXE that does not know about
it fails contract sync with an opaque "no contract instance" error.

The PXE now preloads the multi-call entrypoint at init via an injected
MultiCallEntrypointProvider, registered through registerContract right after the
protocol contracts. Routing through registerContract (rather than writing to the
contract store directly) also registers the contract's public function
signatures with the node, keeping that invariant intact.

Includes the supporting changes that were split across the squashed commits:
- rename standard-contracts multi-call-entrypoint/address.ts -> constants.ts and
  export STANDARD_MULTI_CALL_ENTRYPOINT_SALT
- stamp the multi-call entrypoint address into the Noir standard_addresses
  constants
- preload the multi-call entrypoint in EmbeddedWallet (and parallelize its
  registration)
- refresh yarn.lock after the rebase
…ne iterating file

Replaces three near-identical per-contract reproducibility.test.ts files with a single
src/reproducibility.test.ts that iterates standardContracts[] from contract_data.ts.
Pinned artifacts move from src/<slug>/pinned/ to a flat src/pinned/ directory.

Adding a new standard contract is now strictly one row in standardContracts[] plus one
pinned JSON; no test-file edits needed.
…arball substitution

Replaces the per-contract pinned JSON + sha256 reproducibility test with the same
mechanism v4 uses for protocol contracts: a single committed
pinned-standard-contracts.tar.gz whose presence at build time causes
noir-contracts/bootstrap.sh to extract the pinned artifacts into target/ and skip
recompilation of contracts under contracts/standard/.

The tarball is intentionally not committed in this PR. Its absence makes the
extraction block a no-op on next; the mechanism activates when a release branch
(e.g. v5) is cut and someone runs `./bootstrap.sh pin-standard-build` and commits
the resulting tarball.

Adds:
  - noir-projects/noir-contracts/standard_contracts.json (manifest mirroring
    protocol_contracts.json)
  - extraction block in build() gated on tarball presence
  - pin-standard-build function + case arm

Removes:
  - yarn-project/standard-contracts/src/reproducibility.test.ts
  - yarn-project/standard-contracts/src/pinned/*.json (three pinned artifacts)
  - the matching .prettierignore entry
- schnorr/simulated_schnorr account contracts and uniswap_contract still imported authwit::common::*; rename the path to authwit::utils::* to match the split.
- app_subscription_contract: revert the spurious 'use public_checks::utils::privately_check_block_number' (the public_checks crate is no longer a separate crate after #23215 moved the helpers into aztec-nr) back to 'use aztec::public_checks::privately_check_block_number'.
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.

1 participant