mirror of
https://git.wownero.com/wowlet/wownero-seed.git
synced 2024-08-15 01:03:29 +00:00
wowify
This commit is contained in:
parent
8d19ea23db
commit
3d70455534
17 changed files with 49 additions and 49 deletions
|
@ -11,15 +11,15 @@
|
|||
#include <ctime>
|
||||
#include "gf_poly.hpp"
|
||||
|
||||
class monero_seed {
|
||||
class wownero_seed {
|
||||
public:
|
||||
static const std::string erasure;
|
||||
static constexpr size_t size = 16;
|
||||
static constexpr size_t key_size = 32;
|
||||
using secret_key = std::array<uint8_t, key_size>;
|
||||
using secret_seed = std::array<uint8_t, size>;
|
||||
monero_seed(const std::string& phrase, const std::string& coin);
|
||||
monero_seed(std::time_t date_created, const std::string& coin);
|
||||
wownero_seed(const std::string& phrase, const std::string& coin);
|
||||
wownero_seed(std::time_t date_created, const std::string& coin);
|
||||
std::time_t date() const {
|
||||
return date_;
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ public:
|
|||
const secret_key& key() const {
|
||||
return key_;
|
||||
}
|
||||
friend std::ostream& operator<<(std::ostream& os, const monero_seed& seed);
|
||||
friend std::ostream& operator<<(std::ostream& os, const wownero_seed& seed);
|
||||
private:
|
||||
secret_seed seed_;
|
||||
secret_key key_;
|
||||
|
@ -39,4 +39,4 @@ private:
|
|||
gf_poly message_;
|
||||
};
|
||||
|
||||
std::ostream& operator<<(std::ostream& os, const monero_seed::secret_key& key);
|
||||
std::ostream& operator<<(std::ostream& os, const wownero_seed::secret_key& key);
|
Loading…
Add table
Add a link
Reference in a new issue