Realm

oa::crypto::merkle::subtree_roots

Compute roots of contiguous power-of-two subtrees for hierarchical construction. Records the first log2(subtree_leaves) tree levels. The returned rows can be passed to build to finish the tree; no leaf readback/repacking is involved. Errors Rejects dtype, rank, extent, partition sizes, allocation or recording failures.

FnRust public API

Function Documentation

pub fn subtree_roots( leaves: &Matrix, algorithm: MerkleAlgorithm, subtree_leaves: usize ) -> Result<Matrix>
Compute roots of contiguous power-of-two subtrees for hierarchical construction. Records the first log2(subtree_leaves) tree levels. The returned rows can be passed to build to finish the tree; no leaf readback/repacking is involved. Errors Rejects dtype, rank, extent, partition sizes, allocation or recording failures.