Skip to content

Commit

Permalink
Enable TLS for our remaining tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
tshead2 committed Mar 12, 2022
1 parent 524ab42 commit 02baf45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions features/steps/shamir_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def operation(communicator):

context.shares = []
for i in range(count):
context.shares.append(cicada.communicator.SocketCommunicator.run(world_size=context.players, fn=operation))
context.shares.append(cicada.communicator.SocketCommunicator.run(world_size=context.players, fn=operation, identities=context.identities, trusted=context.trusted))
context.shares = numpy.array(context.shares)


Expand All @@ -52,7 +52,7 @@ def operation(communicator, count):
shares = [protocol.share(src=0, k=context.k, secret=numpy.array(5))._storage for i in range(count)]
return shares

context.shares = numpy.column_stack(cicada.communicator.SocketCommunicator.run(world_size=context.players, fn=operation, args=(count,)))
context.shares = numpy.column_stack(cicada.communicator.SocketCommunicator.run(world_size=context.players, fn=operation, args=(count,), identities=context.identities, trusted=context.trusted))


@when(u'player {player} shamir shares {secret} with {recipients} and {senders} reveal their shares to {destinations}')
Expand All @@ -68,6 +68,6 @@ def operation(communicator):
share = protocol.share(src=player, k=context.k, secret=secret)
return protocol.reveal(src=senders, share=share, dst=destinations)

context.results = cicada.communicator.SocketCommunicator.run(world_size=context.players, fn=operation)
context.results = cicada.communicator.SocketCommunicator.run(world_size=context.players, fn=operation, identities=context.identities, trusted=context.trusted)


0 comments on commit 02baf45

Please sign in to comment.