Expand description
§dig-peer-protocol
DIG Network L2 protocol types — a superset of chia-protocol.
This crate re-exports the entire Chia protocol ecosystem (chia-protocol,
chia-sdk-client, chia-ssl, chia-traits) plus DIG-specific extensions
(the 200..=219 consensus opcodes plus DIG_MESSAGE = 220, the directed
dig-message envelope opcode). Consumers depend on dig-peer-protocol alone instead
of importing multiple chia-* crates individually.
§What’s included
| Source crate | What’s re-exported |
|---|---|
chia-protocol | All wire types: Message, Handshake, ProtocolMessageTypes, NodeType, etc. |
chia-sdk-client | Peer, Client, ClientError, ClientState, Network, PeerOptions, rate limiting, TLS connectors |
chia-ssl | ChiaCertificate |
chia-traits | Streamable trait |
chia_streamable_macro | #[streamable] proc macro |
| DIG extensions | DigMessage, DigMessageType, RegisterPeer, RegisterAck, introducer wire types |
§Feature flags
| Flag | Forwards to | Effect |
|---|---|---|
native-tls | chia-sdk-client/native-tls | OS-native TLS; enables Client, ClientState, Connector, create_native_tls_connector |
rustls | chia-sdk-client/rustls | Pure-Rust TLS; enables Client, ClientState, Connector, create_rustls_connector |
Neither feature is enabled by default. The crate builds without either but TLS-dependent
re-exports (Client, ClientState, Connector) become unavailable.
Structs§
- Block
Record - Bytes
- Bytes
Impl - Challenge
Block Info - Challenge
Chain SubSlot - Chia
Certificate - Classgroup
Element - Coin
- Coin
Spend - Coin
State - Coin
State Filters - Coin
State Update - DigMessage
- Wire message with raw
u8opcode — handles both Chia (0–107) and DIG (200–219) opcodes. - EndOf
SubSlot Bundle - FeeEstimate
- FeeEstimate
Group - FeeRate
- Foliage
- Foliage
Block Data - Foliage
Transaction Block - Full
Block - Handshake
- Header
Block - Infused
Challenge Chain SubSlot - Mempool
Items Added - Mempool
Items Removed - Message
- Network
- NewCompactVDF
- NewPeak
- NewPeak
Wallet - NewSignage
Point OrEnd OfSub Slot - NewTransaction
- NewUnfinished
Block - NewUnfinished
Block2 - Peer
- Peer
Options - Pool
Target - Program
- Proof
Block Header - Proof
OfSpace - Puzzle
Solution Response - Rate
Limit - Rate
Limiter - Rate
Limits - Recent
Chain Data - Register
Ack - Introducer acknowledgement.
success == falseis a valid wire outcome (policy rejection). - Register
ForCoin Updates - Register
ForPh Updates - Register
Peer - Registration request: advertise this node’s P2P reachability to the introducer.
- Reject
Additions Request - Reject
Block - Reject
Block Headers - Reject
Blocks - Reject
Coin State - Reject
Header Blocks - Reject
Header Request - Reject
Puzzle Solution - Reject
Puzzle State - Reject
Removals Request - Removed
Mempool Item - Request
Additions - Request
Block - Request
Block Header - Request
Block Headers - Request
Blocks - Request
Children - Request
Coin State - Request
CompactVDF - Request
Cost Info - Request
FeeEstimates - Request
Header Blocks - Request
Mempool Transactions - Request
Peers - Request
Peers Introducer - Empty introducer “get peers” request (protocol opcode 63).
- Request
Proof OfWeight - Request
Puzzle Solution - Request
Puzzle State - Request
Removals - Request
Remove Coin Subscriptions - Request
Remove Puzzle Subscriptions - Request
SesInfo - Request
Signage Point OrEnd OfSub Slot - Request
Transaction - Request
Unfinished Block - Request
Unfinished Block2 - Respond
Additions - Respond
Block - Respond
Block Header - Respond
Block Headers - Respond
Blocks - Respond
Children - Respond
Coin State - Respond
CompactVDF - Respond
Cost Info - Respond
EndOf SubSlot - Respond
FeeEstimates - Respond
Header Blocks - Respond
Peers - Respond
Peers Introducer - Introducer peer list response (protocol opcode 64).
- Respond
Proof OfWeight - Respond
Puzzle Solution - Respond
Puzzle State - Respond
Removals - Respond
Remove Coin Subscriptions - Respond
Remove Puzzle Subscriptions - Respond
SesInfo - Respond
Signage Point - Respond
ToCoin Updates - Respond
ToPh Updates - Respond
Transaction - Respond
Unfinished Block - Reward
Chain Block - Reward
Chain Block Unfinished - Reward
Chain SubSlot - Send
Transaction - Spend
Bundle - SubEpoch
Challenge Segment - SubEpoch
Data - SubEpoch
Segments - SubEpoch
Summary - SubSlot
Data - SubSlot
Proofs - Timestamped
Peer Info - Transaction
Ack - Transactions
Info - Unfinished
Block - Unfinished
Header Block - Unknown
DigMessage Type - Error returned by
TryFrom<u8>when the wire value is not a known DIG discriminant. - VDFInfo
- VDFProof
- Weight
Proof
Enums§
- Client
Error - DigMessage
Type - DIG L2 wire discriminants (
200..=219) extending Chia’s protocol namespace. - Mempool
Remove Reason - Node
Type - Plot
Size - Protocol
Message Types - Reject
State Reason
Constants§
- DIG_
MESSAGE - Wire opcode for a directed dig-message envelope (WU6, epic #796).
- UI_
ACTUAL_ SPACE_ CONSTANT_ FACTOR
Statics§
Traits§
Functions§
- calculate_
ip_ iters - calculate_
sp_ interval_ iters - calculate_
sp_ iters - expected_
plot_ size - is_
overflow_ block - load_
ssl_ cert - Loads an SSL certificate, or creates it if it doesn’t exist already.