2
0
mirror of synced 2025-02-24 20:18:07 +00:00
ethers.js/src.ts/utils/keccak256.ts

15 lines
276 B
TypeScript

'use strict';
import sha3 = require('js-sha3');
import { arrayify } from './bytes';
// Imported Types
import { Arrayish } from './bytes';
export function keccak256(data: Arrayish): string {
return '0x' + sha3.keccak_256(arrayify(data));
}
//export default keccak256;