1
0
mirror of https://github.com/fluencelabs/libp2p-ts synced 2025-03-30 17:01:05 +00:00
2018-06-24 11:18:49 +02:00

8 lines
175 B
TypeScript

import createKeccak from 'keccak';
const context = createKeccak('keccak256');
context.update(Buffer.from([1, 2, 3, 4, 5]));
context.update('hello world');
context.digest();