Skip to content

Commit f9784e8

Browse files
[confidential-transfer] Deprecate try_combine_lo_hi_u64 function (#712)
deprecaate `try_combine_lo_hi_u64` function
1 parent 8ae9b45 commit f9784e8

File tree

1 file changed

+4
-0
lines changed
  • confidential/proof-generation/src

1 file changed

+4
-0
lines changed

confidential/proof-generation/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ pub fn try_split_u64(amount: u64, bit_length: usize) -> Option<(u64, u64)> {
4848
/// Combine two numbers that are interpreted as the low and high bits of a
4949
/// target number. The `bit_length` parameter specifies the number of bits that
5050
/// `amount_hi` is to be shifted by.
51+
#[deprecated(
52+
since = "0.6.0",
53+
note = "This function is deprecated as it contains logical errors and is unused in the crate"
54+
)]
5155
pub fn try_combine_lo_hi_u64(amount_lo: u64, amount_hi: u64, bit_length: usize) -> Option<u64> {
5256
match bit_length {
5357
0 => Some(amount_hi),

0 commit comments

Comments
 (0)