OpenZeppelin releases smart account libraries for Stellar smart contracts, enabling programmable authorization systems with context rules, signers, and policies. The demo showcases USDC payments, forex swaps, and multisig treasury operations.
OpenZeppelin has released smart account libraries for Stellar smart contracts that replace hard-coded signature checks with fully programmable authorization systems. Smart accounts compose authorization from three independent pieces: context rules (circumstances of a call), signers (who can authorize), and policies (business rules governing authorization). The framework supports delegated signers (standard Stellar addresses) and external signers (keys using verifier contracts for advanced cryptography like passkeys or BLS signatures). A demo showcases three use cases: seamless USDC payments using a hot wallet, forex swaps between USDC and EURC, and a multisig treasury wallet requiring three of four signatures to release funds. The architecture is context-centric, allowing up to 15 different context rules per account tailored for admin actions, DeFi interactions, session logins, or treasury operations. Developers integrate the library by implementing the smart account trait extending Soroban's custom account interface. Protocol 23 optimizations make chaining multiple authorization checks practical without sacrificing performance.