Skip to content

Commit

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

### Added
- `impl subtle::ConstantTimeEq for note::Nullifier`
- `impl Clone for note_encryption::CompactAction`

## [0.7.0] - 2024-01-26
### Licensing
Expand Down
2 changes: 1 addition & 1 deletion src/note/nullifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use halo2_proofs::arithmetic::CurveExt;
use memuse::DynamicUsage;
use pasta_curves::pallas;
use rand::RngCore;
use subtle::{CtOption, ConstantTimeEq};
use subtle::{ConstantTimeEq, CtOption};

use super::NoteCommitment;
use crate::{
Expand Down
1 change: 1 addition & 0 deletions src/note_encryption.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ impl<T> ShieldedOutput<OrchardDomain, ENC_CIPHERTEXT_SIZE> for Action<T> {
}

/// A compact Action for light clients.
#[derive(Clone)]
pub struct CompactAction {
nullifier: Nullifier,
cmx: ExtractedNoteCommitment,
Expand Down

0 comments on commit 8cc96b5

Please sign in to comment.