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

Method new_statement_from_params

proof_system/src/statement/bound_check_smc.rs:80–93  ·  view source on GitHub ↗
(
        min: u64,
        max: u64,
        params: SmcParamsAndCommitmentKey<E>,
    )

Source from the content-addressed store, hash-verified

78
79impl<E: Pairing> BoundCheckSmc<E> {
80 pub fn new_statement_from_params(
81 min: u64,
82 max: u64,
83 params: SmcParamsAndCommitmentKey<E>,
84 ) -> Result<Statement<E>, ProofSystemError> {
85 validate_bounds(min, max)?;
86
87 Ok(Statement::BoundCheckSmc(Self {
88 min,
89 max,
90 params_and_comm_key: Some(params),
91 params_and_comm_key_ref: None,
92 }))
93 }
94
95 pub fn new_statement_from_params_ref(
96 min: u64,

Callers

nothing calls this directly

Calls 2

validate_boundsFunction · 0.85
BoundCheckSmcClass · 0.85

Tested by

no test coverage detected