vap-bin-to-method-ids
v1.0.0
Published
Extracts the four byte methodIds from EVM byte code. Uses naive static analysis to look for entrypoints based on common Solidity->EVM patterns.
Downloads
5
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
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'
// ]