Skip to content

Update teku to 26.2.0#1156

Open
macfarla wants to merge 4 commits intoConsensys:masterfrom
macfarla:uprev-teku
Open

Update teku to 26.2.0#1156
macfarla wants to merge 4 commits intoConsensys:masterfrom
macfarla:uprev-teku

Conversation

@macfarla
Copy link
Copy Markdown
Contributor

@macfarla macfarla commented Mar 4, 2026

PR Description

Fixed Issue(s)

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

Testing

  • I thought about testing these changes in a realistic/non-local environment.

Note

Medium Risk
Medium risk because it bumps core Teku dependencies and updates Eth2 schema conversions (KZG proof encoding and Electra withdrawal index typing), which can affect signing/request compatibility at runtime.

Overview
Updates Teku internal libraries to 26.2.0 and records the upgrade in the changelog.

Adjusts Eth2 schema adapters to match Teku API/type changes: KZGProof now uses compressed-byte encoding (getBytesCompressed / fromBytesCompressed via Bytes48), and PendingPartialWithdrawal converts validator_index from Teku’s unsigned type to an int.

Written by Cursor Bugbot for commit 917a9ce. This will update automatically on new commits. Configure here.

macfarla added 2 commits March 4, 2026 10:08
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Mar 4, 2026

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

dependency 'org.xipki.iaik:sunpkcs11-wrapper:1.4.10'

dependencySet(group: 'tech.pegasys.teku.internal', version: '25.11.0') {
dependencySet(group: 'tech.pegasys.teku.internal', version: '26.2.0') {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

KZGCommitment not updated alongside KZGProof API migration

High Severity

The Teku version bump to 26.2.0 required updating KZGProof to use getBytesCompressed()/fromBytesCompressed() instead of toSSZBytes()/fromSSZBytes(), but the sibling class KZGCommitment (same tech.pegasys.teku.kzg package) still calls kzgCommitment.toSSZBytes() on line 38 and KZGCommitment.fromSSZBytes(bytes) on line 85. If the same API rename was applied to KZGCommitment in Teku 26.2.0, this is a build-breaking oversight.

Additional Locations (1)

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant