{
  "serviceId": "pocket-confidential",
  "displayName": "Pocket Confidential",
  "description": "Decisions on data you will not reveal. Seal input to the key from GET /v1/key (X25519, HKDF-SHA256, AES-256-GCM); only a PROOF Liskov job on Acurast can open it. POST /v1/submit, then POST /v1/result until done. Treasury stress, covenant monitor, sanctions screening, evidence chains; results Ed25519-signed. Every call, each poll included, is paid. Not advice.",
  "category": "finance",
  "resourceUrl": "https://agent.pocket.network/v1/pocket-confidential",
  "priceUsd": "0.005000",
  "priceVersion": 1,
  "rails": [
    {
      "id": "base",
      "network": "eip155:8453",
      "chainId": 8453,
      "tokenAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "tokenDecimals": 6,
      "payToAddress": "0xF732ea490c5766071785a2310523f7fA2CEbB829"
    }
  ],
  "paymentNetworks": [
    "eip155:8453",
    "eip155:4217"
  ],
  "paymentProtocols": [
    "x402",
    "mpp"
  ],
  "protocols": [
    "rest"
  ],
  "inputSchema": {
    "type": "object",
    "description": "The body of POST /v1/submit: a request sealed to encryption_public_key from GET /v1/key (protocol pocket-confidential/0.1). The plaintext input inside names the service and its fields (treasury-stress: positions, liquidity_floor_usd, limits; counterparty-screen: items and reply_key; see the card's docs). POST /v1/result takes {request_id}. The GET routes take no body.",
    "properties": {
      "request": {
        "type": "object",
        "description": "The sealed request envelope.",
        "properties": {
          "protocol": {
            "type": "string",
            "enum": [
              "pocket-confidential/0.1"
            ]
          },
          "cipher": {
            "type": "string",
            "enum": [
              "x25519-hkdf-sha256-aes-256-gcm"
            ]
          },
          "service": {
            "type": "string",
            "enum": [
              "treasury-stress",
              "covenant-monitor",
              "counterparty-screen",
              "evidence-chain"
            ],
            "description": "Which confidential service the job runs."
          },
          "request_id": {
            "type": "string",
            "description": "16 to 64 lowercase hex characters, chosen by the caller. Keep it private: it reads the result."
          },
          "to": {
            "type": "string",
            "description": "encryption_public_key from GET /v1/key."
          },
          "ephemeral_public_key": {
            "type": "string"
          },
          "iv": {
            "type": "string"
          },
          "ciphertext": {
            "type": "string"
          },
          "tag": {
            "type": "string"
          },
          "input_commitment": {
            "type": "string",
            "description": "sha256(canonical(input) + salt), 64 lowercase hex characters. Keep the salt."
          }
        },
        "required": [
          "protocol",
          "cipher",
          "service",
          "request_id",
          "to",
          "ephemeral_public_key",
          "iv",
          "ciphertext",
          "tag",
          "input_commitment"
        ]
      }
    },
    "required": [
      "request"
    ]
  },
  "outputSchema": {
    "type": "object",
    "description": "GET /v1/key answers {announcement, signature}: the job's X25519 encryption_public_key and Ed25519 key, artifact and policy digests, expiry. POST /v1/submit answers 202 {request_id, status: queued, input_commitment}. POST /v1/result answers status (queued, working, done, error, watching, ended) and, when done, sealed {result, evidence, signature}. Errors are {error: {code, message}}."
  },
  "methods": {
    "GET /v1/health": "read",
    "GET /v1/key": "read",
    "GET /v1/version": "read",
    "POST /v1/result": "read",
    "POST /v1/submit": "read"
  },
  "example": {
    "method": "GET",
    "path": "/v1/key",
    "response": {
      "portal": {
        "provenance": "third-party-supplier",
        "serviceId": "pocket-confidential",
        "schemaCheck": "unchecked"
      },
      "data": {
        "service": "pocket-confidential-queue",
        "announcement": {
          "protocol": "pocket-confidential/0.1",
          "cipher": "x25519-hkdf-sha256-aes-256-gcm",
          "application_id": "app-de6e28366b387125fe2d51512a0d2b32",
          "deployment_id": "425081",
          "acurast_job_id": "425081",
          "acurast_origin": "22206e0b641ccad620aac0b93807aac923660351f57fa9e9b87a6625fd753068",
          "processor": "5FqGkSvJFPKweDtb1FKXk9CZr5cuZY2ovKqVYqnmeU9w4mMp",
          "artifact_digest": "sha256:69f5c6eda5283ba231b971de1c44565bb5e043809c882524abcbedd2fa96430c",
          "policy_digest": "746707d911379ac9ec25aff8074c2aa96a4911eb34e879861753de223b1f8626",
          "job_ed25519_public_key": "202607823aafbf9fa2440edf761ba9de22bb404e6e30c138265ad389bbc85589",
          "encryption_public_key": "wGdfAcKDoNUt2tREgeZM1-5ikTCrOz0lmt8uPIJzhXc",
          "issued_at": "2026-11-25T13:28:44.446Z",
          "expires_at": "2026-11-25T19:28:44.446Z"
        },
        "signature": "376af8dc31f7ad85300fdca00feda2c725fc153304a21de2d930d342e9ed8b9bafa9bd4d9c4af83e821fc421985e68902808aa2899e3e25cbeeeff86c3e53b03",
        "note": "Check the signature, then check on chain that Acurast job acurast_origin + acurast_job_id published job_ed25519_public_key and ran artifact_digest (no Liskov account needed: https://docs.proof.computer/liskov/operate/verify-job-keys) before sealing a request to encryption_public_key."
      }
    },
    "capturedAt": "2026-11-25T15:45:44Z"
  },
  "firstParty": true,
  "networks": [
    "eip155:8453",
    "eip155:4217"
  ],
  "serving": true,
  "page": "https://agent.pocket.network/services/pocket-confidential",
  "descriptor": "https://agent.pocket.network/services/pocket-confidential/descriptor.json"
}