Skip to content

vaporyjs/vap-bin-to-method-ids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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'
//   ]

About

Extracts the four byte methodIds from EVM byte code.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages