cesr
Installation
SKILL.md
CESR Specification Skill
CESR is a dual-domain (Text/Binary) composable encoding for cryptographic primitives used across the KERI ecosystem. It provides round-trip T<->B conversion with the composability property: T(cat(b[k])) = cat(T(b[k])). All KERI events, credentials (ACDCs), and protocol messages use CESR encoding.
Quick Reference
Core Size Formulas
pad_size = (3 - (raw_size % 3)) % 3 # 0, 1, or 2
lead_bytes = pad_size # always equal
cs = hs + ss # code size
fs = hs + ss + vs # full size (T-domain)
bs = ls + rs # binary size