Skip to content

Commit 7749ded

Browse files
authored
Merge pull request hyperledger-indy#953 from tmarkovski/dotnet-payment-update
Dotnet wrapper update with Payments API. Samples updated to 1.5
2 parents 8a17d92 + fad70a4 commit 7749ded

File tree

88 files changed

+8933
-2184
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+8933
-2184
lines changed

samples/dotnet/Samples.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ VisualStudioVersion = 15.0.26730.15
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Samples", "Samples\Samples.csproj", "{7CC9D207-8B03-4461-8CBA-8163E11576B5}"
77
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "indy-sdk-dotnet", "..\..\wrappers\dotnet\indy-sdk-dotnet\indy-sdk-dotnet.csproj", "{787A7668-5260-42C8-B305-E7659C517A16}"
9+
EndProject
810
Global
911
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1012
Debug|Any CPU = Debug|Any CPU
@@ -15,6 +17,10 @@ Global
1517
{7CC9D207-8B03-4461-8CBA-8163E11576B5}.Debug|Any CPU.Build.0 = Debug|Any CPU
1618
{7CC9D207-8B03-4461-8CBA-8163E11576B5}.Release|Any CPU.ActiveCfg = Release|Any CPU
1719
{7CC9D207-8B03-4461-8CBA-8163E11576B5}.Release|Any CPU.Build.0 = Release|Any CPU
20+
{787A7668-5260-42C8-B305-E7659C517A16}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{787A7668-5260-42C8-B305-E7659C517A16}.Debug|Any CPU.Build.0 = Debug|Any CPU
22+
{787A7668-5260-42C8-B305-E7659C517A16}.Release|Any CPU.ActiveCfg = Release|Any CPU
23+
{787A7668-5260-42C8-B305-E7659C517A16}.Release|Any CPU.Build.0 = Release|Any CPU
1824
EndGlobalSection
1925
GlobalSection(SolutionProperties) = preSolution
2026
HideSolutionNode = FALSE

samples/dotnet/Samples/AnonCredsDemo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public static async Task Execute()
8080
var credential = createCredentialResult.CredentialJson;
8181

8282
//10. Prover Stores Credential
83-
await AnonCreds.ProverStoreCredentialAsync(proverWallet, null, credReqJson, credReqMetadataJson, credential, credDefJson, null);
83+
await AnonCreds.ProverStoreCredentialAsync(proverWallet, null, credReqMetadataJson, credential, credDefJson, null);
8484

8585
//11. Prover Gets Credentials for Proof Request
8686
var proofRequestJson = "{" +

samples/dotnet/Samples/AnonCredsRevocationDemo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public static async Task Execute()
9494
var credRevId = createCredentialResult.RevocId;
9595

9696
//12. Prover Stores Credential
97-
await AnonCreds.ProverStoreCredentialAsync(proverWallet, null, credReqJson, credReqMetadataJson, credential, credDefJson, revRegDefJson);
97+
await AnonCreds.ProverStoreCredentialAsync(proverWallet, null, credReqMetadataJson, credential, credDefJson, revRegDefJson);
9898

9999
//13. Prover Gets Credentials for Proof Request
100100
var proofRequestJson = "{\n" +

samples/dotnet/Samples/Program.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Diagnostics;
33
using System.Threading.Tasks;
4+
using Hyperledger.Indy.PoolApi;
45

56
namespace Hyperledger.Indy.Samples
67
{
@@ -16,6 +17,8 @@ static void Main(string[] args)
1617

1718
static async Task ExecuteDemos()
1819
{
20+
await Pool.SetProtocolVersionAsync(2);
21+
1922
await AnonCredsDemo.Execute();
2023
await AnonCredsRevocationDemo.Execute();
2124
await LedgerDemo.Execute();

samples/dotnet/Samples/Samples.csproj

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp2.0</TargetFramework>
5+
<TargetFramework>netcoreapp2.1</TargetFramework>
66
<AssemblyName>Hyperledger.Indy.Samples</AssemblyName>
77
<RootNamespace>Hyperledger.Indy.Samples</RootNamespace>
88
</PropertyGroup>
@@ -12,8 +12,6 @@
1212
</ItemGroup>
1313

1414
<ItemGroup>
15-
<Reference Include="Hyperledger.Indy.Sdk">
16-
<HintPath>..\..\..\wrappers\dotnet\indy-sdk-dotnet\bin\Release\netstandard2.0\Hyperledger.Indy.Sdk.dll</HintPath>
17-
</Reference>
15+
<ProjectReference Include="..\..\..\wrappers\dotnet\indy-sdk-dotnet\indy-sdk-dotnet.csproj" />
1816
</ItemGroup>
1917
</Project>

wrappers/dotnet/docs/api/Hyperledger.Indy.AnonCredsApi.AnonCreds.html

Lines changed: 263 additions & 651 deletions
Large diffs are not rendered by default.

wrappers/dotnet/docs/api/Hyperledger.Indy.AnonCredsApi.AnoncredsAccumulatorFullException.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ <h1 id="Hyperledger_Indy_AnonCredsApi_AnoncredsAccumulatorFullException" data-ui
8686
<div class="markdown level0 conceptual"></div>
8787
<div class="inheritance">
8888
<h5>Inheritance</h5>
89-
<div class="level0"><a class="xref" href="https://msdn.microsoft.com/en-us/library/system.object(v=vs.110).aspx">Object</a></div>
89+
<div class="level0"><span class="xref">System.Exception</span></div>
9090
<div class="level1"><a class="xref" href="Hyperledger.Indy.IndyException.html">IndyException</a></div>
9191
<div class="level2"><span class="xref">AnoncredsAccumulatorFullException</span></div>
9292
</div>

wrappers/dotnet/docs/api/Hyperledger.Indy.AnonCredsApi.AnoncredsNotIssuedException.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ <h1 id="Hyperledger_Indy_AnonCredsApi_AnoncredsNotIssuedException" data-uid="Hyp
8686
<div class="markdown level0 conceptual"></div>
8787
<div class="inheritance">
8888
<h5>Inheritance</h5>
89-
<div class="level0"><a class="xref" href="https://msdn.microsoft.com/en-us/library/system.object(v=vs.110).aspx">Object</a></div>
89+
<div class="level0"><span class="xref">System.Exception</span></div>
9090
<div class="level1"><a class="xref" href="Hyperledger.Indy.IndyException.html">IndyException</a></div>
9191
<div class="level2"><span class="xref">AnoncredsNotIssuedException</span></div>
9292
</div>

wrappers/dotnet/docs/api/Hyperledger.Indy.AnonCredsApi.ClaimRevokedException.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ <h1 id="Hyperledger_Indy_AnonCredsApi_ClaimRevokedException" data-uid="Hyperledg
8686
<div class="markdown level0 conceptual"></div>
8787
<div class="inheritance">
8888
<h5>Inheritance</h5>
89-
<div class="level0"><a class="xref" href="https://msdn.microsoft.com/en-us/library/system.object(v=vs.110).aspx">Object</a></div>
89+
<div class="level0"><span class="xref">System.Exception</span></div>
9090
<div class="level1"><a class="xref" href="Hyperledger.Indy.IndyException.html">IndyException</a></div>
9191
<div class="level2"><span class="xref">ClaimRevokedException</span></div>
9292
</div>

wrappers/dotnet/docs/api/Hyperledger.Indy.AnonCredsApi.DuplicateMasterSecretNameException.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ <h1 id="Hyperledger_Indy_AnonCredsApi_DuplicateMasterSecretNameException" data-u
8686
<div class="markdown level0 conceptual"></div>
8787
<div class="inheritance">
8888
<h5>Inheritance</h5>
89-
<div class="level0"><a class="xref" href="https://msdn.microsoft.com/en-us/library/system.object(v=vs.110).aspx">Object</a></div>
89+
<div class="level0"><span class="xref">System.Exception</span></div>
9090
<div class="level1"><a class="xref" href="Hyperledger.Indy.IndyException.html">IndyException</a></div>
9191
<div class="level2"><span class="xref">DuplicateMasterSecretNameException</span></div>
9292
</div>

0 commit comments

Comments
 (0)