o1-labs / rfcs

RFCs for everything O(1) Labs
4 stars 4 forks source link

Sandboxed cross-contract calls #48

Open nicc opened 4 months ago

nicc commented 4 months ago

Wallet providers have expressed concern about running dependent contract code directly in the same environment, and have asked if it's possible to run each contract call in a sandbox.

The obvious way to achieve this is to serialise the cross-contract returns. This conflicts with a planned protocol feature which would introduce bi-directional communication between these contracts. @nholland94 has some thoughts on alternative ways to achieve this.

SDK team will draft the RFC and consult with Nathan before starting.

mitschabaude commented 4 months ago

Maybe the RFC could also address the following: