Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: ability to retrieve current validator's consensus address and public key #23723

Open
Pitasi opened this issue Feb 19, 2025 · 2 comments

Comments

@Pitasi
Copy link
Contributor

Pitasi commented Feb 19, 2025

Summary

Currently, there is no way from the "SDK land" to retrieve what the consensus address (or pub key) of the current CometBFT node is.

This becomes particularly relevant when paired with the Vote Extensions. When a node receives a Vote Extension. The ABCI methods only include the consensus address of the validator, without any way for app developers to recognize if it's themselves.

Problem Definition

No response

Proposed Feature

Since Cosmos SDK has access to the CometBFT Node instance, it can also retrieve its PrivValidator and finally, its PubKey object.

Exposing this PubKey object inside the BaseApp should be enough for Cosmos SDK devs.

It might be related to #21064.

@Pitasi
Copy link
Contributor Author

Pitasi commented Feb 19, 2025

A use case we have is that we store some informations in the app db, something like val_cons_addr -> payload. And later, I want to retrieve the current node's payload.

@faddat
Copy link
Contributor

faddat commented Feb 20, 2025

Good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants