Construct a V2 transport with specified keys and garbage (test use only).
Declared in <net.h>
V2Transport(
NodeId nodeid,
bool initiating,
CKey const& key,
std::span<std::byte const> ent32,
std::vector<uint8_t> garbage) noexcept;
| 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. |