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

storage overhead in the offline-online model #11

Open
weikengchen opened this issue Oct 15, 2020 · 5 comments
Open

storage overhead in the offline-online model #11

weikengchen opened this issue Oct 15, 2020 · 5 comments

Comments

@weikengchen
Copy link
Contributor

Not really an issue, but likely a direction. The offline-online model allows us to reduce online latency, but it also means that the servers must store the offline preprocessed result (e.g., the many garbled circuits in AG-MPC).

This result is still a little bit big. For 10 parties, the first server stores ~400MB per SHA-256 circuit, mostly the garbled circuits. Other servers only need to store little data, such as the MAC keys for the input/output wires.

So it seems that applications might desire a way to "compress" the offline preprocessed result somehow, such as an alternative offline phase that has fewer copies of circuits, since it seems unavoidable but also kind of unideal for the first party to keep $N-1$ circuits.

@wangxiao1254
Copy link
Member

In general, I think we can just send garbled circuits online, which means no need to store the garbled circuit. This increases the online latency slightly, but I think should not be a big issue...

@weikengchen
Copy link
Contributor Author

While, in the case, it is just that all the parties now have to store 1/N of the first party's data? So, in total, it is still the same.

And there is another way to balance the storage among all the parties: let each party have a chance to be the first party.

@wangxiao1254
Copy link
Member

No, GC is pipelined, no one store any GC.

@weikengchen
Copy link
Contributor Author

Then, would storing the preprocessing result of AND gate triples, which would be consumed during the circuit generation, be large?

@weikengchen
Copy link
Contributor Author

Adding to this note.

One potential storage reduction of ~50% is to observe that all the MAC keys are generated by the OT, so they are somehow the results of a PRG.

One may envision that we could just keep the seed and not store the MAC keys.

This seems challenging but likely possible: all the "sacrifice" checks in AG-MPC is not cut-and-choose. As always, the first $\ell$ elements are kept, which implies a deterministic order.

Yet, more attention is needed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants