Documentation
¶
Overview ¶
Package wirevalue implements the M1 safe-integer JSON and canonicalization rules.
Index ¶
Constants ¶
View Source
const MaxInteger int64 = 9007199254740991
Variables ¶
This section is empty.
Functions ¶
func Canonical ¶
Canonical serializes the protocol's safe-integer subset of RFC 8785 JCS. Values may use JSON-native maps/slices or typed Go JSON representations. Untrusted wire bytes must enter through Parse before reaching this API.
func Parse ¶
Parse preserves JSON values without floating-point rounding. Every number is returned as a normalized integer json.Number. Duplicate keys, invalid Unicode, fractions, unsafe integers, and trailing values are rejected.
func RequestHash ¶
RequestHash excludes only the idempotency key, not any semantic parameter.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.