We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c02665 commit d0ffa4fCopy full SHA for d0ffa4f
src/utils.ts
@@ -1,6 +1,10 @@
1
// buf.toString('hex') -> toHex(buf)
2
import { assertBytes } from "@noble/hashes/utils";
3
-export { bytesToHex as toHex, assertBytes, createView } from "@noble/hashes/utils";
+export {
4
+ assertBytes,
5
+ bytesToHex as toHex,
6
+ createView
7
+} from "@noble/hashes/utils";
8
// Buffer.from(hex, 'hex') -> hexToBytes(hex)
9
export function hexToBytes(hex: string): Uint8Array {
10
if (typeof hex !== "string") {
0 commit comments