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