MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / DestGenerate

Method DestGenerate

src/i2p.cpp:353–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353void Session::DestGenerate(const Sock& sock)
354{
355 // https://geti2p.net/spec/common-structures#key-certificates
356 // "7" or "EdDSA_SHA512_Ed25519" - "Recent Router Identities and Destinations".
357 // Use "7" because i2pd <2.24.0 does not recognize the textual form.
358 // If SIGNATURE_TYPE is not specified, then the default one is DSA_SHA1.
359 const Reply& reply = SendRequestAndGetReply(sock, "DEST GENERATE SIGNATURE_TYPE=7", false);
360
361 m_private_key = DecodeI2PBase64(reply.Get("PRIV"));
362}
363
364void Session::GenerateAndSavePrivateKey(const Sock& sock)
365{

Callers

nothing calls this directly

Calls 2

DecodeI2PBase64Function · 0.85
GetMethod · 0.45

Tested by

no test coverage detected