【发布时间】:2019-08-18 05:25:49
【问题描述】:
我在 react-native 中尝试 ethereumjs-util ,首先 ethUtil.privateToPublic 工作正常,然后在使用 ethUtil.publicToAddress 时会收到此错误 TypeError: Cannot read property 'call' of undefined ,我跟踪错误实际上来自 @ 987654328@.
然后我尝试Keccak它自己:
const createKeccakHash = require('keccak');
console.log(createKeccakHash('keccak256').digest().toString('hex'));
也遇到同样的错误TypeError: Cannot read property 'call' of undefined
【问题讨论】:
标签: javascript react-native ethereum keccak