@particle-network/auth-core-modal
Version:
Auth Core provides MPC (Multi-Party Computation)-based threshold signatures.
13 lines (12 loc) • 567 B
TypeScript
import { type ERC4337Options, type LoginAuthorization } from '@particle-network/auth-core';
import type { Chain } from '@particle-network/chains';
export type AuthorizationResult = {
message: string;
signature: string;
};
declare const authorizeUtils: {
isNeedAuthorize({ authorization, chain }: LoginAuthorization): boolean;
generateMessage(chain: Chain, erc4337?: ERC4337Options): Promise<string>;
authorize({ authorization, chain }: LoginAuthorization, erc4337?: ERC4337Options): Promise<AuthorizationResult>;
};
export default authorizeUtils;