From 08e0e62846764526710be3ef916b0b781a320c9a Mon Sep 17 00:00:00 2001 From: samkim-crypto Date: Mon, 11 Nov 2024 18:22:51 +0900 Subject: [PATCH] import `elgamalciphertext_fromstr` --- .../src/extension/confidential_mint_burn/instruction.rs | 4 +++- .../src/extension/confidential_transfer/instruction.rs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/token/program-2022/src/extension/confidential_mint_burn/instruction.rs b/token/program-2022/src/extension/confidential_mint_burn/instruction.rs index ad268fdbecf..993add92e65 100644 --- a/token/program-2022/src/extension/confidential_mint_burn/instruction.rs +++ b/token/program-2022/src/extension/confidential_mint_burn/instruction.rs @@ -1,6 +1,8 @@ #[cfg(feature = "serde-traits")] use { - crate::serialization::{aeciphertext_fromstr, elgamalpubkey_fromstr}, + crate::serialization::{ + aeciphertext_fromstr, elgamalciphertext_fromstr, elgamalpubkey_fromstr, + }, serde::{Deserialize, Serialize}, }; use { diff --git a/token/program-2022/src/extension/confidential_transfer/instruction.rs b/token/program-2022/src/extension/confidential_transfer/instruction.rs index bd4b8c64c4f..152302df3ba 100644 --- a/token/program-2022/src/extension/confidential_transfer/instruction.rs +++ b/token/program-2022/src/extension/confidential_transfer/instruction.rs @@ -3,7 +3,7 @@ pub use solana_zk_sdk::zk_elgamal_proof_program::{ }; #[cfg(feature = "serde-traits")] use { - crate::serialization::aeciphertext_fromstr, + crate::serialization::{aeciphertext_fromstr, elgamalciphertext_fromstr}, serde::{Deserialize, Serialize}, }; use {