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

Validate decryption keys #50

Closed
jannikluhn opened this issue Sep 22, 2021 · 2 comments · Fixed by #64
Closed

Validate decryption keys #50

jannikluhn opened this issue Sep 22, 2021 · 2 comments · Fixed by #64
Assignees

Comments

@jannikluhn
Copy link
Contributor

when the decryptor receives a key, they should check that it's valid. They can do so by comparing it against the eon public key and the epoch id. The eon public key is hardcoded as a constant somewhere -- this is a temporary solution. In the future, we might read it from Shuttermint or from a different blockchain

@jannikluhn jannikluhn self-assigned this Sep 27, 2021
@jannikluhn
Copy link
Contributor Author

Since #57 there's a check that the key decodes and a function was added to check that the key is correct. We cannnot call it yet though as we don't know or store the eon key yet.

@jannikluhn jannikluhn removed their assignment Sep 28, 2021
@jannikluhn
Copy link
Contributor Author

In #51 we decided we'll go for a key broadcast contract. Since we don't have one yet, for now we'll just assume the key exists in the db.

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 a pull request may close this issue.

1 participant