12 lines
236 B
TypeScript
12 lines
236 B
TypeScript
|
'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;
|