bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 59쪽
Machine) and proved using Barretenberg.
### AVM (Aztec Virtual Machine)[](#avm-aztec-virtual-machine "Direct link to AVM (Aztec Virtual Machine)")
The Aztec Virtual Machine (AVM) executes the public section of a transaction. It is conceptually similar to the Ethereum Virtual Machine (EVM) but designed specifically for Aztec's needs. Public functions are compiled to AVM bytecode and executed by sequencers in the AVM. The AVM uses a flat memory model with tagged memory indexes to track maximum potential values and bit sizes. It supports control flow (if/else) and includes specific opcodes for blockchain operations like timestamp and address access, but doesn't allow arbitrary oracles for security reasons.
### Aztec[](#aztec "Direct link to Aztec")
Aztec is a privacy-first Layer 2 rollup on Ethereum. It supports smart contracts with both private & public state and private & public execution.
`aztec` is a CLI tool (with an extensive set of parameters) that enables users to perform a wide range of tasks. It can: compile and test contracts, run a node, run a local network, execute tests, generate contract interfaces for javascript and more.
Full reference [here](/developers/testnet/docs/cli/aztec_cli_reference.md).
### Aztec Wallet[](#aztec-wallet "Direct link to Aztec Wallet")
The Aztec Wallet is a CLI wallet, `aztec-wallet`, that allows a user to manage accounts and interact with an Aztec network. It includes a PXE.
Full reference [here](/developers/testnet/docs/cli/aztec_wallet_cli_reference.md).
### `aztec-up`[](#aztec-up "Direct link to aztec-up")
`aztec-up` updates the local aztec executables to the latest version (default behavior) or to a specified version.
### Aztec.js[](#aztecjs "Direct link to Aztec.js")
A [Node package](https://www.npmjs.com/package/@aztec-labs/aztec.js) to help make Aztec dApps.
Read more and review the source code [here](https://github.com/aztec-labs-eng/aztec-node/blob/v6.0.0-rc.1/yarn-project/aztec.js).
### Aztec.nr[](#aztecnr "Direct link to Aztec.nr")
[Aztec.nr](https://github.com/aztec-labs-eng/aztec-node/tree/v6.0.0-rc.1/noir-projects/aztec-nr) is a Noir framework for writing Aztec smart contracts that abstracts away state management, handling note generation, state trees, and more.
Read more and review the source code [here](https://aztec.nr).
### Barretenberg[](#barretenberg "Direct link to Barretenberg")
Aztec's cryptography back-end. Refer to the graphic at the top of [this page](https://medium.com/aztec-protocol/explaining-the-network-in-aztec-network-166862b3ef7d) to see how it fits in the Aztec architecture.
Barretenberg's source code can be found [here](https://github.com/AztecProtocol/barretenberg).
### bb / bb.js[](#bb--bbjs "Direct link to bb / bb.js")
`bb` (CLI) and its corresponding `bb.js` (node module) are tools that prove and verify circuits. It also has helpful functions such as: writing solidity verifier contracts, checking a witness, and viewing a circuit's gate count.
### Commitment[](#commitment "Direct link to Commitment")
A cryptographic commitment is a hash of some data (plus randomness) that hides the original value but allows you to later prove you committed to that specific value, by proving knowledge of a valid preimage, without being able to change it.
In Aztec, a commitment refers to a cryptographic hash of a note. Rather than storing entire notes in a data tree, note commitments (hashes of the notes) are stored in a merkle tree called the note hash tree. Users prove that they have the note pre-image information when they update private state in a contract. This allows the network to verify the existence of private data without revealing its contents.
### Merkle Tree[](#merkle-tree "Direct link to Merkle Tree")
A Merkle tree is a binary tree data structure where adjacent nodes are hashed together recursively to produce a single node called the root hash.
Merkle trees in Aztec are used to store cryptographic commitments. They are used across five Aztec Merkle trees: the note hash tree (stores commitments to private notes), the nullifier tree (stores nullifiers for spent notes), the public data tree (stores public state), the contract tree, and the archive tree. All trees use domain-separated Poseidon2 hashing with specific tree identifiers and layer separation to ensure security and prevent cross-tree attacks.
### `nargo`[](#nargo "Direct link to nargo")
With `nargo`, you can start new projects, compile, execute, and test your Noir programs.
The Aztec installer ships its own pinned `nargo` and exposes it as the `aztec-nargo` wrapper on `PATH` (bare `nargo` is intentionally not provided so it does not shadow your own install). For Aztec contract work, prefer `aztec compile` and `aztec test`; for plain Noir commands, use `aztec-nargo` (or your own `nargo` install).
You can find more information in the nargo installation docs [here](https://noir-lang.org/docs/installation) and the nargo command reference [here](https://noir-lang.org/docs/reference/nargo_commands).
### Noir[](#noir "Direct link to Noir")
Noir is a Domain Specific Language (DSL) for SNARK proving systems. It is used for writing smart contracts in Aztec because private functions on Aztec are implemented as SNARKs to support privacy-preserving operations.
### Noir Language Server[](#noir-language-server "Direct link to Noir Language Server")
The Noir Language Server can be used in vscode to facilitate writing programs in Noir by providing syntax highlighting, circuit introspection and an execution interface. The Noir LSP addon allows the dev to choose their tool, nargo or `aztec`, when writing a pure Noir program or an Aztec smart contract.
You can find more info about the LSP [in the Noir docs](https://noir-lang.org/docs/tooling/language_server).
### Node[](#node "Direct link to Node")
A node is a computer running Aztec software that participates in the Aztec network. A specific type of node is a sequencer. Nodes run the public execution environment (AVM), validate proofs, and maintain the five state Merkle trees (note hash, nullifier, public state, L1-L2 message, and archive trees).
The Aztec testnet rolls up to Ethereum Sepolia.
To run your own node see [here](/operate/operators.md).
### Note[](#note "Direct link to Note")
In Aztec, a note is like an envelope containing private data. A commitment (hash) of this note is stored in an append-only Merkle tree maintained by all nodes in the network. Notes can be encrypted to be shared with other users. The data in a note represents a variable's state at a specific point in time.
### Note Discovery[](#note-discovery "Direct link to Note Discovery")
Note discovery refers to the process of a user identifying and decrypting the encrypted notes that belong to them. Aztec uses a note tagging system where senders tag encrypted onchain logs containing notes in a way that only the sender and recipient can identify. The tag is derived from a shared secret and an index (a shared counter that increments each time the sender creates a note for the recipient). This allows users to efficiently find their notes without brute force decryption or relying on offchain communication.
### Nullifier[](#nullifier "Direct link to Nullifier")
A nullifier is a unique value that, once posted publicly, proves something has been used or consumed without revealing what that thing was.
In the context of Aztec, a nullifier is derived from a note and signifies the note has been "spent" or consumed without revealing which specific note was spent. When a note is updated or spent in Aztec, the protocol creates a nullifier from the note data using the note owner's nullifier key. This nullifier is inserted into the nullifier Merkle tree. The nullifier mechanism prevents double-spending while maintaining privacy by not requiring deletion of the original note commitment, which would leak information.
### Partial Notes[](#partial-notes "Direct link to Partial Notes")
Partial notes are a concept that allows users to commit to an encrypted value, and allows a counterparty to update that value without knowing the specific details of the encrypted value. They are notes that are created in a private function with values that are not yet considered finalized (e.g., `amount` in a `UintNote`). The partial note commitment is computed using multi scalar multiplication on an elliptic curve, then passed to a public function where another party can add value to the note without knowing its private contents. This enables use cases like private fee payments, DEX swaps, and lending protocols.
### Programmable Privacy[](#programmable-privacy "Direct link to Programmable Privacy")
Aztec achieves programmable privacy through its hybrid architecture that supports both private and public smart contract execution. Private functions run client-side with zero-knowledge proofs, while public functions run onchain. This allows developers to program custom privacy logic, choosing what data remains private and what becomes public, with composability between private and public state and execution contexts.
### Provers[](#provers "Direct link to Provers")
The Prover in a ZK system is the entity proving they have knowledge of a valid witness that satisfies a statement. In the context of Aztec, this is the entity that creates the proof that some computation was executed correctly. Here, the statement would be "I know the inputs and outputs that satisfy the requirements for the computation, and I did the computation correctly."
Aztec launched with a fully permissionless proving network that anyone can participate in. The proving network produces proofs for valid rollup state transitions.
How this works will be discussed via a future RFP process on Discourse, similarly to the Sequencer RFP.
### Proving Key[](#proving-key "Direct link to Proving Key")
A key that is used to generate a proof. In the case of Aztec, these are compiled from Noir smart contracts.
### Private Execution Environment (PXE)[](#private-execution-environment-pxe "Direct link to Private Execution Environment (PXE)")
The private execution environment is where private computation occurs. This is local to your device or browser.
Read more [here](/developers/testnet/docs/foundational-topics/pxe.md).
### Local Network[](#local-network "Direct link to Local Network")
The local network is a development Aztec network that runs on your machine and interacts with a development Ethereum node. It allows you to develop and deploy Noir smart contracts without interacting with testnet or mainnet.
Included in the local network:
* Local Ethereum network (Anvil)
* Deployed Aztec protocol contracts (for L1 and L2)
* A set of test accounts with some test tokens to pay fees
* Development tools to compile contracts and interact with the network (`aztec` and `aztec-wallet`)
### Sequencer[](#sequencer "Direct link to Sequencer")
A sequencer is a specialized node that is generally responsible for:
* Selecting pending transactions from the mempool
* Ordering transactions into a block
* Verifying all private transaction proofs and executing all public transactions to check their validity
* Computing the ROLLUP\_BLOCK\_REQUEST\_DATA
* Computing state updates for messages between L2 & L1
* Broadcasting the ROLLUP\_BLOCK\_REQUEST\_DATA to the prover network via the proof pool for parallelizable computation.
* Building a rollup proof from completed proofs in the proof pool
* Tagging the pending block with an upgrade signal to facilitate forks
* Publishing completed block with proofs to Ethereum as an ETH transaction
Aztec will be launched with a fully permissionless sequencer network that anyone can participate in.
How this works is being discussed actively in the [Discourse forum](https://discourse.aztec.network/t/request-for-proposals-decentralized-sequencer-selection/350/). Once this discussion process is completed, we will update the glossary and documentation with specifications and instructions for how to run.
Previously in [Aztec Connect](https://medium.com/aztec-protocol/sunsetting-aztec-connect-a786edce5cae) there was a single sequencer, and you can find the Typescript reference implementation called Falafel [here](https://github.com/AztecProtocol/aztec-connect/tree/master/yarn-project/falafel).
### Smart Contracts[](#smart-contracts "Direct link to Smart Contracts")
Programs that run on the Aztec network are called smart contracts, similar to [programs](https://ethereum.org/en/developers/docs/smart-contracts/) that run on Ethereum.
However, these will be written in the [Noir](https://noir-lang.org/) programming language, and may optionally include private state and private functions.
### Statement[](#statement "Direct link to Statement")
A statement in Aztec's zero-knowledge context refers to the public assertion being proved about a private computation. For example, a statement might be "I know the inputs and outputs that satisfy the requirements for this computation, and I executed the computation correctly." The statement defines what is being proven without revealing the private details (the witness) that prove it. In Aztec, statements typically involve proving correct execution of private functions, valid note ownership, or proper state transitions.
### Verifier[](#verifier "Direct link to Verifier")
The entity responsible for verifying the validity of a ZK proof. In the context of Aztec, this is:
* **The sequencers**: verify that private functions were executed correctly.
* **The Ethereum L1 smart contract**: verifies batches of transactions were executed correctly.
### Verification Key[](#verification-key "Direct link to Verification Key")
A key that is used to verify the validity of a proof generated from a proving key from the same smart contract.
### Witness[](#witness "Direct link to Witness")
In the context of Aztec's zero-knowledge proofs, a witness refers to the private inputs and intermediate values that satisfy the constraints of a circuit. When executing a private function, the ACVM generates the witness of the execution - the complete set of values that prove the computation was performed correctly. The witness includes both the secret inputs provided by the user and all intermediate computational steps, but is never revealed publicly. Only a cryptographic proof of the witness's validity is shared.
### Zero-knowledge (ZK) proof[](#zero-knowledge-zk-proof "Direct link to Zero-knowledge (ZK) proof")
Zero-knowledge proofs in Aztec are cryptographic proofs that allow someone to prove they know certain information or have performed a computation correctly without revealing the underlying data. Aztec uses various ZK-SNARK protocols including UltraPlonk and Honk. These proofs enable private execution where users can prove they executed a private function correctly and that they own certain notes, without revealing the function inputs, note contents, or internal computation details. The proofs are verified onchain to ensure the integrity of private state transitions.
---
# Migration notes
Aztec is in active development. Each version may introduce breaking changes that affect compatibility with previous versions. This page documents common errors and difficulties you might encounter when upgrading, along with guidance on how to resolve them.
## 6.0.0-rc.1[](#600-rc1 "Direct link to 6.0.0-rc.1")
### \[Aztec.nr] `MultiCallEntrypoint` and `HandshakeRegistry` re-pinned at new addresses[](#aztecnr-multicallentrypoint-and-handshakeregistry-re-pinned-at-new-addresses "Direct link to aztecnr-multicallentrypoint-and-handshakeregistry-re-pinned-at-new-addresses")
The standard contracts have been re-pinned against the v6.0.0-rc.1 toolchain. The canonical `MultiCallEntrypoint` and `HandshakeRegistry` move to new addresses and class ids; `AuthRegistry` and `PublicChecks` keep theirs. Handshakes established with the previous registry instance are not visible to the new one and must be re-established.
### \[Protocol] The protocol nullifier is derived from the tx request's salt alone; `tx_request_salt` becomes `protocol_nullifier`[](#protocol-the-protocol-nullifier-is-derived-from-the-tx-requests-salt-alone-tx_request_salt-becomes-protocol_nullifier "Direct link to protocol-the-protocol-nullifier-is-derived-from-the-tx-requests-salt-alone-tx_request_salt-becomes-protocol_nullifier")
The protocol nullifier, which the init kernel always inserts at index 0 of a transaction's nullifiers, is now `silo(NULL_MSG_SENDER, H(origin, chain_id, version, salt))` instead of `H(tx_request)`. Gas settings and the first call's arguments are no longer part of its preimage, so two transactions built with the same salt (a fee bump, or a cancellation) share it and at most one of them can be mined. The proof is still pinned to the full tx request by the init kernel. The kernel cannot check that the salt is random, so wallets must draw it fresh for every transaction: two requests with the same origin and salt are mutually exclusive.
The `tx_request_salt` field of `PrivateCircuitPublicInputs`, `PrivateContextInputs` and `PrivateTxConstantData` is replaced by `protocol_nullifier`: the siloed protocol nullifier, kernel-checked and identical on every private call of the transaction. The raw salt no longer reaches app circuits. This is set by the framework and PXE; contracts need no changes beyond recompiling. `TxRequest` gains `computeProtocolNullifierValue()` / `computeProtocolNullifier()` in Aztec.js (`compute_protocol_nullifier_value` / `compute_protocol_nullifier` in Noir); `TxRequest.hash()` (Noir: `impl Hash for TxRequest`) and `DOM_SEP__TX_REQUEST` are removed, since computing the old protocol nullifier was their only job; and `computeProtocolNullifier(value)` in `@aztec-labs/stdlib/hash` takes the unsiloed value.
Nothing in accounts, auth witnesses or wallets changes with this release; the field is only renamed and its value redefined. It is the protocol half of the design that lets accounts and auth witnesses bind to `protocol_nullifier` for replay protection, cancellation and fee bumping, which lands in the framework separately.
### \[Node] `ACVM_*` config renamed to `NOIR_EXECUTE_*`[](#node-acvm_-config-renamed-to-noir_execute_ "Direct link to node-acvm_-config-renamed-to-noir_execute_")
Protocol circuits are now executed with noir's `noir-execute` rather than the `acvm` binary, so the configuration naming the executor follows the tool. The environment variables, the CLI flags and the config fields are renamed; nothing about what you point them at changes, beyond the binary itself no longer being called `acvm`.
| Old | New |
| ----------------------------- | ------------------------------------ |
| `$ACVM_BINARY_PATH` | `$NOIR_EXECUTE_BINARY_PATH` |
| `$ACVM_WORKING_DIRECTORY` | `$NOIR_EXECUTE_WORKING_DIRECTORY` |
| `--sequencer.acvmBinaryPath` | `--sequencer.noirExecuteBinaryPath` |
| `--proverNode.acvmBinaryPath` | `--proverNode.noirExecuteBinaryPath` |
| `acvmBinaryPath` | `noirExecuteBinaryPath` |
| `acvmWorkingDirectory` | `noirExecuteWorkingDirectory` |
The same rename applies to the `acvmWorkingDirectory` flags (`--sequencer.acvmWorkingDirectory`, `--proverNode.acvmWorkingDirectory`). The release image sets the new variables itself, and its default working directory moves from `/usr/src/acvm` to `/usr/src/noir-execute`.
**Migration:**
```
- ACVM_BINARY_PATH=/usr/src/labs-aztec-toolchain/bin/noir-execute
- ACVM_WORKING_DIRECTORY=/usr/src/acvm
+ NOIR_EXECUTE_BINARY_PATH=/usr/src/labs-aztec-toolchain/bin/noir-execute
+ NOIR_EXECUTE_WORKING_DIRECTORY=/usr/src/noir-execute
```
There is no fallback to the old names, and a node still setting only `ACVM_BINARY_PATH` fails to start rather than running degraded: a prover agent exits with `Requested real proving but no path to bb or noir-execute binaries provided`, and a prover node or sequencer configured for rea프로젝트로 돌아가기