Skip to content

bech32 string maximum length is not enforced #140

@tcharding

Description

@tcharding

None of our encoding functions enforce the 90 maximum length specified in BIP-173.

We should be enforcing hrp.len() + 1 + bytes_len_to_fes_len(data.len()) <= 90

Found while implementing buffered encoding in: #138

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