Key Highlights
- Neo Rust SDK v4.0.0 updates key cryptography and security dependencies, including elliptic-curve libraries, jsonwebtoken and rustls-related packages.
- Most upgrades require only a version change, but NeoFS timestamps and YubiWallet signing integrations need code updates.
- The release is available on crates.io and requires Rust 1.99 or later; two third-party dependencies still use an older crypto-bigint version.
Neo Rust SDK v4.0.0: Dependency and Security Updates
Neo Rust SDK v4.0.0 upgrades its elliptic-curve, k256 and p256 libraries from v0.13 to v0.14, alongside related RustCrypto packages used for signatures, random number generation and scrypt key derivation. The release also moves jsonwebtoken to v12.0 and removes chrono as a direct dependency of the SDK, its command-line interface and its examples. Date handling now uses the time library.
Several changes address Rust security advisories. The SDK’s own cryptographic code no longer uses a crypto-bigint version affected by a timing side-channel advisory, and the long-standing exception for the “Marvin” timing advisory in the rsa crate has been removed. However, the crypto-bigint advisory is not fully resolved across the dependency tree: alloy, which the SDK requires for Neo X, and the optional yubihsm hardware security module library still pull in the older version while awaiting upstream releases.
The release also updates the url crate to address a stack overflow advisory, although that change is not listed in the release notes. According to those notes, the project passes 734 library tests and 240 doctests, with no Clippy warnings and clean cargo audit and cargo-deny checks.
Breaking Changes for SDK Users
Most users can upgrade by changing the SDK version number. Code changes are needed in three main areas. NeoFS timestamps—including token expirations and container and object creation times—now use time::OffsetDateTime rather than chrono types.
YubiWallet now wraps a new YubiHsmSigner because the yubihsm library’s own signer does not support the updated curve libraries. Signing still takes place on the hardware device. For secp256r1 keys, Secp256r1PrivateKey::random now accepts any cryptographically secure random number generator; Secp256r1PrivateKey::new_random() is the recommended method when generating a key from system entropy.
Some public types have also been renamed to match RustCrypto v0.14 conventions. For example, EncodedPoint is now Sec1Point. On X, a developer identified the change from chrono to time as the riskiest upgrade because differences in timestamp parsing can appear at runtime rather than during compilation. Liao responded: “That’s why the 734 lib tests + 240 doctests matter more than the bump.”
Earlier Neo Rust SDK Releases on Nov. 22
Version 4.0.0 followed two releases earlier the same day, incorporating their changes for users upgrading from an older version. Version 3.3.2 aligned the SDK with Neo N3 v3.11.2, adding the Huyao, Iara and Jackalope hard forks and identifying Huyao as the last hard fork activated through node configuration.
The Policy contract client added get_hardfork_activation_height and activate_hardfork for the new on-chain hard fork activation (PR #4726), as well as getters and setters for the maximum TemporaryStorage lifetime. These Policy calls work only on networks where Huyao is active. ContractManagement also gained get_contract_id, which looks up a contract without loading its full state.
The SDK’s built-in MainNet and TestNet configurations gained Faun and Gorgon activation heights to match Neo-CLI; neither configuration sets a Huyao height. The workspace moved to Rust edition 2024 with a minimum Rust version of 1.99. Version 3.3.2 also hardened SGX attestation checks by rejecting malformed quotes and untrusted certificate chains, and fixed pagination for NEP-91 account event queries. The changelog describes the SDK’s SGX certificate validation as an experimental foundation that requires Intel’s DCAP verification library for production use.
Version 3.3.2 was not published to crates.io, so its changes reached crates.io users through v3.3.3 and v4.0.0. Version 3.3.3 was a security update that moved rustls to v0.23.46 and OpenTelemetry packages to v0.33 to fix an unbounded memory allocation issue. The changelog says it resolved all open Dependabot alerts in the repository. Further fixes before publication updated tokio, quinn-proto and certificate verification packages to address additional advisories.
Availability and Requirements
Neo Rust SDK v4.0.0 is available on crates.io and requires Rust 1.99 or later. At the time of writing, the repository README still referred to v3.3.x. The full release notes are available on GitHub.
Why This Matters
The v4.0.0 upgrade combines cryptography and security dependency updates with API changes that can affect applications at runtime, particularly those that parse or process timestamps. Developers should review the switch from chrono to time, update affected NeoFS timestamp types and check renamed RustCrypto types when upgrading. Security coverage has improved, but the crypto-bigint advisory remains in the dependency tree through alloy and yubihsm until upstream releases address it.
Frequently Asked Questions
What Rust version does Neo Rust SDK v4.0.0 require?
It requires Rust 1.99 or later.
Do all users need to change their code to upgrade?
Most users can upgrade by changing the SDK version. Code changes are needed for NeoFS timestamps, YubiWallet’s new YubiHsmSigner wrapper and any renamed public types used by an application.
Is the crypto-bigint advisory fully resolved?
No. The SDK’s own cryptographic code no longer uses the affected version, but alloy and the optional yubihsm library still pull it in while awaiting upstream releases.




