Skip to main content

zisklib

ZiskLib is the high-level safe layer over the VM syscalls. Each function dispatches to a dedicated state machine inside the zkVM, covering hash functions and elliptic curve arithmetic for secp256k1, secp256r1, BN254, and BLS12-381.

Signatures and the hints feature

The signatures on these pages are for the default build. The crypto and big-integer functions are also compiled with an optional hints Cargo feature; when it is enabled, each gains a trailing hints: &mut Vec<u64> parameter used to record proving hints. Leave it out unless you build with hints.

Every function is re-exported at the crate root, so the canonical path is flat — e.g. ziskos::zisklib::sha256 — regardless of which submodule it lives in.