atproto utils for zig zat.dev
atproto sdk zig
Something went wrong. Try again.
cbor: strict Cid parse/format + canonical varints + honest create master
- Cid.fromBytes/fromString: validate the atproto-blessed profile (CIDv1, dag-cbor/raw, SHA-256/32-byte digest, minimal varints, no trailing bytes) - Cid.toString: single-allocation multibase b+base32lower - Cid.create: reject hash codes it does not compute (was writing the given code over a SHA-256 digest) - readUvarintMinimal: reject overlong varints, cap at 9 bytes - base32lower.encodeInto: 5-byte chunked encoder (~2.6x faster toString) - mst.parseCidString delegates to the strict parser; zat.Cid root export Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Author zzstoatzz Co-author Claude Fable 5 Date (Aug 8, 2026, 5:14 PM UTC) Commit 0acbedfb 0acbedfb0b788e0cd3956d0a88ea826e0e2a8501 Parent e4eff1c6 e4eff1c647fa1daa807556db45dadff244122406