Skip to content

fix: rename helpers #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jan 28, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/helpers/crypto.cpp
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
#include "bcl/Sha256.hpp"
#include "bcl/Uint256.hpp"
#include "helpers/encoding/der.h"
#include "helpers/helpers.h"
#include "helpers/crypto_helpers.h"
#include "rfc6979/rfc6979.h"
#include "uECC.h"

4 changes: 2 additions & 2 deletions src/helpers/helpers.h → src/helpers/crypto_helpers.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


#ifndef HELPERS_H
#define HELPERS_H
#ifndef CRYPTO_HELPERS_H
#define CRYPTO_HELPERS_H

#include <cstring>
#include <numeric>
2 changes: 1 addition & 1 deletion src/include/cpp-crypto/identities/address.h
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@

#include <string>
#include "helpers/encoding/hex.h"
#include "helpers/helpers.h"
#include "helpers/crypto_helpers.h"
#include "identities/privatekey.h"
#include "identities/publickey.h"

2 changes: 1 addition & 1 deletion src/include/cpp-crypto/identities/privatekey.h
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@
#include "bcl/Sha256.hpp"
#include "bcl/Sha256Hash.hpp"
#include "helpers/encoding/hex.h"
#include "helpers/helpers.h"
#include "helpers/crypto_helpers.h"

namespace Ark {
namespace Crypto {
2 changes: 1 addition & 1 deletion src/include/cpp-crypto/identities/publickey.h
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@

#include <string>
#include "helpers/encoding/hex.h"
#include "helpers/helpers.h"
#include "helpers/crypto_helpers.h"
#include "identities/privatekey.h"

namespace Ark {
2 changes: 1 addition & 1 deletion src/include/cpp-crypto/transactions/deserializer.h
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@
#define DESERIALIZER_H

#include "helpers/encoding/hex.h"
#include "helpers/helpers.h"
#include "helpers/crypto_helpers.h"
#include "identities/privatekey.h"
#include "identities/publickey.h"
#include "transactions/transaction.h"
2 changes: 1 addition & 1 deletion src/include/cpp-crypto/transactions/transaction.h
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@

#include <string>
#include "helpers/encoding/hex.h"
#include "helpers/helpers.h"
#include "helpers/crypto_helpers.h"
#include "identities/privatekey.h"
#include "identities/publickey.h"

2 changes: 1 addition & 1 deletion src/transactions/builder.cpp
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
#include "configuration/fee.h"
#include "configuration/network.h"
#include "enums/types.h"
#include "helpers/helpers.h"
#include "helpers/crypto_helpers.h"
#include "identities/address.h"
#include "utils/slot.h"

2 changes: 1 addition & 1 deletion src/transactions/serializer.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "transactions/serializer.h"
#include "configuration/network.h"
#include "enums/types.h"
#include "helpers/helpers.h"
#include "helpers/crypto_helpers.h"
#include "identities/address.h"

namespace Ark {
2 changes: 1 addition & 1 deletion src/transactions/transaction.cpp
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
#include "bcl/Sha256.hpp"
#include "enums/types.h"
#include "helpers/crypto.h"
#include "helpers/helpers.h"
#include "helpers/crypto_helpers.h"
#include "identities/address.h"
#include "identities/privatekey.h"

2 changes: 1 addition & 1 deletion src/utils/message.h
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@

#include "helpers/crypto.h"
#include "helpers/encoding/hex.h"
#include "helpers/helpers.h"
#include "helpers/crypto_helpers.h"

#include "identities/privatekey.h"
#include "identities/publickey.h"
2 changes: 1 addition & 1 deletion src/utils/slot.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "helpers/helpers.h" // include helpers first to pick up patched STL std::to_string functions for IoT
#include "helpers/crypto_helpers.h" // include helpers first to pick up patched STL std::to_string functions for IoT

#include "utils/slot.h"

2 changes: 1 addition & 1 deletion test/utils/slot.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "gtest/gtest.h"
#include "gtest/gtest.h"

#include "helpers/helpers.h"
#include "helpers/crypto_helpers.h"
#include "utils/slot.h"

TEST(utilities, slots_time) {