pub struct Artifact {
pub total: u64,
pub aggregate: [u8; 32],
pub chunks: Vec<Chunk>,
}Fields§
§total: u64§aggregate: [u8; 32]§chunks: Vec<Chunk>Implementations§
Source§impl Artifact
impl Artifact
pub fn from_encrypted(artifact: &EncryptedArtifact<'_>) -> Result<Self>
pub fn shape(&self, maximum: u64, image: bool) -> Result<()>
pub fn write(&self, out: &mut Vec<u8>) -> Result<()>
pub fn read(r: &mut Reader<'_>, maximum: u64, image: bool) -> Result<Self>
pub fn verify( &self, records: &[Vec<u8>], context: LocalSharedStatePackageContext, stream: [u8; 32], id: [u8; 32], family: u8, class: u8, ) -> Result<()>
pub fn verify_chunk( &self, record: &[u8], index: usize, context: LocalSharedStatePackageContext, stream: [u8; 32], id: [u8; 32], family: u8, class: u8, ) -> Result<()>
pub fn encrypted<'a>(&self, records: &'a [Vec<u8>]) -> EncryptedArtifact<'a>
Trait Implementations§
impl Eq for Artifact
impl StructuralPartialEq for Artifact
Auto Trait Implementations§
impl Freeze for Artifact
impl RefUnwindSafe for Artifact
impl Send for Artifact
impl Sync for Artifact
impl Unpin for Artifact
impl UnsafeUnpin for Artifact
impl UnwindSafe for Artifact
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