Add `impl Clone for note_encryption::CompactAction`

This commit is contained in:
Kris Nuttycombe 2024-02-26 09:44:02 -07:00
parent ff7287e392
commit 8cc96b5420
3 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,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`
## [0.7.0] - 2024-01-26 ## [0.7.0] - 2024-01-26
### Licensing ### Licensing

View File

@ -3,7 +3,7 @@ use halo2_proofs::arithmetic::CurveExt;
use memuse::DynamicUsage; use memuse::DynamicUsage;
use pasta_curves::pallas; use pasta_curves::pallas;
use rand::RngCore; use rand::RngCore;
use subtle::{CtOption, ConstantTimeEq}; use subtle::{ConstantTimeEq, CtOption};
use super::NoteCommitment; use super::NoteCommitment;
use crate::{ use crate::{

View File

@ -269,6 +269,7 @@ impl<T> ShieldedOutput<OrchardDomain, ENC_CIPHERTEXT_SIZE> for Action<T> {
} }
/// A compact Action for light clients. /// A compact Action for light clients.
#[derive(Clone)]
pub struct CompactAction { pub struct CompactAction {
nullifier: Nullifier, nullifier: Nullifier,
cmx: ExtractedNoteCommitment, cmx: ExtractedNoteCommitment,