pub struct SignedFederationConfiguration {
pub configuration: FederationConfiguration,
/* private fields */
}Expand description
A federation configuration signed by its configured authority identity.
Both signatures are mandatory and verify the exact same canonical snapshot.
Fields§
§configuration: FederationConfigurationPublic policy values authorized by the signatures.
Implementations§
Source§impl SignedFederationConfiguration
impl SignedFederationConfiguration
Sourcepub fn sign<S: EndpointSigner>(
configuration: FederationConfiguration,
signer: &S,
) -> Result<Self, Error>
pub fn sign<S: EndpointSigner>( configuration: FederationConfiguration, signer: &S, ) -> Result<Self, Error>
Signs a canonical configuration with exactly its pinned authority identity.
Sourcepub fn verify(&self) -> Result<(), Error>
pub fn verify(&self) -> Result<(), Error>
Verifies both snapshot signatures against the embedded pinned authority.
Sourcepub fn encode(&self) -> Result<Vec<u8>, Error>
pub fn encode(&self) -> Result<Vec<u8>, Error>
Encodes the exact canonical signed configuration for application-selected delivery.
Sourcepub fn decode_verified(wire: &[u8]) -> Result<Self, Error>
pub fn decode_verified(wire: &[u8]) -> Result<Self, Error>
Verifies a bounded canonical wire snapshot before materialising member records.
Trait Implementations§
impl Eq for SignedFederationConfiguration
impl StructuralPartialEq for SignedFederationConfiguration
Auto Trait Implementations§
impl Freeze for SignedFederationConfiguration
impl RefUnwindSafe for SignedFederationConfiguration
impl Send for SignedFederationConfiguration
impl Sync for SignedFederationConfiguration
impl Unpin for SignedFederationConfiguration
impl UnsafeUnpin for SignedFederationConfiguration
impl UnwindSafe for SignedFederationConfiguration
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