Nethermind.Crypto.SecP256r1 1.2.0

dotnet add package Nethermind.Crypto.SecP256r1 --version 1.2.0
                    
NuGet\Install-Package Nethermind.Crypto.SecP256r1 -Version 1.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Nethermind.Crypto.SecP256r1" Version="1.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Nethermind.Crypto.SecP256r1" Version="1.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Nethermind.Crypto.SecP256r1" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Nethermind.Crypto.SecP256r1 --version 1.2.0
                    
#r "nuget: Nethermind.Crypto.SecP256r1, 1.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Nethermind.Crypto.SecP256r1@1.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Nethermind.Crypto.SecP256r1&version=1.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Nethermind.Crypto.SecP256r1&version=1.2.0
                    
Install as a Cake Tool

secp256r1 bindings for BoringSSL

Test Nethermind.Crypto.SecP256r1

C# bindings for the BoringSSL ECDSA signature verification.

Build

The prebuilt BoringSSL binaries in src/Nethermind.Crypto.SecP256r1/runtimes are stored in Git LFS and updated by running the Build BoringSSL workflow, which builds the pinned BoringSSL submodule for all platforms. To build them manually:

  • Checkout the repository, including nested BoringSSL submodule.

  • Copy CMakeLists.txt and all export.* files from the src folder to src/boringssl, replacing existing files.

  • Build the BoringSSL library in Release mode per docs:

    cmake -GNinja -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=1
    ninja -C build crypto
    

    For win-arm64, configure from an ARM64 developer environment with -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl, as MSVC cannot assemble BoringSSL's AArch64 assembly, which is essential for performance.

  • Put the built crypto/libcrypto library from src/boringssl/build into the respective subdirectory in src/Nethermind.Crypto.SecP256r1/runtimes, renaming it and replacing the existing secp256r1/libsecp256r1 stub file

  • Build the .NET project as follows:

    dotnet build src/Nethermind.Crypto.SecP256r1
    

License

This project is licensed under the MIT license.

The package also ships prebuilt BoringSSL binaries, used under Apache-2.0. Those binaries include Fiat Cryptography, also used under Apache-2.0. See THIRD-PARTY-NOTICES for the full texts.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Nethermind.Crypto.SecP256r1:

Repository Stars
NethermindEth/nethermind
A robust, high-performance execution client for Ethereum node operators.
Version Downloads Last Updated
1.2.0 133 10/9/2026
1.1.0 3,203,889 7/17/2026
1.0.0 3,174,695 3/21/2026
1.0.0-preview.6 1,937,554 3/28/2025
1.0.0-preview.5 301 3/28/2025
1.0.0-preview.4 953 3/26/2025
1.0.0-preview.3 13,066 3/3/2025
1.0.0-preview.2 433 2/28/2025
1.0.0-preview.1 4,607 2/24/2025