MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / to_value

Method to_value

atomic-canonical/src/memory.rs:95–97  ·  view source on GitHub ↗

The node as a JSON value (JSON-LD object).

(&self)

Source from the content-addressed store, hash-verified

93impl MemoryNode {
94 /// The node as a JSON value (JSON-LD object).
95 pub fn to_value(&self) -> Value {
96 serde_json::to_value(self).expect("memory node serialization is infallible")
97 }
98
99 /// The value used for signing: everything except the `proof`. Delegates to
100 /// [`crate::proof::signing_view`] so the excluded key-set lives in one

Callers 2

signing_valueMethod · 0.45
hashing_valueMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected