set ciphertext_lo and ciphertext_hi methods to private

This commit is contained in:
Sam Kim 2021-10-28 07:51:44 -04:00 committed by Michael Vines
parent c59e8f7c8d
commit 8d731f1a70
1 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ impl TransferData {
}
/// Extracts the lo ciphertexts associated with a transfer data
pub fn ciphertext_lo(&self, role: &Role) -> Result<ElGamalCiphertext, ProofError> {
fn ciphertext_lo(&self, role: &Role) -> Result<ElGamalCiphertext, ProofError> {
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<ElGamalCiphertext, ProofError> {
fn ciphertext_hi(&self, role: &Role) -> Result<ElGamalCiphertext, ProofError> {
let transfer_comm_hi: PedersenCommitment = self.amount_comms.hi.try_into()?;
let decryption_handle_hi = match role {