Skip to content

Commit

Permalink
Add note_encryption::CompactAction::cmx
Browse files Browse the repository at this point in the history
  • Loading branch information
nuttycom committed Feb 26, 2024
1 parent 8cc96b5 commit 9729cd8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to Rust's notion of
### Added
- `impl subtle::ConstantTimeEq for note::Nullifier`
- `impl Clone for note_encryption::CompactAction`
- `note_encryption::CompactAction::cmx`

## [0.7.0] - 2024-01-26
### Licensing
Expand Down
7 changes: 6 additions & 1 deletion src/note_encryption.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
self.nullifier
}

/// Returns the commitment to the new note being created.
pub fn cmx(&self) -> ExtractedNoteCommitment {
self.cmx
}
}

#[cfg(test)]
Expand Down

0 comments on commit 9729cd8

Please sign in to comment.