UNPKG

@aptos-labs/siwa

Version:
22 lines 964 B
import { type Aptos, type PublicKey, type Signature } from "@aptos-labs/ts-sdk"; import type { AptosSignInBoundFields, AptosSignInInput } from "@aptos-labs/wallet-standard"; import type { VerificationError } from "../types.js"; export type VerificationFullMessageError = "invalid_full_message"; type LegacyVerificationError = VerificationError | VerificationFullMessageError; export type LegacyVerificationResult<T> = { valid: true; data: T; } | { valid: false; errors: LegacyVerificationError[]; }; export declare const createLegacySignInMessage: (input: AptosSignInInput & AptosSignInBoundFields) => string; export declare const verifyLegacySignIn: (input: AptosSignInInput & AptosSignInBoundFields, output: { publicKey: PublicKey; signature: Signature; message: string; }, options?: { aptos?: Aptos; }) => Promise<LegacyVerificationResult<AptosSignInInput & AptosSignInBoundFields>>; export {}; //# sourceMappingURL=core.d.ts.map