LIT-Protocol / developer-guides-code

A repository of code examples and reference implementations used for Lit Developer Guides
9 stars 6 forks source link

Add/actions plus guide #8

Closed joshLong145 closed 5 months ago

joshLong145 commented 5 months ago

Adds an example for encrypting, then decrypting an api key from within an lit action. The flow for this example is:

  1. User session is generate from an eth wallet
  2. User encrypts encryption key locally, with some Access Control Conditions
  3. Session, ciphertext, and hash are sent to the lit action for decryption.
  4. api key is decrypted and used with a provided url for accessing the api the key was intended for