pub struct CrossRecognition {
pub from_root: String,
pub to_root: String,
pub to_fingerprint: String,
pub recognized_scope: ScopeDimensions,
pub signature: Vec<u8>,
}Expand description
A mutual-recognition credential: one root attesting another
(§19 mutual-recognition), recorded in both roots’ logs.
Fields§
§from_root: StringThe attesting root.
to_root: StringThe attested root.
to_fingerprint: StringThe attested root’s aggregate key fingerprint.
recognized_scope: ScopeDimensionsThe attested root’s recognized scope.
signature: Vec<u8>The attesting root’s signature over the canonical credential.
Implementations§
Source§impl CrossRecognition
impl CrossRecognition
Sourcepub fn signing_bytes(&self) -> SignatifResult<Vec<u8>>
pub fn signing_bytes(&self) -> SignatifResult<Vec<u8>>
Sourcepub fn verify(
&self,
from_root_key: &[u8],
verifier: &dyn SignatureVerifier,
) -> SignatifResult<()>
pub fn verify( &self, from_root_key: &[u8], verifier: &dyn SignatureVerifier, ) -> SignatifResult<()>
Verify the attesting root’s signature over the credential
(§19 mutual-recognition).
§Errors
Signature errors when the attesting root’s key does not verify.
Trait Implementations§
Source§impl Clone for CrossRecognition
impl Clone for CrossRecognition
Source§fn clone(&self) -> CrossRecognition
fn clone(&self) -> CrossRecognition
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 CrossRecognition
impl Debug for CrossRecognition
Source§impl<'de> Deserialize<'de> for CrossRecognition
impl<'de> Deserialize<'de> for CrossRecognition
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 CrossRecognition
impl RefUnwindSafe for CrossRecognition
impl Send for CrossRecognition
impl Sync for CrossRecognition
impl Unpin for CrossRecognition
impl UnsafeUnpin for CrossRecognition
impl UnwindSafe for CrossRecognition
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