ethers.js/utils/id.js
2017-10-17 16:05:44 -04:00

11 lines
176 B
JavaScript

'use strict';
var keccak256 = require('./keccak256');
var utf8 = require('./utf8');
function id(text) {
return keccak256(utf8.toUtf8Bytes(text));
}
module.exports = id;