Skip to content

Conversation

@vreff
Copy link
Contributor

@vreff vreff commented Sep 1, 2025

This PR adds a DKGRecipient P256 key to the keystore.

Related:
#19162
#19160
smartcontractkit/chainlink-common#1508

@vreff vreff force-pushed the PRIV-150-DKG-database branch from bd37cf2 to c0e9ebc Compare September 1, 2025 11:05
@vreff vreff changed the title Add DKGRecipient P256 key [DNM] Add DKGRecipient P256 key Sep 1, 2025
@vreff vreff changed the title [DNM] Add DKGRecipient P256 key Add DKGRecipient P256 key Sep 4, 2025
@vreff vreff marked this pull request as ready for review September 4, 2025 11:12
}

// EnsureKey verifies whether the DKGRecipient key has been seeded, if not, it creates it.
func (ks *dkgRecipient) EnsureKey(ctx context.Context) error {
Copy link
Contributor

Choose a reason for hiding this comment

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

@vreff Not sure if you were planning on doing this in a later PR, but we should call this in application.go (wherever we call the code for the workflowkey); all nodes should automatically get a key of this type

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, have it as a planned change here: #19160

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am adding a configuration field DKGRecipientEnabled that gates the creation of the key, though. Is this falling out of fashion, and we would rather just create the key for all nodes no matter what these days? Happy to do either.

Copy link
Contributor

Choose a reason for hiding this comment

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

I would think we do need to gate the creation.
Not all nodes will be vault DON nodes right @cedric-cordenier ?

Base automatically changed from PRIV-150-DKG-database to develop September 4, 2025 20:22
@prashantkumar1982 prashantkumar1982 dismissed stale reviews from cedric-cordenier and themself September 4, 2025 20:22

The base branch was changed.

@cl-sonarqube-production
Copy link

@cedric-cordenier cedric-cordenier added this pull request to the merge queue Sep 5, 2025
Merged via the queue into develop with commit 58aa943 Sep 5, 2025
196 of 202 checks passed
@cedric-cordenier cedric-cordenier deleted the PRIV-149-p256-key branch September 5, 2025 16:35
cedric-cordenier pushed a commit that referenced this pull request Oct 16, 2025
* Add dkgresult database

* add p256 key to keystore

* tests

* Add dkgresult database

* make gomodtidy

* make generate

* fix lint / possible overflow error

* fix lint

* update test package

* Update to use new keyring

* make gomodtidy

* make gomodtidy

* make generate

* remove ensurekey

* add more tests

* fix lint

* changeset

* gomodtidy
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