Diagrams
Payments in diagrams
Public payments from your wallet and private payments on Aztec, from the key to the fee, drawn step by step.
Private payments run on Aztec Alpha with a cap per payment. The contracts have had an internal security review, not an external audit.
From your wallet
A public payment
Mermaid source
Mermaid
sequenceDiagram
participant D as Your device
participant W as Your wallet
participant C as EVM chain
participant B as Their device
D->>D: Builds the transaction with wagmi and viem
D->>W: Sign, EIP-1193 or WalletConnect
W->>C: Signed transaction
C-->>D: Confirmation
D->>B: Receipt, inside the conversationAsking to be paid
Mermaid source
Mermaid
flowchart LR
Req[Payment request] --> URI[EIP-681 URI]
URI --> QR[QR code]
QR --> W[The payer's wallet<br/>fills in the transaction]Your private wallet
Your private account
Mermaid source
Mermaid
flowchart LR
W[Your wallet] -->|EIP-712 signature| Sig[Signature]
Sig -->|HKDF-SHA256| Sec[Account secret]:::accent
Sec --> Acc[Schnorr account<br/>contract on Aztec]
Sec -.->|never sent| Srv[Our server]:::muted
W -.->|same wallet, any device| AccProving on your device
Mermaid source
Mermaid
flowchart LR
subgraph dev [Your browser]
PXE[Private eXecution Environment]:::accent
Store[(Encrypted store)]
Prover[Prover]
end
PXE --> Store
PXE --> Prover
Prover -->|proof only| Node[Aztec node]
Node -->|encrypted notes| PXEChecking the network
Mermaid source
Mermaid
flowchart TB
Start[Before any step<br/>that moves value] --> Read[Read the node's identity]
Read --> F[L1 chain, rollup version<br/>and address, Fee Juice portal, token]
F --> C{Same as the pins<br/>in this build?}
C -->|yes| Go[Continue]:::ok
C -->|no| Stop[Refuse this node]:::dangerNotes and nullifiers
Mermaid source
Mermaid
flowchart LR
Pay[A payment] --> Note[New note<br/>encrypted to its owner]:::accent
Note --> T[(Note commitments)]
Spend[Spending a note] --> Nul[Nullifier published]
Nul --> NS[(Nullifier set)]
NS --> No[A note cannot be<br/>spent twice]:::ok
Nul -.->|does not say which note| Priv[Privacy kept]:::okPaying someone in a chat
A private payment
Mermaid source
Mermaid
sequenceDiagram
autonumber
participant A as Sender
participant X as The conversation
participant N as Aztec Alpha
participant B as Receiver
B->>X: Its Aztec address, signed with its account key
A->>A: Checks that signature again before moving value
A->>A: Builds transfer_private_to_private and proves it
A->>N: Proof and encrypted note
Note over N: Checks the proof, amount and recipient stay private
B->>N: Syncs
N-->>B: The new note, found because the sender is registeredBefore a payment
Mermaid source
Mermaid
flowchart LR
Amt[Amount] --> Cap{Under the cap<br/>for this token?}
Cap -->|no| Ref[Refused]:::danger
Cap -->|yes| Ack[Sender acknowledges: internal review only,<br/>the fee payer is public]
Ack --> Send[Send privately]:::okFees
Paying fees
Mermaid source
Mermaid
flowchart TB
E[AZTEC on Ethereum] -->|one way| Portal[FeeJuicePortal]
Sec[Claim secret from<br/>the wallet signature] --> Claim
Portal --> Claim[Claim, in the transaction<br/>that deploys the account]
Claim --> FJ[Fee Juice balance]
FJ --> Fee[Pays every fee]
Fee -.-> Pub[The account is the<br/>visible fee payer]:::mutedA contact pays the first fees
Mermaid source
Mermaid
sequenceDiagram
participant N as New person
participant C as A contact
participant E as Ethereum
participant A as Aztec
N->>C: Link with an Aztec address and the hash of a claim secret
C->>E: Deposit AZTEC for that address
Note over E: Public: the contact, the Aztec address and the amount
N->>A: Claims it with the secret