Skip to content

Commit

Permalink
Merge pull request #37 from HenrikWM/f-include-referenced-project
Browse files Browse the repository at this point in the history
Create Core-project as NuGet-package
  • Loading branch information
HenrikWM committed Dec 8, 2020
2 parents 7edc134 + a574856 commit 1875fff
Show file tree
Hide file tree
Showing 34 changed files with 40 additions and 38 deletions.
2 changes: 1 addition & 1 deletion AnonymousTokens.sln
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AnonymousTokens.Server", "src\AnonymousTokens.Server\AnonymousTokens.Server.csproj", "{EF827382-7F6E-4230-A917-9D11415ECAD6}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AnonymousTokens", "src\AnonymousTokens\AnonymousTokens.csproj", "{EAD6EEA6-8866-4D23-BCE0-891AEE53BE98}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AnonymousTokens.Core", "src\AnonymousTokens.Core\AnonymousTokens.Core.csproj", "{EAD6EEA6-8866-4D23-BCE0-891AEE53BE98}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AnonymousTokens.Benchmarks", "test\AnonymousTokens.Benchmarks\AnonymousTokens.Benchmarks.csproj", "{FE1684A8-5257-48B5-A067-836D75831D15}"
EndProject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

<ItemGroup>
<ProjectReference Include="..\..\..\..\src\AnonymousTokens.Client\AnonymousTokens.Client.csproj" />
<ProjectReference Include="..\..\..\..\src\AnonymousTokens\AnonymousTokens.csproj" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion samples/ClientServer/Client/Client.Console/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

using AnonymousTokens.Client.Protocol;
using AnonymousTokens.Services.InMemory;
using AnonymousTokens.Core.Services.InMemory;

using AnonymousTokensConsole.ApiClients.TokenApi;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using AnonymousTokens.Core.Services;
using AnonymousTokens.Server.Protocol;
using AnonymousTokens.Services;

using Microsoft.AspNetCore.Mvc;

Expand All @@ -23,7 +23,7 @@ public class TokenController : ControllerBase
private readonly ITokenVerifier _tokenVerifier;

private readonly X9ECParameters _ecParameters;

