smplx-sdk 0.0.5

Simplex sdk to simplify the development with simplicity
Documentation
1
2
3
4
5
6
7
8
9
10
11
use dyn_clone::DynClone;
use simplicityhl::WitnessValues;

/// An interface for structs capable of generating Simplicity program witness mappings.
/// See the ` include_simc!()` macro, which generates an automatic `WitnessTrait` implementation.
pub trait WitnessTrait: DynClone {
    /// Compiles and generates the fully populated `WitnessValues` map for execution.
    fn build_witness(&self) -> WitnessValues;
}

dyn_clone::clone_trait_object!(WitnessTrait);