Csaba Kiraly
95c543f6e0
enabling PoR over BN254 curves
...
To enable the use of BN254, change the value of
`C` in backend_constantine.nim to `BN254_Snarks`
This also requires https://github.com/mratsim/constantine/pull/193
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2022-05-04 16:11:58 +02:00
Csaba Kiraly
ecb62af253
switching back role of G1/G2
...
newly implemented Constantine feature allows us to use
G1 for authenticators and G2 for the PoS public key.
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2022-04-12 16:02:17 +02:00
Csaba Kiraly
6c47349125
fixup: bad return value for signature deserialize
...
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2022-04-12 15:43:02 +02:00
Csaba Kiraly
e3b4dddaa1
fix debug printing of Constantine BigInt values
2022-04-12 14:45:58 +02:00
Csaba Kiraly
923b86a67b
fix isOnCurve check
...
this needs to be changed as well when switching between G1 and G2
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2022-04-12 14:35:37 +02:00
Csaba Kiraly
4463278c43
remove unused generics to ease compilation
...
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2022-04-12 14:30:17 +02:00
Csaba Kiraly
62cd099f4f
faster verifyPairings
...
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2022-04-12 14:27:34 +02:00
Csaba Kiraly
434b6a1c0d
fix verifyPairings implementation
...
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2022-04-12 14:17:30 +02:00
Csaba Kiraly
177472ee12
WIP: adding constantine backend
...
This is WIP, not compiling yet
test with
cd dagger/storageproofs
../../env.sh nim c -r testbls.nim
2022-04-08 20:37:20 +02:00
Csaba Kiraly
01d59992e6
por: separating BLST backend
...
WIP: func and proc names might be improved later.
2022-04-06 15:09:49 +02:00