import { BytearrayWrapper } from '../bytearray-wrapper'; import { PublicKeyBase } from '../types'; import { BaseOTOutput } from './common'; export declare class SenderPublicKey extends BytearrayWrapper { } export declare class ReceiverPublicKey extends BytearrayWrapper { } export declare class Challenges extends BytearrayWrapper { } export declare class Responses extends BytearrayWrapper { } export declare class HashedKeys extends BytearrayWrapper { } export declare class BaseOTParticipant { /** Id of this participant */ readonly id: number; /** Ids of the other participants of the protocol. */ readonly others: Set; senderPks?: Map; receiverPks?: Map; challenges?: Map; responses?: Map; hashedKeys?: Map; outputs?: BaseOTOutput; private state?; constructor(id: number, others: Set); /** * Returns a map of `SenderPublicKey`s where the key is intended recipient of the `SenderPublicKey` * @param pkBase - This EC curve point is independent of the one use in generating the public keys */ start(pkBase: PublicKeyBase): Map; /** * Returns `ReceiverPublicKey` that must be sent to participant with id `senderId` * @param senderId * @param pk * @param pkBase */ processSenderPublicKey(senderId: number, pk: SenderPublicKey, pkBase: PublicKeyBase): ReceiverPublicKey; /** * Returns `Challenges` that must be sent to participant with id `senderId` * @param senderId * @param pk */ processReceiverPublicKey(senderId: number, pk: ReceiverPublicKey): Challenges; processChallenges(senderId: number, challenges: Challenges): Responses; processResponses(senderId: number, responses: Responses): HashedKeys; finish(): void; hasStarted(): boolean; hasFinished(): boolean; } //# sourceMappingURL=base-ot.d.ts.map