Data Retrieval Layer
When the data producer uploads data, it will be stored off-chain in an online storage service determined by the application owner (or the data producer if the application owner allows). For security purposes, the data will be encrypted using the data producer's secret key, and the data producer could determine the access level by choosing from the following options:
On-Demand Authentication (User has to manually sign whenever a new request to the file arises)
Permanent Authentication (The user delegates the signing rights pertaining to the file via Account Abstraction. The rights is vaild unless the user revokes access)
Time-Based Authentication (Achieved via account abstration but the user determines the time period. Please note that once the time period has been set it cannot be modified until the time period lapses)
*The user has the option to upload a single file or multiple files. When multiple files are compressed as a single file and stored in an online storage service, it is referred to as a Resource
Data Registry
After the network confirms that the file / resource has indeed been uploaded to an online storage service and is readily available, the data producer will sign a message that will write the following info onchain: URL that points to the file, File Checksum (To ensure file integrity)
Data Access
This module is in charge of accessing data from the online storage service, decrypting the data using the signature and ingesting it into the network when partipants in the network performs such a request.
Data Availability
Since the data is stored offchain and not within the control of the network, it is necessary for the network to periodically request access to the data (heartbeat mechanism) to ensure that the data is available.
Last updated