Commit Graph

126 Commits

Author SHA1 Message Date
Derrick Hammer 1028fc1bb0
*Make bls export an async wrapper to prevent top-level await 2023-04-08 22:31:59 -04:00
Derrick Hammer d58fc82e08
*Make bls export an async wrapper to prevent top-level await 2023-04-08 22:20:32 -04:00
Cayman 7c2e883527
Tweaks and upgrade karma/webpack 2022-04-14 12:16:06 -05:00
Cayman 8e8447d2f9
Don't export types from switchable 2022-04-13 15:06:11 -05:00
Cayman 269c96832b
Simplify exports 2022-04-13 14:36:07 -05:00
Cayman 501f93e333
Add herumi fallback in default export 2022-04-13 13:48:25 -05:00
Cayman a8aa891768
Tweak default export 2022-04-13 13:33:59 -05:00
Cayman b02fbc57a0
Export all types in types.ts 2022-04-13 13:23:27 -05:00
Cayman 9a851a095a
Add default export 2022-04-13 13:14:12 -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 40fc4b33a2 herumi fromBytes explicit signature 2021-09-22 20:51:31 +05:30
g11tech 5731f49454 ignoring the validate flag on herumi signature impl 2021-09-22 15:19:58 +05:30
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 f7128ad53a Remove un-used import 2021-04-05 20:29:34 +02:00
dapplion bf2b457f48 Fix type issue with class type declaration 2021-04-05 20:27:17 +02:00
dapplion 1236f7a2cc Document default value of optional params 2021-04-05 19:47:25 +02:00
dapplion 69c3408964 Enable multi-threading for all implementations 2021-04-05 17:49:18 +02:00
dapplion 7ef455157a Allow window to not be prefixed 2020-12-04 09:31:35 +00:00
dapplion c8798707d9 Remove 2 tsconfig-ignore 2020-12-03 19:09:15 +00:00
dapplion 84488456de Patch herumi's multiVerify() on browsers 2020-12-03 00:24:30 +00:00
dapplion 7f76672a40 Use browser friendly concatUint8Arrays instead of Buffer.concat 2020-12-03 00:06:36 +00:00
dapplion d4d97795ca Remove comment 2020-12-03 00:05:14 +00:00
dapplion 8d5206c31f Test verifyMultipleSignatures against malicious input 2020-12-02 23:19:33 +00:00
dapplion a8f7256fcd Add verifyMultipleSignatures method 2020-12-02 23:19:12 +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 4f11731ed8 Remove foreign property breaking types 2020-11-30 23:49:39 +00:00
Cayman 021fc7111e
Add secretKeyToPublicKey declaration 2020-11-30 13:45:23 -06:00
Cayman e0076d0f27
Add secretKeyToPublicKey function 2020-11-30 13:40:18 -06:00
Cayman b5b2e6dfc7
Consistent naming 2020-11-30 12:03:49 -06:00
dapplion 2df6743c6c Make PublicKey type != Signature type 2020-11-30 16:28:52 +00:00
dapplion 9b7e5f5f95 Export class interfaces too 2020-11-30 11:43:47 +00:00
dapplion 0a3f6f5659 Use declare only 2020-11-30 11:32:36 +00:00
dapplion 999a5d5e22 Proxy named exports in root index 2020-11-30 11:29:24 +00:00
dapplion c557db4a78 Make errors consistent 2020-11-30 00:20:55 +00:00
dapplion 60d795c694 Fix blst tests 2020-11-30 00:01:48 +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 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