{"id":"bech32-convert-bits","version":"1.0.0","description":"Regroup integers between bit widths using BIP 173 rules, rejecting bad leftover padding.","supported_operations":["convert 8 bit bytes into 5 bit bech32 symbols","convert 5 bit symbols back into 8 bit bytes","regroup integers from one bit width to another","reject non-zero leftover padding","bip 173 convertbits with an explicit pad flag","zero-pad leftover bits when the pad flag is true","change bit grouping without adding a checksum","expand bytes to the bech32 symbol width"],"unsupported_operations":["append or check a bech32 checksum","parse an address string or human-readable part","apply segwit witness version rules","encode the Bech32 character set"],"semantics":["Implements BIP 173 convertbits. from_bits and to_bits are integers 1 through 8. pad is required: true emits one final zero-padded symbol when bits remain; false rejects that remainder.","Each input integer must be in 0 .. 2^from_bits-1. Negative zero, NaN, and Infinity are rejected. The input array is not modified.","pad false fails with invalid_input reason invalid_padding when leftover bits are at least from_bits wide, or when the leftover bits are non-zero. Zero leftover narrower than from_bits is accepted.","There is no checksum and no HRP. 8-to-5 with pad true is the grouping used before Bech32 encoding; 5-to-8 with pad false is the grouping used after decoding.","More than 256 input items, or more than 1024 output items, is limit_exceeded. The input length is checked before item values.","Disclaimer: format transform only; provides no confidentiality, integrity, or authenticity."],"limits":{"max_items":256,"max_output_items":1024},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["data","from_bits","to_bits","pad"],"properties":{"data":{"type":"array","maxItems":256,"items":{"type":"integer","minimum":0,"maximum":255}},"from_bits":{"type":"integer","minimum":1,"maximum":8},"to_bits":{"type":"integer","minimum":1,"maximum":8},"pad":{"type":"boolean"}}},"output_schema":{"type":"object","additionalProperties":false,"required":["data","to_bits"],"properties":{"data":{"type":"array","maxItems":1024,"items":{"type":"integer","minimum":0,"maximum":255}},"to_bits":{"type":"integer","minimum":1,"maximum":8}}},"examples":[{"input":{"data":[],"from_bits":8,"to_bits":5,"pad":true},"output":{"data":[],"to_bits":5}},{"input":{"data":[255],"from_bits":8,"to_bits":5,"pad":true},"output":{"data":[31,28],"to_bits":5}},{"input":{"data":[117,30],"from_bits":8,"to_bits":5,"pad":true},"output":{"data":[14,20,15,0],"to_bits":5}}],"execute_url":"/v1/tools/bech32-convert-bits/versions/1.0.0/execute"}