Skip to content

Use hex-encoded or string representation for user-facing identifiers #14

@G8XSU

Description

@G8XSU

If an identifier needs to be handled, referred to, read, or logged, it should be hex-encoded or in its string representation.

Byte arrays provide a poor user experience in these cases, making tasks like debugging and logging unnecessarily difficult.

While byte arrays are acceptable for machine-handled data (e.g., encrypted bytes, secrets, or protobufs), user-facing data, such as payment-id, channel-id, user-channel-id, and payment-hash, should be more readable.

This applies to both API input and output to reduce friction in interactions with the API.

While someone could easily do this themselves and we can keep on having byte arrays in apis, but it would be nice if clients could log/see responses directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions