| 311 | } |
| 312 | |
| 313 | void Session::DestGenerate(const Sock& sock) |
| 314 | { |
| 315 | // https://geti2p.net/spec/common-structures#key-certificates |
| 316 | // "7" or "EdDSA_SHA512_Ed25519" - "Recent Router Identities and Destinations". |
| 317 | // Use "7" because i2pd <2.24.0 does not recognize the textual form. |
| 318 | const Reply& reply = SendRequestAndGetReply(sock, "DEST GENERATE SIGNATURE_TYPE=7", false); |
| 319 | |
| 320 | m_private_key = DecodeI2PBase64(reply.Get("PRIV")); |
| 321 | } |
| 322 | |
| 323 | void Session::GenerateAndSavePrivateKey(const Sock& sock) |
| 324 | { |
nothing calls this directly
no test coverage detected