Remove trailing whitespace

This commit is contained in:
Mark Spanbroek 2023-10-24 13:55:04 +02:00 committed by markspanbroek
parent 5220f372c1
commit 0cdbed1dc2
2 changed files with 7 additions and 7 deletions

View File

@ -36,7 +36,7 @@ proc internal_round(j: int; x, y, z: var F) =
sbox(x)
var s = x ; s += y ; s += z
double(z)
x += s
x += s
y += s
z += s
@ -73,7 +73,7 @@ proc compress*(a, b : F) : F =
perm_inplace(x, y, z)
return x
proc merkle_root*(xs: openArray[F]) : F =
proc merkle_root*(xs: openArray[F]) : F =
let a = low(xs)
let b = high(xs)
let m = b-a+1
@ -85,7 +85,7 @@ proc merkle_root*(xs: openArray[F]) : F =
let halfn : int = m div 2
let n : int = 2*halfn
let is_odd : bool = (n != m)
var ys : seq[F] = newSeq[F](halfn)
if not is_odd:
@ -101,6 +101,6 @@ proc merkle_root*(xs: openArray[F]) : F =
return merkle_root(ys)
#-------------------------------------------------------------------------------

View File

@ -17,17 +17,17 @@ func getZero*() : F =
setZero(z)
return z
func toF*(a: int) : F =
func toF*(a: int) : F =
var y : F
fromInt(y, a);
return y
func hexToF*(s : string) : F =
func hexToF*(s : string) : F =
var y : F
fromHex(y, s)
return y
func arrayFromHex*[N]( inp: array[N, string]) : array[N, F] =
func arrayFromHex*[N]( inp: array[N, string]) : array[N, F] =
var tmp : array[N, F]
for i in low(inp)..high(inp):
tmp[i] = hexToF( inp[i] )