haskell-bitcoin / bitcoin

Bitcoin Library for Haskell
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

Add structured types for bech32 encoding result #40

Closed tochicool closed 1 year ago

tochicool commented 1 year ago

Attempts to resolve #39

This introduces the bech32EncodeResult and bech32DecodeResult functions and their respective structured types to allow for custom application handling of failures. This also exports the maxBech32Length definition.

tochicool commented 1 year ago

Please squash the commits!