From 5e6d740ee7bfcf94af4c57aeeb563288470820e2 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Thu, 28 Feb 2019 18:17:24 +0200 Subject: [PATCH] Cleanup. --- libp2p/crypto/ed25519/ed25519.nim | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libp2p/crypto/ed25519/ed25519.nim b/libp2p/crypto/ed25519/ed25519.nim index d1a756a0c..7d842c6b7 100644 --- a/libp2p/crypto/ed25519/ed25519.nim +++ b/libp2p/crypto/ed25519/ed25519.nim @@ -14,7 +14,7 @@ import constants import nimcrypto/[hash, sha2, sysrand, utils] # This workaround needed because of some bugs in Nim Static[T]. -export hash, sha2 +export sha2 proc `-`(x: uint32): uint32 {.inline.} = result = (0xFFFF_FFFF'u32 - x) + 1'u32 @@ -1900,6 +1900,3 @@ proc verify*[T: byte|char](sig: EdSignature, message: openarray[T], geToBytes(rcheck, r) result = (verify32(sig.data.toOpenArray(0, 31), rcheck) == 0) - -when isMainModule: - echo toHex(CurveOrder)