Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::stringstream s(d["private_key"].GetString());
- std::string privateKey;
- // strip off first line
- std::getline(s, std::string());
- // read
- for (std::string tmp; std::getline(s, tmp), s; privateKey.append(tmp));
- // strip tail
- privateKey.erase(privateKey.find('-'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement