How Are Secret Contracts Different From Compiled Contracts

i have a contract, i run cargo wasm to compile a contract then I deploy it to chain.

let’s pretend reverse engineering is impossible. I get that Secret Contracts makes privacy for smart contracts easier, but from the privacy of the code point of view, could someone pls indulge me on how different it is from the ready available methods outlined above?

Also, to keep the input and outputs secret, I take it that the contract’s input and output can only be en/decrypted by the contract user’s PK. Is this correct?


The code isn’t private and supposed to be open for review. The contract’s state is encrypted and no one can read it, and yes, inputs and outputs are decryptable with the user’s PK.

1 Like