Skip to main content

WitnessTrait

Trait WitnessTrait 

Source
pub trait WitnessTrait: DynClone {
    // Required method
    fn build_witness(&self) -> WitnessValues;
}
Expand description

An interface for structs capable of generating Simplicity program witness mappings. See the include_simc!() macro, which generates an automatic WitnessTrait implementation.

Required Methods§

Source

fn build_witness(&self) -> WitnessValues

Compiles and generates the fully populated WitnessValues map for execution.

Implementors§