[][src]Struct rust_ipv8::payloads::binmemberauthenticationpayload::BinMemberAuthenticationPayload

pub struct BinMemberAuthenticationPayload {
    pub public_key_bin: Ed25519PublicKey,
    pub encryption_key_bin: [u8; 32],
}

This struct represents the public key in a message. This is important because with this key the signature (at the end of a packet) can be verified.

Fields

public_key_bin: Ed25519PublicKey

TODO: has to change to a PublicKey binary representation object. The serializer should convert this to a varlen16 while serializing like in IntroductionRequestPayload.

encryption_key_bin: [u8; 32]

The 32 Bytes representing the public Curve25519 encryption key

Trait Implementations

impl Ipv8Payload for BinMemberAuthenticationPayload[src]

impl PartialEq<BinMemberAuthenticationPayload> for BinMemberAuthenticationPayload[src]

impl Debug for BinMemberAuthenticationPayload[src]

impl Serialize for BinMemberAuthenticationPayload[src]

makes the BinMemberAuthenticationPayload serializable. This is less than trivial as there is no 1:1 mapping between the serialized data and the payload struct. Some struct fields are combined into one byte to form the serialized data.

impl<'de> Deserialize<'de> for BinMemberAuthenticationPayload[src]

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
    D: Deserializer<'de>, 
[src]

deserializes an IntroductionRequestPayload

Auto Trait Implementations

impl Unpin for BinMemberAuthenticationPayload

impl Sync for BinMemberAuthenticationPayload

impl Send for BinMemberAuthenticationPayload

impl RefUnwindSafe for BinMemberAuthenticationPayload

impl UnwindSafe for BinMemberAuthenticationPayload

Blanket Implementations

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

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

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]