attestation_verify
Verifies an ed25519 attestation by recomputing the canonical hash, matching it with the signed hash, and checking the signature against the public key.
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 |