Skip to content
Merged
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
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,50 @@ jobs:
dotnet list package --vulnerable --include-transitive 2>&1 | tee vuln.log
echo "Analyze dotnet list package..."
! grep -q -i "has the following vulnerable packages" vuln.log

conformance-tests:
name: Conformance Tests
runs-on: ${{ matrix.os }}
needs: build-and-test
strategy:
fail-fast: false
matrix:
include:
- os: macos-latest
platform: darwin_arm64
- os: ubuntu-latest
platform: linux_amd64

env:
TEST_VERSION: '0.0.1'
TEST_REPO: 'stringintech/kernel-bindings-tests'
TEST_DIR: '.conformance-tests'

steps:
- name: Checkout code
uses: actions/checkout@v5

- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.x'

- name: Build conformance handler
run: |
dotnet build tools/kernel-bindings-test-handler/kernel-bindings-test-handler.csproj -c Release
dotnet publish tools/kernel-bindings-test-handler/kernel-bindings-test-handler.csproj -c Release -o handler-bin

- name: Download test runner
run: |
mkdir -p ${{ env.TEST_DIR }}
DOWNLOAD_URL="https://github.com/${{ env.TEST_REPO }}/releases/download/v${{ env.TEST_VERSION }}/kernel-bindings-tests_${{ env.TEST_VERSION }}_${{ matrix.platform }}.tar.gz"
echo "Downloading from: $DOWNLOAD_URL"
curl --fail -L -o ${{ env.TEST_DIR }}/test-runner.tar.gz "$DOWNLOAD_URL"
tar -xzf ${{ env.TEST_DIR }}/test-runner.tar.gz -C ${{ env.TEST_DIR }}
chmod +x ${{ env.TEST_DIR }}/runner

- name: Run conformance tests
run: |
${{ env.TEST_DIR }}/runner --handler handler-bin/kernel-bindings-test-handler


4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ BitcoinKernel.NET brings Bitcoin Core's robust consensus engine to .NET applicat

| Package | Version | Description |
|---------|---------|-------------|
| **BitcoinKernel** | 0.1.0 | High-level API with fluent builder pattern |
| **BitcoinKernel.Core** | 0.1.0 | Managed wrappers and native bindings |
| **BitcoinKernel** | 0.1.1 | High-level API with fluent builder pattern |
| **BitcoinKernel.Core** | 0.1.1 | Managed wrappers and native bindings |


## Quick Start
Expand Down
2 changes: 1 addition & 1 deletion src/BitcoinKernel.Core/BitcoinKernel.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<!-- NuGet Package Metadata -->
<PackageId>BitcoinKernel.Core</PackageId>
<Version>0.1.0</Version>
<Version>0.1.1</Version>
<Authors>JanB84</Authors>
<Description>.NET bindings and managed wrappers for libbitcoinkernel. Provides direct access to Bitcoin Core consensus and validation logic with automatic memory management.</Description>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
Expand Down
2 changes: 1 addition & 1 deletion src/BitcoinKernel/BitcoinKernel.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<!-- NuGet Package Metadata -->
<PackageId>BitcoinKernel</PackageId>
<Version>0.1.0</Version>
<Version>0.1.1</Version>
<Authors>JanB84</Authors>
<Description>.NET library for Bitcoin Core functionality. Provides a simple, fluent API for Bitcoin consensus validation, script verification, and blockchain operations powered by libbitcoinkernel.</Description>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
Expand Down
Loading