Bob on Nostr: In previous development, I didn't pay attention to the differences between bech32 and ...
In previous development, I didn't pay attention to the differences between bech32 and bech32m. I just discovered that they have differences in the last few characters. This can lead to unintended inequality when comparing them in certain logic.
Therefore, in future development, we should try to use hex for comparisons as much as possible.
Published at
2024-09-16 13:50:16Event JSON
{
"id": "a3b2320a6620b691ef7464c8d9a226815350241e2a2a74d108c77e953de8a69a",
"pubkey": "887f827161338ef4d3e83482498664ad7454caf9bda7d080c3b32821f1394708",
"created_at": 1726494616,
"kind": 1,
"tags": [],
"content": "In previous development, I didn't pay attention to the differences between bech32 and bech32m. I just discovered that they have differences in the last few characters. This can lead to unintended inequality when comparing them in certain logic.\n\nTherefore, in future development, we should try to use hex for comparisons as much as possible.",
"sig": "030f16f253e74a21043f1e509801407d8bbfc6aedb53daea67515594082bdb083373d4b9f412e137bc991ad8684c5a082a2c2487a7b78547fa809e2c5ab797b6"
}