"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SignersCoordinatorClient = void 0;
const constants_1 = require("../constants");
class SignersCoordinatorClient {
    constructor(client) {
        this.client = client;
    }
    async sign(body) {
        const { path } = constants_1.PRIVATE_ENDPOINTS.SignersCoordinatorSignHash;
        const resp = await this.client.post(path, body);
        return resp.data;
    }
    async keygen(body) {
        const { path } = constants_1.PRIVATE_ENDPOINTS.SignersCoordinatorKeygen;
        const resp = await this.client.post(path, body);
        return resp.data;
    }
    // TODO: make endpoint public when endpoint is actually plugged and working
    async getPeers(body) {
        const { path } = constants_1.PRIVATE_ENDPOINTS.SignersCoordinatorGetPeers;
        const resp = await this.client.post(path, body);
        return resp.data;
    }
    // TODO: remove endpoint when private-public-key lambda is implemented
    async getPublicKey(body) {
        const { path } = constants_1.PRIVATE_ENDPOINTS.SignersCoordinatorGetPublicKey;
        const resp = await this.client.post(path, body);
        return resp.data;
    }
    // TODO: remove private when private-public-key lambda is implemented
    async getPublicKeyAddress(body) {
        const { path } = constants_1.PRIVATE_ENDPOINTS.SignersCoordinatorGetPublicKeyAddress;
        const resp = await this.client.post(path, body);
        return resp.data;
    }
}
exports.SignersCoordinatorClient = SignersCoordinatorClient;
