const e=require(`../../constants/protocol.constants.cjs`),t=require(`./addresses.cjs`),n=require(`../../data-structures/crypto-keys/keys.cjs`),r=require(`../../data-structures/utxo/Utxo.cjs`);require(`../../data-structures/crypto-keys/index.cjs`);var i=t=>{let i=t.getShieldedPrivateKey(),a=n.UserKeys.getEncryptionKeyPair(i).publicKey,o=new r.Utxo({amount:0n,erc20TokenAddress:e.zeroAddress,nullifyingKey:i,spendingPublicKey:t.getSpendingKeyPair().pubSpendingBJJPoint,isNewStyle:!0}),{H0:s}=o;if(!s)throw Error(`H0 is not set`);let c=o.getStealthAddress(),l=n.UserKeys.getH1FromH0(s,i);return`${c},${s[0]},${s[1]},${l[1]},${a}`},a=e=>t.constructStealthAddressStructure(i(e));exports.getRecipientInfoFromUserKeys=i,exports.getStealthAddressStructureFromUserKeys=a;