Skip to content

Commit a051184

Browse files
HaoXuan40404qyan-dev
authored andcommitted
fix error hex version
1 parent da8f84e commit a051184

File tree

2 files changed

+4
-4
lines changed
  • ffi/ffi_c/ffi_c_vcl/src
  • solution/key_tool_box/hierarchical_deterministic_key

2 files changed

+4
-4
lines changed

ffi/ffi_c/ffi_c_vcl/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ pub extern "C" fn wedpr_vcl_verify_product_balance(
279279
FAILURE
280280
));
281281

282-
let result = match wedpr_s_verifiable_confidential_ledger::vcl::verify_sum_balance(
282+
let result = match wedpr_s_verifiable_confidential_ledger::vcl::verify_product_balance(
283283
&c1_credit, &c2_credit, &c3_credit, &proof,
284284
) {
285285
Ok(v) => v,
@@ -376,7 +376,7 @@ pub extern "C" fn wedpr_vcl_prove_range(
376376

377377
let proof =
378378
wedpr_s_verifiable_confidential_ledger::vcl::prove_range(&secret);
379-
c_safe_string_to_c_char_pointer!(proof)
379+
c_safe_string_to_c_char_pointer!(bytes_to_string(&proof))
380380
});
381381
c_safe_return!(result)
382382
}

solution/key_tool_box/hierarchical_deterministic_key/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ description = "Library of Hierarchical Deterministic Key (HDK) solution."
99
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1010

1111
[dependencies]
12-
hex = "0.3"
12+
hex = "0.4.2"
1313
rand = "0.7"
1414
hdk_ext_model = { package = "h-wagyu-model", version = "0.6.3" }
15-
hdk_ext_lib = { package = "wagyu-hdk", version = "0.6.4" }
15+
hdk_ext_lib = { package = "wagyu-hdk", version = "0.6.3" }
1616
wedpr_l_macros = "1.0.0"
1717
wedpr_l_utils = "1.0.0"
1818

0 commit comments

Comments
 (0)