Upgrading solana-sdk 3 to 4
Breaking3.0.0 → 4.1.0Breaking1Security1New3Other2
BreakingUpgrade verdict
1 breaking change and a security fix.
In plain terms
- 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.
Must act 2 items need code or config changes
Requires Rust 1.89.0 from 4.1.0 (none stated before).
What you must change
Breaking1
Marks enums non-exhaustive, so downstream matches must add a wildcard arm.
Security1
Rejects invalid uncompressed BLS encodings and identity public keys.