{"$id":"https://cratonlayer.com/protocol/v1/schema","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"description":"JSON schema for a Craton v1 receipt envelope. The signature is verified over the decoded bytes of receipt.payload_b64.","properties":{"receipt":{"additionalProperties":true,"properties":{"kid":{"description":"Key identifier used to select the Ed25519 public key from the JWKS.","type":"string"},"payload_b64":{"contentEncoding":"base64","description":"Base64-encoded canonical receipt payload bytes. Verifiers must verify the exact decoded bytes and must not reserialize JSON before signature verification.","type":"string"},"sig_alg":{"description":"Signature algorithm. Craton v1 receipts use Ed25519/EdDSA.","enum":["ed25519","Ed25519","eddsa","EdDSA"],"type":"string"},"signature":{"contentEncoding":"base64","description":"Base64-encoded Ed25519 signature over the decoded payload_b64 bytes.","type":"string"}},"required":["payload_b64","signature","kid","sig_alg"],"type":"object"}},"required":["receipt"],"title":"Craton receipt envelope","type":"object"}
