Commit Graph

87 Commits

Author SHA1 Message Date
dapplion 2208922aa6 Clean methods not in the interface 2020-11-29 22:30:47 +00:00
Cayman d743d95487
Optional ikm param for bls.PrivateKey.fromKeygen 2020-11-29 15:25:18 -06:00
Cayman 203122ee10
Export types 2020-11-29 12:54:33 -06:00
Cayman c0723488d3
Merge pull request #39 from ChainSafe/dapplion/fix-default-export
Use Object.assign to fix default import
2020-11-29 10:21:01 -07:00
dapplion 61c1baea3f Use const in main bls export 2020-11-29 17:10:20 +00:00
dapplion e51c1784a7 Document lazy import 2020-11-29 16:59:24 +00:00
dapplion 2235e7be89 Import named export from blst 2020-11-29 16:59:16 +00:00
dapplion ef98683424 Use Object.assign to fix default import 2020-11-29 16:52:29 +00:00
dapplion 2245559e0e Prevent "BLS not initialized" error from causing a false negative 2020-11-29 14:28:30 +00:00
dapplion 5db911d470 Use validateBytes instead of generic assert 2020-11-29 14:06:09 +00:00
dapplion 70574b45c1 Fix herumi's bytes length checks 2020-11-29 13:57:08 +00:00
dapplion d9c83feb10 Remove unnecessary eslint-disable 2020-11-29 12:19:52 +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 9194769d62 Export constants consistently 2020-11-28 19:14:08 +00:00
dapplion bd17160713 Use 'message' arg name consistently 2020-11-28 19:11:21 +00:00
dapplion 406419cac7 Set default value for implementation 2020-11-25 17:58:03 +00:00
dapplion 4ca6532171 Use toBuffer to prevent allocation 2020-11-25 17:57:33 +00:00
dapplion e32ea6d7a5 Buffer is subclass of Uint8Array 2020-11-25 17:56:33 +00:00
dapplion ca5cac64b3 Fix lint warnings and errors 2020-11-25 16:23:53 +00:00
dapplion 49d509aca4 Clean interface 2020-11-25 16:09:47 +00:00
dapplion 021e741d17 Move bls-eth-wasm to the root dir 2020-11-25 15:35:53 +00:00
dapplion 847ec46ac9 Remove crypto from common helpers 2020-11-25 15:06:05 +00:00
dapplion 530e86d98f Export strategies 2020-11-25 15:03:15 +00:00
dapplion cd5b7cba47 Update bls-eth-wasm types 2020-11-25 14:00:18 +00:00
dapplion 6b1fdb0971 Fix lint issues 2020-11-25 11:50:47 +00:00
dapplion ec859a1c32 Fix backing dependencies 2020-11-25 11:39:49 +00:00
dapplion c59cf98695 Merge 'dev' into 'blst' 2020-11-25 11:10:06 +00:00
dapplion 84c95ba069 Remove Keypair class 2020-11-25 10:45:19 +00:00
dapplion 4da10180d9 Remove code duplication in the functional interface 2020-11-25 10:41:52 +00:00
Marin Petrunić b7b5082861
Merge remote-tracking branch 'origin/dev' into mpetrunic/assert 2020-11-24 21:04:07 +01:00
Marin Petrunić 51f0cb7c1b
fix lint 2020-11-24 20:59:33 +01:00
Marin Petrunić ea01f26967
remove assert dep 2020-11-23 12:34:19 +01:00
Marin Petrunić 426316ddc2
remove @chainsafe/eth2-bls-wasm dep 2020-11-23 12:06:20 +01:00
dapplion 990258dbd9 Fix type errors in benchmark runner
Lint issues
2020-11-20 19:37:20 +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 1e9f778846 Use isEqualBytes helper 2020-11-20 09:37:44 +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
Cayman 49d6d9f62c
Run prettier 2020-11-05 14:55:25 -06:00
dapplion 9f6b89fd12 Merge 'master' into prettier 2020-11-04 18:12:32 +00:00
Cayman c22069335f
Run prettier 2020-11-04 11:40:36 -06:00
dapplion df9166ed9c Cache a promise for Bls instead of Bls 2020-11-04 13:45:05 +00:00
Marin Petrunić 4a74e1ff44
allow passing decompressed keys 2020-08-29 16:18:33 +02:00
Marin Petrunić 20121c330b
update tests 2020-05-21 12:52:11 +02:00
Marin Petrunić dcf6551372
update bls methods and wasm usage 2020-02-24 16:32:14 -06:00