TARAXA
static_init.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <sodium/core.h>
4 
5 #include "common/util.hpp"
6 
7 namespace taraxa {
8 
9 inline void static_init() {
10  if (sodium_init() == -1) {
11  throw std::runtime_error("libsodium init failure");
12  }
13 }
14 
15 } // namespace taraxa
Definition: config.hpp:8
void static_init()
Definition: static_init.hpp:9