Compare commits
3 Commits
v0.1.0-dev
...
v0.1.0-dev
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | ff83ba0994 | |
Derrick Hammer | 43ffe2b41c | |
Derrick Hammer | 80fdc45ccd |
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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",
|
||||||
|
|
10
src/util.ts
10
src/util.ts
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue