@@ -16,10 +16,12 @@ use wedpr_ffi_common::utils::{
16
16
} ;
17
17
use wedpr_s_verifiable_confidential_ledger;
18
18
19
- use wedpr_l_protos:: generated:: zkp:: BalanceProof ;
20
- use wedpr_s_protos:: generated:: vcl:: {
21
- BatchCreditBalanceProof , EncodedConfidentialCredit , EncodedOwnerSecret ,
22
- VclResult ,
19
+ use wedpr_s_protos:: generated:: {
20
+ vcl:: {
21
+ BatchCreditBalanceProof , EncodedConfidentialCredit , EncodedOwnerSecret ,
22
+ VclResult ,
23
+ } ,
24
+ zkp:: PBBalanceProof ,
23
25
} ;
24
26
25
27
use libc:: { c_char, c_ulong} ;
@@ -110,7 +112,7 @@ pub extern "C" fn wedpr_vcl_verify_sum_balance(
110
112
let result = panic:: catch_unwind ( || {
111
113
let proof = c_safe_c_char_pointer_to_proto_with_error_value ! (
112
114
proof_cstring,
113
- BalanceProof ,
115
+ PBBalanceProof ,
114
116
FAILURE
115
117
) ;
116
118
let c1_credit =
@@ -160,7 +162,7 @@ pub extern "C" fn wedpr_vcl_verify_sum_balance_in_batch(
160
162
let mut c1_credits: Vec < ConfidentialCredit > = vec ! [ ] ;
161
163
let mut c2_credits: Vec < ConfidentialCredit > = vec ! [ ] ;
162
164
let mut c3_credits: Vec < ConfidentialCredit > = vec ! [ ] ;
163
- let mut proofs: Vec < BalanceProof > = vec ! [ ] ;
165
+ let mut proofs: Vec < PBBalanceProof > = vec ! [ ] ;
164
166
for credit_balance_proof in batch_proof. credit_balance_proof {
165
167
c1_credits. push ( decode_credit ! (
166
168
c_safe_bytes_to_proto_with_error_value!(
@@ -197,7 +199,7 @@ pub extern "C" fn wedpr_vcl_verify_sum_balance_in_batch(
197
199
credit_balance_proof. proof,
198
200
FAILURE
199
201
) ,
200
- BalanceProof ,
202
+ PBBalanceProof ,
201
203
FAILURE
202
204
) ) ;
203
205
}
@@ -257,7 +259,7 @@ pub extern "C" fn wedpr_vcl_verify_product_balance(
257
259
let result = panic:: catch_unwind ( || {
258
260
let proof = c_safe_c_char_pointer_to_proto_with_error_value ! (
259
261
proof_cstring,
260
- BalanceProof ,
262
+ PBBalanceProof ,
261
263
FAILURE
262
264
) ;
263
265
let c1_credit =
@@ -307,7 +309,7 @@ pub extern "C" fn wedpr_vcl_verify_product_balance_in_batch(
307
309
let mut c1_credits: Vec < ConfidentialCredit > = vec ! [ ] ;
308
310
let mut c2_credits: Vec < ConfidentialCredit > = vec ! [ ] ;
309
311
let mut c3_credits: Vec < ConfidentialCredit > = vec ! [ ] ;
310
- let mut proofs: Vec < BalanceProof > = vec ! [ ] ;
312
+ let mut proofs: Vec < PBBalanceProof > = vec ! [ ] ;
311
313
for credit_balance_proof in batch_proof. credit_balance_proof {
312
314
c1_credits. push ( decode_credit ! (
313
315
c_safe_bytes_to_proto_with_error_value!(
@@ -344,7 +346,7 @@ pub extern "C" fn wedpr_vcl_verify_product_balance_in_batch(
344
346
credit_balance_proof. proof,
345
347
FAILURE
346
348
) ,
347
- BalanceProof ,
349
+ PBBalanceProof ,
348
350
FAILURE
349
351
) ) ;
350
352
}
0 commit comments