scilla icon indicating copy to clipboard operation
scilla copied to clipboard

mulmod function

Open Anas2001 opened this issue 4 years ago • 1 comments

I need to build zksnarks feature in scilla smart contract and we need for that

mulmod(uint x, uint y, uint k) returns (uint) with very big numbers of type Uint256 like in solidity and this function is very useful in cryptography

Thanks

Anas2001 avatar Aug 16 '21 20:08 Anas2001

There could be another related primitive that we could add:

addmod(uint x, uint y, uint k) returns (uint): compute (x + y) % k where the addition is performed with arbitrary precision.

AmritKumar avatar Aug 16 '21 20:08 AmritKumar