mirror of
https://github.com/logos-storage/constantine.git
synced 2026-01-02 13:13:07 +00:00
add missing benches compilation to test suite
This commit is contained in:
parent
d4e202ead5
commit
2f6144fb7a
@ -223,6 +223,7 @@ const benchDesc = [
|
||||
"bench_fp",
|
||||
"bench_fp_double_precision",
|
||||
"bench_fp2",
|
||||
"bench_fp4",
|
||||
"bench_fp6",
|
||||
"bench_fp12",
|
||||
"bench_ec_g1",
|
||||
@ -235,8 +236,11 @@ const benchDesc = [
|
||||
"bench_summary_bls12_381",
|
||||
"bench_summary_bn254_nogami",
|
||||
"bench_summary_bn254_snarks",
|
||||
"bench_summary_pasta",
|
||||
"bench_poly_1305",
|
||||
"bench_sha256",
|
||||
"bench_hash_to_curve"
|
||||
"bench_hash_to_curve",
|
||||
"bench_blssig_on_bls12_381_g2"
|
||||
]
|
||||
|
||||
# For temporary (hopefully) investigation that can only be reproduced in CI
|
||||
|
||||
@ -242,7 +242,7 @@ func deserialize_public_key_compressed_unchecked*(dst: var PublicKey, src: array
|
||||
# General case
|
||||
var t{.noInit.}: matchingBigInt(BLS12_381)
|
||||
t.unmarshal(src, bigEndian)
|
||||
t.limbs[t.len-1] = t.limbs[t.len-1] and (MaxWord shr 3) # The first 3 bytes contain metadata to mask out
|
||||
t.limbs[t.limbs.len-1] = t.limbs[t.limbs.len-1] and (MaxWord shr 3) # The first 3 bytes contain metadata to mask out
|
||||
|
||||
if bool(t >= BLS12_381.Mod()):
|
||||
return cttBLS_CoordinateGreaterOrEqualThanModulus
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user