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

Method DestGenerate

src/i2p.cpp:313–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313void 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
323void Session::GenerateAndSavePrivateKey(const Sock& sock)
324{

Callers

nothing calls this directly

Calls 2

DecodeI2PBase64Function · 0.85
GetMethod · 0.45

Tested by

no test coverage detected