Module tendermint_p2p::secret_connection
source · Expand description
SecretConnection
: Transport layer encryption for Tendermint P2P connections.
Structs§
AwaitingAuthSig
means we’re waiting for the remote authenticated signature.- Handshake states
AwaitingEphKey
means we’re waiting for the remote ephemeral pubkey. - Handshake is a process of establishing the
SecretConnection
between two peers. Specification - Key Derivation Function for
SecretConnection
(HKDF) SecretConnection
nonces (i.e.ChaCha20
nonces)- The receiving end of a
SecretConnection
. - Encrypted connection between peers in a Tendermint network.
- The sending end of a
SecretConnection
.
Enums§
- Secret Connection peer public keys (signing, presently Ed25519-only)
- Protocol version (based on the Tendermint version)
Constants§
- Maximum size of a message
- Size of a
ChaCha20
(IETF) nonce - Size of the MAC tag
Functions§
- Return is of the form lo, hi