1234567891011121314151617 |
- 'use strict';
- const tronWeb = require('./extensions/tronWeb');
- let data = process.argv[2]; // sha3
- let sign = process.argv[3];
- let account = process.argv[4]; // base58
- if (!data || !sign || !account) {
- console.error('param is not valid.');
- return;
- }
- let flag = false;
- try {
- flag = tronWeb.tronVerifyMessage(data, sign, account);
- } catch (e) {}
- console.log(flag);
|