Skip to main content

simplicity/jet/bitcoin/
mod.rs

1// SPDX-License-Identifier: CC0-1.0
2
3mod environment;
4
5pub use environment::BitcoinEnv;
6
7use super::init::bitcoin::Bitcoin;
8use super::JetEnvironment;
9use simplicity_sys::c_jets::frame_ffi::CFrameItem;
10
11impl JetEnvironment for BitcoinEnv {
12    type Jet = Bitcoin;
13    type CJetEnvironment = ();
14
15    fn c_jet_env(&self) -> &Self::CJetEnvironment {
16        &()
17    }
18
19    fn c_jet_ptr(
20        jet: &Self::Jet,
21    ) -> fn(&mut CFrameItem, CFrameItem, &Self::CJetEnvironment) -> bool {
22        super::init::bitcoin::c_jet_ptr(jet)
23    }
24}