UNPKG

@pharosnames/address-encoder

Version:

Encodes and decodes address formats for various cryptocurrencies with Pharos network support

13 lines 787 B
import { bytesToHex as bytesToNoPrefixHex, hexToBytes as noPrefixHexToBytes } from "@noble/hashes/utils"; export type Hex = `0x${string}`; export type ByteArray = Uint8Array; export declare function hexToBytes(hex_: Hex): ByteArray; export declare function hexToString(hex: Hex): string; export declare function bytesToString(bytes: ByteArray): string; export declare function stringToBytes(str: string): ByteArray; export declare function bytesToHex(bytes: ByteArray): Hex; export declare function bytesToBase10(bytes: ByteArray): string; export declare function base10ToBytes(base10: string): ByteArray; export declare const bytesToHexWithoutPrefix: typeof bytesToNoPrefixHex; export declare const hexWithoutPrefixToBytes: typeof noPrefixHexToBytes; //# sourceMappingURL=bytes.d.ts.map