From 8cc96b542046d40a852073a14424688bf05257e7 Mon Sep 17 00:00:00 2001 From: Kris Nuttycombe Date: Mon, 26 Feb 2024 09:44:02 -0700 Subject: [PATCH] Add `impl Clone for note_encryption::CompactAction` --- CHANGELOG.md | 1 + src/note/nullifier.rs | 2 +- src/note_encryption.rs | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 07637e07..7a562d95 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/note/nullifier.rs b/src/note/nullifier.rs index 7fa97230..bde13399 100644 --- a/src/note/nullifier.rs +++ b/src/note/nullifier.rs @@ -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::{ diff --git a/src/note_encryption.rs b/src/note_encryption.rs index dc0766f0..00a6a17f 100644 --- a/src/note_encryption.rs +++ b/src/note_encryption.rs @@ -269,6 +269,7 @@ impl ShieldedOutput for Action { } /// A compact Action for light clients. +#[derive(Clone)] pub struct CompactAction { nullifier: Nullifier, cmx: ExtractedNoteCommitment,