Commit Graph

81 Commits

Author SHA1 Message Date
Lion - dapplion 86078f9b6d
Use explicit chai statements (#140) 2022-10-07 21:43:50 +05:30
Lion - dapplion c4ea70afd0
Add tests for empty message case (#138) 2022-10-07 21:35:58 +05:30
Marin Petrunic 35bf7684d7 fix web tests 2022-04-15 11:51:06 +02:00
Cayman 7c2e883527
Tweaks and upgrade karma/webpack 2022-04-14 12:16:06 -05:00
Cayman 8881334330
Use @chainsafe/threads 2022-04-11 15:15:17 -05:00
Cayman 0056e13ee5
feat: use esm
BREAKING CHANGE:
Only esm is exported, no commonjs
Named exports (excluding `bls`) are no longer exported from the root.
`browser` and `node` exports are removed in favor of
implementation-specific naming.
2022-04-11 10:15:43 -05:00
g11tech 6854661b29 bls-eth-wasm package update for invalidating signature not in g2, validation on by default 2021-09-22 11:05:53 +05:30
dapplion adf89c8360 Add validate key option to PublicKey.fromBytes() 2021-04-05 22:38:12 +02:00
dapplion ac9564d53a Skip herumi in multi-thread tests 2021-04-05 17:52:21 +02:00
dapplion 7d9aebd3fe Remove warmup workers function 2021-04-05 17:49:18 +02:00
dapplion 69c3408964 Enable multi-threading for all implementations 2021-04-05 17:49:18 +02:00
Marin Petrunić 112668bd4e
fix silent pass if no spec tests 2020-12-14 10:13:56 +01:00
dapplion 25b1fdcb1b Set strictNullChecks to true 2020-12-06 11:38:05 +00:00
dapplion 0b10c2cb4e Add deleted method in tests util 2020-12-03 00:31:52 +00:00
dapplion 7f76672a40 Use browser friendly concatUint8Arrays instead of Buffer.concat 2020-12-03 00:06:36 +00:00
dapplion 13ea412c3f Move web test to a different folder to not run herumi tests twice 2020-12-03 00:05:49 +00:00
dapplion 93499b3f34 Fix class method usage 2020-12-02 23:33:44 +00:00
dapplion d2c11ed16c Use class interface for more transparent errors 2020-12-02 23:32:42 +00:00
dapplion 092165a5f4 Move test data to file 2020-12-02 23:19:33 +00:00
dapplion 8d5206c31f Test verifyMultipleSignatures against malicious input 2020-12-02 23:19:33 +00:00
dapplion 4e2f60b5b8 Fix benchmark setup 2020-12-01 08:29:19 +00:00
dapplion fa3c9a8c47 Store spec tests data in local directory 2020-12-01 08:22:58 +00:00
dapplion b64ff7f1d4 bump @chainsafe/lodestar-spec-test-util 2020-12-01 08:17:25 +00:00
dapplion e4cf34ab90 Deprecate IKeypair 2020-12-01 00:07:45 +00:00
dapplion a51022f802 De-duplicate interface 2020-11-30 23:54:03 +00:00
dapplion 138c8e99fa Install libs to benchmark in benchmark project 2020-11-30 22:05:40 +00:00
dapplion b02cd11c96 Benchmark noble-bls12-381
f
2020-11-30 22:05:40 +00:00
Cayman b5b2e6dfc7
Consistent naming 2020-11-30 12:03:49 -06:00
dapplion 3004076a4a Remove console.log 2020-11-30 11:49:47 +00:00
dapplion 2c938ddeed Test named exports 2020-11-30 11:49:37 +00:00
Cayman 21b319711f
Fix linter error 2020-11-29 20:43:57 -06:00
dapplion c557db4a78 Make errors consistent 2020-11-30 00:20:55 +00:00
dapplion 32266dae20 Use isZeroUint8Array to check for empty bytes 2020-11-29 23:56:31 +00:00
dapplion 6fe9b09a92 Fix herumi tests 2020-11-29 23:55:45 +00:00
dapplion d3616e50f6 Remove async from runForAllImplementations 2020-11-29 23:55:45 +00:00
dapplion 8055f73afb Use browser friendly hexToBytes, bytesToHex methods 2020-11-28 19:52:32 +00:00
dapplion 2c34db8b8e Remove unnecessary casting of Buffer to Unit8Array 2020-11-28 19:30:56 +00:00
dapplion b507ed28c0 Use randombytes instead of node's crypto 2020-11-28 19:27:59 +00:00
dapplion ca5cac64b3 Fix lint warnings and errors 2020-11-25 16:23:53 +00:00
dapplion 0e69b819e0 Remove keypair test 2020-11-25 16:11:44 +00:00
dapplion 49d509aca4 Clean interface 2020-11-25 16:09:47 +00:00
dapplion 4cb49674d5 Fix test util import 2020-11-25 15:11:02 +00:00
dapplion 990258dbd9 Fix type errors in benchmark runner
Lint issues
2020-11-20 19:37:20 +00:00
dapplion 70ccbfbe5b Run only web implementation in Karma 2020-11-20 19:09:05 +00:00
dapplion 4424bed87d Define common implementation 2020-11-20 19:03:17 +00:00
dapplion c354386dab Fix lint errors 2020-11-20 12:27:35 +00:00
dapplion 523d547171 Add Keypair test 2020-11-19 14:50:18 +00:00
dapplion f8cd6e7afa Update tests to run both implementations 2020-11-19 14:41:45 +00:00
dapplion 57694c2e54 Co-exist implementations 2020-11-19 13:22:41 +00:00
dapplion 5b06e4f61e Replace herumi src with BLST 2020-11-19 00:23:34 +00:00