mirror of
https://github.com/codex-storage/nim-poseidon2.git
synced 2025-02-23 08:18:05 +00:00
Adds equality compare for field elements
This commit is contained in:
parent
3b403b0752
commit
eef2603c11
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user