INNER CODE UNIT · Rust

proof_from_bytes

CympleTech/ESSE · types/data/src/lib.rs:13

    fn proof_from_bytes(proof_bytes: &[u8]) -> Result<Self::Proof, ()>;
}

/// common data structure.
#[derive(Clone, Eq, PartialEq)]
pub struct Data<T: OwnerId> {
    /// Data unique ID, default generate method is other fields hash.
    pub did: DataId,
    /// ParentID, default is None.
    pub pid: Option<DataId>,
    /// time lifetime, (from, to) timestamp.
    pub time: (i64, i64),
    /// Owner's info.
    pub owner: T,
    /// data owner proof. it can verify by owner.
    pub proof: T::Proof,
    /// MIME type, and value bytes.
    pub value: (String, Vec<u8>),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…