Private libraries in SUAVE

Hey everyone,

I wanted to take a moment to showcase an interesting pattern around private contracts that you can use with Suave.

Here’s the deal: you can send the private code of a contract as the confidential part of a compute request. Then, using the ‘create’ opcode, this code gets deployed at runtime. The catch? These libraries are ephemeral, they exist solely within the confines of the confidential request and are never leaked on-chain.

You can find the full example here alongside other examples and useful patterns for building Suapps.

Stay tuned for more updates as we continue to push the boundaries of confidential computing within Suapps!

Cheers.

5 Likes