libp2p-ts/types/blakejs/blakejs-tests.ts
2018-06-24 11:18:49 +02:00

5 lines
129 B
TypeScript

import blake from 'blakejs';
blake.blake2bHex(new Uint8Array([1, 2, 3, 4, 5]));
blake.blake2sHex(Buffer.from([1, 2, 3, 4, 5]));