JSPM

@larkinsh/verify

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10
  • Score
    100M100P100Q76787F
  • License MIT

Verify Larkin Ed25519-signed receipts. Zero dependency on Larkin's API.

Package Exports

  • @larkinsh/verify

Readme

@larkinsh/verify

Verify any Larkin receipt anywhere, forever, with zero dependency on Larkin's API.

You do not need to trust Larkin. You do not need to call our servers. Every signed receipt we have ever issued is verifiable forever using only this library and our published public key.

Install

npm i @larkinsh/verify

Usage

import { verify, verifyWithFetch } from "@larkinsh/verify";

// Pure — caller supplies the public key
const result = verify(receipt, publicKeyBase64Url);
// → { valid: true, payload: {...} } | { valid: false, reason: "..." }

// Convenience — fetches JWKS from /.well-known/larkin-keys.json, caches in memory
const result2 = await verifyWithFetch(receipt);

CLI

npx @larkinsh/verify receipt.json
# ✓ Valid. wallet=0x... score=72 decision=allow issued=2026-04-21T...

Why this exists

You do not need to trust Larkin. You do not need to call our API. Every signed receipt we've ever issued is verifiable forever using only this library and our published public key.

Status

Implemented in CP2. Test coverage: valid / tampered / wrong-key / unknown-kid / mock-sentinel / expired. See BRIEF.md.

License

MIT