Skip to content
Minter C++ SDK: build and sign any transaction, generate mnemonic with private and public key
C++ CMake Shell Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
examples
include/minter added to_string method and string() operator to private key, better e… Sep 6, 2019
libs updated submodule, again Jun 22, 2019
modules
src
tests
.gitignore
.gitmodules
CMakeLists.txt added to_string method and string() operator to private key, better e… Sep 6, 2019
LICENSE
README.md
conanfile.py
conanfile.txt
merge_libs.sh
version added to_string method and string() operator to private key, better e… Sep 6, 2019

README.md

cpp-minter

Minter C++ SDK: build and sign any transaction, generate mnemonic with private and public key

CircleCI Download

Features:

  • Transaction Builder
  • Signing any supported transaction
  • Working with private and public keys
  • Generating mnemonic (with low-predictable PCG random generator)

Requirements:

  • GCC 4.9+/Clang/AppleClang
  • CMake 3.10+
  • Python with PIP
  • Conan

Install Conan (dependency manager for C++)

Debian

apt-get install python3 python3-pip
pip3 install setuptools -U
pip3 install conan

Centos

yum install python pip
pip install --upgrade pip
pip install setuptools -U
pip install conan

Fedora (or like)

dnf install python3 python3-pip
pip3 install setuptools -U
pip3 install conan

Setup repositories

conan remote add scatter https://api.bintray.com/conan/edwardstock/scatter
conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
conan remote add minter https://api.bintray.com/conan/minterteam/minter

For more information, see official docs

Use as conan dependency

You can just add to your conanfile.txt dependency:

minter_tx/0.1.3@minter/latest

CMakeLists.txt

add_executable(my_program my_program.cpp)
target_link_libraries(my_program CONAN_PKG::minter_tx)

See guide how to use conan with cmake

Build library:

git clone --recursive https://github.com/MinterTeam/cpp-minter.git
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DMINTER_TX_TEST=On -DCMAKE_INSTALL_PREFIX=/usr
cmake --build . -- -j4
cmake --build . --target install

Then in your build script add lib:

g++ my_program.cpp -lminter_tx

Examples:

See here link

Build mnemonic generator

git clone --recursive https://github.com/MinterTeam/cpp-minter.git
cd examples/generate
mkdir build && cd build
CONAN_LOCAL=1 cmake .. -DCMAKE_BUILD_TYPE=Debug
CONAN_LOCAL=1 cmake --build . -- -j4

Run:

./bin/minter-gen

Or run with simple argument:

./bin/minter-gen 300

Generates 300 mnemonics and print it to stdout

Pretty address generator

link

License

MIT License

Copyright (c) 2019 Minter Author: Eduard Maximovich

You can’t perform that action at this time.