Skip to content

Validate ISO 4217 compliance in BOLT12 CurrencyCode #3813

Open
@tnull

Description

@tnull

For other strings we make sure via PrintableString/UntrustableString that they are safe to print/log, etc. However, so far we omit validating the iso4217_code: CurrencyCode at all.

We should probably start validating that the supplied chars comply with the spec's alphabetic codes (i.e., are in A..Z, IIUC). At the very least we should check that they do not include escape characters, or provide a safe Display implementation (although stricter validation seams reasonable?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions