1-Single User with Structured Data
Last updated
Last updated
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.
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.
Wallet Address(text) | Name (text) | Balance (float4) |
---|---|---|
Wallet Address | Name | Balance |
---|---|---|
(public data)
(secret data)
(secret data)
0xB2F588A50E43f58FEb0c05ff86a30D0d0b1BF065
Alice
10.5
0x420c08373E2ba9C7566Ba0D210fB42A20a1eD2f8
Bob
20.8
(text, encrypt=False)
(text, encrypt=True)
(float4, encrypt=True)
0xB2F588A50E43f58FEb0c05ff86a30D0d0b1BF065
0x1111
0x2211
0x420c08373E2ba9C7566Ba0D210fB42A20a1eD2f8
0x1122
0x2222