MCPcopy Create free account
hub / github.com/docknetwork/crypto / new_statement_from_params_ref

Method new_statement_from_params_ref

proof_system/src/statement/saver.rs:74–92  ·  view source on GitHub ↗
(
        chunk_bit_size: u8,
        encryption_gens: usize,
        chunked_commitment_gens: usize,
        encryption_key: usize,
        snark_proving_key: usize,
    )

Source from the content-addressed store, hash-verified

72 }
73
74 pub fn new_statement_from_params_ref(
75 chunk_bit_size: u8,
76 encryption_gens: usize,
77 chunked_commitment_gens: usize,
78 encryption_key: usize,
79 snark_proving_key: usize,
80 ) -> Statement<E> {
81 Statement::SaverProver(Self {
82 chunk_bit_size,
83 encryption_gens: None,
84 chunked_commitment_gens: None,
85 encryption_key: None,
86 snark_proving_key: None,
87 encryption_gens_ref: Some(encryption_gens),
88 chunked_commitment_gens_ref: Some(chunked_commitment_gens),
89 encryption_key_ref: Some(encryption_key),
90 snark_proving_key_ref: Some(snark_proving_key),
91 })
92 }
93
94 pub fn get_encryption_gens<'a>(
95 &'a self,

Callers

nothing calls this directly

Calls 2

SaverProverClass · 0.85
SaverVerifierClass · 0.85

Tested by

no test coverage detected