Protected
_getThrow node error
Calculates a Key Id for claiming a pkp based on a user identifier and an app identifier. The key Identifier is an Auth Method Id which scopes the key uniquely to a specific application context. These identifiers are specific to each auth method and will derive the public key portion of a pkp which will be persisted when a key is claimed.
Auth Method | User ID | App ID |
---|---|---|
Google OAuth | token sub |
token aud |
Discord OAuth | user id | client app identifier |
Stytch OTP | token sub |
token aud |
Lit Actions | user defined | ipfs cid |
Note Lit Action claiming uses a different schema than other auth methods |
user identifier for the Key Identifier
app identifier for the Key Identifier
should be set for true if using claiming through actions
public key of pkp when claimed
Calculates an HD public key from a given keyId The curve type or signature type is assumed to be k256 unless provided
public key
Get different formats of access control conditions, eg. evm, sol, unified etc.
Get hash of access control conditions
Retrieves the session signature for a given URL from the sessionSigs map. Throws an error if sessionSigs is not provided or if the session signature for the URL is not found.
The session signature for the given URL.
Handle node promises
requestId to be logged in case of error
number of nodes we need valid results from in order to resolve
Handshake with Node
Send a command to nodes
Get a new random request ID