Realm

oa::crypto::merkle::build

Build retained device tree levels using the selected parent hash. Leaves are prehashed U8/U32 rows with the algorithm’s exact digest extent. Poseidon2 nodes use OA’s versioned field framing, not NVIDIA wire semantics. Errors Rejects dtype, rank, extent, leaf count, allocation or recording failures.

FnRust public API

Function Documentation

pub fn build( leaves: &Matrix, algorithm: MerkleAlgorithm ) -> Result<DeviceMerkleTree>
Build retained device tree levels using the selected parent hash. Leaves are prehashed U8/U32 rows with the algorithm’s exact digest extent. Poseidon2 nodes use OA’s versioned field framing, not NVIDIA wire semantics. Errors Rejects dtype, rank, extent, leaf count, allocation or recording failures.