We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfd0cc0 commit 7c86a2aCopy full SHA for 7c86a2a
soroban-sdk/src/crypto/utils.rs
@@ -2,6 +2,8 @@ use crate::BytesN;
2
3
// This routine was copied with slight modification from the arkworks library:
4
// https://github.com/arkworks-rs/algebra/blob/bf1c9b22b30325ef4df4f701dedcb6dea904c587/ff/src/biginteger/arithmetic.rs#L66-L79
5
+// Copyright 2022 arkworks contributors. arkworks zkSNARK ecosystem [Computer software]. https://github.com/arkworks-rs/
6
+// Licensed under the Apache License, Version 2.0
7
fn sbb_for_sub_with_borrow(a: &mut u64, b: u64, borrow: u8) -> u8 {
8
let tmp = (1u128 << 64) + u128::from(*a) - u128::from(b) - u128::from(borrow);
9
// casting is safe here because `tmp` can only exceed u64 by a single
0 commit comments