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

Method to_value

atomic-canonical/src/node.rs:350–352  ·  view source on GitHub ↗

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

(&self)

Source from the content-addressed store, hash-verified

348impl CanonicalNode {
349 /// The node as a JSON value (JSON-LD object).
350 pub fn to_value(&self) -> serde_json::Value {
351 serde_json::to_value(self).expect("canonical node serialization is infallible")
352 }
353
354 /// The value used for signing: everything except the `proof`. Delegates to
355 /// [`crate::proof::signing_view`] so the excluded key-set is defined once,

Calls

no outgoing calls