Skip to content

Commit

Permalink
Repackaging of local project dependencies, updates to version 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
shifteverywhere committed Oct 25, 2022
1 parent 8b6fa34 commit 3e962e8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
8 changes: 7 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# CHANGE LOG

## Version 1.2.1 - 2022-10-25
## Version 1.2.2 - 2022-10-25
- Repackaging with JSON Canonicalizer dependencies
- Minor correction to unit tests

** NOTE** *Upgrading to version 1.2.2 will result in build errors, refer to changes in previous versions and README.md*

## Version 1.2.1 - 2022-10-24
- Conforms to DiME data format version 1.001
- Cryptographic suite changed to 'DSC'
- Key encoded changes to Base64 (from Base58), massive performance gain
Expand Down
6 changes: 5 additions & 1 deletion src/dime/dime.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Company>Shift Everywhere</Company>
<Authors>Niclas Kjellin</Authors>
<PackageId>DiME</PackageId>
<PackageVersion>1.2.1</PackageVersion>
<PackageVersion>1.2.2</PackageVersion>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://docs.dimeformat.io</PackageProjectUrl>
<RepositoryUrl>https://github.com/shifteverywhere/dime-dotnet-ref</RepositoryUrl>
Expand All @@ -29,6 +29,10 @@
<ReferenceOutputAssembly>true</ReferenceOutputAssembly>
<IncludeAssets>jsoncanonicalizer.dll</IncludeAssets>
</ProjectReference>
<ProjectReference Include="..\es6numberserializer\es6numberserializer.csproj">
<ReferenceOutputAssembly>true</ReferenceOutputAssembly>
<IncludeAssets>es6numberserializer.dll</IncludeAssets>
</ProjectReference>
<None Include="images\icon.png" Pack="true" PackagePath="\" />
</ItemGroup>

Expand Down
8 changes: 4 additions & 4 deletions test/dime-test/TagTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public void TagTest5()
var tag = new Tag(Commons.IssuerIdentity.GetClaim<Guid>(Claim.Sub), Commons.Context, items);
Assert.AreEqual(Commons.IssuerIdentity.GetClaim<Guid>(Claim.Sub), tag.GetClaim<Guid>(Claim.Iss));
Assert.AreEqual(Commons.Context, tag.GetClaim<string>(Claim.Ctx));
Assert.IsNotNull(tag.GetItemLinks);
Assert.IsNotNull(tag.GetItemLinks());
Assert.AreEqual(2, tag.GetItemLinks()!.Count);
}

Expand All @@ -165,7 +165,7 @@ public void AddItemLinkTest1()
{
var tag = new Tag(Commons.IssuerIdentity.GetClaim<Guid>(Claim.Sub));
tag.AddItemLink(Key.Generate(new List<KeyCapability>() {KeyCapability.Sign}, null));
Assert.IsNotNull(tag.GetItemLinks);
Assert.IsNotNull(tag.GetItemLinks());
Assert.AreEqual(1, tag.GetItemLinks()!.Count);
Assert.AreEqual(Key.ItemHeader, tag.GetItemLinks()![0].ItemIdentifier);
}
Expand All @@ -175,7 +175,7 @@ public void AddItemLinkTest2()
{
var tag = new Tag(Commons.IssuerIdentity.GetClaim<Guid>(Claim.Sub));
tag.AddItemLink(Commons.IssuerIdentity);
Assert.IsNotNull(tag.GetItemLinks);
Assert.IsNotNull(tag.GetItemLinks());
Assert.AreEqual(1, tag.GetItemLinks()!.Count);
Assert.AreEqual(Identity.ItemHeader, tag.GetItemLinks()![0].ItemIdentifier);
}
Expand All @@ -188,7 +188,7 @@ public void AddItemLinkTest3()
message.SetPayload(Encoding.UTF8.GetBytes(Commons.Payload));
message.Sign(Commons.IssuerKey);
tag.AddItemLink(message);
Assert.IsNotNull(tag.GetItemLinks);
Assert.IsNotNull(tag.GetItemLinks());
Assert.AreEqual(1, tag.GetItemLinks()!.Count);
Assert.AreEqual(Message.ItemHeader, tag.GetItemLinks()![0].ItemIdentifier);
}
Expand Down

0 comments on commit 3e962e8

Please sign in to comment.