The Signer Interface
In Brane, all signing operations are abstracted through theSigner interface. This provides a unified way to sign both transactions and raw messages, whether the key is held locally (e.g., a private key) or remotely (e.g., KMS, HSM, or MPC).
PrivateKeySigner
The most common implementation isPrivateKeySigner, which uses a local private key.
Signing Transactions
When usingWalletClient, the signer is handled automatically. However, you can also use it directly: