bool CHDSeed::Lock() { unencryptedMnemonic = ""; masterKeyPriv = CExtKey(); purposeKeyPriv = CExtKey(); cointypeKeyPriv = CExtKey(); vMasterKey.clear(); return true; }
bool CHDSeed::Lock() { // The below is a 'SecureString' - so no memory burn necessary, it should burn itself. unencryptedMnemonic = ""; // The below is a 'SecureString' - so no memory burn necessary, it should burn itself. masterKeyPriv = CExtKey(); purposeKeyPriv = CExtKey(); cointypeKeyPriv = CExtKey(); //fixme: (2.1) - Also burn the memory just to be sure? vMasterKey.clear(); return true; }