mirror of https://github.com/zcash/orchard.git
Rename Level -> Altitude
This commit is contained in:
parent
e3abbf9a42
commit
4888f0d16c
|
@ -7,7 +7,7 @@ use crate::{
|
||||||
note::commitment::ExtractedNoteCommitment,
|
note::commitment::ExtractedNoteCommitment,
|
||||||
primitives::sinsemilla::{i2lebsp_k, HashDomain},
|
primitives::sinsemilla::{i2lebsp_k, HashDomain},
|
||||||
};
|
};
|
||||||
use incrementalmerkletree::{Hashable, Level};
|
use incrementalmerkletree::{Hashable, Altitude};
|
||||||
use pasta_curves::{arithmetic::FieldExt, pallas};
|
use pasta_curves::{arithmetic::FieldExt, pallas};
|
||||||
|
|
||||||
use serde::{Serialize, Deserialize};
|
use serde::{Serialize, Deserialize};
|
||||||
|
@ -186,7 +186,7 @@ impl Hashable for OrchardIncrementalTreeDigest {
|
||||||
OrchardIncrementalTreeDigest(CtOption::new(pallas::Base::from_u64(2), 1.into()))
|
OrchardIncrementalTreeDigest(CtOption::new(pallas::Base::from_u64(2), 1.into()))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn combine(level: Level, left_opt: &Self, right_opt: &Self) -> Self {
|
fn combine(level: Altitude, left_opt: &Self, right_opt: &Self) -> Self {
|
||||||
let level: usize = level.into();
|
let level: usize = level.into();
|
||||||
let l_star: usize = MERKLE_DEPTH_ORCHARD - 1 - level;
|
let l_star: usize = MERKLE_DEPTH_ORCHARD - 1 - level;
|
||||||
OrchardIncrementalTreeDigest(left_opt.0.and_then(|left| {
|
OrchardIncrementalTreeDigest(left_opt.0.and_then(|left| {
|
||||||
|
|
Loading…
Reference in New Issue