Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0xkoda/bytemystic
Solidity bytecode decoder for static analysis
https://github.com/0xkoda/bytemystic
decoder solidity static-analysis
Last synced: 9 days ago
JSON representation
Solidity bytecode decoder for static analysis
- Host: GitHub
- URL: https://github.com/0xkoda/bytemystic
- Owner: 0xKoda
- Created: 2023-03-22T05:06:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-04T21:05:53.000Z (about 1 year ago)
- Last Synced: 2023-11-04T22:20:25.947Z (about 1 year ago)
- Topics: decoder, solidity, static-analysis
- Language: Rust
- Homepage:
- Size: 25.4 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## ByteMystic: Solidity bytecode-decoder
This Rust CLI application decodes a Solidity function call from a given bytecode input or from a given tx hash on arbitrum. It uses the ethabi crate to define the function signature and decode the function call from the bytecode. The decoded function call provides information about the function name and the input parameters that can be used for static analysis.
# Getting started.
To run the application, use the cargo run command followed by the bytecode input:
`cargo run `
Replace `` with the actual bytecode you want to decode.
or to pull the bytecode from arbiscan, use the `-- -e` flag with the tx hash:
```sh
cargo run -- -e 0x234bf2f03473af0318fa9cea1d2f883bd9f7b861864c6c8409d81d72856becbc
```# Why
This Rust CLI application is useful for developers working with Ethereum smart contracts, as it allows them to decode Solidity function calls from bytecode inputs. This can help in understanding the behavior of a contract for security purposes, debugging issues, or verifying that a contract is functioning as expected.