mirror of
https://github.com/fluencelabs/libp2p-ts
synced 2025-03-31 01:11:04 +00:00
8 lines
181 B
TypeScript
8 lines
181 B
TypeScript
import createKeccak = require('keccak');
|
|
|
|
const context = createKeccak('keccak256');
|
|
|
|
context.update(Buffer.from([1, 2, 3, 4, 5]));
|
|
context.update('hello world');
|
|
context.digest();
|