Skip to content

Commit 881bd92

Browse files
authored
Merge pull request #80 from shinji-san/release-v0.8.0
Release v0.8.0 Added - Added more examples in the section Usage of the README.md file to explain the use of shares and the use of the new type casting from byte array to secret and vice versa. - Added method MakeShares(TNumber numberOfMinimumShares, TNumber numberOfShares, int securityLevel) - Added method MakeShares(TNumber numberOfMinimumShares, TNumber numberOfShares, Secret<TNumber> secret, int securityLevel) - Added localization for exception messages in English and German languages Changed - Changed existing examples in the section Usage of the README.md file to explain the use and the type casting of recovered secrets. - Minify NuGet package README.md - Changed ctor ShamirsSecretSharing(IExtendedGcdAlgorithm<TNumber> extendedGcd). This ctor sets the SecurityLevel to 13. Deprecated - Ctor ShamirsSecretSharing(IExtendedGcdAlgorithm<TNumber> extendedGcd, int securityLevel) is deprecated. - Method MakeShares(TNumber numberOfMinimumShares, TNumber numberOfShares) is deprecated. - Shares to tuple type casting is obsolete and will be remove in the next release. - Shares.Item1 property is obsolete and will be remove in the next release. - Shares.Item2 property is obsolete and will be remove in the next release. Removed - Removed .NET 5 support, because it retires on May 10, 2022. See Microsoft .NET and .NET Core - Support Dates. Resolves: No entry
2 parents 69edb66 + 6dbd104 commit 881bd92

28 files changed

+615
-267
lines changed

.github/workflows/codeql-analysis.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,14 @@ jobs:
4646
with:
4747
dotnet-version: 3.1.415
4848

49-
- name: Setup .NET 5
50-
uses: actions/setup-dotnet@v1
51-
with:
52-
dotnet-version: 5.0.403
53-
5449
- name: Setup .NET 6
5550
uses: actions/setup-dotnet@v1
5651
with:
5752
dotnet-version: 6.0.100
5853

5954
- name: .NET Core SxS
6055
run: |
61-
rsync -a ${DOTNET_ROOT/6.0.100/5.0.403/3.1.415}/* $DOTNET_ROOT/
56+
rsync -a ${DOTNET_ROOT/6.0.100/3.1.415}/* $DOTNET_ROOT/
6257
6358
# Initializes the CodeQL tools for scanning.
6459
- name: Initialize CodeQL

.github/workflows/dotnetall.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,14 @@ jobs:
2323
with:
2424
dotnet-version: 3.1.415
2525

26-
- name: Setup .NET 5
27-
uses: actions/setup-dotnet@v1
28-
with:
29-
dotnet-version: 5.0.403
30-
3126
- name: Setup .NET 6
3227
uses: actions/setup-dotnet@v1
3328
with:
3429
dotnet-version: 6.0.100
3530

3631
- name: .NET Core SxS
3732
run: |
38-
rsync -a ${DOTNET_ROOT/6.0.100/5.0.403/3.1.415}/* $DOTNET_ROOT/
33+
rsync -a ${DOTNET_ROOT/6.0.100/3.1.415}/* $DOTNET_ROOT/
3934
4035
- name: Restore
4136
run: dotnet restore SecretSharingDotNet.sln
@@ -46,5 +41,10 @@ jobs:
4641
- name: Test
4742
run: dotnet test --configuration Release SecretSharingDotNet.sln
4843

44+
- name: Prepare README.md for NuGet package
45+
run: |
46+
grep -n "## Install SecretSharingDotNet package" README.md | cut -d: -f 1| xargs -i tail -n +{} README.md > TMP.md && sed -i '1s/^/# Setup\r\n/' TMP.md && mv -f TMP.md README.md
47+
grep -n "# CLI building instructions" README.md | cut -d: -f 1| xargs -i head -n {} README.md | head -n -1 > TMP.md && mv -f TMP.md README.md
48+
4949
- name: Create Package
5050
run: dotnet pack --configuration Release SecretSharingDotNet.sln

.github/workflows/dotnetcore.yml

+1-7
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
DOTNET_CLI_TELEMETRY_OPTOUT: true
1818
strategy:
1919
matrix:
20-
dotnet: [ '3.1.415', '5.0.403', '6.0.100']
20+
dotnet: [ '3.1.415', '6.0.100']
2121
name: Dotnet ${{ matrix.dotnet }}
2222

2323
steps:
@@ -32,12 +32,6 @@ jobs:
3232
- name: Test with donet SDK v3.1
3333
if: matrix.dotnet == '3.1.415'
3434
run: dotnet test -v d --configuration Release SecretSharingDotNetCore3.1.sln
35-
- name: Build with dotnet SDK v5.0
36-
if: matrix.dotnet == '5.0.403'
37-
run: dotnet build --configuration Release SecretSharingDotNet5.sln
38-
- name: Test with dotnet SDK v5.0
39-
if: matrix.dotnet == '5.0.403'
40-
run: dotnet test --configuration Release SecretSharingDotNet5.sln
4135
- name: Build with dotnet SDK v6.0
4236
if: matrix.dotnet == '6.0.100'
4337
run: dotnet build --configuration Release SecretSharingDotNet6.sln

.github/workflows/dotnetfx.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
build:
1414

15-
runs-on: windows-latest
15+
runs-on: windows-2019
1616

1717
steps:
1818
- name: checkout

.github/workflows/publishing.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,14 @@ jobs:
2121
with:
2222
dotnet-version: 3.1.415
2323

24-
- name: Setup .NET 5
25-
uses: actions/setup-dotnet@v1
26-
with:
27-
dotnet-version: 5.0.403
28-
2924
- name: Setup .NET 6
3025
uses: actions/setup-dotnet@v1
3126
with:
3227
dotnet-version: 6.0.100
3328

3429
- name: .NET Core SxS
3530
run: |
36-
rsync -a ${DOTNET_ROOT/6.0.100/5.0.403/3.1.415}/* $DOTNET_ROOT/
31+
rsync -a ${DOTNET_ROOT/6.0.100/3.1.415}/* $DOTNET_ROOT/
3732
3833
- name: Decrypt large secret
3934
run: ./.github/secrets/decrypt_publisher_snk.sh
@@ -53,6 +48,11 @@ jobs:
5348
- name: Remove obsolete NuGet packages
5449
run: rm -f src/bin/Release/SecretSharingDotNet*.nupk
5550

51+
- name: Prepare README.md for NuGet package
52+
run: |
53+
grep -n "## Install SecretSharingDotNet package" README.md | cut -d: -f 1| xargs -i tail -n +{} README.md > TMP.md && sed -i '1s/^/# Setup\r\n/' TMP.md && mv -f TMP.md README.md
54+
grep -n "# CLI building instructions" README.md | cut -d: -f 1| xargs -i head -n {} README.md | head -n -1 > TMP.md && mv -f TMP.md README.md
55+
5656
- name: Create package
5757
run: dotnet pack --configuration Release SecretSharingDotNet.sln
5858

CHANGELOG.md

+27-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,28 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.8.0] - 2022-07-05
8+
### Added
9+
- Added more examples in the section *Usage* of the `README.md` file to explain the use of shares and the use of the new type casting from byte array to secret and vice versa.
10+
- Added method `MakeShares(TNumber numberOfMinimumShares, TNumber numberOfShares, int securityLevel)`
11+
- Added method `MakeShares(TNumber numberOfMinimumShares, TNumber numberOfShares, Secret<TNumber> secret, int securityLevel)`
12+
- Added localization for exception messages in English and German languages
13+
14+
### Changed
15+
- Changed existing examples in the section *Usage* of the `README.md` file to explain the use and the type casting of recovered secrets.
16+
- Minify NuGet package README.md
17+
- Changed ctor `ShamirsSecretSharing(IExtendedGcdAlgorithm<TNumber> extendedGcd)`. This ctor sets the SecurityLevel to 13.
18+
19+
### Deprecated
20+
- Ctor `ShamirsSecretSharing(IExtendedGcdAlgorithm<TNumber> extendedGcd, int securityLevel)` is deprecated.
21+
- Method `MakeShares(TNumber numberOfMinimumShares, TNumber numberOfShares)` is deprecated.
22+
- Shares to tuple type casting is obsolete and will be remove in the next release.
23+
- Shares.Item1 property is obsolete and will be remove in the next release.
24+
- Shares.Item2 property is obsolete and will be remove in the next release.
25+
26+
### Removed
27+
- Removed .NET 5 support, because it retires on May 10, 2022. See [Microsoft .NET and .NET Core - Support Dates](https://docs.microsoft.com/en-us/lifecycle/products/microsoft-net-and-net-core).
28+
729
## [0.7.0] - 2022-02-09
830
### Added
931
- Added implicit casts for byte arrays in *Secret* class.
@@ -104,7 +126,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
104126
- Added LICENSE.md
105127
- Added README.md
106128

107-
[Unreleased]: https://github.com/shinji-san/SecretSharingDotNet/compare/v0.4.2...HEAD
129+
[Unreleased]: https://github.com/shinji-san/SecretSharingDotNet/compare/v0.8.0...HEAD
130+
[0.8.0]: https://github.com/shinji-san/SecretSharingDotNet/compare/v0.7.0...v0.8.0
131+
[0.7.0]: https://github.com/shinji-san/SecretSharingDotNet/compare/v0.6.0...v0.7.0
132+
[0.6.0]: https://github.com/shinji-san/SecretSharingDotNet/compare/v0.5.0...v0.6.0
133+
[0.5.0]: https://github.com/shinji-san/SecretSharingDotNet/compare/v0.4.2...v0.5.0
108134
[0.4.2]: https://github.com/shinji-san/SecretSharingDotNet/compare/v0.4.1...v0.4.2
109135
[0.4.1]: https://github.com/shinji-san/SecretSharingDotNet/compare/v0.4.0...v0.4.1
110136
[0.4.0]: https://github.com/shinji-san/SecretSharingDotNet/compare/v0.3.0...v0.4.0

0 commit comments

Comments
 (0)