Skip to content

Commit

Permalink
update (#226)
Browse files Browse the repository at this point in the history
Update examples to be on latest V3 SDK packages
  • Loading branch information
debbly authored Oct 5, 2023
1 parent 7bc1046 commit ca09b2f
Show file tree
Hide file tree
Showing 7 changed files with 6,526 additions and 8,801 deletions.
9 changes: 8 additions & 1 deletion apps/demo-encrypt-decrypt-react/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
This is a template of creating a react demo
# Demo
This is an example of how to use [ID encrypt](https://developer.litprotocol.com/v3/sdk/access-control/encryption).

## Running the app

```jsx
yarn start
```
2 changes: 1 addition & 1 deletion apps/demo-encrypt-decrypt-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@lit-protocol/lit-node-client": "^2.1.158",
"@lit-protocol/lit-node-client": "^3.0.0",
"@monaco-editor/react": "^4.5.1",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/demo-encrypt-decrypt-react/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const dataToEncryptHash = res.dataToEncryptHash;
// { ms }
// { Loading... }
const decryptedString = await litNodeClient.decryptToString({
const decryptedString = await LitJsSdk.decryptToString({
accessControlConditions: accs,
ciphertext,
dataToEncryptHash,
Expand Down
3,040 changes: 2,757 additions & 283 deletions apps/demo-encrypt-decrypt-react/yarn.lock

Large diffs are not rendered by default.

Loading

0 comments on commit ca09b2f

Please sign in to comment.