@receiptprotocol/gate-sdk
v0.2.0-beta.1
Published
Provider-neutral complete-mediation SDK for Receipt execution admissions.
Readme
Receipt Gate SDK
Provider-neutral local enforcement for Receipt Partner Authority execution admissions.
Requires Node.js 20 or newer.
The Gate verifies the signed admission and exact material action locally, claims the one-time
admission online, transitions Receipt to invoking, and only then calls the injected provider
callback once. It never retries the provider callback. Ambiguous failures are reported as
indeterminate for later reconciliation.
The public surface includes verifyAdmission, claimAdmission, executeOnce, provider-entry and
outcome reporters, completeOrRelease, and reconcile. completeOrRelease can abandon an unused
pre-entry admission so its reservation is released exactly once.
Trusted Ed25519 public JWKs are supplied by the application's sandbox configuration. The SDK contains no provider credentials and no provider-specific code.
Receipt Authority API is one product: Test and Live are operating modes, not separate products. Test mode currently begins with the Reference Economic Action profile. Code-first custom action profiles are not yet self-serve. Receipt's Standard Action Library is upcoming. Live access remains available by request.
Package release pending. Keep this package in the credential-owning executor—never in browser code.
