Skip to main content

Grantex Delegation Token (GDT)

A Grantex Delegation Token is a W3C Verifiable Credential 2.0 that authorizes an AI agent to make payments on behalf of a human principal. It is encoded as a compact JWT signed with Ed25519 (EdDSA algorithm).

Token Format

JWT Header

JWT Payload

Claim Definitions

Standard JWT Claims

VC Context

The vc claim follows the W3C Verifiable Credentials Data Model 2.0:

Credential Subject

Scope Format

Scopes follow the resource:action pattern:

Scope Matching Rules

  1. Exact match: weather:read matches weather:read
  2. Action wildcard: weather:* matches weather:read, weather:write, etc.
  3. Global wildcard: * matches everything
  4. No implicit escalation: weather:read does NOT match weather:write

Spend Limit Periods

Expiry Formats

The expiry parameter accepts:

Delegation Chain

The delegationChain field records the full chain of delegation:
The delegation chain enables audit of the full authorization path.

Cryptographic Details

Verification Checks

A GDT is considered valid only if ALL of the following pass:
  1. The JWT signature is valid for the issuer’s Ed25519 public key
  2. The exp claim is in the future
  3. The jti is not in the revocation registry
  4. The requested resource matches at least one granted scope
  5. The request amount does not exceed the spend limit
  6. The vc.type array includes both VerifiableCredential and GrantexDelegationToken
  7. The vc.credentialSubject contains valid scope and spend limit data
Last modified on March 21, 2026