pub struct SignedConfigurationGrant {
pub grant: ConfigurationGrant,
pub signature: Vec<u8>,
}Fields§
§grant: ConfigurationGrant§signature: Vec<u8>Implementations§
Source§impl SignedConfigurationGrant
impl SignedConfigurationGrant
pub fn encode(&self) -> Result<Vec<u8>>
pub fn decode(bytes: &[u8]) -> Result<Self>
Sourcepub fn verify(&self, anchor: &TrustAnchor) -> Result<()>
pub fn verify(&self, anchor: &TrustAnchor) -> Result<()>
Does not grant messaging authority or require an unexpired lease. The receiver must also enforce the grant’s saved stream and node-key bindings.
Sourcepub fn verify_initial(&self, state: &VerifiedState, now: u64) -> Result<()>
pub fn verify_initial(&self, state: &VerifiedState, now: u64) -> Result<()>
Enrollment of this exception requires the exact fresh approved checkpoint.
Sourcepub fn verify_owner_candidate(
&self,
candidate: &SignedOwnerCandidate,
) -> Result<()>
pub fn verify_owner_candidate( &self, candidate: &SignedOwnerCandidate, ) -> Result<()>
Check the pins of a candidate already verified against its initial state. This alone does not authorize a new candidate or activate an owner.
Sourcepub fn can_publish(&self, state: &VerifiedState) -> Result<bool>
pub fn can_publish(&self, state: &VerifiedState) -> Result<bool>
Standby streams wait for their exact handoff. Later accepted epochs may still distribute retained history through an established stream.
Trait Implementations§
Source§impl Clone for SignedConfigurationGrant
impl Clone for SignedConfigurationGrant
Source§impl Debug for SignedConfigurationGrant
impl Debug for SignedConfigurationGrant
Source§impl<'de> Deserialize<'de> for SignedConfigurationGrant
impl<'de> Deserialize<'de> for SignedConfigurationGrant
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 SignedConfigurationGrant
Source§impl PartialEq for SignedConfigurationGrant
impl PartialEq for SignedConfigurationGrant
Source§impl Serialize for SignedConfigurationGrant
impl Serialize for SignedConfigurationGrant
impl StructuralPartialEq for SignedConfigurationGrant
Auto Trait Implementations§
impl Forget for SignedConfigurationGrant
impl Freeze for SignedConfigurationGrantwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<SignedOwnerTransition>: Freeze,
impl Move for SignedConfigurationGrant
impl RefUnwindSafe for SignedConfigurationGrant
impl Send for SignedConfigurationGrantwhere
RawVecInner: Send,
impl Sync for SignedConfigurationGrantwhere
RawVecInner: Sync,
impl Unpin for SignedConfigurationGrant
impl UnsafeUnpin for SignedConfigurationGrantwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<SignedOwnerTransition>: UnsafeUnpin,
impl UnwindSafe for SignedConfigurationGrantwhere
RawVecInner: UnwindSafe,
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