mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 13:24:05 -06:00
10 lines
345 B
JavaScript
10 lines
345 B
JavaScript
const test = require('tape')
|
|
const keccak256 = require('../')
|
|
|
|
test('keccak256', t => {
|
|
t.plan(2)
|
|
|
|
t.equal(keccak256('hello').toString('hex'), '1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8')
|
|
t.equal(keccak256(Buffer.from('hello')).toString('hex'), '1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8')
|
|
})
|