Documentation
¶
Rendered for js/wasm
Overview ¶
Package wasmruntime exposes a gnark prover to JavaScript as an object of promise-returning methods (readConstraintSystem, readProvingKey, readVerificationKey, prepareProvingKey, prove, verify, release) that operate on string handles.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config[PK, VK, Proof any] struct { // GlobalName is the name of the object installed on globalThis. GlobalName string CSFactory func(ecc.ID) constraint.ConstraintSystem PKFactory func(ecc.ID) PK VKFactory func(ecc.ID) VK ProofFactory func(ecc.ID) Proof // Prepare, if set, is called once per proving key before its first proof, // with the constraint system when the caller provided one. Prepare func(constraint.ConstraintSystem, PK) error // ReleasePK, if set, is called when a proving-key handle is released. It // should detach any accelerator and free its resident GPU resources. ReleasePK func(PK) error Prove func(constraint.ConstraintSystem, PK, witness.Witness, ...backend.ProverOption) (Proof, error) Verify func(Proof, VK, witness.Witness, ...backend.VerifierOption) error }
Config describes the proof system exposed by Install.
Click to show internal directories.
Click to hide internal directories.