Skip to main content
Let’s say we have the following encrypted instruction that adds 2 encrypted u8s and returns the result encrypted:
We want to input the values x = 42 and y = 101 into this instruction. To do this, we first have to build the parameters for the encrypted instruction correctly:
Now that we have the inputs, we need to encrypt them. This is done using the RescueCipher class with some info about the MPC cluster we want to use:
To decrypt the data, again it follows a similar pattern:
Working with packed data? If your Arcis structs use Pack<T>, you’ll use generated packers on the client. See Efficient data packing.

What’s next?

Handle callbacks

Learn how to await and process computation results.

Full API Reference

Complete TypeScript SDK documentation.