Wallet guide
Use mazze-shielded-wallet to shield in, pay, receive, claim, shield out and restore from a seed.
mazze-shielded-wallet is the reference wallet for the shielded space. It holds the seed and the note openings, rebuilds the commitment tree from the node's public data, and proves on your machine. The node only ever sees public data.
Build
The wallet is a binary in the shielded-space branch of mazze-rust-release. That branch needs Rust 1.93.
git clone https://github.com/MazzeLabs/mazze-rust-release
cd mazze-rust-release
git checkout shielded-space
cargo build --release --bin mazze-shielded-walletUse a release build: proving is CPU-heavy.
Amounts and fees
Amounts are in mazzy: 1 MAZZE = 10¹⁸ mazzy.
Every shielded transaction pays the constant fee returned by
shielded_getStatusastxFee, about 0.0197 MAZZE by default. Shield-ins and claims pay it too.One note holds less than 2⁶⁴ mazzy, about 18.4 MAZZE.
Commands
init --wallet W
Creates a wallet file with a fresh 32-byte seed from OS randomness
address --wallet W --rpc URL
Prints your mzs1… address for the node's chain
sync --wallet W --rpc URL
Reads the executed sections, rebuilds the tree, finds your notes and marks spent ones
balance --wallet W
Prints spendable and pending value and the number of notes
shield-in --wallet W --rpc URL --amount A --funder-key HEX
Moves A from a native account into a new self-note
send --wallet W --rpc URL --to mzs1… --amount A --opening-out FILE
Pays A privately and writes the recipient's note opening to FILE
receive --wallet W --opening FILE
Imports a note opening someone sent you
claim --wallet W --rpc URL
Folds a received note and your largest self-note into one new self-note
unshield --wallet W --rpc URL --to 0xADDR [--espace] --amount A
Pays A out to a native address, or to an eSpace address with --espace
restore --wallet W --rpc URL --seed HEX
Rebuilds your self-notes from the seed and syncs
A full round trip
Back up and restore
The 32-byte seed is the only backup you need for self-notes: change, shield-ins and claims.
The wallet derives the recovery tags from the seed, finds them on chain, opens the sealed recovery slots, rebuilds the notes and syncs. It stops after 20 consecutive tags it cannot find.
Privacy tips
The wallet takes fresh OS randomness for every note, dummy and proof.
Shield-in and shield-out amounts are public. Waiting between them, and using amounts that are not unique, makes them harder to link.
Send note openings over an end-to-end encrypted channel. Anyone who reads an opening learns that note's value, but cannot spend it: spending also needs the recipient's
nsk.
Last updated