MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / from_bytes

Method from_bytes

ipld/resolver/src/signed_record.rs:62–66  ·  view source on GitHub ↗

Deserialize then check the domain tags and the signature.

(bytes: &[u8])

Source from the content-addressed store, hash-verified

60
61 /// Deserialize then check the domain tags and the signature.
62 pub fn from_bytes(bytes: &[u8]) -> anyhow::Result<Self> {
63 let envelope = SignedEnvelope::from_protobuf_encoding(bytes)?;
64 let signed_record = Self::from_signed_envelope(envelope)?;
65 Ok(signed_record)
66 }
67
68 pub fn record(&self) -> &R {
69 &self.record

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected