{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.hoodbuybutton.com/canon/signature.schema.json",
  "title": "The Buy Button Canonical Identity Signature",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "$schema",
    "schemaVersion",
    "manifestUri",
    "manifestHash",
    "signatureType",
    "signer",
    "signerRole",
    "signature",
    "typedData"
  ],
  "properties": {
    "$schema": { "type": "string", "format": "uri" },
    "schemaVersion": { "const": "1.0.0" },
    "manifestUri": { "type": "string", "format": "uri" },
    "manifestHash": { "type": "string", "pattern": "^0x[0-9A-Fa-f]{64}$" },
    "signatureType": { "const": "EIP-712" },
    "signer": { "type": "string", "pattern": "^0x[0-9A-Fa-f]{40}$" },
    "signerRole": { "type": "string" },
    "signature": { "type": "string", "pattern": "^0x[0-9A-Fa-f]{130}$" },
    "typedData": { "type": "object" }
  }
}
