(state: &ConsensusState)
| 24 | pub struct Checkpoint { |
| 25 | pub data: Bytes, |
| 26 | pub digest: Digest, |
| 27 | } |
| 28 | |
| 29 | impl Checkpoint { |
| 30 | pub fn new(state: &ConsensusState) -> Self { |
| 31 | let data = state.encode(); |
| 32 | let digest = Sha256::hash(&[&data]); |
| 33 | Self { data, digest } |
| 34 | } |
| 35 | } |
nothing calls this directly
no outgoing calls
no test coverage detected