Orchard: fix into() call inside extract_x
This commit is contained in:
parent
94edc90975
commit
1c903cab0f
|
@ -143,7 +143,7 @@ impl NoteCommitment {
|
||||||
///
|
///
|
||||||
/// https://zips.z.cash/protocol/protocol.pdf#concreteextractorpallas
|
/// https://zips.z.cash/protocol/protocol.pdf#concreteextractorpallas
|
||||||
pub fn extract_x(&self) -> pallas::Base {
|
pub fn extract_x(&self) -> pallas::Base {
|
||||||
match self.0.get_xy().into {
|
match self.0.get_xy().into() {
|
||||||
// If Some, it's not the identity.
|
// If Some, it's not the identity.
|
||||||
Some((x, _)) => x,
|
Some((x, _)) => x,
|
||||||
_ => pallas::Base::zero(),
|
_ => pallas::Base::zero(),
|
||||||
|
|
Loading…
Reference in New Issue