
NeoRust version 4.0.0, the newest release of R3E Network’s Rust SDK for Neo N3 and Neo X, updates the SDK to the latest releases of its cryptographic dependencies. The update, published on 22 November, introduces three breaking changes to the API and also incorporates support for Neo N3 v3.11.2, which had been added earlier that same day.
The crate, known as neo3, is maintained by Jimmy Liao—who is both a core developer for Neo and the founder of R3E Network. The last time the team reported on the crate was when version 3.0.0 was released in September.
Version 4.0.0 marks a new major release of neo3 and is distinct from the neo‑primitives and neo‑protocol crates, which were built on a separate branch and shipped as NeoRust SDK v3.4.0 in late September.
Among the most notable changes, the elliptic‑curve libraries k256 and p256 have been upgraded from 0.13 to 0.14, together with related RustCrypto crates that handle signatures, random number generation and scrypt‑based key derivation. The jsonwebtoken crate has been moved to version 12.0, and the SDK no longer depends directly on the chrono date library; the time crate now provides date handling for the SDK, its command‑line interface and its examples.
These upgrades address several security advisories that have been issued for Rust. The SDK’s own cryptographic code no longer uses a version of crypto‑bigint that was vulnerable to a timing‑side‑channel issue, and an older exemption for the “Marvin” timing advisory in the rsa crate has been removed. However, the crypto‑bigint advisory is not completely resolved because two transitive dependencies— alloy (a required library for Neo X) and the optional yubihsm hardware‑security‑module crate—still pull in the older, affected version while awaiting upstream updates.
The release also bumps the url crate to fix a stack‑overflow vulnerability, a change that was not mentioned in the official release notes.
Most developers can upgrade simply by changing the version number in their Cargo.toml files, but three areas of code will need adjustment. One of these involves renaming public types to match the new RustCrypto naming scheme; for example, EncodedPoint has been renamed to Sec1Point.
According to the release notes, the SDK now passes 734 library tests and 240 documentation tests, generates no Clippy warnings, and clears both cargo audit and cargo‑deny checks.
On X, a developer warned that the switch from chrono to time is the riskiest modification because differences in timestamp parsing only surface at runtime rather than during compilation. Liao replied, “That’s why the 734 lib tests + 240 doctests matter more than the bump.”
Version 4.0.0 also bundles two earlier releases that appeared earlier on the same day, ensuring that anyone moving from an older version receives all the intervening changes.
Version 3.3.2, released earlier that day, aligned the SDK with Neo N3 v3.11.2. It added support for the Huyao, Iara and Jackalope hard forks and designated Huyao as the final hard fork that can be activated through node configuration. The Policy contract client gained two new methods— get_hardfork_activation_height and activate_hardfork—supporting on‑chain hard‑fork activation (pull request #4726), as well as getters and setters for the maximum lifetime of TemporaryStorage. These calls only function on a network where Huyao is already active. The ContractManagement module also received a get_contract_id method that retrieves a contract’s identifier without loading the full contract state.
The SDK’s built‑in MainNet and TestNet configurations were updated to include the activation heights for the Faun and Gorgon hard forks, matching the Neo‑CLI settings, while no activation height is set for Huyao. The workspace was moved to Rust edition 2024, with a minimum required compiler version of 1.99.
The same release hardened SGX attestation logic, rejecting malformed quotes and untrusted certificate chains, and corrected pagination handling for NEP‑91 account‑event queries. The changelog now describes SGX certificate validation as an experimental foundation that, for production use, requires Intel’s DCAP verification library.
Because version 3.3.2 was never published to crates.io, its changes were propagated to users of the crate through versions 3.3.3 and 4.0.0. Version 3.3.3 was a security‑focused patch that upgraded rustls to 0.23.46 and moved the OpenTelemetry packages to 0.33 to fix an unbounded memory‑allocation problem. The changelog notes that this update resolved all open Dependabot alerts in the repository. Subsequent fixes, applied before the release shipped, upgraded tokio, quinn‑proto and certificate‑verification crates to address additional advisories.
NeoRust v4.0.0 is now available on crates.io and requires Rust 1.99 or newer, although the repository’s README still referenced the 3.3.x series at the time of writing. The complete release notes can be consulted at the project's GitHub page: https://github.com/R3E-Network/neo-rust-sdk/releases/tag/v4.0.0
Source: CryptoNews.net