1-Single User with Structured Data
In this scenario, there are users who have wallets with different balances. The system aims to protect sensitive information, such as user names and wallet balances, by encrypting the data before inserting it into a table.
1.1. Task
Encrypting and inserting wallet address, user name, and balance information into a table.
Querying the encrypted data to retrieve wallet information based on a specified condition, such as wallets with a balance greater than 15.0.
Decrypting the queried encrypted data to display the wallet information in a readable format.
1.2. Data
(public data)
(secret data)
(secret data)
0xB2F588A50E43f58FEb0c05ff86a30D0d0b1BF065
Alice
10.5
0x420c08373E2ba9C7566Ba0D210fB42A20a1eD2f8
Bob
20.8
1.3. Example code to Insert cipher
1.4. Result Table in MindLake
(text, encrypt=False)
(text, encrypt=True)
(float4, encrypt=True)
0xB2F588A50E43f58FEb0c05ff86a30D0d0b1BF065
0x1111
0x2211
0x420c08373E2ba9C7566Ba0D210fB42A20a1eD2f8
0x1122
0x2222
1.5. Example code to query on cipher
1.6. Output
Last updated