🏁Session based Proxy Wallets

Solarplex.xyz is the first blockchain powered app that obviates the need for wallets to pop up for every action.

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:

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. 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.

Last updated