-
Notifications
You must be signed in to change notification settings - Fork 50
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
Adding client C interface for recovery #27
base: master
Are you sure you want to change the base?
Conversation
pub extern "C" fn decrypt_party_one_master_key( | ||
c_master_key_two_json: *const c_char, | ||
c_helgamal_segmented_json: *const c_char, | ||
c_private_key: *const c_char |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be specified that this is the escrow private key. otherwise confusing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it looks like the flow is (correct me if I missed):
- get escrow private key
- call decrypt party one master key
- go over the entire tree of children and collect x1,x2 from each one (using api calls get_child mk1, get_child mk2)
- for every pair x1,x2 extract the private key.
my questions: why not make one api call for gotham with inputs mk1, mk2 that get output a list of private keys?
even better: one api call with escrow private key and output a list of keys?
The current API structure is very permissive.
Adding client C interface for recovery