{
  "$id": "urn:mars:schema:v1:siws-signed-response",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Signed SIWS response produced by a Sigil wallet.",
  "properties": {
    "chainId": {
      "description": "Chain identifier copied from the challenge.",
      "type": "string"
    },
    "digest": {
      "description": "Hex-encoded BLAKE3 transcript digest.",
      "type": "string"
    },
    "kind": {
      "description": "Response discriminator. Current value is `message`.",
      "pattern": "^message$",
      "type": "string"
    },
    "message": {
      "description": "Canonical SIWS message.",
      "type": "string"
    },
    "origin": {
      "description": "Origin copied from the challenge.",
      "type": "string"
    },
    "signature": {
      "description": "Hex-encoded Ed25519 signature.",
      "type": "string"
    },
    "signerDid": {
      "description": "DID of the HMR signer.",
      "pattern": "^did:oas:",
      "type": "string"
    },
    "signerPublicKey": {
      "description": "Hex-encoded Ed25519 public key.",
      "type": "string"
    },
    "transcript": {
      "description": "Canonical transcript signed by the wallet.",
      "type": "string"
    }
  },
  "required": [
    "kind",
    "origin",
    "chainId",
    "signerDid",
    "message",
    "signature",
    "signerPublicKey",
    "digest",
    "transcript"
  ],
  "title": "SiwsSignedResponse",
  "type": "object"
}
