@uuaid/core
v0.1.0
Published
UUAID identifier grammar, canonical hashing, and crypto-agile signature envelopes.
Readme
@uuaid/core
Cryptographic primitives for UUAID — the identity + certification layer for AI agents ("the SSL/CA for agents").
- UUAID grammar — mint + parse
uuaid:<namespace>:<type>:<uuidv7>(durable, creation-time-ordered agent identifiers). - JCS canonicalization (RFC 8785) +
contentHash— stable, on-chain-ready content hashes for any JSON value. - Crypto-agile signature envelope — Ed25519 today;
ml-dsa-65/slh-dsa-128sreserved. Hybrid = multiple signatures over one payload in a single envelope.
import { mintUuaid, contentHash, generateEd25519, sealEnvelope, verifyEnvelope } from "@uuaid/core";
const agent = mintUuaid("agent"); // { uuaid, uuid }
const signer = generateEd25519();
const env = sealEnvelope({ hello: "world" }, [{ key: signer, keyId: "k1" }]);
verifyEnvelope(env); // { valid: true, verified: 1, total: 1 }Built on the audited noble libraries. Node ≥ 18 and modern browsers. Apache-2.0 · uuaid.org
