1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
use crate::streamable_struct;
use chia_streamable_macro::Streamable;
use crate::chia_error;
use crate::Bytes32;
use crate::G2Element;
use crate::ProofOfSpace;
use crate::Streamable;
use crate::VDFInfo;
use crate::VDFProof;
#[cfg(feature = "py-bindings")]
use crate::from_json_dict::FromJsonDict;
#[cfg(feature = "py-bindings")]
use crate::to_json_dict::ToJsonDict;
#[cfg(feature = "py-bindings")]
use chia_py_streamable_macro::PyStreamable;
#[cfg(feature = "py-bindings")]
use pyo3::prelude::*;
streamable_struct! (ChallengeBlockInfo {
proof_of_space: ProofOfSpace,
challenge_chain_sp_vdf: Option<VDFInfo>, challenge_chain_sp_signature: G2Element,
challenge_chain_ip_vdf: VDFInfo,
});
streamable_struct! (ChallengeChainSubSlot {
challenge_chain_end_of_slot_vdf: VDFInfo,
infused_challenge_chain_sub_slot_hash: Option<Bytes32>, subepoch_summary_hash: Option<Bytes32>, new_sub_slot_iters: Option<u64>, new_difficulty: Option<u64>, });
streamable_struct!(InfusedChallengeChainSubSlot {
infused_challenge_chain_end_of_slot_vdf: VDFInfo,
});
streamable_struct! (RewardChainSubSlot {
end_of_slot_vdf: VDFInfo,
challenge_chain_sub_slot_hash: Bytes32,
infused_challenge_chain_sub_slot_hash: Option<Bytes32>,
deficit: u8, });
streamable_struct! (SubSlotProofs {
challenge_chain_slot_proof: VDFProof,
infused_challenge_chain_slot_proof: Option<VDFProof>,
reward_chain_slot_proof: VDFProof,
});