Compare commits

...

3 Commits

Author SHA1 Message Date
semantic-release-bot ff83ba0994 chore(release): 0.1.0-develop.12 [skip ci]
# [0.1.0-develop.12](https://git.lumeweb.com/LumeWeb/libethsync/compare/v0.1.0-develop.11...v0.1.0-develop.12) (2023-07-11)

### Bug Fixes

* fix usage of deserializeSyncCommittee ([80fdc45](80fdc45ccd))
2023-07-11 06:43:59 +00:00
Derrick Hammer 43ffe2b41c
Merge remote-tracking branch 'origin/develop' into develop 2023-07-11 02:43:00 -04:00
Derrick Hammer 80fdc45ccd
fix: fix usage of deserializeSyncCommittee 2023-07-11 02:42:54 -04:00
4 changed files with 19 additions and 4 deletions

View File

@ -1,3 +1,10 @@
# [0.1.0-develop.12](https://git.lumeweb.com/LumeWeb/libethsync/compare/v0.1.0-develop.11...v0.1.0-develop.12) (2023-07-11)
### Bug Fixes
* fix usage of deserializeSyncCommittee ([80fdc45](https://git.lumeweb.com/LumeWeb/libethsync/commit/80fdc45ccd3993e96a57849bd3acae75cf46eb76))
# [0.1.0-develop.11](https://git.lumeweb.com/LumeWeb/libethsync/compare/v0.1.0-develop.10...v0.1.0-develop.11) (2023-07-11) # [0.1.0-develop.11](https://git.lumeweb.com/LumeWeb/libethsync/compare/v0.1.0-develop.10...v0.1.0-develop.11) (2023-07-11)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@lumeweb/libethclient", "name": "@lumeweb/libethclient",
"version": "0.1.0-develop.11", "version": "0.1.0-develop.12",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lumeweb/libethclient", "name": "@lumeweb/libethclient",
"version": "0.1.0-develop.11", "version": "0.1.0-develop.12",
"dependencies": { "dependencies": {
"@chainsafe/as-sha256": "^0.3.1", "@chainsafe/as-sha256": "^0.3.1",
"@chainsafe/bls": "7.1.1", "@chainsafe/bls": "7.1.1",

View File

@ -1,6 +1,6 @@
{ {
"name": "@lumeweb/libethsync", "name": "@lumeweb/libethsync",
"version": "0.1.0-develop.11", "version": "0.1.0-develop.12",
"type": "module", "type": "module",
"repository": { "repository": {
"type": "git", "type": "git",

View File

@ -9,6 +9,7 @@ import axiosRetry from "axios-retry";
import axios from "axios"; import axios from "axios";
import { digest } from "@chainsafe/as-sha256"; import { digest } from "@chainsafe/as-sha256";
import { concatBytes } from "@noble/hashes/utils"; import { concatBytes } from "@noble/hashes/utils";
import { deserializeSyncCommittee } from "@lodestar/light-client/utils";
export function getDefaultClientConfig() { export function getDefaultClientConfig() {
const chainConfig = createBeaconConfig( const chainConfig = createBeaconConfig(
@ -38,7 +39,14 @@ export async function optimisticUpdateVerify(
const headerBlockRoot = phase0.ssz.BeaconBlockHeader.hashTreeRoot( const headerBlockRoot = phase0.ssz.BeaconBlockHeader.hashTreeRoot(
header.beacon, header.beacon,
); );
const committeeFast = this.deserializeSyncCommittee(committee);
const committeeFast = deserializeSyncCommittee({
pubkeys: committee,
aggregatePubkey: bls.PublicKey.aggregate(
deserializePubkeys(committee),
).toBytes(),
});
try { try {
assertValidSignedHeader( assertValidSignedHeader(
this.config.chainConfig, this.config.chainConfig,