Compare commits
3 Commits
v0.1.0-dev
...
v0.1.0-dev
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | 253be43db6 | |
Derrick Hammer | 82f4d702eb | |
Derrick Hammer | 948d4d6109 |
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lumeweb/libethsync",
|
||||
"version": "0.1.0-develop.12",
|
||||
"version": "0.1.0-develop.13",
|
||||
"type": "module",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue