Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 2c42712

Browse files
committed
cargo fmt
1 parent b257efc commit 2c42712

File tree

1 file changed

+6
-4
lines changed
  • token/confidential-transfer/ciphertext-arithmetic/src

1 file changed

+6
-4
lines changed

token/confidential-transfer/ciphertext-arithmetic/src/lib.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ pub fn multiply(
4949
))
5050
}
5151

52-
/// Compute `left_ciphertext + (right_ciphertext_lo + 2^16 * right_ciphertext_hi)`
52+
/// Compute `left_ciphertext + (right_ciphertext_lo + 2^16 *
53+
/// right_ciphertext_hi)`
5354
pub fn add_with_lo_hi(
5455
left_ciphertext: &PodElGamalCiphertext,
5556
right_ciphertext_lo: &PodElGamalCiphertext,
@@ -78,7 +79,8 @@ pub fn subtract(
7879
))
7980
}
8081

81-
/// Compute `left_ciphertext - (right_ciphertext_lo + 2^16 * right_ciphertext_hi)`
82+
/// Compute `left_ciphertext - (right_ciphertext_lo + 2^16 *
83+
/// right_ciphertext_hi)`
8284
pub fn subtract_with_lo_hi(
8385
left_ciphertext: &PodElGamalCiphertext,
8486
right_ciphertext_lo: &PodElGamalCiphertext,
@@ -124,8 +126,8 @@ fn u64_to_scalar(amount: u64) -> PodScalar {
124126
PodScalar(amount_bytes)
125127
}
126128

127-
/// Convert a `PodElGamalCiphertext` into a tuple of commitment and decrypt handle
128-
/// `PodRistrettoPoint`
129+
/// Convert a `PodElGamalCiphertext` into a tuple of commitment and decrypt
130+
/// handle `PodRistrettoPoint`
129131
fn elgamal_ciphertext_to_ristretto(
130132
ciphertext: &PodElGamalCiphertext,
131133
) -> (PodRistrettoPoint, PodRistrettoPoint) {

0 commit comments

Comments
 (0)