import "../../constants/chains.constants.mjs";
import "../../constants/protocol.constants.mjs";
import { ethers as e } from "ethers";
import "@solana/web3.js";
import "tronweb";
//#region libs/shared/common/src/functions/utils/addresses.ts
var t = [
	"http://",
	"https://",
	"/payment/",
	".app/",
	".com/",
	".netlify."
], n = (e) => {
	if (t.some((t) => e.includes(t))) return !1;
	let [n, r, i, a, o] = e.split(","), s = !n || !r || !i || !a || !o, c = r?.substring(0, 2) !== "0x" || i?.substring(0, 2) !== "0x", l = i?.length !== 66 || r?.length > 66 || r?.length < 64, u = e?.includes("\"");
	return !(s || c || l || u);
}, r = (e) => {
	let [t, n, , r, i] = e.split(",");
	return {
		extraRandomization: BigInt(t),
		stealthAddress: BigInt(n),
		H0: BigInt(r),
		H1: BigInt(i)
	};
}, i = (t) => e.keccak256(e.toUtf8Bytes(t.toLowerCase())), a = (t) => e.keccak256(e.toUtf8Bytes(t));
//#endregion
export { r as constructStealthAddressStructure, i as hashEthereumAddress, a as hashString, n as isValidPrivateAddress };
