chambsbond / Project-Pawledger

4 stars 0 forks source link

[FE, SC] Encrypting FE Form Info In Generic Way and Sending to SC #25

Closed chambsbond closed 4 months ago

liamliam2020 commented 4 months ago

@ikemcgon look at how we send this to the smart contract, I'm gonna cook on the encrypting in javascript

liamliam2020 commented 4 months ago

Org is going to need a different key than just the an individuals private key or else it will not be visible to everyone.

liamliam2020 commented 4 months ago

what kind of data is or isn't encrypted

liamliam2020 commented 4 months ago

what happens with pet transferring and using one person's private key and having data already encrypted with the previous owners

chambsbond commented 4 months ago

One thought I had was to allow the user to define what roles can pull the data in the backend. In our UI we would allow them to configure what orgs can pull.

all of these are good questions!

chambsbond commented 4 months ago

From google:

End-to-end encryption (E2EE) is a secure communication process that uses cryptography to scramble data into unreadable text, called ciphertext, that can only be decoded with a secret key. Only the sender and intended recipient can access the data, which is designed to protect data from hackers and unwanted third parties. For example, a letter sent through the mail in a sealed envelope is similar to E2EE, as only the sender and recipient can read the message

chambsbond commented 4 months ago

IMG_0009

liamliam2020 commented 4 months ago

IMG_0009

Yeah I think this is how we will want these relationships to be too. Unrelated that's a sweet desk, wish mine doubled as a white board :rofl: