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
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
32266dae20
Use isZeroUint8Array to check for empty bytes
2020-11-29 23:56:31 +00:00
dapplion
5db911d470
Use validateBytes instead of generic assert
2020-11-29 14:06:09 +00:00
dapplion
8055f73afb
Use browser friendly hexToBytes, bytesToHex methods
2020-11-28 19:52:32 +00:00
dapplion
b507ed28c0
Use randombytes instead of node's crypto
2020-11-28 19:27:59 +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
847ec46ac9
Remove crypto from common helpers
2020-11-25 15:06:05 +00:00
dapplion
c59cf98695
Merge 'dev' into 'blst'
2020-11-25 11:10:06 +00: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
dapplion
1e9f778846
Use isEqualBytes helper
2020-11-20 09:37:44 +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
825726b5cc
Update bls
2020-01-21 10:46:21 -06:00
Marin Petrunić
50f5ac45c8
bugfixes
2019-12-11 10:58:24 +01:00
Marin Petrunić
2d0725a5cc
rewritten bls to use wasm
2019-11-27 21:58:41 +01:00
Marin Petrunić
4b488a097b
fix tests
2019-09-17 22:03:24 +02:00
Marin Petrunić
fe31dbc974
fix bls lint
2019-09-17 21:05:13 +02:00
Marin Petrunić
b8c262791a
fix ts errors
2019-09-17 21:02:32 +02:00
Marin Petrunić
6143104204
Merge remote-tracking branch 'origin/master' into cayman/style-guide
...
# Conflicts:
# .eslintrc
# package.json
# packages/bls/src/@types/keccak256/index.d.ts
# packages/bls/src/helpers/g1point.ts
# packages/bls/src/helpers/g2point.ts
# packages/bls/src/index.ts
# packages/bls/src/privateKey.ts
# packages/bls/test/spec/spec-tests
# packages/eth2.0-types/src/validator.ts
# packages/eth2.0-types/src/wire.ts
# packages/lodestar/package.json
# packages/lodestar/src/api/rpc/api/beacon/beacon.ts
# packages/lodestar/src/api/rpc/api/beacon/interface.ts
# packages/lodestar/src/api/rpc/api/validator/interface.ts
# packages/lodestar/src/api/rpc/transport/http.ts
# packages/lodestar/src/api/rpc/transport/ws.ts
# packages/lodestar/src/chain/chain.ts
# packages/lodestar/src/chain/factory/attestation/index.ts
# packages/lodestar/src/chain/factory/block/eth1Data.ts
# packages/lodestar/src/chain/factory/duties/index.ts
# packages/lodestar/src/chain/forkChoice/interface.ts
# packages/lodestar/src/chain/forkChoice/statefulDag/lmdGhost.ts
# packages/lodestar/src/chain/stateTransition/block/randao.ts
# packages/lodestar/src/chain/stateTransition/util/attestation.ts
# packages/lodestar/src/chain/stateTransition/util/domain.ts
# packages/lodestar/src/cli/commands/beacon.ts
# packages/lodestar/src/cli/commands/create-config.ts
# packages/lodestar/src/cli/commands/deposit.ts
# packages/lodestar/src/cli/commands/eth1-private-network.ts
# packages/lodestar/src/cli/commands/validator.ts
# packages/lodestar/src/cli/commands/wallet.ts
# packages/lodestar/src/db/api/beacon/interface.ts
# packages/lodestar/src/db/api/validator/interface.ts
# packages/lodestar/src/db/api/validator/validator.ts
# packages/lodestar/src/db/controller/impl/level.ts
# packages/lodestar/src/eth1/dev/network.ts
# packages/lodestar/src/eth1/impl/ethers.ts
# packages/lodestar/src/logger/abstract.ts
# packages/lodestar/src/logger/winston.ts
# packages/lodestar/src/network/codec.ts
# packages/lodestar/src/network/gossip.ts
# packages/lodestar/src/network/interface.ts
# packages/lodestar/src/network/libp2p/peer.ts
# packages/lodestar/src/network/libp2p/rpc.ts
# packages/lodestar/src/network/libp2p/syncRpc.ts
# packages/lodestar/src/network/libp2p/util.ts
# packages/lodestar/src/node/nodejs.ts
# packages/lodestar/src/rpc/api/interface.ts
# packages/lodestar/src/rpc/api/validator/validator.ts
# packages/lodestar/src/rpc/options.ts
# packages/lodestar/src/rpc/protocol/jsonRpc.ts
# packages/lodestar/src/sync/index.ts
# packages/lodestar/src/sync/initial.ts
# packages/lodestar/src/sync/regular.ts
# packages/lodestar/src/sync/rpc/interface.ts
# packages/lodestar/src/util/bytes.ts
# packages/lodestar/src/util/io.ts
# packages/lodestar/src/util/merkleTree/merkleTree.ts
# packages/lodestar/src/validator/options.ts
# packages/lodestar/src/validator/rpc/abstract.ts
# packages/lodestar/src/validator/services/attestation.ts
# packages/lodestar/src/validator/services/block.ts
# packages/lodestar/src/validator/validator.ts
# packages/lodestar/test/e2e/sync/reqResp.test.ts
# packages/lodestar/test/unit/sync/index.test.ts
# packages/lodestar/test/unit/sync/rpc.test.ts
# packages/ssz/src/hashTreeRoot.ts
# packages/ssz/test/unit/hashTreeRoot.test.ts
# yarn.lock
2019-09-17 12:52:06 +02:00
Austin Abell
359cc185e4
Merge branch 'master' into austin/typesusage
2019-09-03 18:46:29 -04:00
Marin Petrunić
71fdceb247
Merge remote-tracking branch 'origin/master' into mpetrunic/rest-api
...
# Conflicts:
# packages/lodestar/package.json
# packages/lodestar/src/cli/commands/beacon.ts
# packages/lodestar/src/node/nodejs.ts
2019-09-03 23:44:28 +02:00
Cayman
89e68ff31d
Merge pull request #406 from ChainSafe/mpetrunic/bls-benchmark
...
Bls benchmarking and optimisation
2019-09-03 14:14:20 -05:00
austinabell
6f17cc349e
replace byte32 type on hashes to Hash
2019-09-03 14:17:55 -04:00
Marin Petrunić
528a5ca611
addess PR issues
2019-08-29 14:14:46 +02:00
Marin Petrunić
57428df8ec
fix bls lint errors
2019-08-28 17:18:51 +02:00
Marin Petrunić
84bf46cb58
add faster signature verification
2019-08-28 15:57:26 +02:00
Marin Petrunić
76be9d2507
Merge remote-tracking branch 'origin/master' into mpetrunic/new-spec-test-format
...
# Conflicts:
# packages/bls/src/helpers/g2point.ts
2019-08-17 16:02:39 +02:00
Marin Petrunić
80d07d780f
fix lint
2019-08-16 13:49:51 +02:00
Marin Petrunić
2b38c87501
add proper bls exports
2019-08-16 11:55:13 +02:00
Marin Petrunić
4fa5b9cddd
fix codeclimate issues
2019-08-16 11:18:29 +02:00
Marin Petrunić
f92b1593d7
Merge remote-tracking branch 'origin/master' into mpetrunic/rest-api
...
# Conflicts:
# packages/bls/src/helpers/g2point.ts
# packages/lodestar/package.json
# packages/lodestar/src/validator/options.ts
# packages/lodestar/test/e2e/chain/factory/block/assebleBlock.test.ts
# yarn.lock
2019-08-16 10:57:34 +02:00
Marin Petrunić
7c7cfc332a
api configuration
2019-08-16 10:54:16 +02:00
Marin Petrunić
0c0bfd5324
add proper bls exports
2019-08-12 09:51:18 +02:00
Cayman
b651b83acc
Move to packages/bls
2019-08-05 10:48:26 -05:00