Client to connect to Lit nodes
The origin from which the signing request is made
Relay server to subsidize minting of PKPs
Generate a wallet signature to use as an auth method
Optional
options: EthWalletAuthenticateOptionsAuthenticates an auth Method for claiming a Programmable Key Pair (PKP). Uses the underyling litNodeClient instance to authenticate a given auth method
Calculates a public key for a given key identifier
which is an Auth Method Identifier
the Auth Method Identifier is a hash of a user identifier and app idendtifer.
These identifiers are specific to each auth method and will derive the public key protion of a pkp which will be persited
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 |
Fetch PKPs associated with given auth method from pkp contract
Auth method object
Auth method object
Get auth method id that can be used to look up and interact with PKPs associated with the given auth method
Auth method object
Fetch PKPs associated with given auth method type and id from pkp contract
Generate session sigs for given auth method and PKP
Mint a new PKP for the given auth method through the relay server
Auth method object
Optional
customArgs: MintRequestBodyExtra data to overwrite default params
Protected
prepareGenerate request body to fetch PKPs using auth method info via relay server
Data for fetching PKP
Protected
prepareGenerate request body for minting PKP using auth methods via relay server
Data for minting PKP
Optional
customArgs: MintRequestBodyExtra data to overwrite default params
Generate request data for minting and fetching PKPs via relay server
Auth method obejct
Static
authenticateGenerate a wallet signature to use as an auth method
Optional
address?: stringAddress to sign with
Optional
chain?: stringName of chain to use for signature
Optional
domain?: stringDomain from which the signing request is made
Optional
expiration?: stringWhen the auth signature expires
LitNodeClient instance
Optional
origin?: stringOrigin from which the signing request is made
Signer object
Static
auth
The domain from which the signing request is made