Skip to main content

Module conflux

Module conflux 

Source
Expand description

Encoding and decoding for relay messages related to conflux.

Re-exportsยง

use super::msg::Body; ๐Ÿ”’
use super::msg::empty_body; ๐Ÿ”’
use amplify::Getters; ๐Ÿ”’
use caret::caret_int; ๐Ÿ”’
use derive_deftly::Deftly; ๐Ÿ”’
use rand::CryptoRng; ๐Ÿ”’
use rand::Rng; ๐Ÿ”’
use rand::RngExt; ๐Ÿ”’
use tor_bytes::EncodeResult; ๐Ÿ”’
use tor_bytes::Error; ๐Ÿ”’
use tor_bytes::Readable; ๐Ÿ”’
use tor_bytes::Reader; ๐Ÿ”’
use tor_bytes::Result; ๐Ÿ”’
use tor_bytes::Writeable; ๐Ÿ”’
use tor_bytes::Writer; ๐Ÿ”’
use tor_llcrypto::util::ct::CtByteArray; ๐Ÿ”’
use tor_memquota::derive_deftly_template_HasMemoryCost; ๐Ÿ”’

Macrosยง

impl_link_wrapper ๐Ÿ”’
Helper macro for implementing wrapper types over Link

Structsยง

ConfluxLink
A CONFLUX_LINK message.
ConfluxLinked
A CONFLUX_LINKED message.
ConfluxLinkedAck
A CONFLUX_LINKED_ACK message.
ConfluxSwitch
A CONFLUX_SWITCH message, sent from a sending endpoint when switching leg in an already linked circuit construction.
Link ๐Ÿ”’
A message body shared by ConfluxLink and ConfluxLinked.
V1DesiredUx
The UX properties specified in a V1LinkPayload.
V1LinkPayload
The v1 payload of a v1 ConfluxLink or ConfluxLinked message.
V1Nonce
The nonce type of a V1LinkPayload.

Constantsยง

CONFLUX_LINK_VERSION ๐Ÿ”’
The supported CONFLUX_LINK version.
V1_LINK_NONCE_LEN ๐Ÿ”’
The length of the nonce from a v1 CONFLUX_LINK message, in bytes.