FhenixProtocol / fhenix-contracts

Solidity Contracts that allow developers to use FHE on Fhenix
MIT License
40 stars 21 forks source link

resestEaddress() function #48

Closed MrHIB closed 1 month ago

MrHIB commented 4 months ago

What happened to the resestEaddress() function to reencrypt an eaddress? can't find it in the fhenix-contracts repo

Cashmaney commented 4 months ago

eaddress was moved to a native type, so the old contract was removed. Depending on what you want to achieve, you can do the same thing by just calling select (if I understand correctly what you're trying to do)

        eaddress a = FHE.select(FHE.asEbool(true), FHE.asEaddress("0xb794f5ea0ba39494ce839613fffba74279579268"), FHE.asEaddress(0));