PiRK / ecashaddrconv

Standalone C++ implementation of cashaddr extracted from Bitcoin ABC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ecashaddrconv

Standalone C++ implementation of CashAddr extracted from Bitcoin ABC.

Requirements

This library depends on OpenSSL for the sha256 operation required for computing legacy address checksums.

Examples

You can find examples of how to use the API in the example.cpp file.

Run it with:

g++ -o example cashaddr.cpp example.cpp  -lssl -lcrypto
./example

Unit tests

To run unit tests, compile tests.cpp and run the resulting executable.

g++ -o tests tests.cpp cashaddr.cpp -lssl -lcrypto
./tests

About

Standalone C++ implementation of cashaddr extracted from Bitcoin ABC


Languages

Language:C++ 100.0%