From 72264f1d79e9dfff928a5332d41541814fb0e927 Mon Sep 17 00:00:00 2001 From: Shauren Date: Mon, 1 Aug 2022 11:54:51 +0200 Subject: Core/Crypto: Removed unneccessary std::reverse in Ed25519::Sign --- src/common/Cryptography/Ed25519.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/common/Cryptography/Ed25519.cpp') diff --git a/src/common/Cryptography/Ed25519.cpp b/src/common/Cryptography/Ed25519.cpp index bbe053fa3b2..ce706594057 100644 --- a/src/common/Cryptography/Ed25519.cpp +++ b/src/common/Cryptography/Ed25519.cpp @@ -20,15 +20,11 @@ #include "Memory.h" #include #include -#include #include -#include namespace Trinity::Crypto { -Ed25519::Ed25519() -{ -} +Ed25519::Ed25519() = default; Ed25519::Ed25519(Ed25519 const& right) { @@ -133,7 +129,6 @@ bool Ed25519::Sign(uint8 const* message, std::size_t messageLength, std::vector< output.resize(64); int result = ED25519_sign(output.data(), message, messageLength, publicKey, privateKey); - std::reverse(output.begin(), output.end()); return result != 0; } -- cgit v1.2.3