Skip to main content

model_root

Function model_root 

Source
pub fn model_root(leaves: &[Digest]) -> Digest
Expand description

Batch root from 128 leaves using only merkle_request.

Hashes pairs level by level until one node is left. In hardware the lower levels are done by each slice’s subtree builder and the top levels by the cert unit; the result must be the same.