Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Code owners are automatically requested for review on every pull request.
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners

* @Marchhill
17 changes: 10 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,11 @@ jobs:
needs: [build-linux, build-macos, build-windows]
env:
BUILD_CONFIG: release
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out blst-bindings repository
uses: actions/checkout@v5
Expand All @@ -136,6 +140,7 @@ jobs:

- name: Move artifacts
working-directory: src/Nethermind.Crypto.Bls/runtimes
shell: bash
run: |
mv -f linux-arm64/libblst.so linux-arm64/native/libblst.so
mv -f linux-x64/libblst.so linux-x64/native/libblst.so
Expand All @@ -151,20 +156,18 @@ jobs:
run: dotnet restore

- name: Build
working-directory: src/Nethermind.Crypto.Bls
run: >
dotnet build -c ${{ env.BUILD_CONFIG }} --no-restore
${{ inputs.preview && format('-p:VersionSuffix=preview.{0}', github.run_number) || '' }}
working-directory: src
run: dotnet build -c ${{ env.BUILD_CONFIG }} --no-restore ${{ inputs.preview && format('-p:VersionSuffix=preview.{0}', github.run_number) || '' }}

- name: Test
working-directory: src/Nethermind.Crypto.Test
run: dotnet test -c ${{ env.BUILD_CONFIG }} --no-restore

- name: Publish
if: ${{ inputs.publish }}
if: ${{ inputs.publish && matrix.os == 'ubuntu-latest' }}
working-directory: src/Nethermind.Crypto.Bls
run: |
dotnet pack -c ${{ env.BUILD_CONFIG }} --no-build
dotnet pack -c ${{ env.BUILD_CONFIG }} --no-build ${{ inputs.preview && format('-p:VersionSuffix=preview.{0}', github.run_number) || '' }}
dotnet nuget push bin/${{ env.BUILD_CONFIG }}/*.nupkg \
-k ${{ github.event.inputs.feed == 'Production' && secrets.NUGET_API_KEY || secrets.NUGETTEST_API_KEY }} \
-s ${{ github.event.inputs.feed == 'Production' && 'https://api.nuget.org/v3/index.json' || 'https://apiint.nugettest.org/v3/index.json' }}
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,17 @@
[![Nethermind.Crypto.Bls](https://img.shields.io/nuget/v/Nethermind.Crypto.Bls)](https://www.nuget.org/packages/Nethermind.Crypto.Bls)

C# bindings for the [Supranational blst library](https://github.com/supranational/blst), supporting operations on the BLS12-381 curve and BLS signatures.

## Development

Run the tests:

```sh
dotnet test src -c release
```

Run the benchmarks (optionally filtered by class, e.g. `--filter '*MsmBenchmarks*'`):

```sh
dotnet run --project src/Nethermind.Crypto.Bls.Bench -c release
```
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<Authors>Nethermind</Authors>
<Copyright>Demerzel Solutions Limited</Copyright>
<SourceRevisionId Condition="'$(Commit)' != ''">$(Commit.Substring(0, 8))</SourceRevisionId>
<VersionPrefix>1.0.5</VersionPrefix>
<VersionPrefix>1.1.0</VersionPrefix>
<VersionSuffix></VersionSuffix>
</PropertyGroup>

Expand Down
1 change: 1 addition & 0 deletions src/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="BenchmarkDotNet" Version="0.15.8" />
<PackageVersion Include="coverlet.collector" Version="6.0.3" />
<PackageVersion Include="FluentAssertions" Version="[7.2.0]" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
Expand Down
Loading
Loading