Git Product home page Git Product logo

validator-keys-tool's Introduction

validator-keys-tool

Build Status Build status codecov

Rippled validator key generation tool

Table of contents

Dependencies

rippled inclusion

This project depends on the rippled repository for core signing functionality. If you have built and installed rippled, you can point this project at your installation using CMAKE_PREFIX_PATH (if you have installed in a standard system search path, this is not needed), e.g.:

$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/path/to/rippled/installation/root ../..

Alternatively, if you do not have a local installation of rippled development files that you want to use, then this project will fetch an appropriate version of the source code using CMake's FetchContent.

Other dependencies

Build and run

For linux and other unix-like OSes, run the following commands (see note above about adding CMAKE_PREFIX_PATH as needed):

$ cd ${YOUR_VALIDATOR_KEYS_TOOL_DIRECTORY}
$ mkdir -p build/gcc.debug
$ cd build/gcc.debug
$ cmake -DCMAKE_BUILD_TYPE=Release ../..
$ cmake --build .
$ ./validator-keys

For 64-bit Windows, open a MSBuild Command Prompt for Visual Studio and run the following commands:

> cd %YOUR_VALIDATOR_KEYS_TOOL_DIRECTORY%
> mkdir build
> cd build
> cmake -G"Visual Studio 15 2017 Win64" ..
> cmake --build . --config Release
> .\Release\validator-keys.exe

32-bit Windows builds are not supported.

Guide

Validator Keys Tool Guide

validator-keys-tool's People

Contributors

biddisco avatar legleux avatar manojsdoshi avatar mellery451 avatar nbougalis avatar thejohnfreeman avatar wilsonianb avatar ximinez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

validator-keys-tool's Issues

Trouble installing Validator-Keys-Tool

Hello,

I'm trying to host my own Rippled Validator and as a part of the process, I need to generate a key using the 'Validator-Keys-Tool.'

I've been stuck on a particular step in the process and though I would ask to see if you had any insight into the issue. I'm sure I will eventually figure it out but if it's something anyone is familiar with, any assistance would be appreciated.

Following the README for this project, I cloned the repository, "CD'ed" into the directory and executed in bash: "cmake -DCMAKE_BUILD_TYPE=Release ../.."

