Initializes a new instance of the SiweServiceClient class.
Private
Readonly
ERROR_Private
Readonly
ERROR_Private
Readonly
ERROR_Private
Readonly
ERROR_Private
Readonly
ERROR_Returns a promise that resolves with the verified message.
connectToIssuer
Sends a connect request to issuer and returns the response.
Will throw an error if initialization is not done, QR code data is missing, or DID is missing.
Private
findThe key for the ethers Wallet.
The domain for the SIWE message.
The base URL for the SIWE message.
The Decentralized Identifier (DID).
The QR scan result.
Optional
credentialId: stringThe optional Credential ID.
init
Initializes the SIWE service client with the provided parameters.
Returns a promise that resolves with the request Credential response.
requestCredential
Sends a request to get credentials and returns the response.
Will throw an error if QR code data, DID, or Credential ID is missing.
Returns a promise that resolves with the verified message.
requestSignedDvr
Sends a request to get the signed dvr and return the response.
Private
sendReturns a promise that resolves with the verified message.
verifyProof
Sends a request to verify proof token to verifier.
Will throw an error if Proof Token is missing.
Generated using TypeDoc
Implements
Description
Implements SIWE (Sign In With Ethereum) functionality. This class is responsible for initializing the SIWE message, sending requests, connecting, and requesting the download of QR codes.
See
https://didpass-wallet.gitbook.io/didpass-wallet-sdk/