Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

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:57
static SecureString FromData(const SecureVector &data, int len)
Definition: bip39.cpp:46
static void ToSeed(SecureString mnemonic, SecureString passphrase, SecureVector &seedRet)
Definition: bip39.cpp:152
std::vector< unsigned char, secure_allocator< unsigned char > > SecureVector
Definition: secure.h:59
Copyright (c) 2013-2014 Tomas Dzetkulic Copyright (c) 2013-2014 Pavol Rusnak.
Definition: bip39.h:29
static SecureString Generate(int strength)
Copyright (c) 2013-2014 Tomas Dzetkulic Copyright (c) 2013-2014 Pavol Rusnak.
Definition: bip39.cpp:34
static bool Check(SecureString mnemonic)
Definition: bip39.cpp:80
Released under the MIT license