refactor: zombienet-sdk rebrand and subxt compatibility fixes

Zombienet-SDK changes:
- orchestrator: sc-chain-spec → pezsc-chain-spec
- orchestrator: sp-core → pezsp-core imports
- orchestrator: k8s-openapi v1_27 → v1_28
- provider: k8s-openapi v1_27 → v1_28
- sdk: k8s-openapi v1_27 → v1_28

Subxt vendor fixes:
- Enable std features (remove default-features = false)
- Fix lifetime annotations for Rust 2024 compatibility
- Fix ecdsa/sr25519 password type conversions
- Fix RecoveryId API change (i32::from → to_i32)

Dependencies:
- wasmtime: 35.0.0 → 37.0.0 (security fix)
- tracing-subscriber: 0.3.18 → 0.3.20 (security fix)
- thiserror: 1.0.64 → 2.0.17

Note: ring 0.16.20 vulnerability remains - requires libp2p 0.56
upgrade which needs extensive pezsc-network API changes.
This commit is contained in:
2025-12-23 04:44:44 +03:00
parent 7733f074c7
commit 30c8f91b94
16 changed files with 302 additions and 1628 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ secp256k1 = { workspace = true, optional = true, features = [
] }
secrecy = { workspace = true }
sha2 = { workspace = true }
thiserror = { workspace = true, default-features = false }
thiserror = { workspace = true }
zeroize = { workspace = true }
# These are used if the pezkuwi-js-compat feature is enabled
+2 -2
View File
@@ -68,7 +68,7 @@ impl Keypair {
Self::from_secret_key(seed)?
} else {
let phrase = bip39::Mnemonic::from_str(phrase.expose_secret())?;
let pass_str = password.as_ref().map(|p| p.expose_secret());
let pass_str = password.as_ref().map(|p| p.expose_secret().as_str());
Self::from_phrase(&phrase, pass_str)?
};
@@ -197,7 +197,7 @@ pub(crate) mod internal {
let (recid, sig): (_, [u8; 64]) = recsig.serialize_compact();
let mut signature_bytes: [u8; 65] = [0; 65];
signature_bytes[..64].copy_from_slice(&sig);
signature_bytes[64] = (i32::from(recid) & 0xFF) as u8;
signature_bytes[64] = (recid.to_i32() & 0xFF) as u8;
signature_bytes
}
+1 -1
View File
@@ -78,7 +78,7 @@ impl Keypair {
Self::from_secret_key(seed)?
} else {
let phrase = bip39::Mnemonic::from_str(phrase.expose_secret())?;
let pass_str = password.as_ref().map(|p| p.expose_secret());
let pass_str = password.as_ref().map(|p| p.expose_secret().as_str());
Self::from_phrase(&phrase, pass_str)?
};