That's where I get stuck. Here's a log of the situation:
_```
brietoe@Brownie-PC:/validator-keys-tool/build/gcc.debug$ export BOOST_LIBRARYDIR=/home/brietoe/validator-keys-tool/build/gcc.debug/boost_1_68_0/libs
brietoe@Brownie-PC:
/validator-keys-tool/build/gcc.debug$ export BOOST_ROOT=/home/brietoe/validator-keys-tool/build/gcc.debug/boost_1_68_0/
brietoe@Brownie-PC:~/validator-keys-tool/build/gcc.debug$ cmake -DCMAKE_BUILD_TYPE=Release ../..
-- Installed rippled not found...using local FC
-- Pausing to download rippled source...
-- rippled version: 1.2.4
-- NIH-EP cache path: /home/brietoe/validator-keys-tool/.nih_c/unix_makefiles/GNU_7.4.0/Release
-- BOOST_ROOT: /home/brietoe/validator-keys-tool/build/gcc.debug/boost_1_68_0
-- BOOST_LIBRARYDIR:
-- Boost version: 1.68.0
-- Found the following Boost libraries:
-- chrono
-- context
-- coroutine
-- date_time
-- filesystem
-- program_options
-- regex
-- serialization
-- system
-- thread
-- atomic
-- Pausing to download NuDB...
[ 11%] Performing download step (git clone) for 'nudb_src-populate'
Cloning into 'nudb_src-src'...
Note: checking out '1.0.0'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b

HEAD is now at da09745 Set version to 1.0.0
Submodule 'doc/docca' (https://github.com/vinniefalco/docca.git) registered for path 'doc/docca'
Submodule 'extras/beast' (https://github.com/vinniefalco/Beast.git) registered for path 'extras/beast'
Submodule 'extras/rocksdb' (https://github.com/facebook/rocksdb.git) registered for path 'extras/rocksdb'
Cloning into '/home/brietoe/validator-keys-tool/.nih_c/unix_makefiles/GNU_7.4.0/Release/nudb_src-src/doc/docca'...
Cloning into '/home/brietoe/validator-keys-tool/.nih_c/unix_makefiles/GNU_7.4.0/Release/nudb_src-src/extras/beast'...
Cloning into '/home/brietoe/validator-keys-tool/.nih_c/unix_makefiles/GNU_7.4.0/Release/nudb_src-src/extras/rocksdb'...
Submodule path 'doc/docca': checked out '335dbf9c3613e997ed56d540cc8c5ff2e28cab2d'
error: Server does not allow request for unadvertised object 2f9a8440c2432d8a196571d6300404cb76314125
Fetched in submodule path 'extras/beast', but it did not contain 2f9a8440c2432d8a196571d6300404cb76314125. Direct fetching of that commit failed.
CMake Error at nudb_src-subbuild/nudb_src-populate-prefix/tmp/nudb_src-populate-gitclone.cmake:93 (message):
Failed to update submodules in:
'/home/brietoe/validator-keys-tool/.nih_c/unix_makefiles/GNU_7.4.0/Release/nudb_src-src'

CMakeFiles/nudb_src-populate.dir/build.make:90: recipe for target 'nudb_src-populate-prefix/src/nudb_src-populate-stamp/nudb_src-populate-download' failed
make[2]: *** [nudb_src-populate-prefix/src/nudb_src-populate-stamp/nudb_src-populate-download] Error 1
CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/nudb_src-populate.dir/all' failed
make[1]: *** [CMakeFiles/nudb_src-populate.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

CMake Error at /usr/local/share/cmake-3.12/Modules/FetchContent.cmake:798 (message):
Build step for nudb_src failed: 2
Call Stack (most recent call first):
/usr/local/share/cmake-3.12/Modules/FetchContent.cmake:889 (__FetchContent_directPopulate)
.nih_c/unix_makefiles/GNU_7.4.0/Release/rippled_src-src/CMakeLists.txt:1161 (FetchContent_Populate)

-- Configuring incomplete, errors occurred!
See also "/home/brietoe/validator-keys-tool/build/gcc.debug/CMakeFiles/CMakeOutput.log".
See also "/home/brietoe/validator-keys-tool/build/gcc.debug/CMakeFiles/CMakeError.log".
brietoe@Brownie-PC:~/validator-keys-tool/build/gcc.debug$


Any assistance is appreciated. Thank you!

Feature request Multisig

Assumption multisig can't be used here.

Allow a multisig to be used in the place of the signer_key, where by a validator has ability to take on a DAO type structure.

I know there is already a word salid of keys that end up against a validator and this won't make that any simpler.

Unsure how that effects the manifest.. still not found documentation as to what's in there or how that is composed. Is that possibly a blocker?

Need Boost 1.71 support

Fails to build with Boost 1.71. Works fine with1.70.

Support for Boost 1.71 was added to rippled in commit https://github.com/ripple/rippled/commit/ca6d5798e9de8d20eacc89bbe6f4a851ac016132. Some of those changes may be relevant, but I haven't dug in to it.

Original user report: #18 (comment)

Here's my full configure and build output:

$ cmake -Dunity=OFF -Dassert=true -Dwerr=ON -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Debug -DBOOST_ROOT=/home/eah/dev/boost ../../..
-- The C compiler identification is Clang 10.0.1
-- The CXX compiler identification is Clang 10.0.1
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- NIH-EP cache path: /home/eah/dev/validator-keys-tool/.nih_c/unix_makefiles/Clang_10.0.1/Debug
-- Found Git: /usr/lib/git-core/git (found version "2.25.1") 
-- Installed rippled not found...       using local copy from tag/commit [master]
-- Pausing to download rippled source...
-- Using 4 cores for ExternalProject builds.
-- rippled version: 1.7.0-b2
-- NIH-EP cache path: /home/eah/dev/validator-keys-tool/.nih_c/unix_makefiles/Clang_10.0.1/Debug
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE  
-- BOOST_ROOT: /home/eah/dev/boost
-- BOOST_LIBRARYDIR: 
CMake Warning at .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:973 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1095 (_Boost_COMPONENT_DEPENDENCIES)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1737 (_Boost_MISSING_DEPENDENCIES)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/Boost.cmake:47 (find_package)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/CMakeLists.txt:44 (include)


CMake Warning at .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:973 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1095 (_Boost_COMPONENT_DEPENDENCIES)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1737 (_Boost_MISSING_DEPENDENCIES)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/Boost.cmake:47 (find_package)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/CMakeLists.txt:44 (include)


CMake Warning at .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:973 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1095 (_Boost_COMPONENT_DEPENDENCIES)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1737 (_Boost_MISSING_DEPENDENCIES)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/Boost.cmake:47 (find_package)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/CMakeLists.txt:44 (include)


CMake Warning at .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:973 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1095 (_Boost_COMPONENT_DEPENDENCIES)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1737 (_Boost_MISSING_DEPENDENCIES)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/Boost.cmake:47 (find_package)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/CMakeLists.txt:44 (include)


CMake Warning at .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:973 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1095 (_Boost_COMPONENT_DEPENDENCIES)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1737 (_Boost_MISSING_DEPENDENCIES)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/Boost.cmake:47 (find_package)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/CMakeLists.txt:44 (include)


CMake Warning at .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:973 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1095 (_Boost_COMPONENT_DEPENDENCIES)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1737 (_Boost_MISSING_DEPENDENCIES)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/Boost.cmake:47 (find_package)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/CMakeLists.txt:44 (include)


CMake Warning at .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:973 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1095 (_Boost_COMPONENT_DEPENDENCIES)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1737 (_Boost_MISSING_DEPENDENCIES)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/Boost.cmake:47 (find_package)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/CMakeLists.txt:44 (include)


CMake Warning at .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:973 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1095 (_Boost_COMPONENT_DEPENDENCIES)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1737 (_Boost_MISSING_DEPENDENCIES)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/Boost.cmake:47 (find_package)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/CMakeLists.txt:44 (include)


CMake Warning at .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:973 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1095 (_Boost_COMPONENT_DEPENDENCIES)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1737 (_Boost_MISSING_DEPENDENCIES)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/Boost.cmake:47 (find_package)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/CMakeLists.txt:44 (include)


CMake Warning at .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:973 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1095 (_Boost_COMPONENT_DEPENDENCIES)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1737 (_Boost_MISSING_DEPENDENCIES)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/Boost.cmake:47 (find_package)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/CMakeLists.txt:44 (include)


-- Found Boost: /home/eah/dev/boost (found suitable version "1.71.0", minimum required is "1.70") found components: chrono context coroutine date_time filesystem program_options regex system thread atomic 
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.a (found suitable version "1.1.1f", minimum required is "1.0.2")  
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") 
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Using local build of RocksDB.
# date: USE_SYSTEM_TZ_DB OFF
# date: USE_TZ_DB_IN_DOT OFF
# date: BUILD_SHARED_LIBS OFF
# date: ENABLE_DATE_TESTING OFF
# date: DISABLE_STRING_VIEW OFF
-- Could NOT find Protobuf: Found unsuitable version "3.6.1", but required is at least "3.8" (found /usr/lib/x86_64-linux-gnu/libprotobuf.a;-pthread)
-- using local protobuf build.
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.17") found components: doxygen missing components: dot
CMake Warning at .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/RippledDocs.cmake:34 (message):
  could not find plantuml.jar
Call Stack (most recent call first):
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/RippledDocs.cmake:40 (verbose_find_path)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/CMakeLists.txt:65 (include)


CMake Warning at .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/RippledDocs.cmake:34 (message):
  could not find dot
Call Stack (most recent call first):
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/RippledDocs.cmake:41 (verbose_find_path)
  .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/CMakeLists.txt:65 (include)


-- Using 4 cores for ExternalProject builds.
-- Coverage disabled
-- Configuring done
-- Generating done
-- Build files have been written to: /home/eah/dev/validator-keys-tool/build/cmake/clang.Debug.OFF


$ cmake --build build/cmake/clang.Debug.OFF/ -j8
[  0%] Linking C static library libed25519-donna.a
[  0%] Linking C static library libsecp256k1.a
[  0%] Built target ed25519-donna
[  0%] Built target secp256k1
Scanning dependencies of target xrpl_core
[  8%] Linking CXX static library libxrpl_core.a
[100%] Built target xrpl_core
Scanning dependencies of target validator-keys
[100%] Building CXX object CMakeFiles/validator-keys.dir/src/ValidatorKeys.cpp.o
[100%] Building CXX object CMakeFiles/validator-keys.dir/src/ValidatorKeysTool.cpp.o
[100%] Building CXX object CMakeFiles/validator-keys.dir/src/test/ValidatorKeys_test.cpp.o
[100%] Building CXX object CMakeFiles/validator-keys.dir/src/test/ValidatorKeysTool_test.cpp.o
[100%] Linking CXX executable validator-keys
/usr/bin/ld: ../../../.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-build/libxrpl_core.a(STAmount.cpp.o): in function `cpp_regex_traits_char_layer':
/home/eah/dev/boost/boost/regex/v4/cpp_regex_traits.hpp:370: undefined reference to `boost::re_detail_107000::cpp_regex_traits_char_layer<char>::init()'
/usr/bin/ld: ../../../.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-build/libxrpl_core.a(STAmount.cpp.o): in function `boost::re_detail_107000::cpp_regex_traits_implementation<char>::init()':
/home/eah/dev/boost/boost/regex/v4/cpp_regex_traits.hpp:721: undefined reference to `boost::re_detail_107000::raise_runtime_error(std::runtime_error const&)'
/usr/bin/ld: /home/eah/dev/boost/boost/regex/v4/cpp_regex_traits.hpp:736: undefined reference to `boost::re_detail_107000::get_default_error_string(boost::regex_constants::error_type)'
/usr/bin/ld: ../../../.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-build/libxrpl_core.a(STAmount.cpp.o): in function `boost::re_detail_107000::cpp_regex_traits_implementation<char>::error_string[abi:cxx11](boost::regex_constants::error_type) const':
/home/eah/dev/boost/boost/regex/v4/cpp_regex_traits.hpp:447: undefined reference to `boost::re_detail_107000::get_default_error_string(boost::regex_constants::error_type)'
/usr/bin/ld: /home/eah/dev/boost/boost/regex/v4/cpp_regex_traits.hpp:449: undefined reference to `boost::re_detail_107000::get_default_error_string(boost::regex_constants::error_type)'
/usr/bin/ld: ../../../.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-build/libxrpl_core.a(STAmount.cpp.o): in function `boost::re_detail_107000::basic_regex_creator<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::insert_state(long, boost::re_detail_107000::syntax_element_type, unsigned long)':
/home/eah/dev/boost/boost/regex/v4/basic_regex_creator.hpp:322: undefined reference to `boost::re_detail_107000::raw_storage::insert(unsigned long, unsigned long)'
/usr/bin/ld: ../../../.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-build/libxrpl_core.a(STAmount.cpp.o): in function `boost::re_detail_107000::raw_storage::extend(unsigned long)':
/home/eah/dev/boost/boost/regex/v4/regex_raw_buffer.hpp:131: undefined reference to `boost::re_detail_107000::raw_storage::resize(unsigned long)'
/usr/bin/ld: ../../../.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-build/libxrpl_core.a(STAmount.cpp.o): in function `boost::re_detail_107000::cpp_regex_traits_implementation<char>::lookup_collatename[abi:cxx11](char const*, char const*) const':
/home/eah/dev/boost/boost/regex/v4/cpp_regex_traits.hpp:680: undefined reference to `boost::re_detail_107000::lookup_default_collate_name(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/ld: ../../../.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-build/libxrpl_core.a(STAmount.cpp.o): in function `boost::re_detail_107000::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::match_imp()':
/home/eah/dev/boost/boost/regex/v4/perl_matcher_common.hpp:221: undefined reference to `boost::re_detail_107000::verify_options(unsigned int, boost::regex_constants::_match_flags)'
/usr/bin/ld: ../../../.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-build/libxrpl_core.a(STAmount.cpp.o): in function `save_state_init':
/home/eah/dev/boost/boost/regex/v4/perl_matcher_non_recursive.hpp:110: undefined reference to `boost::re_detail_107000::get_mem_block()'
/usr/bin/ld: ../../../.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-build/libxrpl_core.a(STAmount.cpp.o): in function `~save_state_init':
/home/eah/dev/boost/boost/regex/v4/perl_matcher_non_recursive.hpp:118: undefined reference to `boost::re_detail_107000::put_mem_block(void*)'
/usr/bin/ld: ../../../.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-build/libxrpl_core.a(STAmount.cpp.o): in function `void boost::re_detail_107000::raise_error<boost::regex_traits_wrapper<boost::regex_traits<char, boost::cpp_regex_traits<char> > > >(boost::regex_traits_wrapper<boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::error_type)':
/home/eah/dev/boost/boost/regex/pattern_except.hpp:75: undefined reference to `boost::re_detail_107000::raise_runtime_error(std::runtime_error const&)'
/usr/bin/ld: ../../../.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-build/libxrpl_core.a(STAmount.cpp.o): in function `boost::re_detail_107000::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::extend_stack()':
/home/eah/dev/boost/boost/regex/v4/perl_matcher_non_recursive.hpp:236: undefined reference to `boost::re_detail_107000::get_mem_block()'
/usr/bin/ld: ../../../.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-build/libxrpl_core.a(STAmount.cpp.o): in function `boost::re_detail_107000::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::unwind_extra_block(bool)':
/home/eah/dev/boost/boost/regex/v4/perl_matcher_non_recursive.hpp:1371: undefined reference to `boost::re_detail_107000::put_mem_block(void*)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [CMakeFiles/validator-keys.dir/build.make:145: validator-keys] Error 1
make[1]: *** [CMakeFiles/Makefile2:135: CMakeFiles/validator-keys.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

can't build validator-keys-tool (Ubuntu18.04)

Error during build when following instructions in README.md on Ubuntu 18.04

-- Found Boost: /tmp/boost (found suitable version "1.73.0", minimum required is "1.70") found components: chrono context coroutine date_time filesystem program_options regex serialization system thread atomic
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.a (found suitable version "1.1.1", minimum required is "1.0.2")
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Using local build of RocksDB.
# date: USE_SYSTEM_TZ_DB OFF
# date: USE_TZ_DB_IN_DOT OFF
# date: BUILD_SHARED_LIBS OFF
# date: ENABLE_DATE_TESTING OFF
# date: DISABLE_STRING_VIEW OFF
-- Found Protobuf: /usr/local/lib/libprotobuf.a;-pthread (found suitable version "3.12.3", minimum required is "3.8")
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.13") found components: doxygen dot
-- Configuring done
CMake Error at my_build/_deps/rippled_src-src/Builds/CMake/deps/gRPC.cmake:344 (add_library):
  No SOURCES given to target: grpc_pbufs
Call Stack (most recent call first):
  my_build/_deps/rippled_src-src/CMakeLists.txt:57 (include)


CMake Generate step failed.  Build files cannot be regenerated correctly.
The command '/bin/sh -c cmake -DCMAKE_VERBOSE_MAKEFILE=ON ..' returned a non-zero code: 1

cmake -DCMAKE issue.

During the cmake step, I get the following output. I even tried adding the path to rippled but still doesn't work. I know I'm missing something.

root@parallels-vm:/home/parallels/VALIDATOR-TOOL/build/gcc.debug# cmake -DCMAKE_BUILD_TYPE=Release
CMake Warning:
No source or binary directory provided. Both will be assumed to be the
same as the current working directory, but note that this warning will
become a fatal error in future CMake releases.

CMake Error: The source directory "/home/parallels/VALIDATOR-TOOL/build/gcc.debug" does not appear to contain CMakeLists.txt.

can't build validator-keys

Compile error report on ubuntu16.04

 In file included from /tmp/validator-keys-tool/src/ValidatorKeys.cpp:21:
/tmp/validator-keys-tool/src/ValidatorKeys.h:21:10: fatal error: ripple/crypto/KeyType.h: No such file or directory
 #include <ripple/crypto/KeyType.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/validator-keys.dir/build.make:62: recipe for target 'CMakeFiles/validator-keys.dir/src/ValidatorKeys.cpp.o' failed
make[2]: *** [CMakeFiles/validator-keys.dir/src/ValidatorKeys.cpp.o] Error 1
CMakeFiles/Makefile2:75: recipe for target 'CMakeFiles/validator-keys.dir/all' failed
make[1]: *** [CMakeFiles/validator-keys.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

Tool instalation

Hi! This is more of a question than an issue, sorry if this is not the appropiate place to post it.
I'm trying to build this tool in a machine running Ubuntu 22.04, but I can´t manage to find the necessary files for adding to the PATH.
I have a rippled server installed, by the steps detailed in this page, but I seen that i have to manually build rippled, is that right? Is there some way of avoiding this?
I'd like to clarify that i'm somewhat new in this area, so maybe there´s some misunderstanding by my side.

command not found

Hello community!
I am trying to spin up a validator and I am stuck at generating a key with the command "$ validator-keys create_keys" as this only returns "command not found". Has anyone had the same issue? Btw, I am absolutely new to this. The node is running and shows "full". Using Ubuntu 22.04 and the key tool seems to be installed.
Thank you in advance!
Kind Regards
YanuVanL

Tags for packaging

Could you tag releases so that downstream package repositories can fetch them instead a commit? This makes updates easier, more automated and better trusted because the commit cannot be from a fork.

Error building with Debian 10

Error during build when following instructions in README.md on Debian 10:
ot/validator-keys-tool/.nih_c/unix_makefiles/GNU_8.3.0/Release/rippled_src-src/src/beast/extras/beast/unit_test/suite.hpp:611:35: note: in definition of macro ‘BEAST_EXPECT’
#define BEAST_EXPECT(cond) expect(cond, FILE, LINE)
^~~~
/root/validator-keys-tool/.nih_c/unix_makefiles/GNU_8.3.0/Release/rippled_src-src/src/beast/extras/beast/unit_test/suite.hpp: In instantiation of ‘bool beast::unit_test::suite::expect(const Condition&, const String&, const char*, int) [with Condition = std::pair<std::vector, bool>; String = char [1]]’:
/root/validator-keys-tool/.nih_c/unix_makefiles/GNU_8.3.0/Release/rippled_src-src/src/beast/extras/beast/unit_test/suite.hpp:258:51: required from ‘bool beast::unit_test::suite::expect(const Condition&, const char*, int) [with Condition = std::pair<std::vector, bool>]’
/root/validator-keys-tool/src/test/ValidatorKeys_test.cpp:287:13: required from here
/root/validator-keys-tool/.nih_c/unix_makefiles/GNU_8.3.0/Release/rippled_src-src/src/beast/extras/beast/unit_test/suite.hpp:459:5: error: could not convert ‘shouldBeTrue’ from ‘const std::pair<std::vector, bool>’ to ‘bool’
if(shouldBeTrue)
^~
make[2]: *** [CMakeFiles/validator-keys.dir/build.make:89: CMakeFiles/validator-keys.dir/src/test/ValidatorKeys_test.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:75: CMakeFiles/validator-keys.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

licudata error on OSX

Hello, could anyone solved this? MacOS

cmake --build .

Consolidate compiler generated dependencies of target ed25519-donna
[ 12%] Built target ed25519-donna
Consolidate compiler generated dependencies of target secp256k1
[ 25%] Built target secp256k1
Consolidate compiler generated dependencies of target xrpl_core
[ 75%] Built target xrpl_core
Consolidate compiler generated dependencies of target validator-keys
[ 75%] Linking CXX executable validator-keys
ld: library not found for -licudata
clang: error: linker command failed with exit code 1 (use -v to see invocation)

make[2]: *** [validator-keys] Error 1
make[1]: *** [CMakeFiles/validator-keys.dir/all] Error 2
make: *** [all] Error 2

Build not possible configure errors

when try to compile using cmake i got those errors:
-- NIH-EP cache path: /home/davide/gitsources/validator-keys-tool/.nih_c/unix_makefiles/GNU_11.3.0/Release
-- Installed rippled not found... using local copy from tag/commit [master]
-- Pausing to download rippled source...
-- gch:23645060be959b982af0711685548b70a5844725
-- Using 12 cores for ExternalProject builds.
-- rippled version: 1.9.4
-- NIH-EP cache path: /home/davide/gitsources/validator-keys-tool/.nih_c/unix_makefiles/GNU_11.3.0/Release
-- BOOST_ROOT:
-- BOOST_LIBRARYDIR:
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake:141 (find_package):
Found package configuration file:

/usr/lib/x86_64-linux-gnu/cmake/boost_chrono-1.74.0/boost_chrono-config.cmake

but it set boost_chrono_FOUND to FALSE so package "boost_chrono" is
considered to be NOT FOUND. Reason given by package:

No suitable build variant has been found.

The following variants have been tried and rejected:

  • libboost_chrono.so.1.74.0 (shared, Boost_USE_STATIC_LIBS=ON)

  • libboost_chrono.a (shared runtime, Boost_USE_STATIC_RUNTIME=ON)

Call Stack (most recent call first):
/usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake:258 (boost_find_component)
.nih_c/unix_makefiles/GNU_11.3.0/Release/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:273 (find_package)
.nih_c/unix_makefiles/GNU_11.3.0/Release/rippled_src-src/Builds/CMake/deps/Boost.cmake:47 (find_package)
.nih_c/unix_makefiles/GNU_11.3.0/Release/rippled_src-src/CMakeLists.txt:60 (include)

./Validator-Keys Trouble

Hello All,

I am running into a problem running the command ./validator-keys. It is returning the following error after running the cmake --build . command:

/build/gcc.debug$ ./validator-keys
-bash: ./validator-keys: No such file or directory

I am at the very last step and cant figure this out. Please Help!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.