{"repo":"azuchi/bech32rb","free":true,"listed":false,"github":"https://github.com/azuchi/bech32rb","clone":"git clone https://github.com/azuchi/bech32rb.git","description":"The implementation of Bech32 encoder and decoder for ruby","language":"Ruby","stars":22,"topics":["bech32","bech32m","bitcoin"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"Bech32 The implementation of the Bech32/Bech32m encoder and decoder for Ruby. Bech32 is checksummed base32 format that is used in following Bitcoin address format. https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki Bech32m is checksummed base32m format that is used in following Bitcoin address format. https://github.com/bitcoin/bips/blob/master/bip-0350.mediawiki Installation Add this line to your application's Gemfile: And then execute: $ bundle Or install it yourself as: $ gem install bech32 Usage Require the Gem: Decode Decode Bech32-encoded data into hrp part and data part. Advanced The maximum number of characters of Bech32 defined in BIP-173 is limited to 90 characters. However, LN specification BOLT#11 has no limitation. To decode data of more than 90 characters, specify max length at decode as below. (The default value of max length is 90.) Note that between length of the addresses and the error-detection capabilities are trade-off. Encode Encode Bech32 human-readable part and data part into Bech32 string. Segwit Decode Bech32-encoded Segwit address into Bech32::SegwitAddr instance. Encode Segwit script into Bech32 Segwit address. Silent payment address Decode silent payment address. Encode sp address. Nostr Supports encoding/decoding of Nostr's NIP-19 entities. CLI After installing the gem, the bech32 command will be available. Encoding and decoding features are also available in the cli. Encode The encode command takes HRP , data , and type ( bech32 or b","default_branch":null,"files":null,"tree":[],"storefront":"/r/azuchi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/azuchi/bech32rb/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}