These examples use the public package subpath imports that downstream projects
should use. In this repository, pnpm run examples runs them through Vitest
with aliases that point those subpaths at src/, so the examples are checked
before publishing.
Run all examples:
pnpm run examplesAvailable recipes:
sign1-ed25519.ts: sign and verify aCOSE_Sign1payload.encrypt0-aesgcm.ts: encrypt and decrypt with an implicit AES-GCM content key.encrypt-aeskw.ts: encrypt for a recipient using AES Key Wrap.mac0-hmac.ts: create and verify aCOSE_Mac0tag.cwt-sign1.ts: sign CWT claims withCOSE_Sign1and validate them.