This commit is contained in:
cheatfate 2019-02-28 18:17:24 +02:00
parent 2a2e378ced
commit 5e6d740ee7
No known key found for this signature in database
GPG Key ID: 46ADD633A7201F95
1 changed files with 1 additions and 4 deletions

View File

@ -14,7 +14,7 @@ import constants
import nimcrypto/[hash, sha2, sysrand, utils] import nimcrypto/[hash, sha2, sysrand, utils]
# This workaround needed because of some bugs in Nim Static[T]. # This workaround needed because of some bugs in Nim Static[T].
export hash, sha2 export sha2
proc `-`(x: uint32): uint32 {.inline.} = proc `-`(x: uint32): uint32 {.inline.} =
result = (0xFFFF_FFFF'u32 - x) + 1'u32 result = (0xFFFF_FFFF'u32 - x) + 1'u32
@ -1900,6 +1900,3 @@ proc verify*[T: byte|char](sig: EdSignature, message: openarray[T],
geToBytes(rcheck, r) geToBytes(rcheck, r)
result = (verify32(sig.data.toOpenArray(0, 31), rcheck) == 0) result = (verify32(sig.data.toOpenArray(0, 31), rcheck) == 0)
when isMainModule:
echo toHex(CurveOrder)