public TokenController(
IPrivateKeyStore privateKeyStore,
IPublicKeyStore publicKeyStore,
Expand Down
4 changes: 2 additions & 2 deletions samples/ClientServer/Server/Server.Token.Api/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

using AnonymousTokens.Core.Services;
using AnonymousTokens.Core.Services.InMemory;
using AnonymousTokens.Server.Protocol;
using AnonymousTokens.Services;
using AnonymousTokens.Services.InMemory;

using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
Expand Down
2 changes: 1 addition & 1 deletion src/AnonymousTokens.Client/AnonymousTokens.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\AnonymousTokens\AnonymousTokens.csproj" />
<ProjectReference Include="..\AnonymousTokens.Core\AnonymousTokens.Core.csproj" />
</ItemGroup>
</Project>
2 changes: 2 additions & 0 deletions src/AnonymousTokens.Client/Protocol/Initiator.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

using AnonymousTokens.Core;

using Org.BouncyCastle.Asn1.X9;
using Org.BouncyCastle.Crypto.Parameters;
using Org.BouncyCastle.Math;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

<PropertyGroup>
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
<AssemblyName>AnonymousTokens</AssemblyName>
<RootNamespace>AnonymousTokens</RootNamespace>
<IsPackable>false</IsPackable>
<PackageId>AnonymousTokens</PackageId>
<Product>AnonymousTokens</Product>
<AssemblyName>AnonymousTokens.Core</AssemblyName>
<RootNamespace>AnonymousTokens.Core</RootNamespace>
<PackageId>AnonymousTokens.Core</PackageId>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace AnonymousTokens
namespace AnonymousTokens.Core
{
public class AnonymousTokensException
: Exception
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

using ECPoint = Org.BouncyCastle.Math.EC.ECPoint;

namespace AnonymousTokens
namespace AnonymousTokens.Core
{
public static class CPChallengeGenerator
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using ECCurve = Org.BouncyCastle.Math.EC.ECCurve;
using ECPoint = Org.BouncyCastle.Math.EC.ECPoint;

namespace AnonymousTokens
namespace AnonymousTokens.Core
{
public static class ECCurveHash
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Org.BouncyCastle.Math.EC;
using Org.BouncyCastle.Security;

namespace AnonymousTokens
namespace AnonymousTokens.Core
{
public static class ECCurveRandomNumberGenerator
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Org.BouncyCastle.Math.EC;

namespace AnonymousTokens
namespace AnonymousTokens.Core
{
public static class ECPointVerifier
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using System.Threading.Tasks;

namespace AnonymousTokens.Services
namespace AnonymousTokens.Core.Services
{
public interface IPrivateKeyStore
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using System.Threading.Tasks;

namespace AnonymousTokens.Services
namespace AnonymousTokens.Core.Services
{
public interface IPublicKeyStore
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Threading.Tasks;

namespace AnonymousTokens.Services
namespace AnonymousTokens.Core.Services
{
public interface ISeedStore
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.IO;
using System.Reflection;

namespace AnonymousTokens.Services.InMemory
namespace AnonymousTokens.Core.Services.InMemory
{
public static class EmbeddedPemResource
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace AnonymousTokens.Services.InMemory
namespace AnonymousTokens.Core.Services.InMemory
{
internal static class EmbeddedResourceConstants
{
internal const string ResourceBasePath = "AnonymousTokens.Services.InMemory.";
internal const string ResourceBasePath = "AnonymousTokens.Core.Services.InMemory.";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System.Threading.Tasks;

namespace AnonymousTokens.Services.InMemory
namespace AnonymousTokens.Core.Services.InMemory
{
public class InMemoryPrivateKeyStore : IPrivateKeyStore
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using System.Threading.Tasks;

namespace AnonymousTokens.Services.InMemory
namespace AnonymousTokens.Core.Services.InMemory
{
public class InMemoryPublicKeyStore : IPublicKeyStore
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Collections.Generic;
using System.Threading.Tasks;

namespace AnonymousTokens.Services.InMemory
namespace AnonymousTokens.Core.Services.InMemory
{
public class InMemorySeedStore : ISeedStore
{
Expand Down
6 changes: 1 addition & 5 deletions src/AnonymousTokens.Server/AnonymousTokens.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
<RootNamespace>AnonymousTokens.Server</RootNamespace>
</PropertyGroup>

<ItemGroup>
<Folder Include="Services\" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Portable.BouncyCastle" Version="1.8.8" />
</ItemGroup>
Expand All @@ -20,7 +16,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\AnonymousTokens\AnonymousTokens.csproj" />
<ProjectReference Include="..\AnonymousTokens.Core\AnonymousTokens.Core.csproj" />
</ItemGroup>

</Project>
2 changes: 2 additions & 0 deletions src/AnonymousTokens.Server/Protocol/TokenGenerator.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

using AnonymousTokens.Core;

using Org.BouncyCastle.Asn1.X9;
using Org.BouncyCastle.Math;
using Org.BouncyCastle.Math.EC;
Expand Down
3 changes: 2 additions & 1 deletion src/AnonymousTokens.Server/Protocol/TokenVerifier.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using AnonymousTokens.Services;
using AnonymousTokens.Core;
using AnonymousTokens.Core.Services;

using Org.BouncyCastle.Math;
using Org.BouncyCastle.Math.EC;
Expand Down
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<Deterministic>true</Deterministic>
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">true</ContinuousIntegrationBuild>
<Version>1.1.0</Version>
<Version>1.2.0</Version>
<RepositoryUrl>https://github.com/HenrikWM/anonymous-tokens</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<LangVersion>latest</LangVersion>
Expand Down
2 changes: 1 addition & 1 deletion test/AnonymousTokens.Benchmarks/Protocol.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using AnonymousTokens.Client.Protocol;
using AnonymousTokens.Core.Services.InMemory;
using AnonymousTokens.Server.Protocol;
using AnonymousTokens.Services.InMemory;

using BenchmarkDotNet.Attributes;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
<ItemGroup>
<ProjectReference Include="..\..\src\AnonymousTokens.Client\AnonymousTokens.Client.csproj" />
<ProjectReference Include="..\..\src\AnonymousTokens.Server\AnonymousTokens.Server.csproj" />
<ProjectReference Include="..\..\src\AnonymousTokens\AnonymousTokens.csproj" />
</ItemGroup>

</Project>
2 changes: 2 additions & 0 deletions test/AnonymousTokens.UnitTests/ECCurveHashTests.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using AnonymousTokens.Core;

using Org.BouncyCastle.Asn1.X9;
using Org.BouncyCastle.Math;

Expand Down
1 change: 1 addition & 0 deletions test/AnonymousTokens.UnitTests/ECPointVerifierTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

using AnonymousTokens.Core;
using AnonymousTokens.UnitTests.TestUtilities;

using Org.BouncyCastle.Asn1.X9;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using AnonymousTokens.Client.Protocol;
using AnonymousTokens.Core;
using AnonymousTokens.Core.Services.InMemory;
using AnonymousTokens.Server.Protocol;
using AnonymousTokens.Services.InMemory;

using Org.BouncyCastle.Asn1.X9;
using Org.BouncyCastle.Crypto.EC;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

using AnonymousTokens.Core;
using AnonymousTokens.Core.Services;
using AnonymousTokens.Server.Protocol;
using AnonymousTokens.Services;

using Moq;

Expand Down

0 comments on commit 1875fff

Please sign in to comment.