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) # [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", "name": "@lumeweb/libethclient",
"version": "0.1.0-develop.12", "version": "0.1.0-develop.13",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lumeweb/libethclient", "name": "@lumeweb/libethclient",
"version": "0.1.0-develop.12", "version": "0.1.0-develop.13",
"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.12", "version": "0.1.0-develop.13",
"type": "module", "type": "module",
"repository": { "repository": {
"type": "git", "type": "git",

View File

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