PolicySignature

Policy signature representing policy-based authorization.

Policy signatures are empty maps that indicate authorization should be determined by the smart account's policy evaluation (e.g., spending limits, threshold signatures, time-based restrictions).

The policy itself is responsible for validating the authorization context and returning success or failure. This signature type is a marker indicating that no explicit cryptographic signature is required.

Example:

val policySig = PolicySignature
val scVal = policySig.toScVal() // Returns empty map

Functions

Link copied to clipboard
open override fun toScVal(): SCValXdr

Converts the policy signature to a Soroban SCVal map.