mirror of
https://github.com/logos-storage/nim-poseidon2.git
synced 2026-01-02 13:43:08 +00:00
style check complains about style in codex
This commit is contained in:
parent
9be7b0c134
commit
aceccb2367
@ -6,5 +6,5 @@ func compress*(a, b : F, key = zero) : F =
|
||||
var x = a
|
||||
var y = b
|
||||
var z = key
|
||||
permInplace(x, y, z)
|
||||
permInPlace(x, y, z)
|
||||
return x
|
||||
|
||||
@ -2,7 +2,7 @@ import ./types
|
||||
import ./roundfun
|
||||
|
||||
# the Poseidon2 permutation (mutable, in-place version)
|
||||
proc permInplace*(x, y, z : var F) =
|
||||
proc permInPlace*(x, y, z : var F) =
|
||||
linearLayer(x, y, z)
|
||||
for j in 0..3:
|
||||
externalRound(j, x, y, z)
|
||||
@ -14,5 +14,5 @@ proc permInplace*(x, y, z : var F) =
|
||||
# the Poseidon2 permutation
|
||||
func perm*(xyz: S) : S =
|
||||
var (x,y,z) = xyz
|
||||
permInplace(x, y, z)
|
||||
permInPlace(x, y, z)
|
||||
return (x,y,z)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user