PRCYCoin  2.0.0.7rc1
P2P Digital Currency
bip39.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2014 The Bitcoin developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_BIP39_H
6 #define BITCOIN_BIP39_H
7 
8 #include "allocators.h"
9 
10 class CMnemonic
11 {
12 public:
13  static SecureString Generate(int strength); // strength in bits
14  static SecureString FromData(const SecureVector& data, int len);
15  static bool Check(SecureString mnemonic);
16  // passphrase must be at most 256 characters or code may crash
17  static void ToSeed(SecureString mnemonic, SecureString passphrase, SecureVector& seedRet);
18 };
19 
20 #endif
CMnemonic::ToSeed
static void ToSeed(SecureString mnemonic, SecureString passphrase, SecureVector &seedRet)
Definition: bip39.cpp:130
CMnemonic::FromData
static SecureString FromData(const SecureVector &data, int len)
Definition: bip39.cpp:24
SecureString
std::basic_string< char, std::char_traits< char >, secure_allocator< char > > SecureString
Definition: allocators.h:262
allocators.h
CMnemonic::Generate
static SecureString Generate(int strength)
Definition: bip39.cpp:12
CMnemonic::Check
static bool Check(SecureString mnemonic)
Definition: bip39.cpp:58
SecureVector
std::vector< unsigned char, secure_allocator< unsigned char > > SecureVector
Definition: allocators.h:267
CMnemonic
Definition: bip39.h:10