feat: re-export most of noble utility functions
This commit is contained in:
parent
7126203cd3
commit
a813ee35f3
23
src/index.ts
23
src/index.ts
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue