@lit-protocol/auth-helpers
Version:
Advanced authentication utilities for managing blockchain resource permissions and capabilities within the Lit Protocol ecosystem. Built on top of SIWE (Sign-In with Ethereum) and SIWE-RECAP for robust authentication flows.
22 lines (21 loc) • 788 B
TypeScript
import { AuthSig, SignerLike } from '@lit-protocol/types';
import { ethers } from 'ethers';
/**
* Generate an AuthSig object using the signer.
*
* For more context:
* We are only using authSig to generate session sigs. In a newer version, we will stop accepting
* authSig all together from the node and will only accept session sigs. The address being
* used here will be checksummed.
*
* @param signer the signer must have a "signMessage" method
* @param toSign - the message to sign
* @param address - (optional) the address of the signer
* @returns
*/
export declare const generateAuthSig: ({ signer, toSign, address, algo, }: {
signer: ethers.Wallet | ethers.Signer | SignerLike;
toSign: string;
address?: string;
algo?: "ed25519";
}) => Promise<AuthSig>;