Visibility of Source Code and Business Information in Ethereum blockchain

PingpongSet 36 Reputation points
2020-09-02T10:40:44.373+00:00

Is it correct that everyone can see my source code once smart contract code has been published to blockchain?

Is it correct that everyone can see application's businesss state and information saved in blockchain?

For example, the example below sends a request to blockchain, receives response from blockchain. In this case, can anyone see the source code and business information? The app uses Ethereum blockchain via Solidity.

Updated:
https://video2.skills-academy.com/en-us/azure/blockchain/service/send-transaction

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
38,694 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Shrc-MSFT 226 Reputation points
    2020-09-02T12:15:16.507+00:00

    Hi,

    In any blockchain the business info/state is visible to the participants of the blockchain network or consortium. Any smart contract state changes in done via a transaction that is shared between the participants of the transaction. Hence the contents/operations exposed via that smart contract is also visible to the participants of that transaction, so that they can verify it's validity / have a consensus on whether to accept/reject it.

    To answer your question "everyone" may not be able to see the contents unless it is a public smart contract / transaction you are dealing with. in case of public transaction/contracts it is visible to that public chain. If it is a private transaction, then it is only visible to the participants of the private transaction.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.