How do coprocessors achieve consensus?

Hello,

An event is emitted on L1 to trigger a computation. Then, multiple coprocessors independently perform the same FHE computation. Since FHE is deterministic, all honest nodes produce the same ciphertext. If a quorum of coprocessors agrees on the result, the ciphertext is accepted.

However, after checking the latest code, I haven’t found the relevant part for this mechanism.
Does anyone know where the logic for this part is implemented, or can provide a link for me to look into it?

1 Like

Hello, yes, multiple copro compute the same thing since it’s completely deterministic. Then, there is a consensus. It’s documented in eg Gateway | Protocol or in Coprocessor | Protocol.

Typical lines where it happens are

Cheers

1 Like

That’s exactly what I needed. Thank you!​