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

tendermint: revisit pub_key module #443

Open
liamsi opened this issue Jul 13, 2020 · 0 comments
Open

tendermint: revisit pub_key module #443

liamsi opened this issue Jul 13, 2020 · 0 comments
Labels
crypto structure High level repo-wide structural concerns

Comments

@liamsi
Copy link
Member

liamsi commented Jul 13, 2020

It would be better if the (now) optional parts of tendermint/src/public_key.rs were broken out into separate files
(see https://github.com/informalsystems/tendermint-rs/pull/441/files#r453714311). Also it's worth having a closer look into the existing unreachable statements: https://github.com/informalsystems/tendermint-rs/pull/441/files#r453764087
also #441 (review)

pub fn node_id(&self) -> node::Id {
#[allow(unreachable_patterns)]
match &self.public_key() {
PublicKey::Ed25519(key) => node::Id::from(*key),
_ => unreachable!(),

@ebuchman ebuchman added the structure High level repo-wide structural concerns label Jul 13, 2020
@xla xla changed the title Revisit pub_key module tendermint: revisit pub_key module Jul 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crypto structure High level repo-wide structural concerns
Projects
None yet
Development

No branches or pull requests

2 participants