aboutsummaryrefslogtreecommitdiff
path: root/src/bech32.h
AgeCommit message (Collapse)Author
2024-05-13refactor: Model the bech32 charlimit as an Enumjosibake
Bech32(m) was defined with a 90 character limit so that certain guarantees for error detection could be made for segwit addresses. However, there is nothing about the encoding scheme itself that requires a limit and in practice bech32(m) has been used without the 90 char limit (e.g. lightning invoices). Further, increasing the character limit doesn't do away with error detection, it simply lessons the guarantees. Model charlimit as an Enum, so that if a different address scheme is using bech32(m), the character limit for that address scheme can be used, rather than always using the 90 charlimit defined for segwit addresses. upate comment
2021-12-06Make Bech32 LocateErrors return error list rather than using out-argSamuel Dobson
2021-10-12Modify copyright header on Bech32 codeSamuel Dobson
2021-10-12Add Bech32 error location functionSamuel Dobson
2021-03-17naming nitsFabian Jahr
2021-03-15Implement Bech32m encoding/decodingPieter Wuille
2019-09-05Assert that the HRP is lowercase in Bech32::EncodeSamuel Dobson
2018-03-22Fix missing or inconsistent include guardspracticalswift
2017-09-28Import Bech32 C++ reference code & testsPieter Wuille
This includes a reformatted version of the Bech32 reference code (see https://github.com/sipa/bech32/tree/master/ref/c%2B%2B), with extra documentation.