Advertisement
Guest User

Untitled

a guest
Aug 28th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. std::stringstream s(d["private_key"].GetString());
  2. std::string privateKey;
  3. // strip off first line
  4. std::getline(s, std::string());
  5. // read
  6. for (std::string tmp; std::getline(s, tmp), s; privateKey.append(tmp));
  7. // strip tail
  8. privateKey.erase(privateKey.find('-'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement