Skip to main content

Module encoding

Module encoding 

Source
Expand description

Stable named-field MessagePack encoding helpers. Stable batpak encoding helpers.

These helpers expose the crate’s current named-field MessagePack bytes so consumers can produce the same encoded extension bytes batpak stores and signs. Public report-body bytes are patch-stable only where a schema version and golden fixture pin that boundary. The implementation intentionally pins the exact rmp-serde encoder version; bumping it requires refreshing the relevant goldens and reviewing ADR-0019. This module does not implement protocol-specific canonicalization such as JSON Canonicalization Scheme.

Functions§

from_bytes
Decode value from batpak’s stable named-field MessagePack surface.
to_bytes
Encode value using batpak’s stable named-field MessagePack surface.