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)
|
# [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",
|
"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",
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue