MCPcopy Create free account
hub / github.com/Lightprotocol/light-protocol-v1 / new

Method new

program/src/groth16_verifier/groth16_processor.rs:28–36  ·  view source on GitHub ↗
(
        main_account: &'a AccountInfo<'b>,
        current_instruction_index: usize,
    )

Source from the content-addressed store, hash-verified

26}
27impl<'a, 'b> Groth16Processor<'a, 'b> {
28 pub fn new(
29 main_account: &'a AccountInfo<'b>,
30 current_instruction_index: usize,
31 ) -> Result<Self, ProgramError> {
32 Ok(Groth16Processor {
33 main_account,
34 current_instruction_index,
35 })
36 }
37 // The groth16 verifier verifies proofs for the Groth16 zkSNARK construction that's used by Light Protocol.
38 // This implements the ark-groth16 verifier in a way that can be executed by the Solana runtime.
39 // As such, it's mostly broken up into many smaller computation pieces that each fit into a single instruction's compute budget.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected