Docs — read the spec before you seal
Everything under
the torii.
Hanko is an open port of ERC-8004 to Solana. All specs, contracts, SDKs, and reference implementations live on GitHub — nothing here is closed.
Registry spec
Anchor PDA layout, instruction signatures, event schema, and account rent estimates.
Attestation format
Ed25519 typed data — canonical form, domain separator, JCS canonicalization.
AgentCard + A2A binding
A2A v1.0 fields, hankoBinding claim, DNS TXT proof, well-known URI resolver.
Karma math
0..1000 formula, tier thresholds, weight normalization, indexer cache TTLs.
x402 middleware
@hankolabs/x402-middleware install, hankoGuard config, and integration example with Coinbase x402.
CLI reference
hanko init, seal, karma, verify, attest, stake, slash — every command with examples.
TypeScript SDK
@hankolabs/sdk HankoClient methods, Anchor IDL types, wallet adapter integration.
HANKO Lens
MV3 architecture, base58 scanner, seal overlay, host page isolation.
Published packages
hanko-cli
Global CLI — the bin is `hanko`. Seal, verify, attest, stake from a terminal.
npm i -g hanko-cli@hankolabs/sdk
TypeScript SDK — HankoClient for register, verify, attest, karma reads.
npm i @hankolabs/sdk@hankolabs/attestation-engine
Ed25519 typed attestations — canonical form, signing, verification. Re-exported by the SDK.
npm i @hankolabs/attestation-engine@hankolabs/x402-middleware
Express/Fastify hankoGuard — trust checks before x402 payment clears.
npm i @hankolabs/x402-middleware