From 328063d07efa95205f608710f17d16ad74985ce5 Mon Sep 17 00:00:00 2001 From: Maksym Date: Sat, 8 Feb 2025 19:29:43 +0200 Subject: [PATCH 01/44] "Remove unused projects, tests, and examples Deleted obsolete and unused projects, test files, and examples, including encryption, compression, and ETAMP-related components. These files were no longer relevant to the codebase and simplified project structure and maintenance." --- .idea/.idea.ETAMP/.idea/workspace.xml | 257 +++++++----------- .../ETAMP.Compress.Benchmark/CompressBench.cs | 42 +++ .../ETAMP.Compress.Benchmark.csproj} | 7 +- Benchmark/ETAMP.Compress.Benchmark/Program.cs | 11 + .../ETAMP.Create.Benchmark/ETAMPBenchmark.cs | 95 ------- Benchmark/ETAMP.Create.Benchmark/Program.cs | 15 - .../ETAMP.Sign.Benchmark.csproj | 21 -- .../ETAMPSignBenchmark.cs | 106 -------- Benchmark/ETAMP.Sign.Benchmark/Program.cs | 15 - ETAMP.sln | 82 +----- ETAMP.sln.DotSettings.user | 3 +- .../ETAMP.CreateETAMP.Console/CreateETAMP.cs | 51 ---- .../ETAMP.CreateETAMP.Console.csproj | 20 -- .../Models/TokenModel.cs | 16 -- .../CreateSignETAMP.cs | 42 --- .../ETAMP.SignETAMP.Console.csproj | 15 - .../ETAMP.ValidateETAMP.Console.csproj | 15 - .../ValidateETAMP.cs | 36 --- .../Codec/DeflateCompressionService.cs | 112 ++++---- .../Codec/GZipCompressionService.cs | 108 ++++---- .../ETAMP.Compression/CompressionManager.cs | 60 ++++ .../Factory/CompressionServiceFactory.cs | 16 +- .../Factory/ICompressionServiceFactory.cs | 6 +- .../Interfaces/ICompressionManager.cs | 12 + .../Interfaces/ICompressionService.cs | 8 +- Source/ETAMP.Core/ETAMP.Core.csproj | 1 + Source/ETAMP.Core/ETAMPProtocol.cs | 6 +- .../Extensions/ETAMPModelBuilderExtension.cs | 43 +++ .../Extensions/ETAMPModelExtensions.cs | 35 +++ .../ETAMP.Core/Extensions/TokenExtensions.cs | 75 +++++ .../ETAMP.Core/Factories/ETAMPModelFactory.cs | 29 ++ Source/ETAMP.Core/Interfaces/IETAMPBase.cs | 6 +- Source/ETAMP.Core/Interfaces/IInitialize.cs | 6 +- .../ETAMP.Core/Models/ECDKeyModelProvider.cs | 6 +- Source/ETAMP.Core/Models/ETAMPModel.cs | 21 +- Source/ETAMP.Core/Models/ETAMPModelBuilder.cs | 20 +- Source/ETAMP.Core/Models/Token.cs | 6 +- Source/ETAMP.Core/Utils/Base64UrlEncoder.cs | 13 +- Source/ETAMP.Core/Utils/VersionInfo.cs | 6 +- .../ETAMP.Encryption/AESEncryptionService.cs | 164 ++++++----- .../ECDsaManager/ECDSAStore.cs | 10 +- .../ECIESEncryptionService.cs | 108 +++----- .../Interfaces/ECDSAManager/IECDSAStore.cs | 6 +- .../Interfaces/IECIESEncryptionService.cs | 58 +--- .../Interfaces/IEncryptionService.cs | 22 +- .../ETAMP.Extension.ServiceCollection.csproj | 1 + .../ETAMPServiceCollectionExtensions.cs | 7 +- .../ETAMP.Extension/Builder/ETAMPBuilder.cs | 160 ----------- .../Builder/ETAMPEncryption.cs | 68 ----- Source/ETAMP.Extension/Builder/ETAMPSign.cs | 27 -- Source/ETAMP.Extension/ETAMP.Extension.csproj | 50 ---- .../ETAMP.Validation/ETAMP.Validation.csproj | 11 +- Source/ETAMP.Validation/ETAMPValidator.cs | 6 +- .../Interfaces/IETAMPValidator.cs | 6 +- .../Interfaces/ISignatureValidator.cs | 6 +- .../Interfaces/IStructureValidator.cs | 16 +- .../Interfaces/ITokenValidator.cs | 6 +- Source/ETAMP.Validation/SignatureValidator.cs | 8 +- Source/ETAMP.Validation/StructureValidator.cs | 29 +- Source/ETAMP.Validation/TokenValidator.cs | 9 +- .../ETAMP.Wrapper/Interfaces/ISignWrapper.cs | 6 +- .../Interfaces/IVerifyWrapper.cs | 6 +- Source/ETAMP.Wrapper/SignWrapper.cs | 8 +- Source/ETAMP.Wrapper/VerifyWrapper.cs | 28 +- .../Codec/FaultyStream.cs | 50 ---- .../Codec/GZipCompressionServiceTest.cs | 187 ------------- .../ETAMP.Compression.Tests.csproj | 37 --- .../Factory/CompressionServiceFactoryTests.cs | 79 ------ .../ETAMP.Core.Tests/ETAMP.Core.Tests.csproj | 32 --- .../Utils/Base64UrlEncoderTest.cs | 176 ------------ .../AESEncryptionServiceTests.cs | 174 ------------ .../ECIESEncryptionServiceTests.cs | 107 -------- .../ETAMP.Encryption.Tests.csproj | 26 -- .../Builder/ETAMPBuilderTests.cs | 13 - .../ETAMP.Extension.Tests.csproj | 26 -- .../ETAMP.Validation.Tests.csproj | 33 --- .../ETAMPValidatorTests.cs | 169 ------------ .../LoggerExtensions.cs | 22 -- 78 files changed, 737 insertions(+), 2664 deletions(-) create mode 100644 Benchmark/ETAMP.Compress.Benchmark/CompressBench.cs rename Benchmark/{ETAMP.Create.Benchmark/ETAMP.Create.Benchmark.csproj => ETAMP.Compress.Benchmark/ETAMP.Compress.Benchmark.csproj} (71%) create mode 100644 Benchmark/ETAMP.Compress.Benchmark/Program.cs delete mode 100644 Benchmark/ETAMP.Create.Benchmark/ETAMPBenchmark.cs delete mode 100644 Benchmark/ETAMP.Create.Benchmark/Program.cs delete mode 100644 Benchmark/ETAMP.Sign.Benchmark/ETAMP.Sign.Benchmark.csproj delete mode 100644 Benchmark/ETAMP.Sign.Benchmark/ETAMPSignBenchmark.cs delete mode 100644 Benchmark/ETAMP.Sign.Benchmark/Program.cs delete mode 100644 Examples/ETAMP.CreateETAMP.Console/CreateETAMP.cs delete mode 100644 Examples/ETAMP.CreateETAMP.Console/ETAMP.CreateETAMP.Console.csproj delete mode 100644 Examples/ETAMP.CreateETAMP.Console/Models/TokenModel.cs delete mode 100644 Examples/ETAMP.SignETAMP.Console/CreateSignETAMP.cs delete mode 100644 Examples/ETAMP.SignETAMP.Console/ETAMP.SignETAMP.Console.csproj delete mode 100644 Examples/ETAMP.ValidateETAMP.Console/ETAMP.ValidateETAMP.Console.csproj delete mode 100644 Examples/ETAMP.ValidateETAMP.Console/ValidateETAMP.cs create mode 100644 Source/ETAMP.Compression/CompressionManager.cs create mode 100644 Source/ETAMP.Compression/Interfaces/ICompressionManager.cs create mode 100644 Source/ETAMP.Core/Extensions/ETAMPModelBuilderExtension.cs create mode 100644 Source/ETAMP.Core/Extensions/ETAMPModelExtensions.cs create mode 100644 Source/ETAMP.Core/Extensions/TokenExtensions.cs create mode 100644 Source/ETAMP.Core/Factories/ETAMPModelFactory.cs delete mode 100644 Source/ETAMP.Extension/Builder/ETAMPBuilder.cs delete mode 100644 Source/ETAMP.Extension/Builder/ETAMPEncryption.cs delete mode 100644 Source/ETAMP.Extension/Builder/ETAMPSign.cs delete mode 100644 Source/ETAMP.Extension/ETAMP.Extension.csproj delete mode 100644 Tests/ETAMP.Compression.Tests/Codec/FaultyStream.cs delete mode 100644 Tests/ETAMP.Compression.Tests/Codec/GZipCompressionServiceTest.cs delete mode 100644 Tests/ETAMP.Compression.Tests/ETAMP.Compression.Tests.csproj delete mode 100644 Tests/ETAMP.Compression.Tests/Factory/CompressionServiceFactoryTests.cs delete mode 100644 Tests/ETAMP.Core.Tests/ETAMP.Core.Tests.csproj delete mode 100644 Tests/ETAMP.Core.Tests/Utils/Base64UrlEncoderTest.cs delete mode 100644 Tests/ETAMP.Encryption.Tests/AESEncryptionServiceTests.cs delete mode 100644 Tests/ETAMP.Encryption.Tests/ECIESEncryptionServiceTests.cs delete mode 100644 Tests/ETAMP.Encryption.Tests/ETAMP.Encryption.Tests.csproj delete mode 100644 Tests/ETAMP.Extension.Tests/Builder/ETAMPBuilderTests.cs delete mode 100644 Tests/ETAMP.Extension.Tests/ETAMP.Extension.Tests.csproj delete mode 100644 Tests/ETAMP.Validation.Tests/ETAMP.Validation.Tests.csproj delete mode 100644 Tests/ETAMP.Validation.Tests/ETAMPValidatorTests.cs delete mode 100644 Tests/ETAMP.Validation.Tests/LoggerExtensions.cs diff --git a/.idea/.idea.ETAMP/.idea/workspace.xml b/.idea/.idea.ETAMP/.idea/workspace.xml index 0016756..befcfa3 100644 --- a/.idea/.idea.ETAMP/.idea/workspace.xml +++ b/.idea/.idea.ETAMP/.idea/workspace.xml @@ -2,6 +2,7 @@ Benchmark/CreateETAMP/CreateETAMP.csproj + Benchmark/ETAMP.Compress.Benchmark/ETAMP.Compress.Benchmark.csproj Benchmark/ETAMP.Create.Benchmark/ETAMP.Create.Benchmark.csproj Benchmark/ETAMP.Sign.Benchmark/ETAMP.Sign.Benchmark.csproj ETAMP.Console.CreateSignETAMP/ETAMP.Console.CreateSignETAMP.csproj @@ -16,28 +17,76 @@ - + - - - + + + + + + + - - - + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { "lastFilter": { @@ -69,31 +117,9 @@ } } - - - - - - - - - - - - - - - - - - - - - - - - - + + + {} { @@ -114,53 +140,54 @@ - { + "keyToString": { + ".NET Project.ETAMP.Compress.Benchmark.executor": "Debug", + ".NET Project.ETAMP.Console.CreateETAMP.executor": "Run", + ".NET Project.ETAMP.Console.CreateETAMPService.executor": "Debug", + ".NET Project.ETAMP.Console.CreateSignETAMP.executor": "Run", + ".NET Project.ETAMP.Console.CreateSignETAMPService.executor": "Debug", + ".NET Project.ETAMP.Console.ValidateETAMP.executor": "Run", + ".NET Project.ETAMP.Console.ValidateETAMPService.executor": "Debug", + ".NET Project.ETAMP.Create.Benchmark.executor": "Run", + ".NET Project.ETAMP.Sign.Benchmark.executor": "Run", + "5c53a9ec-5001-4a38-9545-ad7f91d669ad.executor": "Debug", + "RunOnceActivity.ShowReadmeOnStart": "true", + "RunOnceActivity.git.unshallow": "true", + "c762ceee-8ff5-402e-b6d9-fbb316d19fb8.executor": "Debug", + "d8965117-eb1a-42c8-b314-86c3ae8583f1.executor": "Debug", + "git-widget-placeholder": "master", + "ignore.virus.scanning.warn.message": "true", + "node.js.detected.package.eslint": "true", + "node.js.detected.package.tslint": "true", + "node.js.selected.package.eslint": "(autodetect)", + "node.js.selected.package.tslint": "(autodetect)", + "nodejs_package_manager_path": "npm", + "settings.editor.selected.configurable": "ml.llm.LLMConfigurable", + "settings.editor.splitter.proportion": "0.3058104", + "vue.rearranger.settings.migration": "true" }, - "keyToStringList": { - "com.intellij.ide.scratch.ScratchImplUtil$2/New Scratch File": [ - "PLAIN_TEXT" + "keyToStringList": { + "com.intellij.ide.scratch.ScratchImplUtil$2/New Scratch File": [ + "PLAIN_TEXT" ] } -}]]> - - - + + + - - - - - - - - - - - - - - - @@ -341,6 +288,7 @@ +