Skip to content

Commit

Permalink
Bump c-kzg to version that handles empty array of blobs -- remove app…
Browse files Browse the repository at this point in the history
…lication code special-case
  • Loading branch information
dgcoffman committed Nov 9, 2022
1 parent a63b043 commit 513b873
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/validator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@lodestar/types": "^1.1.1",
"@lodestar/utils": "^1.1.1",
"bigint-buffer": "^1.1.5",
"c-kzg": "^0.0.9",
"c-kzg": "^1.0.0",
"cross-fetch": "^3.1.4",
"strict-event-emitter-types": "^2.0.0"
},
Expand Down
4 changes: 1 addition & 3 deletions packages/validator/src/services/block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,7 @@ export class BlockProposingService {
blobsSidecar.beaconBlockRoot = blindedOrFullBlockHashTreeRoot(this.config, block);
blobsSidecar.beaconBlockSlot = block.slot;
blobsSidecar.blobs = blobs;
blobsSidecar.kzgAggregatedProof = blobs.length
? computeAggregateKzgProof(blobs)
: ssz.eip4844.KZGProof.defaultValue();
blobsSidecar.kzgAggregatedProof = computeAggregateKzgProof(blobs);

return blobsSidecar;
}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4798,10 +4798,10 @@ bytes@3.1.2:
resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5"
integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==

c-kzg@^0.0.9:
version "0.0.9"
resolved "https://registry.yarnpkg.com/c-kzg/-/c-kzg-0.0.9.tgz#c86bc6f155fc0552c4ab2ce04cad04b464aedacf"
integrity sha512-TAtjnlEN5hq4b6iEv7I4XZGQZ+gVWZBtfLIDvTMVf7jDjOiQjv3mJWrFNUeQxWq/GUsyew44oAukFDqbghjccg==
c-kzg@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/c-kzg/-/c-kzg-1.0.0.tgz#1ba32dbadd3dadf2bf461e25fa833663c3897db8"
integrity sha512-8Oisu9MXJ7X50idvdPMSwzgk9IN4uu6FMQJtQbaHxcYxoN/TAk2sLO72fGgUJDHg0CjV7rPRstbp8x6m+O3fvg==
dependencies:
node-addon-api "^5.0.0"

Expand Down

0 comments on commit 513b873

Please sign in to comment.