implemented frontend including separate message system; started to implement backend
This commit is contained in:
10
yjs-poll/node_modules/lib0/hash/sha256.node.js
generated
vendored
Normal file
10
yjs-poll/node_modules/lib0/hash/sha256.node.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { createHash } from 'node:crypto'
|
||||
|
||||
/**
|
||||
* @param {Uint8Array} data
|
||||
*/
|
||||
export const digest = data => {
|
||||
const hasher = createHash('sha256')
|
||||
hasher.update(data)
|
||||
return hasher.digest()
|
||||
}
|
||||
Reference in New Issue
Block a user