Verify an attested node's content hash and signature against a public key.
(
node: &CanonicalNode,
public_key: &atomic_identity::keypair::PublicKey,
)
| 69 | |
| 70 | /// Verify an attested node's content hash and signature against a public key. |
| 71 | pub fn verify( |
| 72 | node: &CanonicalNode, |
| 73 | public_key: &atomic_identity::keypair::PublicKey, |
| 74 | ) -> Result<()> { |
| 75 | proof::verify(node, public_key) |
| 76 | } |
| 77 | |
| 78 | /// Lift an authored memory (frontmatter + body) into a canonical node, attest |
| 79 | /// it (hash + sign) with the given identity, and return the node. Mirrors |
no outgoing calls