Soda Labs
Soda Labs Docs

GC Handler

GC Handler emits requested MPC operations as chain events, which the connector picks up and forwards to the MPC engine.

GC Handler is a Solidity contract primarily designed to emit the requested operation as chain events. These events are systematized to include the requested operation data.

The emitted events play a crucial role as they are captured by the connector mechanism integrated within the Bubble system. This mechanism acts as a bridge, ensuring that the data will eventually reach the MPC (Multi-Party Computation) engine. The MPC engine is responsible for executing operations that require confidential computation in a distributed manner.

The contract carries out input variables verifications to ensure the validity of the inputs it receives. Upon confirming that the inputs are valid, GC Handler proceeds to emit the events.

When invoking a particular function that is designed to produce a garbledtext™ as its outcome, a specific process ensues to calculate what is known as a "handle." This procedure involves applying the Keccak function - a type of cryptographic hash function - on the operation's provided parameters. The output derived from this operation serves as the handle, and it effectively constitutes the garbledtext™. The Keccak function is widely recognized for its role in secure data transformation, ensuring that the garbledtext™ is both unique and reliably generated in response to the given input parameters.

Note: The Keccak function is deterministic, meaning that repeated function calls with the same inputs will consistently produce the same outputs.