PaymentDeprecation

Config-time deprecation helper for raw private-key options on blockchain anchor providers.

Background: see docs/.internal/trusted-domain-blockchain-payment-design.md.

Phase 2 of the on-chain treasury design keeps embedded credentials on plugins for backward compatibility, but operators should migrate key custody to the treasury via TrustedDomainManager.chainAccount(...) with a KMS KmsKeyRef. This utility surfaces a single WARN line per provider instance when raw-credential options are detected so the deprecation is visible without breaking existing deployments.

Functions

Link copied to clipboard
fun warnIfRawCreds(chainId: String, options: Map<String, Any?>, providerInstance: Any, log: Logger = logger)

Scans options for any raw-credential keys and logs a single WARN per provider instance.