Enum safe_network::messaging::node::SrcAuthority[][src]

pub enum SrcAuthority {
    Node {
        public_key: PublicKey,
        signature: Signature,
    },
    BlsShare {
        src_name: XorName,
        sig_share: SigShare,
        section_chain: SecuredLinkedList,
    },
    Section {
        src_name: XorName,
        sig: KeyedSig,
        section_chain: SecuredLinkedList,
    },
}
Expand description

Source authority of a message. Src of message and authority to send it. Authority is validated by the signature. Messages do not need to sign this field as it is all verifiable (i.e. if the sig validates agains the pub key and we know th epub key then we are good. If the proof is not recognised we ask for a longer chain that can be recognised). Therefore we don’t need to sign this field.

Variants

Node

Authority of a single peer.

Show fields

Fields of Node

public_key: PublicKey

Public key of the source peer.

signature: Signature

ed-25519 signature of the message corresponding to the public key of the source peer.

BlsShare

Authority of a single peer that uses it’s BLS Keyshare to sign the message.

Show fields

Fields of BlsShare

src_name: XorName

Name in the source section

sig_share: SigShare

Proof Share signed by the peer’s BLS KeyShare

section_chain: SecuredLinkedList

SectionChain of the sender’s section.

Section

Authority of a whole section.

Show fields

Fields of Section

src_name: XorName

Name in the source section.

sig: KeyedSig

BLS proof of the message corresponding to the source section.

section_chain: SecuredLinkedList

SectionChain of the sender’s section.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.