đSession based Proxy Wallets
Solarplex.xyz is the first blockchain powered app that obviates the need for wallets to pop up for every action.
Last updated
Solarplex.xyz is the first blockchain powered app that obviates the need for wallets to pop up for every action.
Last updated
Proxy wallets work as an intermediary layer between users and the Solarplex decentralized network that sits on top of the Solana blockchain. By creating this framework, app views on the Solarplex protocol may have users take actions without having their wallet pop up each time.
Here's how they function:
User identification: A user is identified by their unique DID, and each user has a proxy wallet associated with their account. This wallet holds the necessary keys and information to perform transactions on behalf of the user.
Session management: Proxy wallets are created for a certain fixed time period (eg, 24-48h) - much like a session key. These wallets never hold any funds in them. Every time a proxly wallet is created, the system broadcasts an action on the network linking the user's main DID to this session wallet.
Key management: Proxy wallets store unique, randomly generated public and private key pairs on behalf of a user. The public key is used to verify actions, while the private key is used to sign transactions. In some implementations, the private key may be encrypted for added security. These keys are unrelated to the user's primary wallet.
Action recording: When a user wants to perform an action, such as creating or updating a post, they send a request to the proxy wallet. The wallet records the action and verifies its authenticity by checking the user's signature or UUID.
Transaction creation: If the action is verified, the proxy wallet creates a transaction that represents the action to be performed. This transaction is signed with the private key of the proxy wallet.
Funds management: Before sending the transaction to the blockchain, the proxy wallet checks the user's available number of actions. If the user has sufficient actions remaining, the transaction is executed. Otherwise, an error is returned.
Transaction broadcast: After validating the transaction and ensuring sufficient actions, the proxy wallet sends the transaction to the corresponding blockchain for execution. Transactions are paid for via the main Solarplex Protocol wallet.
Action cancellation: Proxy wallet actions can be canceled by users if certain conditions are met, such as the action being pending and not yet expired. This is done using a unique identifier (UUID) associated with the action.