Update internal_API.txt

This commit is contained in:
Alex 2019-04-13 18:42:19 +03:00 committed by GitHub
parent bc2134b4e0
commit f26fa2d139
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@
bool new_game(int N);
# add stake to the current game
bool add_stake(int stake_number, PK, committed random part);
bool add_stake(int stake_number, PK);
# information about participants of the current game
PK[] participants() const;
@ -10,8 +10,11 @@ PK[] participants() const;
# stake of a participant (TODO: add special code for failure)
int get_stake(PK);
# get sequential game id
int game_id();
# reveal a part of a random
bool reveal(PK, reveal data);
bool reveal(PK, signed(game_id()));
# result of the current game of some participant
bool is_winner(PK);