Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@sangfansh
Created August 11, 2018 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sangfansh/9ee6780c4dcb5d18f9b5e32412dcd0d7 to your computer and use it in GitHub Desktop.
Save sangfansh/9ee6780c4dcb5d18f9b5e32412dcd0d7 to your computer and use it in GitHub Desktop.
int ocall_save_wallet(const uint8_t* sealed_data, const size_t sealed_size) {
ofstream file(WALLET_FILE, ios::out | ios::binary);
if (file.fail()) {return 1;}
file.write((const char*) sealed_data, sealed_size);
file.close();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment