mirror of
https://github.com/arnaucube/go-iden3-crypto.git
synced 2026-02-07 19:46:41 +01:00
add the unit-test
This commit is contained in:
@@ -559,6 +559,12 @@ func (z Element) ToBigIntRegular(res *big.Int) *big.Int {
|
||||
return z.ToBigInt(res)
|
||||
}
|
||||
|
||||
// ToUint64Regular returns z as a uint64 in regular form
|
||||
func (z Element) ToUint64Regular() uint64 {
|
||||
z.FromMont()
|
||||
return z[0]
|
||||
}
|
||||
|
||||
// Bytes returns the regular (non montgomery) value
|
||||
// of z as a big-endian byte array.
|
||||
func (z *Element) Bytes() (res [Limbs * 8]byte) {
|
||||
|
||||
Reference in New Issue
Block a user