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

Adding client C interface for recovery #27

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

gbenattar
Copy link
Contributor

Adding client C interface for recovery

@gbenattar gbenattar requested a review from omershlo May 29, 2019 06:02
@gbenattar gbenattar self-assigned this May 29, 2019
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
Copy link
Contributor

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

Copy link
Contributor

@omershlo omershlo left a 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.

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 this pull request may close these issues.

2 participants