Javascript SDK of WoopChain protocol
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sdk/packages/harmony-crypto/test/keccak256.test.ts

12 lines
303 B

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);
});
});
});