Skip to main content

Installation

Published release: github.com/mishrasanjeev/grantex-go@v0.4.3. The tag and public Go proxy resolve to the reviewed merge commit; the downloaded module passed go test ./... and go vet ./....
The unpinned go get github.com/mishrasanjeev/grantex-go command follows Go’s module-version resolution. Keep the exact version above in reproducible builds. See Release Status before upgrading.

Requirements

  • Go 1.26.1+, matching this module’s go.mod directive
Version v0.4.0 adds client.WebAuthn.CreateEnrollmentSession for principal-authenticated hosted passkey registration and client.Anomalies.GetResponsePolicy / SetResponsePolicy for the account-level irregularity response mode. Both server capabilities are default-off for self-hosted deployments and require explicit operator rollout; both are enabled on the Grantex-hosted service. Version v0.4.1 adds typed WebAuthnGrantEvidence references to grant and verification responses and the updated VC WebAuthn attestation. It does not enable hosted server flags or add custom assertion UI helper methods.

Configuration

Version v0.4.2 adds client.Grants.Verify and opt-in VerifyOptions.CurrentAuthority, ExpectedPrincipalID and ExpectedAgentDID. The callback must query the trusted issuer on each operation and fail closed on inactive, unavailable or inconsistent authority. Local signature checks alone do not prove current revocation. See SDK execution authority.
Version v0.3.0 adds typed EVM payment responses and authenticated principal/agent reservation reconciliation for Base USDC custody. It retains bounded refresh lost-response recovery from v0.2.1 and the corrected Agent/Audit contracts and ES256 DPoP wallet clients from v0.2.0. It does not add an automatic x402 HTTP payment-and-retry wrapper; applications must implement their merchant HTTP flow.

Quick Start

Available Resources

Use NewPrincipalPrepaidWalletClient for human wallet, assignment, reload, policy, approval, activity, and stop operations. Use NewAgentPrepaidWalletClient with GenerateDPoPKey for assigned-wallet listing, payment authorization, and reload requests. Both constructors reject remote plain-HTTP wallet endpoints; check their returned errors. See Agent Wallet Governance.

Standalone Functions

Error Handling

Ownership

Grantex is owned by Orchestrum Technologies LLP. Inventor and owner: Sanjeev Kumar. Ownership contact: sanjeev@orchestrum.in or mishra.sanjeev@gmail.com.
Last modified on October 4, 2026