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
+14
View File
@@ -0,0 +1,14 @@
import crypto from 'crypto';
import { coerce } from '../bytes.js';
import { from } from './hasher.js';
export const sha256 = from({
name: 'sha2-256',
code: 0x12,
encode: (input) => coerce(crypto.createHash('sha256').update(input).digest())
});
export const sha512 = from({
name: 'sha2-512',
code: 0x13,
encode: input => coerce(crypto.createHash('sha512').update(input).digest())
});
//# sourceMappingURL=sha2.js.map