strengthen the wording in docs
Co-authored-by: Philipp Gackstatter <PhilippGackstatter@users.noreply.github.com>
This commit is contained in:
parent
5ab7980fbc
commit
c168c72f5a
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ impl MerklePath {
|
|||
|
||||
/// Creates a new Merkle path from a list of nodes.
|
||||
///
|
||||
/// The list is assumed to be in order of deepest to shallowest.
|
||||
/// The list must be in order of deepest to shallowest.
|
||||
pub fn new(nodes: Vec<RpoDigest>) -> Self {
|
||||
assert!(nodes.len() <= u8::MAX.into(), "MerklePath may have at most 256 items");
|
||||
Self { nodes }
|
||||
|
|
Loading…
Add table
Reference in a new issue