Encrypts using Lit and then writes using Ceramic whatever the module user inputs (as long as it is a string for now)
toEncrypt
String what the module user wants to encrypt and store on ceramicaccessControlConditions
Array<Object> the access control conditions that govern who is able to decrypt this data. See the docs here for examples: https://developer.litprotocol.com/docs/SDK/accessControlConditionExamplesaccessControlConditionType
String the access control condition type you are using. PassaccessControlConditions
for traditional access control conditions. This is the default if you don't pass anything. PassevmContractConditions
for custom smart contract access control conditions (optional, default"accessControlConditions"
)
Returns Promise<String> A promise that resolves to a streamID for the encrypted data that's been stored
Retrieves a stream and decrypts message then returns to user
streamID
String the streamID of the encrypted data the user wants to access
Returns Promise<String> A promise that resolves to the unencrypted string of what was stored
Retrieves a stream and decrypts message then returns to user
streamID
String the streamID of the encrypted data that you want to update the access control conditions fornewAccessControlConditions
Array<Object>accessControlConditions
Array<Object> the access control conditions that govern who is able to decrypt this data. Note that you cannot change the accessControlConditionType using this method, and you must use the same condition type that was used when you ran encryptAndWrite. See the docs here for examples of accessControlConditions: https://developer.litprotocol.com/docs/SDK/accessControlConditionExamples
Returns Promise<String> A promise that resolves to the unencrypted string of what was stored