chia-wallet 0.7.0

Chia primitives needed for building wallets.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub mod cat;
pub mod did;
pub mod nft;
pub mod offer;
pub mod singleton;
pub mod standard;

#[cfg(test)]
#[macro_export]
macro_rules! assert_puzzle_hash {
    ($puzzle:ident => $puzzle_hash:ident) => {
        let mut a = clvmr::Allocator::new();
        let ptr = clvmr::serde::node_from_bytes(&mut a, &$puzzle).unwrap();
        let hash = clvm_utils::tree_hash(&mut a, ptr);
        assert_eq!($puzzle_hash, hash);
    };
}