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
25
include/wownero_seed/wordlist.hpp
Normal file
25
include/wownero_seed/wordlist.hpp
Normal file
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
Copyright (c) 2020 tevador <tevador@gmail.com>
|
||||
All rights reserved.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <assert.h>
|
||||
|
||||
class wordlist {
|
||||
public:
|
||||
static constexpr size_t size = 2048;
|
||||
static const wordlist english;
|
||||
const std::string& get_word(unsigned i) const {
|
||||
assert(i < size);
|
||||
return values_[i];
|
||||
}
|
||||
int parse(const std::string& word) const;
|
||||
private:
|
||||
wordlist(const std::string(&values)[size]) : values_(values)
|
||||
{
|
||||
}
|
||||
const std::string(&values_)[size];
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue