spec.rs: Check that commit_ivk returns a nonzero base.

This commit is contained in:
therealyingtong 2022-03-16 01:28:13 +08:00
parent 3ddf6c49f7
commit 72f1ca6b45
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ pub(crate) fn commit_ivk(
// - sinsemilla::CommitDomain::short_commit calls extract_p_bottom, which replaces
// the identity (which has no affine coordinates) with 0. but Sinsemilla is
// defined using incomplete addition, and thus will never produce the identity.
.map(NonZeroPallasBase::guaranteed)
.and_then(NonZeroPallasBase::from_base)
}
/// Defined in [Zcash Protocol Spec § 5.4.1.6: DiversifyHash^Sapling and DiversifyHash^Orchard Hash Functions][concretediversifyhash].