All files / src sha256Hash.js

100% Statements 2/2
100% Branches 0/0
100% Functions 1/1
100% Lines 2/2
1 2 3 4 5 6 7 8 94x     22x          
import sha3 from 'js-sha3'
 
export default function sha256Hash(data) {
    return sha3.sha3_256
        .create()
        .update(data)
        .hex()
}