You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dsc
fa76d2b060
|
1 month ago | |
---|---|---|
.github | 10 months ago | |
cmake | 1 month ago | |
contrib | 1 month ago | |
external | 1 month ago | |
src | 1 month ago | |
translations | 2 years ago | |
utils | 7 months ago | |
.gitattributes | 10 years ago | |
.gitignore | 2 years ago | |
.gitmodules | 1 month ago | |
CMakeLists.txt | 1 month ago | |
Dockerfile | 7 months ago | |
LICENSE | 2 years ago | |
README.md | 1 month ago |
README.md
wownero-ng
Wownero Next Generation™℗ is a version of Wownero that:
- has modern CMake
- is easier to compile (fewer dependencies)
- installs as a library with a CMake config for easy consumption
Supported platforms:
- Linux amd64
- MacOS aarch64 (m1/m2/m3)
Install
Dependencies
MacOS:
brew install boost zeromq openssl libpgm libsodium expat libunwind-headers protobuf libgcrypt qrencode ccache cmake pkgconfig git rapidjson
Then install, on all platforms it is:
cmake -Bbuild .
make -Cbuild -j12
sudo make -Cbuild install
wownero-ng will be installed to /usr/local/
.
CMake hello world
Using Wownero in your project:
cmake_minimum_required(VERSION 3.25)
set(CMAKE_VERBOSE_MAKEFILE ON)
project(test)
set(CMAKE_CXX_STANDARD 17)
find_package(Wownero 11.1.0 REQUIRED)
add_executable(test main.cpp)
target_link_libraries(removeme PUBLIC wownero::mnemonics)
#include "mnemonics/electrum-words.h"
#include "mnemonics/language_base.h"
using namespace std;
int main() {
vector<string> language_list;
crypto::ElectrumWords::get_language_list(language_list);
for(const auto &lang: language_list) {
cout << lang << "\n";
}
}
Static builds
Add -DSTATIC=1
to the cmake command, as well as:
-DOPENSSL_LIBRARIES=/usr/local/openssl/lib/
-DOPENSSL_ROOT_DIR=/usr/local/openssl
-DBOOST_ROOT=/usr/local
Note: you'll need these dependencies to be static too.