How it works
Last updated
Last updated
Miraya 7f uses Lit Protocol to create an escrow Solana address each time a campaign is launched. This address's key remains inside of the TEE and is revealed to no one. Newly generated Solana Addresses will have limited control over the key and is bounded by some rules i.e. it will only be able to do sign transactions formed through the results of Snapshooter.
This mechanism is implemented to prevent the developers hold the control of private key of the autonomous agent and ensures the safety of funds. (Most autonomous agents today are designed so their developers retain access to the agent’s key, making them vulnerable to attacks or potential misuse).
A server running the autonomous agent hears for tags on X and makes a call to Lit TEE for key generation. Once the server realizes that the campaign duration has just finished, it again calls the TEE with the Lit Action (code responsible for distributing funds). This creates a call for fetching winners' addresses and their scores and distributes the funds by creating batch transactions and executing them.
In the Beta Release, Miraya can only handle one campaign at a time for the duration.