Integration

Behavioral access gating

TrustGate provides a hard-to-fake behavioral trust signal and optional signed, time-bound attestation. Your protocol owns the ladder — what each score is allowed to do. TrustGate does not set borrow limits, assert token price, or act as a credit bureau. Gating and Protocol Guard are free for protocols — no subscription required.

Liability fence

TrustGate said the wallet scored N at time T under scoringVersion V. The protocol chose what N allows. Scores behaviour, not value or safety.

APIs

  • POST /api/gating/attest — issue EIP-712 attestation
  • POST /api/gating/verify — fail-closed off-chain verify
  • POST /api/gating/check — score + protocol ladder + attestation

Check body (protocol owns ladder)

{
  "wallet": "0x…",
  "requestedAmount": 500000,
  "capability": "borrow",
  "ladder": {
    "protocolId": "my-dao",
    "minConfidence": 40,
    "multiFactorAcknowledged": true,
    "bands": [
      { "minScore": 25, "maxScore": 48, "capability": "borrow", "maxAmount": 20000 },
      { "minScore": 49, "maxScore": 60, "capability": "borrow", "maxAmount": 100000 },
      { "minScore": 61, "maxScore": 90, "capability": "borrow", "maxAmount": 500000 }
    ]
  },
  "useClass": "financial_high"
}

Demo only: ladderPreset: "example_lending" or "example_governance" — not TrustGate policy.

On-chain verification

Deploy contracts/TrustAttestationVerifier.sol. Authorize the TrustGate issuer address. Call verify(attestation, signature, subject) before releasing funds. Fail-closed on expiry, bad signature, wrong subject, or unauthorized issuer.

Multi-factor (required guidance)

Do not sole-gate on score >= X. Combine with collateral, protocol history, staking, and DAO participation. TrustGate is one risk input among several.

Env

  • ATTESTATION_SIGNER_PRIVATE_KEY — production issuer key
  • ATTESTATION_AUTHORIZED_ISSUERS — optional extra issuers
  • SCORING_ENVIRONMENT=testnet|mainnet — labels attestation calibration

Open gating pilot UI