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).
JWT Payload
Claim Definitions
Standard JWT Claims
VC Context
The vc claim follows the W3C Verifiable Credentials Data Model 2.0:
Credential Subject
Scopes follow the resource:action pattern:
Scope Matching Rules
- Exact match:
weather:read matches weather:read
- Action wildcard:
weather:* matches weather:read, weather:write, etc.
- Global wildcard:
* matches everything
- No implicit escalation:
weather:read does NOT match weather:write
Spend Limit Periods
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:
- The JWT signature is valid for the issuer’s Ed25519 public key
- The
exp claim is in the future
- The
jti is not in the revocation registry
- The requested resource matches at least one granted scope
- The request amount does not exceed the spend limit
- The
vc.type array includes both VerifiableCredential and GrantexDelegationToken
- The
vc.credentialSubject contains valid scope and spend limit data
Last modified on March 21, 2026