From 8d731f1a7091a6eca31ea9e9f42d5b89b45ed3cf Mon Sep 17 00:00:00 2001 From: Sam Kim Date: Thu, 28 Oct 2021 07:51:44 -0400 Subject: [PATCH] set ciphertext_lo and ciphertext_hi methods to private --- zk-token-sdk/src/instruction/transfer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zk-token-sdk/src/instruction/transfer.rs b/zk-token-sdk/src/instruction/transfer.rs index 16dcde92a..81b14cedc 100644 --- a/zk-token-sdk/src/instruction/transfer.rs +++ b/zk-token-sdk/src/instruction/transfer.rs @@ -142,7 +142,7 @@ impl TransferData { } /// Extracts the lo ciphertexts associated with a transfer data - pub fn ciphertext_lo(&self, role: &Role) -> Result { + fn ciphertext_lo(&self, role: &Role) -> Result { let transfer_comm_lo: PedersenCommitment = self.amount_comms.lo.try_into()?; let decryption_handle_lo = match role { @@ -156,7 +156,7 @@ impl TransferData { } /// Extracts the lo ciphertexts associated with a transfer data - pub fn ciphertext_hi(&self, role: &Role) -> Result { + fn ciphertext_hi(&self, role: &Role) -> Result { let transfer_comm_hi: PedersenCommitment = self.amount_comms.hi.try_into()?; let decryption_handle_hi = match role {