Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Generate Orchard zero-knowledge proofs
function prove_transaction(pczt: WasmPczt): WasmPczt
func ProveTransaction(pczt *Pczt) (*Pczt, error)
fun proveTransaction(pczt: Pczt): Pczt
// Pre-build proving key (optional, for better UX) if (!t2z.is_proving_key_ready()) { t2z.prebuild_proving_key(); } // Generate proofs const provedPczt = t2z.prove_transaction(pczt); // Verify proofs were added const info = t2z.inspect_pczt(provedPczt.to_hex()); console.log('Has proofs:', info.has_orchard_proofs);
prebuild_proving_key
is_proving_key_ready
Was this page helpful?