import "../../constants/pay.constants.mjs";
import { storeRecipientInfosViaEnclave as e } from "../../API/enclaveRecipientInfoCalls.mjs";
import { makeEnclaveHandshakeAndEncryptUint8Array as t } from "./encryptInputForEnclave.mjs";
//#region libs/shared/common/src/functions/utils/enclave-recipient-info-storage.ts
var n = async (n, r, i, a) => {
	let o = n.userKeys.getSignature(), { keyCiphertext: s, inputCiphertext: c } = await t(new TextEncoder().encode(o));
	await e({
		ethAddress: r,
		encryptedSignature: c,
		key: s,
		targetCount: 20,
		isSolanaLedger: i,
		txMessageForSolanaLedger: a
	});
};
//#endregion
export { n as ensureRecipientInfoPool };
