charms-sdk 13.0.0

Charms SDK: the only dependency needed to build ZK apps on Bitcoin
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub use charms_data as data;

#[macro_export]
macro_rules! main {
    ($path:path) => {
        fn main() {
            use charms_sdk::data::{App, Data, Transaction};

            let (app, tx, x, w): (App, Transaction, Data, Data) =
                charms_sdk::data::util::read(std::io::stdin())
                    .expect("should deserialize (app, tx, x, w): (App, Transaction, Data, Data)");
            assert!($path(&app, &tx, &x, &w));
        }
    };
}