UNPKG

@aptos-labs/siwa

Version:
23 lines 929 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 = "1"; export type LegacySerializationVersion = "1"; export type SerializedLegacyAptosSignInOutput = { version: "1"; type: string; signature: string; message: string; publicKey: string; }; export type DeserializedLegacyAptosSignInOutput = { version: "1"; 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) => DeserializedLegacyAptosSignInOutput; //# sourceMappingURL=serializers.d.ts.map