Constructors
Synopses
Declared in <net.h>
Construct a V2 transport with securely generated random keys.
V2Transport(
NodeId nodeid,
bool initiating) noexcept;
Construct a V2 transport with specified keys and garbage (test use only).
V2Transport(
NodeId nodeid,
bool initiating,
CKey const& key,
std::span<std::byte const> ent32,
std::vector<uint8_t> garbage) noexcept;
Parameters
Name |
Description |
nodeid [in] |
the node's NodeId (only for debug log output). |
initiating [in] |
whether we are the initiator side. |
key [in] |
the private key to use for this transport. |
ent32 [in] |
32 bytes of entropy used to derive the session. |
garbage [in] |
garbage bytes to send before the garbage terminator. |
Created with MrDocs