The Unified Signer Concept
Your components only ever interact with the SorokituseWallet hook. The actual logic for whether that signature comes from a hardware wallet, a browser extension, or a passkey is abstracted away into Connectors.
- Single API: Use the same
signTransactionfunction for every wallet type. - Decoupled UI: Your “Send” buttons don’t need to know which wallet is active.
- Error Normalization: Wallet-specific errors (like a user closing a popup) are mapped to standard Sorokit error types.
Setting up the hook
Once you have configured a connector in yourSorokitProvider, you can access the user’s identity anywhere in your app.

