Linked Questions

2
votes
1answer
2k views

Is there a Solidity decompiler? [duplicate]

Is there a decompiler that will convert Solidity byte code back into source code? I am wondering how to verify code of contracts that are published to the blockchain.
2
votes
0answers
79 views

Is there a decompiler for the binary data in the blockchain [duplicate]

I want to know if there is a decompiler for the binary data in the blockchain, I want to know about the details of my contract after it was uploaded to the blockchain?
1
vote
0answers
31 views

Can someone get the source code if it's not “verified”? [duplicate]

my question is: When I deploy contracts on ropsten or other networks but do not verify the source code (make it public with it), can then someone still see my source code? I know, that function calls ...
11
votes
1answer
4k views

How to find solidity code for a contract address

I need to find out the public contract code i.e. solidity code for a contract address. For eample, here it has a tab for contract code but it's in assembly and byte code only, which is not useful. ...
5
votes
2answers
2k views

how to get code for already deployed contract in ethereum network

Let's say peer A is deployed a contract and exposes contract ABI. Peer B wants to join the same network.He have the ABI with him.But he wants to see the real contract code before joining the network....
5
votes
1answer
580 views

Open Source v. Proprietary Code

If I create a Distributed App, am I obligated to make that code open source? I fully appreciate open source is the preferred mode, just curious if I can keep my code proprietary. Does it matter if ...
3
votes
2answers
397 views

How to separate functions in evm bytecode?

I want to build the control-flow-graph (CFG) from the bytecode of a smart-contract (assuming it is obtained by compiling a Solidity source file). This CFG should also distinguish the different methods ...
1
vote
2answers
353 views

Can you interact with a contract by only looking at its bytecode?

Suppose you don't have the source of a contract, but have its bytecode. Can you theoretically interact with it somehow, or see what it does, by only looking at its bytecode? Can functionality be ...
0
votes
2answers
443 views

How do I see the value of a string stored in a private variable? [duplicate]

I have read many times that sensitive data should never be stored in a transaction, but, specifically, how would the value of a state variable be read if marked private?
8
votes
1answer
249 views

Could a contract, or parts of a contract, be reverse engineered from bytecode if the ABI was available?

Compilation back to the original source code from just the bytecode is impossible because all variable names, type names and even function names are removed. (source) It's possible to call functions ...
1
vote
3answers
328 views

How to check if the address is an ERC20 contract?

edit) VM execution error was a bug on Web3, confirmed my code works fine. I am trying to fetch random addresses from blockchain and trying to categorize them if it is an ERC20 contract address or not....
1
vote
1answer
290 views

Is there a way to reverse engineer and know the ABI of a contract just by knowing its contract address?

Let me be clear on this, here i want reverse functionality. I have the contract address generated and i am able to access it in the mined block. However i want to know what is the data in ABI json ...
2
votes
1answer
141 views

How can I check if a contract contains a specific function signature in the ABI?

I'm using Geth and thinking maybe I'll have to deep dive into the Go code to make this happen, but it should be possible. What would I need to do to check if a function signature exists in a contract?
1
vote
1answer
58 views

What if I don't verify a contract?

I have a question, what if I have a simple contract that has a public function "give something to this adress" and that will be called from a website I will put it on-chain but will not verify it ...