Enum tendermint_p2p::secret_connection::Version[][src]

pub enum Version {
    V0_34,
    V0_33,
    Legacy,
}

Protocol version (based on the Tendermint version)

Variants

V0_34

Tendermint v0.34

V0_33

Tendermint v0.33

Legacy

Pre-Tendermint v0.33

Implementations

impl Version[src]

pub fn has_transcript(self) -> bool[src]

Does this version of Secret Connection use a transcript hash

pub fn is_protobuf(self) -> bool[src]

Are messages encoded using Protocol Buffers?

pub fn encode_initial_handshake(self, eph_pubkey: &EphemeralPublic) -> Vec<u8>[src]

Encode the initial handshake message (i.e. first one sent by both peers)

pub fn decode_initial_handshake(self, bytes: &[u8]) -> Result<EphemeralPublic>[src]

Decode the initial handshake message

pub fn encode_auth_signature(
    self,
    pub_key: &PublicKey,
    signature: &Signature
) -> Vec<u8>
[src]

Encode signature which authenticates the handshake

pub fn auth_sig_msg_response_len(self) -> usize[src]

Get the length of the auth message response for this protocol version

pub fn decode_auth_signature(self, bytes: &[u8]) -> Result<AuthSigMessage>[src]

Decode signature message which authenticates the handshake

Trait Implementations

impl Clone for Version[src]

impl Copy for Version[src]

impl Debug for Version[src]

impl Eq for Version[src]

impl Ord for Version[src]

impl PartialEq<Version> for Version[src]

impl PartialOrd<Version> for Version[src]

impl StructuralEq for Version[src]

impl StructuralPartialEq for Version[src]

Auto Trait Implementations

impl RefUnwindSafe for Version

impl Send for Version

impl Sync for Version

impl Unpin for Version

impl UnwindSafe for Version

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,