Skip to main content

build_record_proof_car

Function build_record_proof_car 

Source
pub fn build_record_proof_car(
    commit: &Commit,
    path: &Proof,
    node_blocks: &[(Cid, NodeData)],
    record: &ModelRecord,
) -> Vec<u8> ⓘ
Expand description

Build a CAR proof for a single record: the commit block + all MST nodes on the path + the record block, rooted at the commit’s CID.

record_bytes is the DAG-CBOR of the ModelRecord (i.e. record.to_dag_cbor()).