mkdir build
cd build
cmake ..
cmake --build .
bech32m --help
With input text:
bech32m --input-text [program-input]
Inputs will be read from stdin
bech32m
Inputs will be read from file
bech32m --input-file [file-name]
Changing the input format
bech32m --input-format [hex/bin/base64]
Sending output to the file
bech32m --output-file [file-name]
With input read from stdin
bech32m --decode --output-format [hex/bin/base64]
With input as an argument
bech32m --decode --output-format [hex/bin/base64] --input-text [input]
With input from file
bech32m --decode --output-format [hex/bin/base64] --input-file [input-file]
Setting both input and output files
bech32m --decode --output-format [hex/bin/base64] --input-file [input-file] --output-file [output-file]
Trimming the trailing bits instead of padding them
bech32m --decode --output-format [hex/bin/base64] --trim
bech32m --decode --input-text a1424qmnnf92 --output-format hex
aaaa0
bech32m --decode --input-text a1424qmnnf92 --output-format hex --trim
aaaa
Allowing empty hrp
bech32m --allow-empty-hrp
Setting default hrp
bech32m --hrp [default-hrp]