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
Authority of a single peer.
Show fields
Authority of a single peer that uses it’s BLS Keyshare to sign the message.
Show fields
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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
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 !=
.
Auto Trait Implementations
impl RefUnwindSafe for SrcAuthority
impl Send for SrcAuthority
impl Sync for SrcAuthority
impl Unpin for SrcAuthority
impl UnwindSafe for SrcAuthority
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V