pub struct DocumentBatch<'operation, 'a, P: SignatureProvider<'a>> { /* private fields */ }Expand description
Existing verification driver plus the exact original source association. The selected root signers share one payload pass and one digest memo.
Implementations§
Source§impl<'operation, 'a, P: SignatureProvider<'a>> DocumentBatch<'operation, 'a, P>
impl<'operation, 'a, P: SignatureProvider<'a>> DocumentBatch<'operation, 'a, P>
Sourcepub fn prepare(
provider: &'a P,
message: &'a SignedData<'a>,
requests: OwnedVec<ResolvedSigner<'a, P>>,
mode: ContentMode,
parent: &'operation Reader<'a>,
) -> Result<Self, CheckError<P::Error>>
pub fn prepare( provider: &'a P, message: &'a SignedData<'a>, requests: OwnedVec<ResolvedSigner<'a, P>>, mode: ContentMode, parent: &'operation Reader<'a>, ) -> Result<Self, CheckError<P::Error>>
Checks container/signer provenance and explicit input mode BEFORE any provider initialization, then delegates to the one existing batch core. Detached source acquisition remains caller-owned; it is never a fallback for a carried document. No candidate selection or trust is performed.
Sourcepub fn run_carried(
self,
) -> Result<DocumentChecks<'a>, PassError<SourceError, P::Error>>
pub fn run_carried( self, ) -> Result<DocumentChecks<'a>, PassError<SourceError, P::Error>>
Consumes the ORIGINAL carried content through the same streaming batch. The caller cannot replace it with a different byte source. Empty carried content remains a real empty input, distinct from absence.
Sourcepub fn run_detached<S: Source>(
self,
source: &mut S,
) -> Result<DocumentChecks<'a>, PassError<S::Error, P::Error>>
pub fn run_detached<S: Source>( self, source: &mut S, ) -> Result<DocumentChecks<'a>, PassError<S::Error, P::Error>>
Consumes the explicit caller input of the original detached SignedData.
This establishes that input’s mathematical agreement with the signed
message-digest, not an application claim about where bytes were acquired.