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

Method loadBrainKey

programs/light_client/Wallet.cpp:133–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133bool Wallet::loadBrainKey(QString brain_key)
134{
135 if( !isOpen() ) return false;
136
137 if( brain_key == QString() ) return false;
138 auto brainkey = brain_key.toStdString();
139
140 if( _data.brain_key_digest != fc::sha512::hash(brainkey.c_str(), brainkey.size()) )
141 return false;
142
143 _brain_key = brain_key;
144 return true;
145}
146
147bool Wallet::purgeBrainKey()
148{

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected