Nethermind.Crypto.Lean
0.21.0-feature-eip8288-base-f128.101
See the version list below for details.
dotnet add package Nethermind.Crypto.Lean --version 0.21.0-feature-eip8288-base-f128.101
NuGet\Install-Package Nethermind.Crypto.Lean -Version 0.21.0-feature-eip8288-base-f128.101
<PackageReference Include="Nethermind.Crypto.Lean" Version="0.21.0-feature-eip8288-base-f128.101" />
<PackageVersion Include="Nethermind.Crypto.Lean" Version="0.21.0-feature-eip8288-base-f128.101" />
<PackageReference Include="Nethermind.Crypto.Lean" />
paket add Nethermind.Crypto.Lean --version 0.21.0-feature-eip8288-base-f128.101
#r "nuget: Nethermind.Crypto.Lean, 0.21.0-feature-eip8288-base-f128.101"
#:package Nethermind.Crypto.Lean@0.21.0-feature-eip8288-base-f128.101
#addin nuget:?package=Nethermind.Crypto.Lean&version=0.21.0-feature-eip8288-base-f128.101&prerelease
#tool nuget:?package=Nethermind.Crypto.Lean&version=0.21.0-feature-eip8288-base-f128.101&prerelease
Lean bindings
Native EIP-8288 Lean backend for Nethermind, packaged for NuGet as Nethermind.Crypto.Lean.
The library, libnethermind_lean.so, is built from the Rust crate in src/ffi, a thin C ABI over an unmodified, pinned leanVM and the EIP-8288 aggregation guest in src/ffi/crates (vendored from the same revision; see its README). This repository is the source of that code: consumers take the packages, not the source.
Package
| RID | CPU baseline | Built on |
|---|---|---|
linux-x64 |
x86-64-v3 + PCLMULQDQ | ubuntu-latest, inside rust:1.99.0-bookworm |
linux-arm64 |
ARMv8 + AES (PMULL) | ubuntu-24.04-arm, inside rust:1.99.0-bookworm |
- Native-only: no managed assembly. Nethermind's
NativeLeanProofVerifierloads the library and, on chains with EIP-8288 scheduled, checks the CPU features, ABI version, aggregated verification key and acceptance bounds at startup. - Version
<native version>.<run>: the native version is thesrc/fficrate version. - glibc 2.35 (Ubuntu 22.04) or newer: Build Lean fails if the library needs a newer glibc symbol.
- No other RIDs: an EIP-8288 node on osx, win or musl fails at startup with Nethermind's backend message; other chains never load the library.
Layout
src/ffi: the Rust source of the library, and thecargo-aboutconfiguration (about.toml,about.hbs) forTHIRD-PARTY-NOTICES.src/bindings/Nethermind.Crypto.Lean: the package;runtimes/*/native/libnethermind_lean.so(Git LFS) are committed by Build Lean.src/bindings/Nethermind.Crypto.Lean/testing: test assets for consumers' native suites: the vectors, thefixturessigning/proving tool and an incompatible startup stub, all built with the library (Git LFS, committed by Build Lean). They ship in the package outsideruntimes/; a test project gets them inlean-vectors/only with<NethermindCryptoLeanTestAssets>true</NethermindCryptoLeanTestAssets>, so production publishes never contain them.src/bindings/Nethermind.Crypto.Lean.Tests: loads the committed library and checks its ABI version, aggregated verification key and limits, and verifies the packaged vectors and a signature from the packaged tool.
Workflows
- Build Lean (manual): builds
src/ffifor each RID, twice, and fails unless both builds are byte-identical; generatesTHIRD-PARTY-NOTICES; runs the smoke test on the built libraries on x64 and arm64 hardware; optionally opens a pull request with them into the branch it runs on. That pull request is opened withGITHUB_TOKEN, which starts no workflows, so run Test / Publish on its branch manually. - Test / Publish: on pull requests and
main, checks formatting, runs the Rust tests of the wholesrc/ffiworkspace and the .NET tests against the committed library on x64 and arm64 hardware, and verifies a consumer gets the right library per RID. On a release or a manual run, publishes to NuGet (staging or production) through trusted publishing, only after all of these pass. To try out a branch without committing its binaries, run it on that branch withpublish=Stagingandbuild-runset to a successful Build Lean run of the same commit: it publishes that run's binaries to staging as<crate version>-<branch>.<run number>. Build Lean keeps its artifacts for 7 days. NuGet.org takes only the binaries committed through a pull request tomain.
License
This project is licensed under the MIT license.
The shipped library statically links leanVM and other Rust crates, used under permissive licenses. See THIRD-PARTY-NOTICES for the full texts.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.24.0.134 | 71 | 11/19/2026 |
| 0.23.0-feature-eip8288-draf... | 1,340 | 11/19/2026 |
| 0.22.0.125 | 72 | 11/19/2026 |
| 0.22.0.121 | 4 | 11/19/2026 |
| 0.22.0-feature-eip8288-base... | 2 | 11/19/2026 |
| 0.21.0.110 | 649 | 11/16/2026 |
| 0.21.0-feature-eip8288-base... | 122 | 11/16/2026 |
| 0.21.0-feature-eip8288-base... | 106 | 11/16/2026 |
| 0.21.0-feature-eip8288-base... | 0 | 11/16/2026 |
| 0.21.0-feature-eip8288-base... | 0 | 11/16/2026 |
| 0.20.0-feature-eip8288-base... | 54 | 11/15/2026 |
| 0.19.0-feature-leanvm-f128-... | 72 | 11/15/2026 |
| 0.18.0-feature-eip8437-raw-... | 209 | 11/15/2026 |
| 0.18.0-feature-eip8437-raw-... | 818 | 11/14/2026 |
| 0.17.0-feature-eip8288-batc... | 83 | 11/14/2026 |
| 0.17.0-feature-eip8288-batc... | 208 | 11/14/2026 |
| 0.16.2-feature-eip8288-batc... | 72 | 11/14/2026 |
| 0.16.1-feature-eip8288-batc... | 54 | 11/14/2026 |
| 0.16.0-feature-eip8288-batc... | 140 | 11/14/2026 |
| 0.12.1-fix-eip8288-sphincs-... | 53 | 11/14/2026 |