Skip to main content

decode_stable_cell_ledger_record

Function decode_stable_cell_ledger_record 

Source
pub fn decode_stable_cell_ledger_record(
    bytes: &[u8],
) -> Result<StableCellLedgerRecord, Error>
Expand description

Decode a StableCellLedgerRecord from stable-cell value bytes.

This decodes only the cell value payload, not the enclosing stable-cell header. Use decode_stable_cell_payload first when inspecting raw stable memory.

The returned record is decoded DTO state, not authority. Recover through the embedded LedgerCommitStore before trusting any ledger payload.