Module arithmetic_ops

Module arithmetic_ops 

Source
Expand description

This code is borrowed from Renegade Finance’s ark_mpc implementation. https://github.com/renegade-fi/ark-mpc

Macros§

impl_borrow_variants
Given an implementation of an arithmetic trait on two borrowed references, this macro implements the same arithmetic on the owned and partially-owned variants
impl_commutative
A macro to implement commutative variants of a binary operation