2
0
mirror of synced 2025-02-25 12:35:17 +00:00
ethers.js/src.ts/utils/keccak256.ts

12 lines
236 B
TypeScript
Raw Normal View History

2018-06-13 15:39:39 -04:00
'use strict';
import sha3 = require('js-sha3');
import { arrayify, Arrayish } from './convert.js';
export function keccak256(data: Arrayish): string {
return '0x' + sha3.keccak_256(arrayify(data));
}
//export default keccak256;