Mercurial > pysmcl
changeset 229:4a5daaf345ab
functions: added dummy functions for get and output
(still needs impl)
author | Sigurd Meldgaard <stm@daimi.au.dk> |
---|---|
date | Mon, 04 Jan 2010 11:44:12 +0100 |
parents | 100d45949680 |
children | 0d4a1589f475 |
files | pysmcl/functions.py |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pysmcl/functions.py Wed Dec 23 14:45:44 2009 +0100 +++ b/pysmcl/functions.py Mon Jan 04 11:44:12 2010 +0100 @@ -31,3 +31,10 @@ # TODO: what is the right thing here? return runtime.prss_share_random() +def result(x): + """Just the id function, marks results for the verifier""" + return x + +def output(runtime, x, player=None): + """Opens a result to all players""" + return x