attestation_verify
Verify an ed25519 attestation envelope against a body and public key by recomputing the canonical hash and checking the signature.
Instructions
Verify an ed25519 Attestation envelope (algorithm/signed_hash/signature/key_url/signed_at) against a body and a public key. Recomputes the canonical hash, checks it matches signed_hash, then verifies the ed25519 signature over the hash string. Returns { ok, reason? }. Public key accepted as 64-char hex or base64.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The body the attestation was minted over. | |
| public_key | Yes | 32-byte ed25519 verifying key as 64-char hex OR base64. | |
| attestation | Yes |