UNPKG

@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.

32 lines (31 loc) 977 B
import { LIT_ABILITY_VALUES } from '@lit-protocol/constants'; import { ILitResource } from '@lit-protocol/types'; export interface AuthSig { sig: any; derivedVia: string; signedMessage: string; address: string; } export type PlainJSON = boolean | number | string | { [key: string]: PlainJSON; } | Array<PlainJSON>; export type AttenuationsObject = { [key: string]: { [key: string]: Array<PlainJSON>; }; }; export type CID = string; /** * A LIT resource ability is a combination of a LIT resource and a LIT ability. * It specifies which LIT specific ability is being requested to be performed * on the specified LIT resource. * * @description This object does NOT guarantee compatibility between the * specified LIT resource and the specified LIT ability, and will be validated by * the LIT-internal systems. */ export type LitResourceAbilityRequest = { resource: ILitResource; ability: LIT_ABILITY_VALUES; data?: any; };