Optional
defaultPrivate
#authOptional
authPrivate
#isCheck if a session key needs to be resigned. These are the scenarios where a session key needs to be resigned:
Combine Shares from network public key set and signature shares
final JWT (convert the sig to base64 and append to the jwt)
Execute JS on the nodes and combine and return any resulting signatures
Generates wildcard capability for each of the LIT resources specified.
is an array of LIT resources
Get Chain Data Signing Shares
Get JS Execution Shares from Nodes
Get the request body of the lit action
Try to get the session key in the local storage, if not, generates one.
session key pair
Get session signatures for a set of resources
High level, how this works:
Note: When generating session signatures for different PKPs or auth methods, be sure to call disconnectWeb3 to clear auth signatures stored in local storage
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.
final JWT
Get Signing Shares from Nodes
Get the signature from local storage, if not, generates one
Check if a given object is of type SessionKeyPair.
True if the object is of type SessionKeyPair.
The object to check.
Run lit action on a single deterministicly selected node. It's important that the nodes use the same deterministic selection algorithm.
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.
Sign Condition ECDSA
Sign a session public key using a PKP, which generates an authSig.
An object containing the resulting signature.
Store signing conditions to nodes
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
---------- Main Export Class ----------