API Reference
Transaction Structure
ZK Identity operations use standardnative transactions with specific payloads.
Identity Commitment
Used to link an identity (Phase 1).Identity Attestation
Used to prove ownership without revealing identity (Phase 2).Data Types
IdentityProofCircuitInput
CRITICAL SECURITY: These inputs are used locally to generate the proof and verify thecommitment.
MerkleProofResponse
Response from the node when requesting a Merkle proof for a commitment.Database Schema
The system uses specific tables to track commitments and nullifiers.| Table | Description | Key Fields |
|---|---|---|
identity_commitments | Stores valid commitments | commitment_hash, leaf_index |
used_nullifiers | Tracks used nullifiers to prevent double-spending | nullifier_hash |
merkle_tree_state | Snapshots of the Merkle Tree | root_hash, leaf_count |