tron

Validate TRON address using solidity ecrecover

孤街醉人 提交于 2020-06-17 11:55:09
问题 I'm trying to validate a signed message using a smart contract running on the TRON network. I've tried a few different methods but all failed: Based on this article I've deployed the following smart contract: contract Verifier { function recoverAddr(bytes32 msgHash, uint8 v, bytes32 r, bytes32 s) returns (address) { return ecrecover(msgHash, v, r, s); } function isSigned(address _addr, bytes32 msgHash, uint8 v, bytes32 r, bytes32 s) returns (bool) { return ecrecover(msgHash, v, r, s) == _addr