aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorjosibake <josibake@protonmail.com>2023-07-18 22:22:26 +0200
committerjosibake <josibake@protonmail.com>2024-05-13 12:07:47 +0200
commit5676aec1e1a6d2c6fd3099e120e263a0a7def089 (patch)
tree0d09ba5b3efeed4304a988aaf13cb36ca86465bc /Makefile.am
parent2cedb42a928fbf3a1e0e8715e918497cbe64af0d (diff)
refactor: Model the bech32 charlimit as an Enum
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
Diffstat (limited to 'Makefile.am')
0 files changed, 0 insertions, 0 deletions