Skip to article
CogniTech.Docs

Private notes and the Merkle tree

Note ownership, membership paths, verified roots, and pending or spent states.

On this page

Note lifecycle

A note has a secret, commitment, nullifier, asset, and integer amount. The encrypted vault keeps the secret and associates owned notes with journal operations. To count as spendable, an owned note must come from a finalized operation, exist in the pool, and have an unspent nullifier. Notes reserved by unresolved operations are excluded. An incoming note is handled separately until it is secured.

A private send can create a change note and a recipient note. The recipient has spending authority through a sealed ticket or the claim-link payload. CogniTech does not combine arbitrary private notes to satisfy a send.

Tree synchronization

The SDK tree sync reads pool commitment logs from the configured deployment block and reuses snapshots saved in browser storage. CogniTech verifies the synchronized tree against the contract or checks its root with isKnownRoot. It requests a path for the selected commitment, then rechecks nullifier status before spending. A missing path, unavailable historical RPC, or unverified root leaves preparation incomplete.

Recovery implications

Public logs can establish that a commitment exists and that a nullifier has been consumed. They do not supply the note’s secret. Losing the browser vault and its backups can therefore permanently prevent spending even when a historical deposit is visible in the explorer.

See vault backups and balance calculation.