3 -> 5 reserved bits

removed network type
This commit is contained in:
tevador 2020-06-16 21:03:19 +02:00
parent 41546fa019
commit 7609d2ee96
4 changed files with 25 additions and 71 deletions

View file

@ -19,16 +19,13 @@ public:
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, const std::string& net);
monero_seed(std::time_t date_created, const std::string& coin);
std::time_t date() const {
return date_;
}
const std::string& correction() const {
return correction_;
}
const char* net_name() const {
return net_name_;
}
const secret_key& key() const {
return key_;
}
@ -37,11 +34,9 @@ private:
secret_seed seed_;
secret_key key_;
std::time_t date_;
unsigned net_type_;
unsigned reserved_;
std::string correction_;
gf_poly message_;
const char* net_name_;
};
std::ostream& operator<<(std::ostream& os, const monero_seed::secret_key& key);