encryptogroup / SEEC

SEEC: Memory-Safety Meets Efficiency in Secure Two-Party Computation
MIT License
6 stars 0 forks source link

Better BaseLayerIterator #15

Open robinhundt opened 7 months ago

robinhundt commented 7 months ago

Currently, we have a BaseLayerIterator type which calculates partitions of a base circuit for each distinct use of a base (sub) circuit. However, I think we can do better by this by employing the visitor pattern. The benefit of this would be that we don't need to construct an intermediate collection which holds all the information for the current layer.

An open question is how to handle the interactive gates, as we need to iterate twice over these, once to construct the msg and once after exchanging the message.