For the complete documentation index, see llms.txt. This page is also available as Markdown.

Legacy pool (Groth16)

The Groth16 shielded pool, an internal contract in the native space. Superseded by the shielded space.

The legacy pool is an internal contract in the native space. It verifies Groth16 proofs over BLS12-381 and keeps a Poseidon Merkle tree of commitments, depth 32, with the last 64 roots usable as anchors.

Why it was replaced

Legacy pool
Shielded space

Proofs

Groth16, BLS12-381

STARK (PS-1), Plonky3 over KoalaBear

Trusted setup

Yes, a single-party setup

None

Post-quantum

No: pairings break under a quantum attack

Yes: hash-based

Commitments

Computationally hiding

Statistically hiding

Where it runs

Internal contract, native transactions

Its own space and block section

Transaction shape

Up to 8 nullifiers, 8 commitments, 8 outputs

Always 2 in, 2 out, constant fee

Recovery

Decrypt logged ciphertexts

Seed-derived self-notes and recovery slots

The security audit rated the single trusted setup Critical (finding P-1): anyone holding the setup trapdoor could mint inside the pool without detection. The shielded space removes the trusted setup instead of patching it.

Pages

CLI flow

The pool needs a non-zero verifying key hash on chain. On a dev chain, re-genesis with shielded keys:

Then:

Legacy shielded addresses are base32 encodings of a 64-byte secp256k1 public key:

Reading the pool over RPC

The pool lives at MAZZE:TYPE.BUILTIN:AAEJUAAAAAAAAAAAAAAAAAAAAAAAAAAABAJ1SJV3W2.

Function
Selector

root()

0xebf0c717

verifyingKeyHash()

0x69b5d6d1

isNullifierSpent(bytes32)

0xd5a4e325

Last updated