Skip to content

Commit 7c86a2a

Browse files
committed
mention arkworks licence
1 parent bfd0cc0 commit 7c86a2a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

soroban-sdk/src/crypto/utils.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ use crate::BytesN;
22

33
// This routine was copied with slight modification from the arkworks library:
44
// 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
57
fn sbb_for_sub_with_borrow(a: &mut u64, b: u64, borrow: u8) -> u8 {
68
let tmp = (1u128 << 64) + u128::from(*a) - u128::from(b) - u128::from(borrow);
79
// casting is safe here because `tmp` can only exceed u64 by a single

0 commit comments

Comments
 (0)