https://github.com/eddytheco/qbech32
https://github.com/eddytheco/qbech32
bech32 crypto qt6
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/eddytheco/qbech32
- Owner: EddyTheCo
- License: gpl-3.0
- Created: 2022-11-12T19:28:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-28T10:04:29.000Z (about 1 year ago)
- Last Synced: 2024-03-29T10:56:17.785Z (about 1 year ago)
- Topics: bech32, crypto, qt6
- Language: C++
- Homepage: https://eddytheco.github.io/Qbech32/
- Size: 46.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Checksummed base32 format
[TOC]
This repo implements a library that encodes addresses to a bech32 string according to this [TIP](https://github.com/iotaledger/tips/blob/main/tips/TIP-0031/tip-0031.md) and based on this [BIP](https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki)## Installing the library
### From source code
```
git clone https://github.com/EddyTheCo/Qbech32.gitmkdir build
cd build
qt-cmake -G Ninja -DCMAKE_INSTALL_PREFIX=installDir -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DBUILD_DOCS=OFF ../Qbech32cmake --build .
cmake --install .
```
where `installDir` is the installation path.
One can choose to build or not the tests and the documentation with the `BUILD_TESTING` and `BUILD_DOCS` variables.### From GitHub releases
Download the releases from this repo.## Adding the libraries to your CMake project
```CMake
include(FetchContent)
FetchContent_Declare(
Qtbech32
GIT_REPOSITORY https://github.com/EddyTheCo/Qbech32.git
GIT_TAG vMAJOR.MINOR.PATCH
FIND_PACKAGE_ARGS MAJOR.MINOR CONFIG
)
FetchContent_MakeAvailable(Qtbech32)
target_link_libraries( Qtbech32::qbech32)
```## API reference
You can read the [API reference](https://eddytheco.github.io/Qbech32/) here, or generate it yourself like
```
cmake -DBUILD_DOCS=ON ../
cmake --build . --target doxygen_docs
```## Contributing
We appreciate any contribution!
You can open an issue or request a feature.
You can open a PR to the `develop` branch and the CI/CD will take care of the rest.
Make sure to acknowledge your work, and ideas when contributing.