-
Notifications
You must be signed in to change notification settings - Fork 2
Tutorials: Biobank app
- Open the biobank-app, and go to http://127.0.0.1:3000 in your browser
- Insert the certificate and the password
- Click in Sign in
Figure 1: Amazon Biobank - login page
- On Biobank-app homepage, click in "insert DNA", and then "Raw Data"
- Fill in the "name" and the "description" fields with information about the DNA data
2.1 In our case, we inserted
Açaí (Euterpe oleracea)
as name, andCollected in 26/ago/2022. Have nutritional qualities, antinflamatory and antioxidant agent
as description - Get the magnet link and the decryption key in Torrente, and copy+paste here
- Click on "add" to save the data on the blockchain
Figure 2: Inserting raw DNA data
Now, this genetic data and the associated metadata are registered on the blockchain. You can see the details by visiting http://amazonbiobank.duckdns.org:8080 -> transactions, and looking at the details.
Figure 3: Transaction details in Hyperledger Explorer. The data written on the blockchain is marked in red.
- After inserting raw DNA data, click on "create smart contract"
- Insert the selling conditions of DNA 2.1. Those include "raw data price", "processed data price", and the payment distribution 2.2. You can also include the royalty payment method that you accept. This will be presented to Buyers when buying access to your data.
- Click in "create" to save your parameters
Figure 4: Creating smart contract for raw DNA data. Inserted parameters are: raw data price (1 biocoins); processed data price (3 biocoins); payment distribution (50% Collectors; 50% Processors); and royalt payment (fixed one-time fee of 10 biocoins)
- Login in Biobank-app (possibly using another account)
- Before buying the data, we will test that you cannot access the data encryption key. Go to "list data", select the data you want to buy, and click on "see decryption key". You must get an error message. (Figure 5)
Figure 5: Denied attempt to access the data decryption key
- Now, let's buy the DNA data. On the home page, click on "buy data". Then, select the DNA data you want buy (Figure 6)
Figure 6: List of DNA available for purchase
- After seeing the DNA data detail, click on "see Smart Contract"
- After seeing the buying conditions (including the raw data price), click in "Buy DNA"
- Click "buy" on the confirmation screen. (Figure 7)
Figure 7: Buying raw DNA data - confirmation screen
- After the payment, you will see the "operation receipt", which contains your userID, the value in biocoins that were transferred, and the destination address (Figure 8)
Figure 8: Details about the buying operation. Value that was transferred, destination userID, and DNA dataID
- On the operation receipt, click on the link with DNA ID
- In the DNA data detail page, note that your userID has been included on the "owner list" (Figure 9)
Figure 9: Updated list of owners. Note that your userID has been included
- Click on "See decryption key". Since you are now one of the DNA data owners, you have received access to it. (Figure 10)
Figure 10: DNA data decryption key
You will use this decryption key to decrypt the DNA data in Torrente application
- Login in biobank-app (possibly using another account)
- On home page, click on "process DNA"
- Choose the DNA data to process. Click on the "process icon"
- After seeing the DNA data, click on next
- After seeing the smart contract details (including the payment distribution reserved to Processors), click in "Process"
- A process request will be created. This is a declaration that you intend to work on this specific raw DNA data (Figure 11)
Figure 11: Process request details. This process request proves that you intend to work on this data
DNA data processing is out of the scope of this work. To do this, interested users may employ third-party tools (e.g., nanopore). We will now describe how to insert the processing results
- On the "processing request details", click on "insert processed DNA".
- Insert details about the processed data on the form. DNA magnet link and the secret key can be obtained through Torrente (Figure 12)
Figure 12: Inserting a Process DNA data.
- Click on "create", to create data on the blockchain (Figure 13)
Figure 13: Details about an inserted process DNA data.
- Click on endorse DNA. This operation submits this "processed data" to be accepted as the "official processed data". As a result, whenever this genetic data is bought, the Processor receives the payment share as described in "payment distribution". If another "processed data" is already accepted as "official", this endorsement will fail.
- If the endorsement is approved, your data will be included as "official". Note the "accepted processed data" field, which contains the processed data ID and other details.
Figure 14: Smart contract details, updated with the "accepted processed data"