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)
| 226 | /// [`attest_value`] the Intent path uses, so both node types sign through one |
| 227 | /// canonicalization path and their hashes/signatures cannot drift. |
| 228 | pub fn attest_memory(node: MemoryNode, identity: &Identity, keypair: &KeyPair) -> MemoryNode { |
| 229 | let value = attest_value(node.to_value(), identity, keypair); |
| 230 | serde_json::from_value(value).expect("attested memory re-deserializes") |
| 231 | } |
| 232 | |
| 233 | /// Verify an attested Memory node — thin wrapper over [`verify_value`]. |
| 234 | pub fn verify_memory(node: &MemoryNode, public_key: &PublicKey) -> Result<()> { |
no test coverage detected