zama-ai / fhevm

A Solidity library for interacting with an fhEVM blockchain.
Other
385 stars 74 forks source link

Add TFHE.exp operation #318

Open Dalgerok opened 6 months ago

Dalgerok commented 6 months ago

Hi, I see lack of exponential operation in https://docs.zama.ai/fhevm/how-to/operations. I think it can be efficiently implemented using binary exponentiation: https://cp-algorithms.com/algebra/binary-exp.html

ScottZSH commented 6 months ago

I think we can consider it