🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

FHE-as-a-Service

by @cryptoreumd

Compute 165 clinical scores on fully homomorphic encrypted data with 128-bit security, ensuring patient data privacy during computation.

Versionv1.1.0
Downloads698
TERMINAL
clawhub install fhe-service

πŸ“– About This Skill

FHE-as-a-Service β€” RheumaScore Clinical Computation API

What This Skill Does

Enables AI agents to compute 165 clinical scores on Fully Homomorphic Encrypted (FHE) data. The server never sees plaintext patient data. All computation happens on ciphertext with 128-bit security.

Provider: RheumaScore by DNAI & CryptoReuMd.eth Base URL: https://rheumascore.xyz/fhe/v1

Quick Start

1. Register (no auth required)

curl -X POST https://rheumascore.xyz/fhe/v1/register \
  -H 'Content-Type: application/json' \
  -d '{"agent_name": "your-agent-name"}'
Response includes your api_key (prefix: fhe_).

2. List Available Scores

curl https://rheumascore.xyz/fhe/v1/scores \
  -H 'Authorization: Bearer fhe_'

3. Get Score Schema

curl https://rheumascore.xyz/fhe/v1/schema/das28 \
  -H 'Authorization: Bearer fhe_'

4. Compute a Score (FHE-encrypted)

curl -X POST https://rheumascore.xyz/fhe/v1/compute/das28 \
  -H 'Authorization: Bearer fhe_' \
  -H 'Content-Type: application/json' \
  -d '{"values": [10, 5, 40, 60]}'

5. Batch Compute (up to 20 scores)

curl -X POST https://rheumascore.xyz/fhe/v1/batch \
  -H 'Authorization: Bearer fhe_' \
  -H 'Content-Type: application/json' \
  -d '{"computations": [
    {"score": "das28", "values": [10, 5, 40, 60]},
    {"score": "sledai", "values": [1,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}
  ]}'

Pricing (x402 Protocol)

| Tier | Price | Details | |------|-------|---------| | Free | $0 | 10 computations/day per API key | | Single Score | $0.01 USDC | Per computation beyond free tier | | Batch | $0.005 USDC | Per score in batch | | General Encrypt | $0.02 USDC | Per FHE encrypt operation | | Clinical Report | $0.10 USDC | Full multi-score report | | Monthly Unlimited | $50 USDC | Unlimited access |

Payment: USDC on Base chain β†’ 0x86Dc0Eca5ff55465B805eD334797A00Ad47F65c2 Protocol: x402 β€” include X-Payment: header after free tier exhaustion

Score Categories (165 total)

Rheumatology (Activity & Damage)

DAS28-CRP, DAS28-ESR, DAS28-3v, 2C-DAS28, SLEDAI-2K, SDI, SDAI, CDAI, BASDAI, ASDAS-CRP, ASDAS-ESR, BILAG-2004, PGA, HAQ, RAPID3, DAPSA, DETECT, BVAS, VDI, mRSS, PASI, CLASI, CDASI, ESSDAI, ESSPRI, ITAS, GaPSS

Classification Criteria

ACR/EULAR RA, SLICC 2012 SLE, SSc, SjΓΆgren, CASPAR, Gout, Fibromyalgia, ASAS SpA, BehΓ§et, APS, IgG4-RD, PMR, FMF, GPA, EGPA, Sarcoidosis, VEXAS, TRAPS, CAPS, MKD, PFAPA

Critical Care & General

SOFA, qSOFA, NEWS2, MELD, Child-Pugh, CHAβ‚‚DSβ‚‚-VASc, MASCC, FRAX

Pharmacovigilance

MTX Toxicity, HCQ Retinal Risk, NSAID GI Risk, NSAID Renal Risk, Statin Myopathy, GTI, DILI

Pregnancy & Reproductive

PROMISSE Risk, HDP Risk, APS Obstetric, Lactation Safety, Preconception Risk, NRAS, Flare Pregnancy

Geriatrics

Frailty CFS, Sarcopenia SARC-F, Falls Risk, Polypharmacy, GDS-15, MNA-SF, Katz ADL, Barthel, Lawton IADL, TUG, FRAIL, FES-I Short

Hepatology

FIB-4, APRI, NAFLD Fibrosis, Forns Index, ALBI Grade, Lok Index, Bonacini CDS, King's Score, Lille Score, Maddrey DF, CLIF-ACLF

Security

  • Encryption: TFHE (Fully Homomorphic) β€” 128-bit security
  • Zero-Knowledge: Server computes on ciphertext, never sees plaintext
  • Auth: API key with SHA-256 hashed storage
  • Rate Limiting: 30 req/min per IP, daily caps
  • Compliance: HIPAA, LFPDPPP (Mexico), GDPR, FDA 21 CFR Part 11
  • No PHI Logging: Only encrypted computation metadata stored
  • Health Check

    curl https://rheumascore.xyz/fhe/v1/health
    

    Errors

  • 401 β€” Missing/invalid API key
  • 402 β€” Payment required (free tier exhausted)
  • 404 β€” Score not found
  • 429 β€” Rate limited
  • 503 β€” Backend unavailable
  • Support

  • Web: https://rheumascore.xyz
  • Provider: DNAI (DeSci ecosystem)
  • Built by CryptoReuMd.eth & DNAI
  • πŸ’‘ Examples

    1. Register (no auth required)

    curl -X POST https://rheumascore.xyz/fhe/v1/register \
      -H 'Content-Type: application/json' \
      -d '{"agent_name": "your-agent-name"}'
    
    Response includes your api_key (prefix: fhe_).

    2. List Available Scores

    curl https://rheumascore.xyz/fhe/v1/scores \
      -H 'Authorization: Bearer fhe_'
    

    3. Get Score Schema

    curl https://rheumascore.xyz/fhe/v1/schema/das28 \
      -H 'Authorization: Bearer fhe_'
    

    4. Compute a Score (FHE-encrypted)

    curl -X POST https://rheumascore.xyz/fhe/v1/compute/das28 \
      -H 'Authorization: Bearer fhe_' \
      -H 'Content-Type: application/json' \
      -d '{"values": [10, 5, 40, 60]}'
    

    5. Batch Compute (up to 20 scores)

    curl -X POST https://rheumascore.xyz/fhe/v1/batch \
      -H 'Authorization: Bearer fhe_' \
      -H 'Content-Type: application/json' \
      -d '{"computations": [
        {"score": "das28", "values": [10, 5, 40, 60]},
        {"score": "sledai", "values": [1,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}
      ]}'