Compare commits

..

3 Commits

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

### Bug Fixes

* use call to getDefaultClientConfig to get chain config ([948d4d6](948d4d6109))
2023-07-11 07:08:16 +00:00
Derrick Hammer 82f4d702eb
Merge remote-tracking branch 'origin/develop' into develop 2023-07-11 03:07:22 -04:00
Derrick Hammer 948d4d6109
fix: use call to getDefaultClientConfig to get chain config 2023-07-11 03:07:18 -04:00
4 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,10 @@
# [0.1.0-develop.13](https://git.lumeweb.com/LumeWeb/libethsync/compare/v0.1.0-develop.12...v0.1.0-develop.13) (2023-07-11)
### Bug Fixes
* use call to getDefaultClientConfig to get chain config ([948d4d6](https://git.lumeweb.com/LumeWeb/libethsync/commit/948d4d610939e4f19210c187eec9e03d89060cd4))
# [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)

4
npm-shrinkwrap.json generated
View File

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

View File

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

View File

@ -30,6 +30,7 @@ export function getDefaultClientConfig() {
export function optimisticUpdateFromJSON(update: any): OptimisticUpdate {
return capella.ssz.LightClientOptimisticUpdate.fromJson(update);
}
export async function optimisticUpdateVerify(
committee: Uint8Array[],
update: OptimisticUpdate,
@ -49,7 +50,7 @@ export async function optimisticUpdateVerify(
try {
assertValidSignedHeader(
this.config.chainConfig,
getDefaultClientConfig().chainConfig,
committeeFast,
syncAggregate,
headerBlockRoot,
@ -75,6 +76,7 @@ export async function optimisticUpdateVerify(
return { correct: false, reason: (e as Error).message };
}
}
export function deserializePubkeys(pubkeys) {
return pubkeys.map((pk) => bls.PublicKey.fromBytes(pk));
}