pub trait ProofPlan:
Debug
+ Send
+ Sync
+ ProverEvaluate {
// Required methods
fn count(&self, builder: &mut CountBuilder<'_>) -> Result<(), ProofError>;
fn verifier_evaluate<C: Commitment>(
&self,
builder: &mut VerificationBuilder<'_, C>,
accessor: &dyn CommitmentAccessor<C>,
result: Option<&OwnedTable<C::Scalar>>,
) -> Result<Vec<C::Scalar>, ProofError>;
fn get_column_result_fields(&self) -> Vec<ColumnField>;
fn get_column_references(
&self,
) -> IndexSet<ColumnRef, BuildHasherDefault<AHasher>>;
fn get_table_references(
&self,
) -> IndexSet<TableRef, BuildHasherDefault<AHasher>>;
// Provided method
fn is_empty(&self, accessor: &dyn MetadataAccessor) -> bool { ... }
}
Expand description
Provable nodes in the provable AST.
Required Methods§
Sourcefn count(&self, builder: &mut CountBuilder<'_>) -> Result<(), ProofError>
fn count(&self, builder: &mut CountBuilder<'_>) -> Result<(), ProofError>
Count terms used within the Query’s proof
Sourcefn verifier_evaluate<C: Commitment>(
&self,
builder: &mut VerificationBuilder<'_, C>,
accessor: &dyn CommitmentAccessor<C>,
result: Option<&OwnedTable<C::Scalar>>,
) -> Result<Vec<C::Scalar>, ProofError>
fn verifier_evaluate<C: Commitment>( &self, builder: &mut VerificationBuilder<'_, C>, accessor: &dyn CommitmentAccessor<C>, result: Option<&OwnedTable<C::Scalar>>, ) -> Result<Vec<C::Scalar>, ProofError>
Form components needed to verify and proof store into VerificationBuilder
Sourcefn get_column_result_fields(&self) -> Vec<ColumnField>
fn get_column_result_fields(&self) -> Vec<ColumnField>
Return all the result column fields
Sourcefn get_column_references(
&self,
) -> IndexSet<ColumnRef, BuildHasherDefault<AHasher>>
fn get_column_references( &self, ) -> IndexSet<ColumnRef, BuildHasherDefault<AHasher>>
Return all the columns referenced in the Query
Sourcefn get_table_references(
&self,
) -> IndexSet<TableRef, BuildHasherDefault<AHasher>>
fn get_table_references( &self, ) -> IndexSet<TableRef, BuildHasherDefault<AHasher>>
Return all the tables referenced in the Query
Provided Methods§
Sourcefn is_empty(&self, accessor: &dyn MetadataAccessor) -> bool
fn is_empty(&self, accessor: &dyn MetadataAccessor) -> bool
Check if the input table is empty
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.