mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2025-01-01 01:27:54 +01:00
9 lines
153 B
JavaScript
9 lines
153 B
JavaScript
import sha3 from 'js-sha3'
|
|
|
|
export default function sha256Hash(data) {
|
|
return sha3.sha3_256
|
|
.create()
|
|
.update(data)
|
|
.hex()
|
|
}
|