diff --git a/poseidon2/types.nim b/poseidon2/types.nim index 5cc931c..2c9fa52 100644 --- a/poseidon2/types.nim +++ b/poseidon2/types.nim @@ -38,3 +38,6 @@ func arrayFromHex*[N]( for i in low(inp)..high(inp): tmp[i] = hexToF(inp[i], endian) return tmp + +func `==`*(a, b: F): bool = + bool(arithmetic.`==`(a, b))