Dash Core  0.12.2.1
P2P Digital Currency
bip39.h
Go to the documentation of this file.
1 
24 #ifndef DASH_BIP39_H
25 #define DASH_BIP39_H
26 
28 
29 class CMnemonic
30 {
31 public:
32  static SecureString Generate(int strength); // strength in bits
33  static SecureString FromData(const SecureVector& data, int len);
34  static bool Check(SecureString mnemonic);
35  // passphrase must be at most 256 characters or code may crash
36  static void ToSeed(SecureString mnemonic, SecureString passphrase, SecureVector& seedRet);
37 };
38 
39 #endif
std::basic_string< char, std::char_traits< char >, secure_allocator< char > > SecureString
Definition: secure.h:61
static SecureString FromData(const SecureVector &data, int len)
Definition: bip39.cpp:46
static bool Check(SecureString mnemonic)
Definition: bip39.cpp:80
std::vector< unsigned char, secure_allocator< unsigned char > > SecureVector
Definition: secure.h:63
static SecureString Generate(int strength)
Definition: bip39.cpp:34
static void ToSeed(SecureString mnemonic, SecureString passphrase, SecureVector &seedRet)
Definition: bip39.cpp:152