Skip to content

Conversation

@awisniew207
Copy link
Contributor

Docs portion of this PR

@netlify
Copy link

netlify bot commented Sep 12, 2024

Deploy Preview for lit-dev-docs ready!

Name Link
🔨 Latest commit 294f2b6
🔍 Latest deploy log https://app.netlify.com/sites/lit-dev-docs/deploys/66eb5462498c8c00088e97b8
😎 Deploy Preview https://deploy-preview-336--lit-dev-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.


Lit Actions have two methods for decrypting data: `decryptToSingleNode` and `decryptAndCombine`. The former reduces the execution scope of the Lit Action to a single node and decrypts the data there. The latter collects each Lit node's decryption share, combines them, and then decrypts the data on a single node. The key difference between the two is that `decryptToSingleNode` only uses the decryption share of a single Lit node, while `decryptAndCombine` uses all of the decryption shares of all Lit nodes.

When `decryptToSingleNode` is used, the execution scope being reduced to a single Lit node means that any behavior that requires multiple nodes (i.e. console logs, `signAndCombineEcdsa`) will encounter a timeout error.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When you say console logs, do you mean console.log? I don't think there's an affect on these when running within a single node?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add a snippet on how to end execution on all the Lit node that weren't selected for the decryption

That looks something like this

@madschristensen99 madschristensen99 added the enhancement New feature or request label Mar 26, 2025
@madschristensen99
Copy link

Looks like Andrew started this, then Wyatt made changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants