UNPKG

@aptos-labs/siwa

Version:
23 lines 938 B
import type { PublicKey, Signature } from "@aptos-labs/ts-sdk"; import type { AptosSignInOutput } from "@aptos-labs/wallet-standard"; export declare const CURRENT_LEGACY_SERIALIZATION_VERSION = "2"; export type LegacySerializationVersion = "2"; export type SerializedLegacyAptosSignInOutput = { version: "2"; type: string; signature: string; message: string; publicKey: string; }; export type DeserializedLegacyAptosSignInOutput = { version: "2"; type: string; signature: Signature; message: string; publicKey: PublicKey; }; export declare const serializeLegacySignInOutput: (output: Pick<AptosSignInOutput, "type" | "signature" | "account"> & { message: string; }) => SerializedLegacyAptosSignInOutput; export declare const deserializeLegacySignInOutput: (serialized: SerializedLegacyAptosSignInOutput) => Promise<DeserializedLegacyAptosSignInOutput>; //# sourceMappingURL=serializers.d.ts.map