sipa / bech32

Code snippets and analysis of the Bech32 format
191 stars 107 forks source link

Remove static on convert_bits #52

Open CarloMara opened 4 years ago

CarloMara commented 4 years ago

Dear all,

I'm working on a C implementation of age and I need access to the internal convert_bits function which is declared static. This pr enables that.

Happy new year, Carlo

sipa commented 4 years ago

I think you shouldn't use segwit_addr.c directly as it's specific for segwit addresses. Feel free to copy the convert_bits function though; it's trivial.