proof-of-portfolio 0.0.89__py3-none-any.whl → 0.0.90__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- proof_of_portfolio/_version.py +1 -1
- proof_of_portfolio/circuits/components/src/core/omega.nr +5 -2
- proof_of_portfolio/circuits/target/circuits.json +1 -1
- proof_of_portfolio/circuits/vk/vk +0 -0
- {proof_of_portfolio-0.0.89.dist-info → proof_of_portfolio-0.0.90.dist-info}/METADATA +1 -1
- {proof_of_portfolio-0.0.89.dist-info → proof_of_portfolio-0.0.90.dist-info}/RECORD +9 -9
- {proof_of_portfolio-0.0.89.dist-info → proof_of_portfolio-0.0.90.dist-info}/WHEEL +0 -0
- {proof_of_portfolio-0.0.89.dist-info → proof_of_portfolio-0.0.90.dist-info}/entry_points.txt +0 -0
- {proof_of_portfolio-0.0.89.dist-info → proof_of_portfolio-0.0.90.dist-info}/top_level.txt +0 -0
proof_of_portfolio/_version.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
# This file is auto-generated during build
|
2
|
-
__version__ = "0.0.
|
2
|
+
__version__ = "0.0.90"
|
@@ -40,8 +40,11 @@ pub fn omega(
|
|
40
40
|
sum_weights_negative = OMEGA_LOSS_MINIMUM;
|
41
41
|
}
|
42
42
|
|
43
|
-
let
|
44
|
-
let
|
43
|
+
let positive_sum_u128 = (product_sum_positive as u128) * (sum_weights_negative as u128);
|
44
|
+
let negative_sum_u128 = ((-product_sum_negative) as u128) * (sum_weights_positive as u128);
|
45
|
+
|
46
|
+
let positive_sum = (positive_sum_u128 / 1000000) as i64;
|
47
|
+
let negative_sum = (negative_sum_u128 / 1000000) as i64;
|
45
48
|
|
46
49
|
let effective_denominator = if negative_sum >= OMEGA_LOSS_MINIMUM {
|
47
50
|
negative_sum
|