hashcloak / katzenmint-pki

A BFT PKI for the Katzenpost Authority PKI System using Tendermint
Apache License 2.0
2 stars 1 forks source link

Issues on the current implementation #25

Closed greatect closed 2 years ago

greatect commented 3 years ago
sc0Vu commented 3 years ago

@greatect

For the validating the latest descriptors in document, we didn't log the updated/created time for the descriptors, might need to add another map for this. And what's your concern about not including the latest descriptor?

For the utility, I think we need to add another function to create descriptors too. I already write the steps to create the documents and descriptors in tests.

For the query, it look good to me. The hardest part might be fetching merkle proof from tendermint because we didn't store another proof.

I totally agree with adding more unit test and formalize the usage of eddsa/ed25519.

greatect commented 3 years ago

@sc0Vu

If we do not make such checks on the document, it could include a complete different set of nodes than the ones that were published on the app. So the document has to refer back to previous transactions (or the affected state) where descriptors were published.

I also mentioned the query keys because we could clarify there what type of commands we are handling then (through prefix). We could also do these taggings in our keys when updating the database. Another reason to do this is that both the mix descriptors and authorities have storing keys being their public keys (although for now they are processed with different encoding styles, but maybe we should use base64 in both), but we should allow nodes to act as both at the same time.

sc0Vu commented 3 years ago

With higher priority

greatect commented 2 years ago

These issues have been dealt with