/** * AddressBalanceAttestation — address-only signed-balance helpers. * * Extracted from `btc-address-balance.ts` so the exact validation + EIP-712 * typed-data the action signs can be unit-tested WITHOUT the Lit runtime or the * heavy `BitcoinDataProvider` / constants-barrel import chain. Imports only leaf * constant chunks. * * `ethers` (v5) is a Lit-runtime global; `address.ts` and the registry module * declare it the same way for type-checking. */ import { BitcoinNetwork } from "../constants/chunks/bitcoin-network-config"; /** * Validate a vault address against the chain's Bitcoin network and return its * CANONICAL (lowercase) form. Rejects empty, malformed, non-P2WPKH, and * cross-network addresses — fail fast, no fallback. * * Only bech32 (segwit v0) P2WPKH is accepted: HRP `bc`/`tb`/`bcrt`, separator * `1`, witness-version char `q` (v0), then a 38-char data section whose decoded * 20-byte program + 6-char checksum is the only valid P2WPKH length. That fixes * the total length: 42 (bc1q…/tb1q…) or 44 (bcrt1q…). The returned canonical * address MUST be used everywhere downstream (provider lookup, consensus, * attestation) so accepted inputs never diverge from what gets signed. */ export declare function validateVaultAddressForNetwork(address: string, network: BitcoinNetwork): string; /** * Build the EIP-712 typed-data payload for the `AddressBalanceAttestation`. * * The two load-bearing invariants (unit-tested): * 1. a signature over this payload recovers to the signer; and * 2. the digest can NEVER collide with a protocol `BalanceConfirmation` — the * distinct `actionTag`, distinct fields, and non-LOM `verifyingContract` * guarantee it, so an address-balance signature can never be replayed into * `PositionManager.updateBalance`. * * Uses the global `ethers` (v5) for `actionTag` / `vaultAddressHash`. */ export declare function buildAddressBalanceTypedData(params: { verifyingContract: string; chainId: number; vaultAddress: string; totalBalanceSats: bigint; providerCount: number; timestamp: number; }): { domain: Record; types: Record>; value: Record; }; //# sourceMappingURL=address-balance-attestation.module.d.ts.map