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

Method get_encryption_key

proof_system/src/statement/saver.rs:124–137  ·  view source on GitHub ↗
(
        &'a self,
        setup_params: &'a [SetupParams<E>],
        st_idx: usize,
    )

Source from the content-addressed store, hash-verified

122 }
123
124 pub fn get_encryption_key<'a>(
125 &'a self,
126 setup_params: &'a [SetupParams<E>],
127 st_idx: usize,
128 ) -> Result<&'a EncryptionKey<E>, ProofSystemError> {
129 extract_param!(
130 setup_params,
131 &self.encryption_key,
132 self.encryption_key_ref,
133 SaverEncryptionKey,
134 IncompatibleSaverSetupParamAtIndex,
135 st_idx
136 )
137 }
138
139 pub fn get_snark_proving_key<'a>(
140 &'a self,

Callers 4

_verifyMethod · 0.80
newMethod · 0.80

Calls

no outgoing calls

Tested by 2