-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee16b02
commit ea94c8f
Showing
5 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[[circuit]] __zkllvm_curve_bls12381 add(__zkllvm_curve_bls12381 a, __zkllvm_curve_bls12381 b) { | ||
return a + b; | ||
} | ||
|
||
|
||
// #include <nil/crypto3/algebra/curves/bls12.hpp> | ||
|
||
// using namespace nil::crypto3::algebra::curves; | ||
|
||
// [[circuit]] typename bls12<381>::template g1_type<>::value_type hash_to_curve( | ||
// typename bls12<381>::template g1_type<>::value_type a, | ||
// typename bls12<381>::template g1_type<>::value_type b) { | ||
|
||
// return a + b; | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include <nil/crypto3/algebra/fields/bls12/base_field.hpp> | ||
|
||
using namespace nil::crypto3::algebra::fields; | ||
|
||
[[circuit]] typename bls12_base_field<381>::value_type add( | ||
typename bls12_base_field<381>::value_type a, | ||
typename bls12_base_field<381>::value_type b) { | ||
|
||
return a + b; | ||
} | ||
|
||
|
||
|
||
|
||
// [[circuit]] typename ed25519::template g1_type<nil::crypto3::algebra::curves::coordinates::affine>::value_type curve_mul( | ||
// typename ed25519::template g1_type<nil::crypto3::algebra::curves::coordinates::affine>::value_type point, | ||
// typename ed25519::scalar_field_type::value_type scalar) { | ||
|
||
// return point * scalar; | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[ | ||
{"curve":[1, 1]}, | ||
{"curve":[1, 1]} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[ {"field":"999"}, | ||
{"field":"0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaaa"} ] |