pub fn store_proof(
        &self,
        block_number: BlockNumber,
        proof: &EncodedProofPlonk,
    ) -> QueryResult<usize> {
        let to_store = NewProof {
            block_number: i64::from(block_number),
            proof: serde_json::to_value(proof).unwrap(),
        };
        use crate::schema::proofs::dsl::proofs;
        insert_into(proofs).values(&to_store).execute(self.0.conn())
    }
/// Stores the proof for a block.
Stores the proof for a block.
Stores the proof for a block .
pub fn store_proof(
        &self,
        block_number: BlockNumber,
        proof: &EncodedProofPlonk,
    ) -> QueryResult<usize> {
        let to_store = NewProof {
            block_number: i64::from(block_number),
            proof: serde_json::to_value(proof).unwrap(),
        };
        use crate::schema::proofs::dsl::proofs;
        insert_into(proofs).values(&to_store).execute(self.0.conn())
    }
pub fn store_proof ( & self , block_number : BlockNumber , proof : & EncodedProofPlonk , ) -> QueryResult < usize > { let to_store = NewProof { block_number : i64 :: from ( block_number ) , proof : serde_json :: to_value ( proof ) . unwrap ( ) , } ; use crate :: schema :: proofs :: dsl :: proofs ; insert_into ( proofs ) . values ( & to_store ) . execute ( self . 0 . conn ( ) ) }
Stores the proof for a block.
Stores the proof for a block .
&self
block_number
BlockNumber
proof
&EncodedProofPlonk