Skip to content

[CRE-4317] Implement genericless adapter for ocr3types.OnchainKeyring2#2137

Open
pavel-raykov wants to merge 5 commits into
mainfrom
add-ocr3
Open

[CRE-4317] Implement genericless adapter for ocr3types.OnchainKeyring2#2137
pavel-raykov wants to merge 5 commits into
mainfrom
add-ocr3

Conversation

@pavel-raykov

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

✅ API Diff Results - github.com/smartcontractkit/chainlink-common/keystore

✅ Compatible Changes (1)

package github (1)
  • com/smartcontractkit/chainlink-common/keystore/ocr3util — ➕ Added

📄 View full apidiff report

@pavel-raykov pavel-raykov marked this pull request as ready for review June 9, 2026 10:04
@pavel-raykov pavel-raykov requested review from a team as code owners June 9, 2026 10:04
Copilot AI review requested due to automatic review settings June 9, 2026 10:04
@pavel-raykov pavel-raykov requested review from jmank88 and removed request for obelisk June 9, 2026 10:04
@pavel-raykov pavel-raykov requested review from kaleofduty and removed request for cedric-cordenier June 9, 2026 10:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a small helper in the keystore module to bridge between a non-generic (“genericless”) OCR3 onchain keyring interface and libocr’s generic ocr3types.OnchainKeyring2[RI], along with a libocr dependency bump to a version that includes the required OCR3 types.

Changes:

  • Added OnchainKeyring2Genericless and OnchainKeyring2ToGenericAdapter[RI] to adapt implementations that don’t care about the RI generic parameter.
  • Updated github.com/smartcontractkit/libocr dependency version (and corresponding go.sum entries).

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 3 comments.

File Description
keystore/ocr3/utils.go Introduces the genericless keyring interface and adapter to ocr3types.OnchainKeyring2[RI].
keystore/go.mod Bumps github.com/smartcontractkit/libocr to a newer pseudo-version needed for OCR3 keyring types.
keystore/go.sum Updates checksums to match the new libocr version.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread keystore/ocr3/utils.go Outdated
Comment thread keystore/ocr3/utils.go Outdated
Comment thread keystore/ocr3/utils.go Outdated
Comment thread keystore/ocr3/utils.go Outdated
@pavel-raykov pavel-raykov requested a review from jmank88 June 9, 2026 13:39
Comment thread keystore/ocr3/utils.go Outdated
Comment thread keystore/ocr3/utils.go Outdated
pavel-raykov and others added 2 commits June 9, 2026 16:04
Co-authored-by: Jordan Krage <jmank88@gmail.com>
Co-authored-by: Jordan Krage <jmank88@gmail.com>
@pavel-raykov pavel-raykov requested a review from jmank88 June 9, 2026 14:05
Comment thread keystore/ocr3util/utils.go
@pavel-raykov pavel-raykov requested a review from jmank88 June 9, 2026 15:23
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.

3 participants