Skip to content

PRIV-152: Run DKG in local CRE.#19301

Merged
prashantkumar1982 merged 17 commits intodevelopfrom
PRIV-153-dkg-vault
Sep 16, 2025
Merged

PRIV-152: Run DKG in local CRE.#19301
prashantkumar1982 merged 17 commits intodevelopfrom
PRIV-153-dkg-vault

Conversation

@vreff
Copy link
Contributor

@vreff vreff commented Sep 9, 2025

This PR:

  • Deploys an OCR3Capability contract and configures it using the DKG reporting plugin config.
  • Preloads P256 keys into the nodes as secrets and configures the contract using those same keys.
  • Adds the DKG OCR plugin as an extension of the Vault OCR plugin, and runs the DKG oracle plugin in local CRE.
  • Ensures DKG result package is present in the CRE Vault E2E test.

) (srvs []job.ServiceCtx, err error) {
spec := jb.OCR2OracleSpec

dkgRecipientKeys, err := d.dkgRecipientKs.GetAll()
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah nice, I forgot!

return DeployDKGOutput{}, fmt.Errorf("failed to merge datastore: %w", err)
}

if err := ds.AddressRefStore.Add(addressRef); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the AddressBook is supposed to be part of the legacy API 🤔 I'm not sure if new changesets need to support it though; let me start a thread with Keith and ask him

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cool thanks. All this code was completely new to me so I navigated it as best I could.

@vreff vreff changed the title [DNM] - initial DKG changes PRIV-152: Run DKG in local CRE. Sep 10, 2025
@vreff vreff marked this pull request as ready for review September 10, 2025 20:37
@vreff vreff requested review from a team as code owners September 10, 2025 20:37
break
}
}
if vaultFound {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we also ensure vault capability is only in 1 of the NodeSets?

Copy link
Contributor

Choose a reason for hiding this comment

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

Could you move this code to this place:
system-tests/lib/cre/capabilities/vault/vault.go

This way all of vault setup code is in the same place.

Also, can you check the existing vault code around keys there? Perhaps some of that is obsolete after your changes.

* Run Vault DON E2E tests using the DKG

* fix lint errors

* add backoff

* Fix race

* fix test

* changeset
@cl-sonarqube-production
Copy link

@prashantkumar1982 prashantkumar1982 added this pull request to the merge queue Sep 12, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 12, 2025
@prashantkumar1982 prashantkumar1982 added this pull request to the merge queue Sep 12, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 12, 2025
@prashantkumar1982 prashantkumar1982 added this pull request to the merge queue Sep 16, 2025
Merged via the queue into develop with commit 2fb90db Sep 16, 2025
161 checks passed
@prashantkumar1982 prashantkumar1982 deleted the PRIV-153-dkg-vault branch September 16, 2025 15:43
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