Zero set the Int to the value 0. The modulus must already be initialized.
()
| 167 | |
| 168 | // Zero set the Int to the value 0. The modulus must already be initialized. |
| 169 | func (i *Int) Zero() kyber.Scalar { |
| 170 | i.V.SetInt64(0) |
| 171 | return i |
| 172 | } |
| 173 | |
| 174 | // One sets the Int to the value 1. The modulus must already be initialized. |
| 175 | func (i *Int) One() kyber.Scalar { |