UNPKG

tssrp6a

Version:

SRP6a client and server lib

15 lines (14 loc) 710 B
import { SRPClientSessionStep1, SRPClientSessionStep2 } from "./session-client"; import { SRPServerSessionStep1 } from "./session-server"; /** * Crude JSON-based deserialization that has just enough exceptions for tssrp6a * classes. * Needs the serialization string and the target class prototype, e.g. * `SRPServerSessionStep1.prototype`. */ export declare function deserialize<T extends SRPServerSessionStep1 | SRPClientSessionStep1 | SRPClientSessionStep2>(str: string, proto: T): T; /** * Crude JSON-based serialization that has just enough exceptions for tssrp6a * classes. */ export declare function serialize(step: SRPServerSessionStep1 | SRPClientSessionStep1 | SRPClientSessionStep2): string;