瀏覽代碼

fix: typos (#7013)

colin 4 月之前
父節點
當前提交
2f015527c5

+ 2 - 2
zk-sdk/src/sigma_proofs/grouped_ciphertext_validity/handles_3.rs

@@ -224,10 +224,10 @@ impl GroupedCiphertext3HandlesValidityProof {
                 &Y_1,     // Y_1
                 P_second, // P_second
                 D_second, // D_second
-                &Y_2,     // Y_1
+                &Y_2,     // Y_2
                 P_third,  // P_third
                 D_third,  // D_third
-                &Y_3,     // Y_2
+                &Y_3,     // Y_3
             ],
         );
 

+ 1 - 1
zk-token-sdk/src/sigma_proofs/ciphertext_ciphertext_equality_proof.rs

@@ -197,7 +197,7 @@ impl CiphertextCiphertextEqualityProof {
                 &(&ww * &self.z_r),   // ww * z_r
                 &(&ww_negated * &c),  // -ww * c
                 &ww_negated,          // -ww
-                &(&www * &self.z_r),  // z_r
+                &(&www * &self.z_r),  // www * z_r
                 &(&www_negated * &c), // -www * c
                 &www_negated,
             ],

+ 4 - 4
zk-token-sdk/src/sigma_proofs/grouped_ciphertext_validity_proof/handles_3.rs

@@ -217,15 +217,15 @@ impl GroupedCiphertext3HandlesValidityProof {
                 &G,            // G
                 C,             // C
                 &Y_0,          // Y_0
-                P_source,      // P_destination
-                D_source,      // D_destination
+                P_source,      // P_source
+                D_source,      // D_source
                 &Y_1,          // Y_1
                 P_destination, // P_destination
                 D_destination, // D_destination
-                &Y_2,          // Y_1
+                &Y_2,          // Y_2
                 P_auditor,     // P_auditor
                 D_auditor,     // D_auditor
-                &Y_3,          // Y_2
+                &Y_3,          // Y_3
             ],
         );