@pebbl/crypto
v0.1.1
Published
Ed25519 cryptography, canonical JSON encoding, and signature verification for Pebble
Maintainers
Readme
@pebbl/crypto
Cryptographic identity, deterministic canonical JSON encoding, and Ed25519 digital signature utilities for Pebble.
Installation
pnpm add @pebbl/cryptoFeatures
- Canonical JSON Encoding:
canonicalEncode()produces deterministic UTF-8 byte streams by sorting object keys recursively, preserving types and null values without extraneous whitespace. - Ed25519 Identity:
generateIdentity(),loadIdentity(), andsaveIdentity()with automaticnodeId = base64url(SHA-256(publicKey))derivation. - Mutation Signatures:
signMutation()andverifyMutation()ensuring tamper-proof state replication. - Credential Signatures:
signCredential()andverifyCredential()for offline moderator-signed client access tokens.
License
MIT
