BoundedAuthorityProtocol. ContentAssertion. V1. ExpectedContentAssertion
(Bounded Authority Protocol v1.0.0)
Copy Markdown
View Source
Explicit trusted key, exact context, content digest, time and bounds.
Fields
attestor- theBoundedAuthorityProtocol.V1.HistoricalPublicKeyof the attestor you trust; the assertion window must lie inside its validity window.issuer- the expectediss.audience- the expectedaud.subject- the expectedsub.profile- the expectedprofile.profile_digest- the expected raw 32-byte profile digest.content_digest- the expected raw 32-byte content digest; there is no opt-out.now- the caller's current time, integer Unix time in seconds; it must satisfynbf <= now < exp.bounds- aBoundedAuthorityProtocol.V1.Boundsstruct or a map of tightening overrides;%{}means the profile maxima (seeBoundedAuthorityProtocol.V1.Bounds.coerce/1).
Summary
Types
Expected context for BoundedAuthorityProtocol.ContentAssertion.V1.verify_assertion/2.
Types
@type t() :: %BoundedAuthorityProtocol.ContentAssertion.V1.ExpectedContentAssertion{ attestor: BoundedAuthorityProtocol.V1.HistoricalPublicKey.t(), audience: binary(), bounds: BoundedAuthorityProtocol.V1.Bounds.t() | map(), content_digest: binary(), issuer: binary(), now: integer(), profile: binary(), profile_digest: binary(), subject: binary() }
Expected context for BoundedAuthorityProtocol.ContentAssertion.V1.verify_assertion/2.