chia-sdk-driver 0.33.0

Driver code for interacting with standard puzzles on the Chia blockchain.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use chia_protocol::Bytes32;

/// Represents either XCH, an existing CAT or singleton, or a new CAT or singleton.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum Id {
    /// XCH does not have an asset id on-chain, so we need a special id for it.
    Xch,

    /// An id that already exists on the blockchain.
    Existing(Bytes32),

    /// A unique index for an asset that doesn't exist on the blockchain yet.
    New(usize),
}