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