feat: re-export most of noble utility functions

This commit is contained in:
Derrick Hammer 2023-06-26 00:39:25 -04:00
parent 7126203cd3
commit a813ee35f3
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 23 additions and 0 deletions

View File

@ -1,6 +1,29 @@
import { ed25519 } from "@noble/curves/ed25519";
import { sha512 } from "@noble/hashes/sha512";
export {
bytesToHex,
hexToBytes,
toBytes,
concatBytes,
randomBytes,
} from "@noble/hashes/utils";
export {
numberToHexUnpadded,
hexToNumber,
bytesToNumberBE,
bytesToNumberLE,
numberToBytesBE,
numberToBytesLE,
numberToVarBytesBE,
ensureBytes,
equalBytes,
utf8ToBytes,
bitLen,
bitGet,
bitSet,
bitMask,
} from "@noble/curves/abstract/utils";
export * from "./err.js";
export * from "./errTracker.js";
export * from "./objAsString.js";