Skip to content

serializeUCAN

serializeUCAN(ucan): string

Defined in: packages/core/src/ucan.ts:210

Serialize a UCAN to a Base64 string using deterministic key ordering. Header fields come first (version), then payload fields alphabetically, then signature last. This ensures identical UCANs always produce the same serialized output regardless of object key insertion order.

UCAN

string