MCPcopy Create free account
hub / github.com/cryptonomex/graphene / getBrainKey

Method getBrainKey

programs/light_client/Wallet.cpp:161–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161QString Wallet::getBrainKey()
162{
163 if( !isOpen() ) return QString();
164 if( isLocked() ) return QString();
165
166 if( _brain_key != QString() )
167 return _brain_key;
168
169 auto dec_brain_key = fc::aes_decrypt(_decrypted_master_key, _data.encrypted_brain_key);
170 auto dec_brain_key_str = fc::raw::unpack<string>(dec_brain_key);
171 _brain_key.fromStdString(dec_brain_key_str);
172 return _brain_key;
173}
174
175bool Wallet::isLocked()const
176{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected