MCPcopy Create free account
hub / github.com/SeismicSystems/summit / write

Method write

types/src/header.rs:300–306  ·  view source on GitHub ↗
(&self, buf: &mut impl BufMut)

Source from the content-addressed store, hash-verified

298 }
299
300 fn ssz_fixed_len() -> usize {
301 PublicKey::SIZE
302 }
303
304 fn from_ssz_bytes(bytes: &[u8]) -> Result<Self, ssz::DecodeError> {
305 if bytes.len() != PublicKey::SIZE {
306 return Err(ssz::DecodeError::InvalidByteLength {
307 len: bytes.len(),
308 expected: PublicKey::SIZE,
309 });

Callers 2

ssz_appendMethod · 0.45
ssz_bytes_lenMethod · 0.45

Calls 2

lenMethod · 0.80
putMethod · 0.80

Tested by

no test coverage detected