Optional
defaultPrivate
#authOptional
authPrivate
#decryptPrivate
#getPrivate
#isCheck if a session key needs to be resigned. These are the scenarios where a session key needs to be resigned:
Authenticates an Auth Method for claiming a Programmable Key Pair (PKP). A MintCallback can be defined for custom on chain interactions by default the callback will forward to a relay server for minting on chain.
an Auth Method and MintCallback
Combine Shares from network public key set and signature shares
final JWT (convert the sig to base64 and append to the jwt)
Decrypt ciphertext with the LIT network.
Encrypt data using the LIT network public key.
Execute JS on the nodes and combine and return any resulting signatures
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 from the LIT network. Before calling this function, you must know the access control conditions for the item you wish to gain authorization for.
final JWT
Get signature shares for decryption.
Get Signing Shares for Token containing Access Control Condition
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.
Lit Action: dataToHash -> IPFS CID QmUjX8MW6StQ7NKNdaS6g4RMkvN5hcgtKmEi8Mca6oX4t3
Sign Condition ECDSA
Sign a session public key using a PKP, which generates an authSig.
An object containing the resulting signature.
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.
Static
generateGenerates wildcard capability for each of the LIT resources specified.
is an array of LIT resources
Optional
addAllCapabilities: booleanis a boolean that specifies whether to add all capabilities for each resource
Optional
rateLimitAuthSig: AuthSigStatic
getStatic
getStatic
normalizeGenerated using TypeDoc
========== PKP ==========