pub struct Fixture {
pub artifact: TrustedArtifact,
pub bundle: TrustAnchorBundle,
pub graph: TrustGraph,
pub registry: Registry,
pub root_secret: SigningKey,
pub end_secret: SigningKey,
}Expand description
A valid specimen: root-delegated end authority, signed anchor bundle, and a data-dimension co-signed artifact over it, plus the secret keys so tests can sign more, tamper, or re-issue.
Fields§
§artifact: TrustedArtifactThe co-signed trusted artifact.
bundle: TrustAnchorBundleThe signed trust anchor bundle anchoring root.
graph: TrustGraphThe root → end delegation graph.
registry: RegistryThe registry the artifact was signed under.
root_secret: SigningKeyThe root authority’s signing key.
end_secret: SigningKeyThe end authority’s signing key (the artifact’s co-signer).
Implementations§
Source§impl Fixture
impl Fixture
Sourcepub fn tampered_artifact(&self) -> TrustedArtifact
pub fn tampered_artifact(&self) -> TrustedArtifact
The same artifact with a mutated payload: signature-validity hard check must fail.
Sourcepub fn expired_bundle(&self) -> TrustAnchorBundle
pub fn expired_bundle(&self) -> TrustAnchorBundle
The same anchors in a bundle whose validity window has closed: the bundle-validity hard check must fail.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Fixture
impl RefUnwindSafe for Fixture
impl Send for Fixture
impl Sync for Fixture
impl Unpin for Fixture
impl UnsafeUnpin for Fixture
impl UnwindSafe for Fixture
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