MCPcopy Create free account
hub / github.com/ChainSafe/Spectre / Spec

Interface Spec

eth-types/src/spec.rs:8–23  ·  view source on GitHub ↗

Beacon chain specification.

Source from the content-addressed store, hash-verified

6
7/// Beacon chain specification.
8pub trait Spec: 'static + Sized + Copy + Default + Debug {
9 const NAME: &'static str;
10 const SYNC_COMMITTEE_SIZE: usize;
11 const SYNC_COMMITTEE_ROOT_INDEX: usize;
12 const SYNC_COMMITTEE_DEPTH: usize;
13 const SYNC_COMMITTEE_PUBKEYS_ROOT_INDEX: usize;
14 const SYNC_COMMITTEE_PUBKEYS_DEPTH: usize;
15
16 const DST: &'static [u8];
17 const EXECUTION_STATE_ROOT_INDEX: usize;
18 const EXECUTION_STATE_ROOT_DEPTH: usize;
19 const FINALIZED_HEADER_INDEX: usize;
20 const FINALIZED_HEADER_DEPTH: usize;
21 const BYTES_PER_LOGS_BLOOM: usize = 256;
22 const MAX_EXTRA_DATA_BYTES: usize = 32;
23}
24
25#[derive(Copy, Clone, PartialEq, Eq, Debug, Default)]
26pub struct Minimal;

Callers

nothing calls this directly

Implementers 1

spec.rseth-types/src/spec.rs

Calls

no outgoing calls

Tested by

no test coverage detected