Skip to main content

Crate pallas_hardano

Crate pallas_hardano 

Source
Expand description

Interoperability with implementation-specific artifacts of the Haskell Cardano node.

Today the main job is reading the node’s immutable on-disk chunks (the immutable/ directory of a synced node), so a Rust process can iterate the chain without re-syncing. A small display module also covers the textual representations the upstream node uses for human-facing output.

§Usage

use std::path::Path;
use pallas_hardano::storage::immutable;

for block in immutable::read_blocks(Path::new("/var/cardano/data/immutable"))? {
    let _bytes = block?;
    // hand `_bytes` to pallas-traverse / pallas-primitives for typed access
}

§Overview

§Usage as part of pallas

When depending on the umbrella pallas crate (with the hardano feature), this crate is re-exported as pallas::interop::hardano::storage.

Modules§

display
Pretty-printing helpers for the structures exposed by storage. Haskell identical representation of data
storage
Readers over the Haskell Cardano node’s on-disk chain database. Storage compatible with the Haskell Cardano node implementation