Produce a fully attested Memory node — the same thin wrapper over [`attest_value`] the Intent path uses, so both node types sign through one canonicalization path and their hashes/signatures cannot drift.
(node: MemoryNode, identity: &Identity, keypair: &KeyPair)
| 273 | /// [`attest_value`] the Intent path uses, so both node types sign through one |
| 274 | /// canonicalization path and their hashes/signatures cannot drift. |
| 275 | pub fn attest_memory(node: MemoryNode, identity: &Identity, keypair: &KeyPair) -> MemoryNode { |
| 276 | let value = attest_value(node.to_value(), identity, keypair); |
| 277 | serde_json::from_value(value).expect("attested memory re-deserializes") |
| 278 | } |
| 279 | |
| 280 | /// Verify an attested Memory node — thin wrapper over [`verify_value`]. |
| 281 | pub fn verify_memory(node: &MemoryNode, public_key: &PublicKey) -> Result<()> { |
no test coverage detected