Skip to main content

Crate dig_constants

Crate dig_constants 

Source
Expand description

DIG Network Constants

Defines network parameters for the DIG L2 blockchain. This crate exists separately so that any DIG crate can import network constants without pulling in the full CLVM engine or other heavy dependencies.

The core type is NetworkConstants, which wraps chia-consensus’s ConsensusConstants with DIG-specific values (genesis challenge, AGG_SIG additional data, cost limits, etc.).

§Usage

use dig_constants::DIG_MAINNET;

let genesis = DIG_MAINNET.genesis_challenge();
let consensus = DIG_MAINNET.consensus();

Structs§

NetworkConstants
DIG network constants.

Constants§

DIG_ASSET_ID
Canonical $DIG CAT asset id (TAIL hash) on Chia mainnet.
DIG_MAINNET
DIG mainnet constants.
DIG_NODE_PORT
The default localhost port a client uses to reach the local DIG node.
DIG_RELAY_URL
Canonical DIG NAT-traversal relay endpoint.
DIG_TESTNET
DIG testnet constants.