Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update examples to be on latest V3 SDK packages #226

Merged
merged 1 commit into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading