From d82743995097f16467d3ec5a88aada5dc158b45f Mon Sep 17 00:00:00 2001 From: Phil Americus <36591787+Philamericus@users.noreply.github.com> Date: Wed, 28 Nov 2018 15:14:00 +0200 Subject: [PATCH 1/2] Text fixes --- python/mpc_crypto.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/mpc_crypto.py b/python/mpc_crypto.py index ec4da54..6add7a3 100644 --- a/python/mpc_crypto.py +++ b/python/mpc_crypto.py @@ -1,6 +1,6 @@ """ -ctypes wrappers for the Unbound Tech mpc_crypto library functions. -In addition, more convenient object oriented interface is provided. +ctypes wrapper for the Unbound Tech blockchain-crypto-mpc library functions. +It also provides a more convenient object oriented interface. """ from ctypes import * From 196819cce81c3616286ce96b8b6ff81399711218 Mon Sep 17 00:00:00 2001 From: Phil Americus <36591787+Philamericus@users.noreply.github.com> Date: Wed, 28 Nov 2018 15:17:46 +0200 Subject: [PATCH 2/2] Text fixes --- python/mpc_demo.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/python/mpc_demo.py b/python/mpc_demo.py index 5076e42..123071c 100644 --- a/python/mpc_demo.py +++ b/python/mpc_demo.py @@ -1,19 +1,20 @@ """ -The script demonstrates Unbound Tech mpc_crypto library usage. -Two instances, client and server, cooperate to execute Crypto primitives via MPC. +The script demonstrates the Unbound Tech blockchain-crypto-mpc library. +This example has two instances, a client and a server, which cooperate to execute crypto primitives via MPC. -Simple protocol is executed, where server and client are assumed to perform the same operation. -Messages are sent as is, preceded by lenght. +A simple protocol is executed where the server and client are assumed to perform the same operation. +Messages are sent as is, preceded by length. Usage: - Server instance should receive '--server' flag. - Client instance should receive hostname ('--host') of the server. + Server instance should have the '--server' flag. + Client instance should have the hostname ('--host') of the server. Run with '--help' flag to see all parameter details. -Example1: generate split EDDSA key +Example 1: Generate a split EDDSA key user1@host1> python mpc_demo.py --type EDDSA --command generate --out_file key_share.bin --server user2@host2> python mpc_demo.py --type EDDSA --command generate --out_file key_share.bin --host host1 -Example2: sign with the split EDDSA key + +Example 2: Sign with the split EDDSA key user1@host1> python mpc_demo.py --type EDDSA --command sign --in_file key_share.bin --server user2@host2> python mpc_demo.py --type EDDSA --command sign --in_file key_share.bin --host host1 """