MCPcopy Create free account
hub / github.com/ElementsProject/elements / CreateObfuscateKey

Method CreateObfuscateKey

src/dbwrapper.cpp:227–232  ·  view source on GitHub ↗

* Returns a string (consisting of 8 random bytes) suitable for use as an * obfuscating XOR key. */

Source from the content-addressed store, hash-verified

225 * obfuscating XOR key.
226 */
227std::vector<unsigned char> CDBWrapper::CreateObfuscateKey() const
228{
229 std::vector<uint8_t> ret(OBFUSCATE_KEY_NUM_BYTES);
230 GetRandBytes(ret.data(), OBFUSCATE_KEY_NUM_BYTES);
231 return ret;
232}
233
234bool CDBWrapper::IsEmpty()
235{

Callers

nothing calls this directly

Calls 2

GetRandBytesFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected