UNPKG

@ledgerhq/live-common

Version:
6 lines (4 loc) 158 B
import { sha256 as nobleSha256 } from "@noble/hashes/sha256"; export function sha256(buffer: Buffer | string) { return Buffer.from(nobleSha256(buffer)); }