/** * Domain strings for `MessageHashBuilder.sol` (OperationAuthorizationRegistry / PositionManager). * * **Single source of truth** for UTF-8 labels hashed to `bytes32` domain tags in LIT Actions. * Changing a value requires updating Solidity (`MessageHashBuilder.sol`) and re-running * `contracts` tests: `MessageHashBuilder.constants.unit.test.ts`. * * @see contracts/src/libraries/MessageHashBuilder.sol * @see contracts/docs/EIP712_DOMAIN_SPEC.md (EIP-712 domain.name / version / verifyingContract) */ /** Matches `PAYMENT_ACTION_HASH` / `buildPaymentHash` */ export declare const MESSAGE_HASH_DOMAIN_PARTIAL_PAYMENT = "partial-payment"; /** Matches `LIQUIDATION_ACTION_HASH` / `buildLiquidationHash` */ export declare const MESSAGE_HASH_DOMAIN_LIQUIDATION = "liquidation"; /** * Shared EIP-712 `EIP712Domain.name` for protocol verifiers (PKPValidation, LiquidationManager, future LOM). * Distinct `DOMAIN_SEPARATOR` per `verifyingContract` proxy. @see contracts/docs/EIP712_DOMAIN_SPEC.md */ export declare const PROTOCOL_EIP712_DOMAIN_NAME = "DiamondHands.Protocol"; /** Shared EIP-712 `EIP712Domain.version` until a breaking primary-type / field-order change. */ export declare const PROTOCOL_EIP712_DOMAIN_VERSION = "1"; /** @deprecated Use PROTOCOL_EIP712_DOMAIN_NAME — identical. */ export declare const LIQUIDATION_MANAGER_EIP712_NAME = "DiamondHands.Protocol"; /** @deprecated Use PROTOCOL_EIP712_DOMAIN_VERSION — identical. */ export declare const LIQUIDATION_MANAGER_EIP712_VERSION = "1"; /** Matches `EXTENSION_ACTION_HASH` / `buildExtensionHash` */ export declare const MESSAGE_HASH_DOMAIN_EXTEND_POSITION = "extend-position"; /** Matches `BALANCE_CONFIRMATION_ACTION_HASH` / `buildBalanceConfirmationHash` */ export declare const MESSAGE_HASH_DOMAIN_BALANCE_CONFIRMATION = "balance-confirmation"; /** * Action tag for the address-only `AddressBalanceAttestation` (btc-address-balance LIT Action). * * Deliberately DISTINCT from `MESSAGE_HASH_DOMAIN_BALANCE_CONFIRMATION`: that attestation is * position-bound and consumed on-chain by `PositionManager.updateBalance`. This one signs a raw * total chain balance for a bare Bitcoin address (no positionId, no authorized-spend subtraction) * and has NO Solidity counterpart in `MessageHashBuilder.sol` — there is no on-chain consumer. The * separate tag + a non-LOM `verifyingContract` guarantee the two digests can never collide, so an * address-balance signature can never be replayed as a protocol BalanceConfirmation. */ export declare const MESSAGE_HASH_DOMAIN_ADDRESS_BALANCE = "address-balance"; /** Matches `MessageHashBuilder.MINT_ACTION_HASH` / `buildMintHash` */ export declare const MINT_ACTION_STRING = "mint-ucd"; /** User authorization message action for BTC withdrawal (not a MessageHashBuilder domain tag). */ export declare const WITHDRAW_BTC_ACTION_STRING = "withdraw-btc"; /** * User authorization message action for partial payment (not a MessageHashBuilder domain tag). * * Distinct from `MESSAGE_HASH_DOMAIN_PARTIAL_PAYMENT = "partial-payment"`, which is the EIP-712 * inner-domain tag the Lit Action signs for on-chain consumption. The string below is what the * SDK writes into `authMessage.action` and what `process-payment-validator` pins before * accepting a user signature. Audit CRIT-5: the previous payment path called the agnostic base * verifier without pinning this string, which made `make-payment` signatures cross-action- * fungible with anything else built over the same digest shape. * * Wire-compat: the SDK has been signing `"make-payment"` since launch; do not change the value * here without a coordinated SDK release. */ export declare const PARTIAL_PAYMENT_ACTION_STRING = "make-payment"; /** * User authorization message action for stale-spend recovery (audit #62210 Phase 2). * * Distinct action string so a leaked `withdraw-btc` signature cannot be replayed as a * recovery intent, and vice versa. Bound by `verifyRecoveryAuthorization` (in * `modules/authorization.module.ts`) into the borrower-signed message that the * `btc-utxo-invalidator` LIT Action consumes. */ export declare const RECOVERY_INVALIDATE_ACTION_STRING = "btc-utxo-invalidator"; /** * Submission action string for the on-chain `cancelStaleSpendWithProof` call (audit #62210). * Used inside the LIT-signed `StaleSpendRecovery` attestation domain — purely informational * (the EIP-712 type provides the cryptographic binding); kept for debug/log greppability. */ export declare const RECOVERY_ATTEST_ACTION_STRING = "stale-spend-recovery"; //# sourceMappingURL=message-hash-domains.d.ts.map