pub struct PriorSequence<'record, 'document> { /* private fields */ }Expand description
Immutable DER input covering EVERY chain preceding an actual new chain.
The surrounding sequence receives its required minimal DER length. Chain values are projected through the shared encoding kernel; BER wrappers and segmentation are not confused with DER bytes. No later chain or unprotected CryptoInfos/EncryptionInfo is included (§5.2 steps3–4).
Implementations§
Source§impl<'r, 'd> PriorSequence<'r, 'd>
impl<'r, 'd> PriorSequence<'r, 'd>
Sourcepub fn new(
record: &'r EvidenceRecord<'d>,
before_chain: usize,
operation: &Reader<'d>,
) -> Result<Self>
pub fn new( record: &'r EvidenceRecord<'d>, before_chain: usize, operation: &Reader<'d>, ) -> Result<Self>
Binds the prefix to the actual new chain and admits it before hashing.
Sourcepub fn before_chain(&self) -> usize
pub fn before_chain(&self) -> usize
The selected new chain ordinal; no order is inferred from timestamps.
Auto Trait Implementations§
impl<'record, 'document> !Freeze for PriorSequence<'record, 'document>
impl<'record, 'document> !RefUnwindSafe for PriorSequence<'record, 'document>
impl<'record, 'document> !Send for PriorSequence<'record, 'document>
impl<'record, 'document> !Sync for PriorSequence<'record, 'document>
impl<'record, 'document> !UnwindSafe for PriorSequence<'record, 'document>
impl<'record, 'document> Unpin for PriorSequence<'record, 'document>
impl<'record, 'document> UnsafeUnpin for PriorSequence<'record, 'document>
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