This repository was archived by the owner on Feb 17, 2025. It is now read-only.
Commit e483deb 1 parent ced12f9 commit e483deb Copy full SHA for e483deb
File tree 4 files changed +48
-16
lines changed
include/nil/crypto3/marshalling/algebra/processing/detail
4 files changed +48
-16
lines changed Original file line number Diff line number Diff line change 10
10
jobs :
11
11
call-reusable-workflow :
12
12
name : Call Reusable Testing Callback Workflow
13
- uses : NilFoundation/ci-cd/.github/workflows/reusable-crypto3-publish-result.yml@v1
13
+ uses : NilFoundation/ci-cd/.github/workflows/reusable-crypto3-publish-result.yml@v1.2.1
Original file line number Diff line number Diff line change
1
+ name : Reusable PR testing for mac and linux
2
+
3
+ on :
4
+ workflow_call :
5
+ inputs :
6
+ targets :
7
+ type : string
8
+ description : " Make and CTest targets. If not specified, everything is tested"
9
+ required : false
10
+
11
+ jobs :
12
+ handle-syncwith :
13
+ name : Call Reusable SyncWith Handler
14
+ uses :
NilFoundation/ci-cd/.github/workflows/[email protected]
15
+ with :
16
+ ci-cd-ref : ' v1.2.1'
17
+ secrets : inherit
18
+
19
+ matrix-test-linux :
20
+ name : Linux Reusable Crypto3 Testing
21
+ needs :
22
+ - handle-syncwith
23
+ uses :
NilFoundation/ci-cd/.github/workflows/[email protected]
24
+
25
+ secrets : inherit
26
+ with :
27
+ submodules-refs : ${{ needs.handle-syncwith.outputs.prs-refs }}
28
+
29
+ targets : ${{ inputs.targets }}
30
+
31
+ matrix-test-mac :
32
+ name : Mac Reusable Crypto3 Testing
33
+ needs :
34
+ - handle-syncwith
35
+ uses :
NilFoundation/ci-cd/.github/workflows/[email protected]
36
+
37
+ secrets : inherit
38
+ with :
39
+ submodules-refs : ${{ needs.handle-syncwith.outputs.prs-refs }}
40
+
41
+ targets : ${{ inputs.targets }}
42
+
Original file line number Diff line number Diff line change 7
7
- synchronize
8
8
9
9
jobs :
10
- handle-syncwith :
11
- name : Call Reusable SyncWith Handler
12
- uses : NilFoundation/ci-cd/.github/workflows/reusable-handle-syncwith.yml@v1
13
- with :
14
- ci-cd-ref : ' v1'
15
- secrets : inherit
10
+ run-pull-request-actions :
11
+ name : Reusable Crypto3 Testing
12
+ uses : ./.github/workflows/pull-request-action.yml
16
13
17
- matrix-test :
18
- name : Call Reusable Crypto3 Testing
19
- needs :
20
- - handle-syncwith
21
- uses : NilFoundation/ci-cd/.github/workflows/reusable-crypto3-testing.yml@v1
22
- with :
23
- submodules-refs : ${{ needs.handle-syncwith.outputs.prs-refs }}
24
14
secrets : inherit
Original file line number Diff line number Diff line change @@ -113,9 +113,9 @@ namespace nil {
113
113
assert (!sign);
114
114
return group_affine_value_type (base_field_value_type::zero (), y);
115
115
}
116
- base_field_value_type x = x2.pow ((base_field_type::modulus + 3 ) / 8 );
116
+ base_field_value_type x = x2.pow ((base_field_type::modulus + 3u ) / 8 );
117
117
if (!(x * x - x2).is_zero ()) {
118
- x = x * base_field_value_type (2 ).pow ((base_field_type::modulus - 1 ) / 4 );
118
+ x = x * base_field_value_type (2u ).pow ((base_field_type::modulus - 1u ) / 4 );
119
119
// TODO: throw catchable error, for example return status
120
120
assert ((x * x - x2).is_zero ());
121
121
}
You can’t perform that action at this time.
0 commit comments