Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vaporyjs/vap-bin-to-method-ids
Extracts the four byte methodIds from EVM byte code.
https://github.com/vaporyjs/vap-bin-to-method-ids
vapory vvm
Last synced: 11 days ago
JSON representation
Extracts the four byte methodIds from EVM byte code.
- Host: GitHub
- URL: https://github.com/vaporyjs/vap-bin-to-method-ids
- Owner: vaporyjs
- Created: 2018-03-04T04:42:46.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-01-15T02:06:13.000Z (about 4 years ago)
- Last Synced: 2024-11-14T17:33:30.475Z (2 months ago)
- Topics: vapory, vvm
- Language: JavaScript
- Homepage: https://vapory.org
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vap-bin-to-method-ids
Extracts the four byte methodIds from EVM byte code.
Uses naive static analysis to look for entrypoints based on common Solidity->EVM patterns.### usage
```js
const binToMethodIds = require('vap-bin-to-method-ids')
const code = Buffer.from('6060604052...', 'hex')const methodIds = binToMethodIds(code)
console.log(methodIds)
// => [
// '0230a07c',
// '13c89a8f',
// '15f73331',
// '22ec1244'
// ]
```