pub struct RootIssuerDelegation {
pub issuer_did: Did,
pub issuer_public_key: PublicKey,
pub granted_permissions: Vec<Permission>,
pub effective_at: Timestamp,
pub expires_at: Option<Timestamp>,
pub purpose: String,
}Expand description
Operational AVC issuer authority delegated by the root.
Fields§
§issuer_did: DidOperational issuer DID.
issuer_public_key: PublicKeyOperational issuer public key.
granted_permissions: Vec<Permission>Permissions granted by the root authority.
effective_at: TimestampHLC activation timestamp.
expires_at: Option<Timestamp>Optional HLC expiry timestamp.
purpose: StringHuman-readable bounded purpose.
Implementations§
Source§impl RootIssuerDelegation
impl RootIssuerDelegation
Sourcepub fn root_artifact_payload(
&self,
config: &GenesisCeremonyConfig,
public_key_package: &RootPublicKeyPackage,
transcript_hash: Hash256,
) -> Result<Vec<u8>>
pub fn root_artifact_payload( &self, config: &GenesisCeremonyConfig, public_key_package: &RootPublicKeyPackage, transcript_hash: Hash256, ) -> Result<Vec<u8>>
Canonical payload signed by the root threshold authority for the predeclared deterministic signing set.
Sourcepub fn root_artifact_payload_for_signers(
&self,
config: &GenesisCeremonyConfig,
public_key_package: &RootPublicKeyPackage,
transcript_hash: Hash256,
signer_ids: &[u16],
) -> Result<Vec<u8>>
pub fn root_artifact_payload_for_signers( &self, config: &GenesisCeremonyConfig, public_key_package: &RootPublicKeyPackage, transcript_hash: Hash256, signer_ids: &[u16], ) -> Result<Vec<u8>>
Canonical payload signed by the root threshold authority for the exact signer metadata carried by a root signature.
Trait Implementations§
Source§impl Clone for RootIssuerDelegation
impl Clone for RootIssuerDelegation
Source§fn clone(&self) -> RootIssuerDelegation
fn clone(&self) -> RootIssuerDelegation
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 RootIssuerDelegation
impl Debug for RootIssuerDelegation
Source§impl<'de> Deserialize<'de> for RootIssuerDelegation
impl<'de> Deserialize<'de> for RootIssuerDelegation
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
impl Eq for RootIssuerDelegation
Source§impl PartialEq for RootIssuerDelegation
impl PartialEq for RootIssuerDelegation
Source§fn eq(&self, other: &RootIssuerDelegation) -> bool
fn eq(&self, other: &RootIssuerDelegation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RootIssuerDelegation
impl Serialize for RootIssuerDelegation
impl StructuralPartialEq for RootIssuerDelegation
Auto Trait Implementations§
impl Freeze for RootIssuerDelegation
impl RefUnwindSafe for RootIssuerDelegation
impl Send for RootIssuerDelegation
impl Sync for RootIssuerDelegation
impl Unpin for RootIssuerDelegation
impl UnsafeUnpin for RootIssuerDelegation
impl UnwindSafe for RootIssuerDelegation
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