Preferences

> keep_self.select(&self.peer, &other.peer);

> Rather than if or match expressions, we use FheBool’s select method. It returns the first argument if the underlying FheBool value is true, or the second argument if the underlying value is false.

This wasn't super clear to me. I get the computation is performed on encrypted values, but how does ".select" actually work?

Is ".select" just evaluating to "keep_self*self.peer + keep_self*other.peer"?


This item has no comments currently.