mirror of https://github.com/zcash/orchard.git
Add note_encryption::CompactAction::cmx
This commit is contained in:
parent
8cc96b5420
commit
9729cd8d26
|
@ -10,6 +10,7 @@ and this project adheres to Rust's notion of
|
||||||
### Added
|
### Added
|
||||||
- `impl subtle::ConstantTimeEq for note::Nullifier`
|
- `impl subtle::ConstantTimeEq for note::Nullifier`
|
||||||
- `impl Clone for note_encryption::CompactAction`
|
- `impl Clone for note_encryption::CompactAction`
|
||||||
|
- `note_encryption::CompactAction::cmx`
|
||||||
|
|
||||||
## [0.7.0] - 2024-01-26
|
## [0.7.0] - 2024-01-26
|
||||||
### Licensing
|
### Licensing
|
||||||
|
|
|
@ -326,10 +326,15 @@ impl CompactAction {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
///Returns the nullifier of the note being spent.
|
/// Returns the nullifier of the note being spent.
|
||||||
pub fn nullifier(&self) -> Nullifier {
|
pub fn nullifier(&self) -> Nullifier {
|
||||||
self.nullifier
|
self.nullifier
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Returns the commitment to the new note being created.
|
||||||
|
pub fn cmx(&self) -> ExtractedNoteCommitment {
|
||||||
|
self.cmx
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
|
Loading…
Reference in New Issue