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

Change the initialisation and registration functions #301

Closed
iquerejeta opened this issue Jun 28, 2022 · 0 comments · Fixed by #433
Closed

Change the initialisation and registration functions #301

iquerejeta opened this issue Jun 28, 2022 · 0 comments · Fixed by #433
Assignees
Labels
D-medium Difficulty: medium P-medium Priority: medium T-refactor Type: cleanup/refactor

Comments

@iquerejeta
Copy link
Contributor

iquerejeta commented Jun 28, 2022

The initialisation should take as input the stake distribution (with the cardano keys), and the registration takes as input the Mithril key and a signature of the mithril key with the cardano key. Before registering a party, the signature (with the cardano key) is checked.

Currently, we have that KeyReg::init() does not take anything as input. With the changes above we want the stake distribution and Cardano keys (ed25519) of all eligible parties initialised. Then, we using the key_reg.register(), instead of register(&mut self, stake: Stake, pk: VerificationKeyPoP) we want as input the Cardano Key, the VerificationKeyPoP key, and a signature of VerificationKeyPoP with the ed25519 key.

@iquerejeta iquerejeta added D-medium Difficulty: medium P-medium Priority: medium T-refactor Type: cleanup/refactor labels Jun 28, 2022
@iquerejeta iquerejeta self-assigned this Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
D-medium Difficulty: medium P-medium Priority: medium T-refactor Type: cleanup/refactor
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant