forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
20,601 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright (c) 2023-2023 The Navcoin Core developers | ||
// Distributed under the MIT software license, see the accompanying | ||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
||
#ifndef BITCOIN_MNEMONIC_LANGUAGE_H | ||
#define BITCOIN_MNEMONIC_LANGUAGE_H | ||
|
||
namespace mnemonic { | ||
|
||
typedef enum class language | ||
{ | ||
en, | ||
es, | ||
it, | ||
fr, | ||
cs, | ||
pt, | ||
ja, | ||
ko, | ||
zh_Hans, | ||
zh_Hant, | ||
none | ||
} language; | ||
|
||
} // namespace mnemonic | ||
|
||
#endif // BITCOIN_MNEMONIC_LANGUAGE_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Copyright (c) 2023-2023 The Navcoin Core developers | ||
// Distributed under the MIT software license, see the accompanying | ||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
||
#include <mnemonic/lexicon.h> | ||
|
||
namespace mnemonic { | ||
|
||
} // namespace mnemonic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright (c) 2023-2023 The Navcoin Core developers | ||
// Distributed under the MIT software license, see the accompanying | ||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
||
#ifndef BITCOIN_MNEMONIC_LEXICON_H | ||
#define BITCOIN_MNEMONIC_LEXICON_H | ||
|
||
#include <array> | ||
|
||
#include <mnemonic/language.h> | ||
|
||
namespace mnemonic { | ||
|
||
template <std::size_t Size> | ||
class lexicon final | ||
{ | ||
public: | ||
typedef std::array<const char*, Size> words; | ||
|
||
private: | ||
// This dictionary creates only this one word of state. | ||
const language identifier_; | ||
|
||
// Arrays of words are declared statically and held by reference here. | ||
// The array type is POD, so no words are copied into the array. Only | ||
// this wrapper dictionary object is created for each word list, for | ||
// each dictionaries object constructed by various mnemonic classes. | ||
const words& words_; | ||
}; | ||
|
||
} // namespace mnemonic | ||
|
||
#endif // BITCOIN_MNEMONIC_LEXICON_H |
Oops, something went wrong.