require(`../../constants/pay.constants.cjs`);const e=require(`../../API/enclaveRecipientInfoCalls.cjs`),t=require(`./encryptInputForEnclave.cjs`);var n=async(n,r,i,a)=>{let o=n.userKeys.getSignature(),{keyCiphertext:s,inputCiphertext:c}=await t.makeEnclaveHandshakeAndEncryptUint8Array(new TextEncoder().encode(o));await e.storeRecipientInfosViaEnclave({ethAddress:r,encryptedSignature:c,key:s,targetCount:20,isSolanaLedger:i,txMessageForSolanaLedger:a})};exports.ensureRecipientInfoPool=n;