strengthen the wording in docs
Co-authored-by: Philipp Gackstatter <PhilippGackstatter@users.noreply.github.com>
This commit is contained in:
parent
56a94c1a8b
commit
b77bc65b18
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.
|
/// 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 {
|
pub fn new(nodes: Vec<RpoDigest>) -> Self {
|
||||||
assert!(nodes.len() <= u8::MAX.into(), "MerklePath may have at most 256 items");
|
assert!(nodes.len() <= u8::MAX.into(), "MerklePath may have at most 256 items");
|
||||||
Self { nodes }
|
Self { nodes }
|
||||||
|
|
Loading…
Add table
Reference in a new issue