Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HBS MPC Circuit #3

Closed
Mikerah opened this issue Oct 5, 2020 · 1 comment
Closed

HBS MPC Circuit #3

Mikerah opened this issue Oct 5, 2020 · 1 comment

Comments

@Mikerah
Copy link
Collaborator

Mikerah commented Oct 5, 2020

The following ideal functionality needs to be implemented in MP-SPDZ:
State:
* Secret shared: [PoolETH], [PoolTOK] total currency amounts
* Public value: (PoolETH / PoolTOK) current price
* Bids (processed in an epoch, say every hour):
Secret shared:
* [AmtETH](positive to buy, negative to sell)
* [MinPrice](slippage limit)
To process a batch of transactions:
* In secret shared fashion, process each bid and update [PoolETH] and [PoolTOK] accordingly, if the resulting price is within MinPrice.
* Each party receives output describing whether their bid was completed or not (or how much was completed).

There are also miscellaneous tasks regarding the handling of MP-SPDZ for which subsequent issues will be created.

@Mikerah
Copy link
Collaborator Author

Mikerah commented Nov 30, 2020

@lilione finished this.

@Mikerah Mikerah closed this as completed Nov 30, 2020
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

No branches or pull requests

1 participant