radare2 icon indicating copy to clipboard operation
radare2 copied to clipboard

Add bech32 encoding/decoding

Open trufae opened this issue 1 year ago • 7 comments

This encoding is used by nostr and some crypto currencies to encode keys and notes with a meaningful prefix and extend the hexadecimal wordability. This can be compared to base64 but it's just different :D

  • https://github.com/ElementsProject/lightning/blob/master/common/bech32.c
  • https://github.com/bitcoinjs/bech32/blob/master/src/index.ts
  • https://github.com/dcdpr/libbech32/blob/master/libbech32/bech32.cpp

FMI https://www.doubloin.com/learn/what-is-bech32-format

trufae avatar Aug 08 '23 12:08 trufae

@trufae I would love to pick this up. Is anyone on it?

chettriyuvraj avatar Aug 23 '23 12:08 chettriyuvraj

All yours! I learned about it when playing with nostr, so maybe good to check it out in case you didnt know about it and i think its worth having support for it!

trufae avatar Aug 23 '23 23:08 trufae

Thanks! I am new here, please bear with me as I explore the codebase a little first. Will keep posting updates here :)

chettriyuvraj avatar Aug 24 '23 20:08 chettriyuvraj

Sure, take your time, feel free to hangout in any of the chats (matrix, irc, discord, telegram) and ask anything if you need for help or guide! Ideally we may want to have this (or at least ap ublic api for this) before 5.9 is out, because this way we can have a stable api/abi until 6.0, (this timeframe is around a month from now)

trufae avatar Aug 25 '23 08:08 trufae

Is the issue resolved or still available for solving?

RengarajR404 avatar Oct 06 '23 05:10 RengarajR404

If its not closed it means its still there

trufae avatar Oct 06 '23 07:10 trufae