v6

latestOpenAPI 3.1.0BSD-3-Clause-Clearraw.githubusercontent.com2026-08-01143971.5 KB
Public Decrypt

Submit public decryption.

post/v2/public-decrypt

Request body

ciphertextHandlesstring[] required

Ciphertext handles to decrypt. Each is 0x + 64 hex chars, obtained from an on-chain FHE operation.

extraDatastring required

Extra data forwarded verbatim to the gateway contract. Accepts "0x00", version 0x01 (0x01 + 32-byte contextId), or version 0x02 (0x02 + 32-byte contextId + 32-byte epochId). contextId must be 0x07-tagged and epochId must be 0x08-tagged (first byte of each).

Example request

{
  "ciphertextHandles": [
    "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890"
  ],
  "extraData": "0x00"
}

Response

Request accepted for processing.

requestIdstring required
statusstring required

Example response

{
  "requestId": "550e8400-e29b-41d4-a716-446655440000",
  "result": {
    "jobId": "550e8400-e29b-41d4-a716-446655440000"
  },
  "status": "queued"
}