Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCircuit ¶
func NewCircuit() (frontend.CompiledConstraintSystem, error)
NewCircuit return the circuit implementing a pre image check
func Prove ¶
func Prove(ccs frontend.CompiledConstraintSystem, pk groth16.ProvingKey, secret []byte) (groth16.Proof, error)
Prove generate a zkp proof using ProvingKey
Types ¶
type ZkpInfo ¶
type ZkpInfo struct { R1CS frontend.CompiledConstraintSystem ProvingKey groth16.ProvingKey VerifyingKey groth16.VerifyingKey }
ZkpInfo includes CompiledConstraintSystem、ProvingKey、VerifyingKey
Click to show internal directories.
Click to hide internal directories.