@harmony-js/crypto
Version:
crypto libraries for harmony
17 lines (13 loc) • 348 B
text/typescript
/**
* @packageDocumentation
* @ignore
*/
import * as hash from '../src/keccak256';
import hashes from './fixtures/hashes.json';
describe('should test keccak256', () => {
it('should test keccak256 hashing', () => {
hashes.forEach((testcase) => {
expect(hash.keccak256(testcase.data)).toEqual(testcase.keccak256);
});
});
});