pub struct TrustAnchors {
pub signers: Vec<PinnedKey>,
pub cognitum: Vec<PinnedKey>,
}Expand description
Trust anchors used by the verifier.
Fields§
§signers: Vec<PinnedKey>Keys whose signatures satisfy the manifest signature requirement.
cognitum: Vec<PinnedKey>Cognitum release-record keys, consulted only when the policy enables the Cognitum verifier.
Implementations§
Source§impl TrustAnchors
impl TrustAnchors
Sourcepub fn weftos_default() -> Result<Self, String>
pub fn weftos_default() -> Result<Self, String>
The compiled-in WeftOS signer set only.
Sourcepub fn from_trust_file(file: &TrustFile) -> Result<Self, String>
pub fn from_trust_file(file: &TrustFile) -> Result<Self, String>
WeftOS signer set plus the keys in an operator trust file.
Sourcepub fn from_trust_json(bytes: &[u8]) -> Result<Self, String>
pub fn from_trust_json(bytes: &[u8]) -> Result<Self, String>
Parse a trust file from JSON bytes.
Trait Implementations§
Source§impl Clone for TrustAnchors
impl Clone for TrustAnchors
Source§impl Debug for TrustAnchors
impl Debug for TrustAnchors
Source§impl Default for TrustAnchors
impl Default for TrustAnchors
impl Eq for TrustAnchors
Source§impl PartialEq for TrustAnchors
impl PartialEq for TrustAnchors
impl StructuralPartialEq for TrustAnchors
Auto Trait Implementations§
impl Freeze for TrustAnchors
impl RefUnwindSafe for TrustAnchors
impl Send for TrustAnchors
impl Sync for TrustAnchors
impl Unpin for TrustAnchors
impl UnsafeUnpin for TrustAnchors
impl UnwindSafe for TrustAnchors
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more