This repository was archived by the owner on Mar 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
token/confidential-transfer/ciphertext-arithmetic/src Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,8 @@ pub fn multiply(
49
49
) )
50
50
}
51
51
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)`
53
54
pub fn add_with_lo_hi (
54
55
left_ciphertext : & PodElGamalCiphertext ,
55
56
right_ciphertext_lo : & PodElGamalCiphertext ,
@@ -78,7 +79,8 @@ pub fn subtract(
78
79
) )
79
80
}
80
81
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)`
82
84
pub fn subtract_with_lo_hi (
83
85
left_ciphertext : & PodElGamalCiphertext ,
84
86
right_ciphertext_lo : & PodElGamalCiphertext ,
@@ -124,8 +126,8 @@ fn u64_to_scalar(amount: u64) -> PodScalar {
124
126
PodScalar ( amount_bytes)
125
127
}
126
128
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`
129
131
fn elgamal_ciphertext_to_ristretto (
130
132
ciphertext : & PodElGamalCiphertext ,
131
133
) -> ( PodRistrettoPoint , PodRistrettoPoint ) {
You can’t perform that action at this time.
0 commit comments