Skip to content

Upgrading solana-sdk 3 to 4

Breaking3.0.0 → 4.1.0Breaking1Security1New3Other2

BreakingUpgrade verdict

1 breaking change and a security fix.

  • Code that matches on these enums must now handle unknown future variants.
  • The BLS signature code now refuses malformed key data and a special all-zero public key that could weaken security.
2 items need code or config changes

Requires Rust 1.89.0 from 4.1.0 (none stated before).

Breaking1
Marks enums non-exhaustive, so downstream matches must add a wildcard arm.
Security1
Rejects invalid uncompressed BLS encodings and identity public keys.