Ready NFT
CI / Foundry project (push) Waiting to run

This commit is contained in:
2024-08-18 17:10:03 +08:00
parent e7ed382823
commit 11e41de86a
209 changed files with 6325 additions and 120 deletions
+12
View File
@@ -0,0 +1,12 @@
/* global crypto */
import { from } from './hasher.js'
const sha = (name: AlgorithmIdentifier) =>
async (data: Uint8Array) => new Uint8Array(await crypto.subtle.digest(name, data))
export const sha1 = from({
name: 'sha-1',
code: 0x11,
encode: sha('SHA-1')
})