0

If smart contract code is visible to everyone, can't I just copy the entire contract code and make my own contract and deploy it on Blockchain.
So this way many duplicates will be present and one can easily copy the business idea of others.
How to prevent this?

marked as duplicate by Ismael, Achala Dissanayake, flygoing, mirg, Rob Hitchens - B9lab May 6 '18 at 0:39

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1

Smart contract codes are not directly visible to everyone. If you choose to, you can publish the source code and link it to the scanners for everyone to see.

The bytecode can also be reverse-engineered to get some sort of source code but it's typically not very readable. As with all reverse-engineered codes. This you can't prevent.

Furthermore, Ethereum (or its community) encourages developers to be open. The reason is trust through transparency: if the source code is known everyone can check it to make sure they know exactly what the contract does. People feel safer giving away their hard-earned Eth to contracts which they know to be honest.

Not the answer you're looking for? Browse other questions tagged or ask your own question.