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
fix amd64
1 month ago
.github Merge pull request #8566 10 months ago
cmake fix amd64 1 month ago
contrib macos aarch64 1 month ago
external macos aarch64 1 month ago
src fix amd64 1 month ago
translations Copyright: Update to 2022 2 years ago
utils Add _xxfedexx_'s PGP key 7 months ago
.gitattributes cmake: support git info in released tarballs 10 years ago
.gitignore Ignore gitian build files 2 years ago
.gitmodules cmake rewrite 1 month ago
CMakeLists.txt macos aarch64 1 month ago
Dockerfile update Dockerfile 7 months ago
LICENSE Update copyright to 2022 for Hardfork files 2 years ago
README.md update README 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.