eth-bin-to-method-ids

1.0.0 • Public • Published

eth-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

const binToMethodIds = require('eth-bin-to-method-ids')
const code = Buffer.from('6060604052...', 'hex')
 
const methodIds = binToMethodIds(code)
console.log(methodIds)
// => [
//   '0230a07c',
//   '13c89a8f',
//   '15f73331',
//   '22ec1244'
//   ]

Readme

Keywords

none

Package Sidebar

Install

npm i eth-bin-to-method-ids

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • kumavis