ethers.js/src.ts/utils/id.ts
2018-06-13 15:39:39 -04:00

9 lines
181 B
TypeScript

'use strict';
import { keccak256 } from './keccak256';
import { toUtf8Bytes } from './utf8';
export function id(text: string): string {
return keccak256(toUtf8Bytes(text));
}