diff --git a/examples/ESP32TestNWC/ESP32TestNWC.cpp b/examples/ESP32TestNWC/ESP32TestNWC.cpp index 6145f46..93766bc 100644 --- a/examples/ESP32TestNWC/ESP32TestNWC.cpp +++ b/examples/ESP32TestNWC/ESP32TestNWC.cpp @@ -3,7 +3,7 @@ #include -#include "Transport.h" +#include "NostrTransport.h" #include "services/NWC.h" // CONFIGURATION diff --git a/examples/ESP32TestNip01/ESP32TestNip01.cpp b/examples/ESP32TestNip01/ESP32TestNip01.cpp index c632aa0..d8948ef 100644 --- a/examples/ESP32TestNip01/ESP32TestNip01.cpp +++ b/examples/ESP32TestNip01/ESP32TestNip01.cpp @@ -5,8 +5,8 @@ #include "ArduinoJson.h" #include "NostrEvent.h" #include "NostrPool.h" -#include "Transport.h" -#include "Utils.h" +#include "NostrTransport.h" +#include "NostrUtils.h" #include "time.h" #define WIFI_SSID "Wokwi-GUEST" diff --git a/examples/ESP32TestNip01Filter/ESP32TestNip01Filter.cpp b/examples/ESP32TestNip01Filter/ESP32TestNip01Filter.cpp index 20f4338..8902837 100644 --- a/examples/ESP32TestNip01Filter/ESP32TestNip01Filter.cpp +++ b/examples/ESP32TestNip01Filter/ESP32TestNip01Filter.cpp @@ -5,8 +5,8 @@ #include "ArduinoJson.h" #include "NostrEvent.h" #include "NostrPool.h" -#include "Transport.h" -#include "Utils.h" +#include "NostrTransport.h" +#include "NostrUtils.h" #include "time.h" #define WIFI_SSID "Wokwi-GUEST" diff --git a/examples/ESP32TestNip04/ESP32TestNip04.cpp b/examples/ESP32TestNip04/ESP32TestNip04.cpp index 97ac8b4..ac1ddba 100644 --- a/examples/ESP32TestNip04/ESP32TestNip04.cpp +++ b/examples/ESP32TestNip04/ESP32TestNip04.cpp @@ -3,7 +3,7 @@ #include #include "Nip04.h" -#include "Transport.h" +#include "NostrTransport.h" #include "services/NWC.h" #define WIFI_SSID "Wokwi-GUEST" diff --git a/examples/ESP8266TestNip01/ESP8266TestNip01.cpp b/examples/ESP8266TestNip01/ESP8266TestNip01.cpp index b383b1d..eb8ab8c 100644 --- a/examples/ESP8266TestNip01/ESP8266TestNip01.cpp +++ b/examples/ESP8266TestNip01/ESP8266TestNip01.cpp @@ -8,8 +8,8 @@ #include "ArduinoJson.h" #include "NostrEvent.h" #include "NostrPool.h" -#include "Transport.h" -#include "Utils.h" +#include "NostrTransport.h" +#include "NostrUtils.h" #include "time.h" #define WIFI_SSID "Wokwi-GUEST" diff --git a/examples/PICOWTestNip01/PICOWTestNip01.cpp b/examples/PICOWTestNip01/PICOWTestNip01.cpp index 2a80f93..56453f2 100644 --- a/examples/PICOWTestNip01/PICOWTestNip01.cpp +++ b/examples/PICOWTestNip01/PICOWTestNip01.cpp @@ -4,8 +4,8 @@ #include "ArduinoJson.h" #include "NostrEvent.h" #include "NostrPool.h" -#include "Transport.h" -#include "Utils.h" +#include "NostrTransport.h" +#include "NostrUtils.h" #include "time.h" #define WIFI_SSID "Wokwi-GUEST" diff --git a/examples/UNOR4TestNip01/UNOR4TestNip01.cpp b/examples/UNOR4TestNip01/UNOR4TestNip01.cpp index f7da9bc..82229ba 100644 --- a/examples/UNOR4TestNip01/UNOR4TestNip01.cpp +++ b/examples/UNOR4TestNip01/UNOR4TestNip01.cpp @@ -6,8 +6,8 @@ #include "ArduinoJson.h" #include "NostrEvent.h" #include "NostrPool.h" -#include "Transport.h" -#include "Utils.h" +#include "NostrTransport.h" +#include "NostrUtils.h" #include "time.h" #define WIFI_SSID "Wokwi-GUEST" diff --git a/src/Nip04.h b/src/Nip04.h index 4567bf5..9a96bb7 100644 --- a/src/Nip04.h +++ b/src/Nip04.h @@ -1,10 +1,10 @@ #ifndef _NIP04_H #define _NIP04_H +#include "NostrString.h" +#include "NostrUtils.h" #include -#include +#include #include -#include "NostrString.h" -#include "Utils.h" namespace nostr { class Nip04 { public: diff --git a/src/Nip47.h b/src/Nip47.h index 3de831b..ac32401 100644 --- a/src/Nip47.h +++ b/src/Nip47.h @@ -5,11 +5,11 @@ #include "Nip04.h" #include "NostrEvent.h" #include "NostrString.h" -#include "Utils.h" +#include "NostrUtils.h" #include #include namespace nostr { - + typedef struct s_Invoice { NostrString invoice; unsigned long amount; diff --git a/src/aes.cpp b/src/NostrAES.cpp similarity index 99% rename from src/aes.cpp rename to src/NostrAES.cpp index 4481f7b..9db555d 100644 --- a/src/aes.cpp +++ b/src/NostrAES.cpp @@ -36,7 +36,7 @@ NOTE: String length must be evenly divisible by 16byte (str_len % 16 == 0) /* Includes: */ /*****************************************************************************/ #include // CBC mode, for memset -#include "aes.h" +#include "NostrAES.h" /*****************************************************************************/ /* Defines: */ diff --git a/src/aes.h b/src/NostrAES.h similarity index 100% rename from src/aes.h rename to src/NostrAES.h diff --git a/src/aes.hpp b/src/NostrAES.hpp similarity index 88% rename from src/aes.hpp rename to src/NostrAES.hpp index ade1642..64f77d1 100644 --- a/src/aes.hpp +++ b/src/NostrAES.hpp @@ -6,7 +6,7 @@ #endif //__cplusplus extern "C" { -#include "aes.h" +#include "NostrAES.h" } #endif //_AES_HPP_ diff --git a/src/Common.h b/src/NostrCommon.h similarity index 100% rename from src/Common.h rename to src/NostrCommon.h diff --git a/src/NostrEvent.h b/src/NostrEvent.h index 957ca19..83c204e 100644 --- a/src/NostrEvent.h +++ b/src/NostrEvent.h @@ -5,8 +5,8 @@ #include "ArduinoJson.h" #include "NostrString.h" -#include "Utils.h" -#include +#include "NostrUtils.h" +#include #include #include #include diff --git a/src/NostrPool.h b/src/NostrPool.h index ff29af4..b17133e 100644 --- a/src/NostrPool.h +++ b/src/NostrPool.h @@ -1,7 +1,7 @@ #ifndef _NOSTR_POOL_H #define _NOSTR_POOL_H #include -#include +#include #include #include #include diff --git a/src/NostrString.h b/src/NostrString.h index 68add49..c6b550c 100644 --- a/src/NostrString.h +++ b/src/NostrString.h @@ -11,7 +11,7 @@ #endif -#include "Utils.h" +#include "NostrUtils.h" #include #ifdef ARDUINO diff --git a/src/Transport.h b/src/NostrTransport.h similarity index 100% rename from src/Transport.h rename to src/NostrTransport.h diff --git a/src/Utils.cpp b/src/NostrUtils.cpp similarity index 99% rename from src/Utils.cpp rename to src/NostrUtils.cpp index 3854145..ddb1789 100644 --- a/src/Utils.cpp +++ b/src/NostrUtils.cpp @@ -1,4 +1,4 @@ -#include "Utils.h" +#include "NostrUtils.h" #include "uBitcoin/src/Bitcoin.h" #include "uBitcoin/src/Hash.h" diff --git a/src/Utils.h b/src/NostrUtils.h similarity index 100% rename from src/Utils.h rename to src/NostrUtils.h diff --git a/src/esp32/ESP32Platform.h b/src/esp32/ESP32Platform.h index 6554b27..836fb10 100644 --- a/src/esp32/ESP32Platform.h +++ b/src/esp32/ESP32Platform.h @@ -1,11 +1,11 @@ #ifndef _NOSTR_ESP32_PLATFORM_H #define _NOSTR_ESP32_PLATFORM_H 1 -#include "Common.h" +#include "NostrCommon.h" #ifdef _ESP32_BOARD_ #include "ESP32Transport.h" #include "NostrString.h" -#include "Utils.h" +#include "NostrUtils.h" #include "WiFi.h" #include "bootloader_random.h" #include "esp_random.h" diff --git a/src/esp32/ESP32Transport.cpp b/src/esp32/ESP32Transport.cpp index a2ceb99..694bf88 100644 --- a/src/esp32/ESP32Transport.cpp +++ b/src/esp32/ESP32Transport.cpp @@ -1,5 +1,5 @@ #include "ESP32Transport.h" -#include "Common.h" +#include "NostrCommon.h" #if defined(_ESP32_BOARD_) || defined(_ESP8266_BOARD_) using namespace nostr; diff --git a/src/esp32/ESP32Transport.h b/src/esp32/ESP32Transport.h index 9ef6539..9d129fa 100644 --- a/src/esp32/ESP32Transport.h +++ b/src/esp32/ESP32Transport.h @@ -1,13 +1,13 @@ #ifndef _NOSTR_ESP32_TRANSPORT_H #define _NOSTR_ESP32_TRANSPORT_H 1 -#include "Common.h" +#include "NostrCommon.h" #if defined(_ESP32_BOARD_) || defined(_ESP8266_BOARD_) #include "ArduinoJson.h" #include "NostrString.h" -#include "Transport.h" -#include "Utils.h" +#include "NostrTransport.h" +#include "NostrUtils.h" #ifdef _ESP8266_BOARD_ #include #include diff --git a/src/esp8266/ESP8266Platform.h b/src/esp8266/ESP8266Platform.h index ab0cf57..15b6d6d 100644 --- a/src/esp8266/ESP8266Platform.h +++ b/src/esp8266/ESP8266Platform.h @@ -1,13 +1,13 @@ #ifndef _NOSTR_ESP8266_PLATFORM_H #define _NOSTR_ESP8266_PLATFORM_H 1 -#include "Common.h" +#include "NostrCommon.h" #ifdef _ESP8266_BOARD_ #include "ESP8266Transport.h" #include "NostrString.h" -#include "Utils.h" +#include "NostrUtils.h" #include "time.h" #include #include diff --git a/src/esp8266/ESP8266Transport.h b/src/esp8266/ESP8266Transport.h index 0d5bfb9..485ee5f 100644 --- a/src/esp8266/ESP8266Transport.h +++ b/src/esp8266/ESP8266Transport.h @@ -1,6 +1,6 @@ #ifndef _NOSTR_ESP8266_TRANSPORT_H #define _NOSTR_ESP8266_TRANSPORT_H 1 -#include "Common.h" +#include "NostrCommon.h" #ifdef _ESP8266_BOARD_ diff --git a/src/picow/PICOWPlatform.h b/src/picow/PICOWPlatform.h index b897ff7..00764ba 100644 --- a/src/picow/PICOWPlatform.h +++ b/src/picow/PICOWPlatform.h @@ -1,5 +1,5 @@ -#include "Common.h" +#include "NostrCommon.h" #ifndef _NOSTR_PICOW_PLATFORM_H #define _NOSTR_PICOW_PLATFORM_H #ifdef _PICOW_BOARD_ @@ -8,7 +8,7 @@ #include #include "Arduino.h" #include "NostrString.h" -#include "Utils.h" +#include "NostrUtils.h" #include "picow/PICOWTransport.h" #include namespace nostr { diff --git a/src/picow/PICOWTransport.h b/src/picow/PICOWTransport.h index e07e718..4c837de 100644 --- a/src/picow/PICOWTransport.h +++ b/src/picow/PICOWTransport.h @@ -1,6 +1,6 @@ #ifndef _NOSTR_PICOW_TRANSPORT_H #define _NOSTR_PICOW_TRANSPORT_H -#include "Common.h" +#include "NostrCommon.h" #ifdef _PICOW_BOARD_ @@ -10,8 +10,8 @@ #include "HTTPClient.h" #include "IPAddress.h" #include "NostrString.h" -#include "Transport.h" -#include "Utils.h" +#include "NostrTransport.h" +#include "NostrUtils.h" #include #include namespace nostr { diff --git a/src/services/NWC.h b/src/services/NWC.h index 1b69d8e..db90a8d 100644 --- a/src/services/NWC.h +++ b/src/services/NWC.h @@ -8,8 +8,8 @@ #include "NostrEvent.h" #include "NostrPool.h" #include "NostrString.h" -#include "Transport.h" -#include "Utils.h" +#include "NostrTransport.h" +#include "NostrUtils.h" namespace nostr { class NWCResponseCallbackBase { diff --git a/src/unor4/UNOR4Platform.h b/src/unor4/UNOR4Platform.h index ea59a91..fe398c5 100644 --- a/src/unor4/UNOR4Platform.h +++ b/src/unor4/UNOR4Platform.h @@ -1,5 +1,5 @@ -#include "Common.h" +#include "NostrCommon.h" #ifndef _NOSTR_UNOR4_PLATFORM_H #define _NOSTR_UNOR4_PLATFORM_H @@ -8,7 +8,7 @@ #include "Arduino.h" #include "NostrString.h" #include "RTC.h" -#include "Utils.h" +#include "NostrUtils.h" #include "unor4/UNOR4Transport.h" #include diff --git a/src/unor4/UNOR4Transport.h b/src/unor4/UNOR4Transport.h index 7f41266..0c6c81e 100644 --- a/src/unor4/UNOR4Transport.h +++ b/src/unor4/UNOR4Transport.h @@ -1,4 +1,4 @@ -#include "Common.h" +#include "NostrCommon.h" #ifndef _NOSTR_UNOR4_TRANSPORT_H #define _NOSTR_UNOR4_TRANSPORT_H #ifdef _UNOR4_BOARD_ @@ -8,8 +8,8 @@ #include "ArduinoJson.h" #include "IPAddress.h" #include "NostrString.h" -#include "Transport.h" -#include "Utils.h" +#include "NostrTransport.h" +#include "NostrUtils.h" #include "WiFiS3.h" #include "WiFiSSLClient.h" #include