Commit Graph

113 Commits

Author SHA1 Message Date
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
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