Combine Shares from network public key set and signature shares
final JWT (convert the sig to base64 and append to the jwt)
Connect to the LIT nodes
A promise that resolves when the nodes are connected.
Get the decryptions from the decrypted data list
Retrieve the symmetric encryption key from the LIT nodes. Note that this will only work if the current user meets the access control conditions specified when the data was encrypted. That access control condition is typically that the user is a holder of the NFT that corresponds to this encrypted data. This NFT token address and ID was specified when this LIT was created.
Get hash of access control conditions
we need to send jwt params iat (issued at) and exp (expiration) because the nodes may have different wall clock times, the nodes will verify that these params are withing a grace period
Get and gather node promises
from all node promises
Get signatures from signed data
Request a signed JWT of any solidity function call from the LIT network. There are no prerequisites for this function. You should use this function if you need to transmit information across chains, or from a blockchain to a centralized DB or server. The signature of the returned JWT verifies that the response is genuine.
Request a signed JWT from the LIT network. Before calling this function, you must either create or know of a resource id and access control conditions for the item you wish to gain authorization for. You can create an access control condition using the saveSigningCondition function.
(Browser Only) Get the config from browser local storage and override default config
Parse the response string to JSON
Securely save the association between access control conditions and something that you wish to decrypt
Associated access control conditions with a resource on the web. After calling this function, users may use the getSignedToken function to request a signed JWT from the LIT network. This JWT proves that the user meets the access control conditions, and is authorized to access the resource you specified in the resourceId parameter of the saveSigningCondition function.
Set bootstrapUrls to match the network litNetwork unless it's set to custom
Throw node error
Validates a condition, and then signs the condition if the validation returns true. Before calling this function, you must know the on chain conditions that you wish to validate.
Generated using TypeDoc