Shared helpers for reading and validating protocol map parameters.
Wallet builders and parsers use these helpers at the boundary where caller input may use atom or string keys. The helpers keep that boundary behavior consistent while protocol-specific validation remains with each caller.
Summary
Functions
Return a keyword list or raise an ArgumentError.
Fetch a value by atom key, falling back to its string spelling.
Return a non-empty binary or raise an ArgumentError.
Put value into map unless it is nil.
Put a normalized non-nil value into map.
Raise unless value is a non-empty binary.
Convert atom keys in a map to strings, without recursing into values.
Return a list of binaries or raise an ArgumentError.
Functions
Return a keyword list or raise an ArgumentError.
Fetch a value by atom key, falling back to its string spelling.
Return a non-empty binary or raise an ArgumentError.
Put value into map unless it is nil.
Put a normalized non-nil value into map.
Raise unless value is a non-empty binary.
Convert atom keys in a map to strings, without recursing into values.
Return a list of binaries or raise an ArgumentError.