Documentation ¶
Index ¶
Constants ¶
View Source
const KnockSize = 1 + ed25519.PublicKeySize + ed25519.SignatureSize
knock = version (1 byte) || pk (ed25519.PublicKeySize) || sig (ed25519.SignatureSize)
Variables ¶
Functions ¶
func BuildKnock ¶
Builds a knock message based on the PeerID of the node being dialed (other), the dialing node (self). The dialing node's secretKey is used for signing the message and must correspond to self.
Returns a knock message exactly KnockSize bytes long.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.