pub struct AuthorityNode {
pub id: String,
pub kind: AuthorityKind,
pub public_key: Vec<u8>,
pub quorum: Option<Quorum>,
pub scope: ScopeDimensions,
}Expand description
A node in the trust graph.
Fields§
§id: StringStable identifier (typically a key fingerprint).
kind: AuthorityKindKind of authority.
public_key: Vec<u8>Aggregate (or single) public key, SPKI-encoded.
quorum: Option<Quorum>Quorum parameters when the authority is threshold.
scope: ScopeDimensionsThe authority’s authorization scope.
Implementations§
Source§impl AuthorityNode
impl AuthorityNode
Sourcepub fn binding_bytes(&self) -> SignatifResult<Vec<u8>>
pub fn binding_bytes(&self) -> SignatifResult<Vec<u8>>
The canonical signing input for this node’s binding: the JCS of the node’s identity material. Delegation signatures and anchor bundle references are computed over these bytes.
§Errors
Propagates canonicalization errors.
Trait Implementations§
Source§impl Clone for AuthorityNode
impl Clone for AuthorityNode
Source§fn clone(&self) -> AuthorityNode
fn clone(&self) -> AuthorityNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthorityNode
impl Debug for AuthorityNode
Source§impl<'de> Deserialize<'de> for AuthorityNode
impl<'de> Deserialize<'de> for AuthorityNode
Source§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
Auto Trait Implementations§
impl Freeze for AuthorityNode
impl RefUnwindSafe for AuthorityNode
impl Send for AuthorityNode
impl Sync for AuthorityNode
impl Unpin for AuthorityNode
impl UnsafeUnpin for AuthorityNode
impl UnwindSafe for AuthorityNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more