mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 17:15:03 -07:00
performance and optimization
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import * as crypto from 'crypto';
|
||||
|
||||
export function hash256(data: Buffer): Buffer {
|
||||
const first = crypto.createHash('sha256').update(data).digest();
|
||||
return crypto.createHash('sha256').update(first).digest();
|
||||
}
|
||||
Reference in New Issue
Block a user