Signature
- TypeScript
- Go
- Kotlin
Parameters
Pczt
required
The PCZT to add proofs to
Documentation Index
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
| Operation | First Run | Cached |
|---|---|---|
| Build proving key | ~10 seconds | N/A |
| Generate proofs | ~1-2 seconds | ~1-2 seconds |
// 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);
Was this page helpful?
