Methods References

The ZPass SDK provides a comprehensive set of methods for interacting with ZPass credentials on the Aleo blockchain.

Core Operations

Credential Management

Proof Operations

Merkle Tree Operations

  • getMerkleRoot - Computes the Merkle root from an array of leaves

  • getMerkleTree - Constructs and serializes a Merkle tree from a list of leaves.

  • getMerkleProof - Generates a Merkle proof for a specified leaf index.

  • getLeavesHashes - Hashes an array of raw values to produce leaf nodes.

  • signMerkleRoot - Signs a Merkle root using the account’s private key.

Worker Management

Getting Started

For a quick introduction to using the SDK, check out Quickstart.

Last updated