Skip to content

KristianMika/PA193-Bech32m

Repository files navigation

Bech32m

Default CI Coverity Scan Build Status

Build

mkdir build
cd build
cmake ..
cmake --build .

Usage

Help

bech32m --help

Encoding

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]

Decoding

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]

Other flags

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]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages