Skip to content

protocol execution: fix party index#24

Closed
lenerd wants to merge 1 commit into
cryptobiu:1.1from
lenerd:lenerd/fix-party-idx
Closed

protocol execution: fix party index#24
lenerd wants to merge 1 commit into
cryptobiu:1.1from
lenerd:lenerd/fix-party-idx

Conversation

@lenerd
Copy link
Copy Markdown
Contributor

@lenerd lenerd commented Oct 8, 2018

Introduced in 79610b4, this bug
resulted in miscalculated party indices starting from -1:

run('. ./%s %s %s' % (executable_name[idx], party_id - 1, values_str))

Introduced in 79610b4, this bug
resulted in miscalculated party indices starting from -1.
@lenerd lenerd force-pushed the lenerd/fix-party-idx branch from 0627194 to 120b53d Compare October 9, 2018 12:53
@liorko87
Copy link
Copy Markdown
Contributor

liorko87 commented Oct 10, 2018

It's not mistake. Take a look at this scenario:
Let's assume that we have 3 parties that act as clients and one server that coordinate between them, total of 4 different machines.
The server needs to be on air when the parties tries to connect., so he will be the first party, i.e. party_id= 0. The clients id are running from 0 to 2.
because the server defined as party_id= 0 and the clients are also need to start from 0 the line is run('. ./%s %s %s' % (executable_name[idx], party_id - 1, values_str)) and not run('. ./%s %s %s' % (executable_name[idx], party_id , values_str))

I will add some description to the fabfile at the next commit

liorko87 added a commit that referenced this pull request Oct 10, 2018
@lenerd
Copy link
Copy Markdown
Contributor Author

lenerd commented Oct 10, 2018

Hi Lior,

the line I referenced above handled the case without a coordinating party.

However, you have fixed the off-by-one in ef6ef8a here:

Thanks!

@lenerd
Copy link
Copy Markdown
Contributor Author

lenerd commented Oct 10, 2018

With the changes from ef6ef8a, the parties.conf file is no longer uploaded to the servers if the (external) protocol is run without coordinating parties. See

and maybe

Edit: See #29.

@lenerd lenerd closed this Oct 10, 2018
@lenerd lenerd deleted the lenerd/fix-party-idx branch October 26, 2018 12:53
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