pub struct ProgramTraceArtifact { /* private fields */ }Expand description
Sequence of program updates with nested proofs.
Implementations§
Source§impl ProgramTraceArtifact
impl ProgramTraceArtifact
Sourcepub fn build(
initial: &SparseDistanceMatrix,
updates: &[SparseDistanceMatrix],
params: &RipsParams,
certificate_limits: CertificateLimits,
) -> Result<Self, ProgramTraceError>
pub fn build( initial: &SparseDistanceMatrix, updates: &[SparseDistanceMatrix], params: &RipsParams, certificate_limits: CertificateLimits, ) -> Result<Self, ProgramTraceError>
Produce a trace from an initial graph and updated graphs.
Sourcepub fn initial_graph(&self) -> &SparseDistanceMatrix
pub fn initial_graph(&self) -> &SparseDistanceMatrix
Initial graph embedded in the trace.
Sourcepub fn initial_program(&self) -> &ProgramArtifact
pub fn initial_program(&self) -> &ProgramArtifact
Initial program artifact.
Sourcepub fn steps(&self) -> &[ProgramTraceStep]
pub fn steps(&self) -> &[ProgramTraceStep]
Ordered update steps.
Sourcepub fn encode(&self) -> Result<Vec<u8>, ProgramTraceError>
pub fn encode(&self) -> Result<Vec<u8>, ProgramTraceError>
Encode the canonical HOLOSDLT version 2 envelope.
Sourcepub fn decode(
bytes: &[u8],
limits: ProgramTraceDecodeLimits,
certificate_limits: CertificateLimits,
) -> Result<Self, ProgramTraceError>
pub fn decode( bytes: &[u8], limits: ProgramTraceDecodeLimits, certificate_limits: CertificateLimits, ) -> Result<Self, ProgramTraceError>
Decode and structurally validate a bounded program trace.
Sourcepub fn verify(
&self,
certificate_limits: CertificateLimits,
) -> Result<VerifiedProgramTrace, ProgramTraceError>
pub fn verify( &self, certificate_limits: CertificateLimits, ) -> Result<VerifiedProgramTrace, ProgramTraceError>
Verify every reused step and every checkpoint.
Trait Implementations§
Source§impl Clone for ProgramTraceArtifact
impl Clone for ProgramTraceArtifact
Source§fn clone(&self) -> ProgramTraceArtifact
fn clone(&self) -> ProgramTraceArtifact
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProgramTraceArtifact
impl RefUnwindSafe for ProgramTraceArtifact
impl Send for ProgramTraceArtifact
impl Sync for ProgramTraceArtifact
impl Unpin for ProgramTraceArtifact
impl UnsafeUnpin for ProgramTraceArtifact
impl UnwindSafe for ProgramTraceArtifact
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<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