This error was removed in v385
This error is no longer present in the current runtime. Existed from v361 to v385. Shown here for historical reference.
BadPublicKeyLen
Error Removed v361 → v385 (removed) 30.4The announced ML-KEM public key has an invalid length.
Encountered by: validatorsdevelopers
Why This Error Exists
ML-KEM-768 public keys have a specific size. This validation ensures validators announce valid keys that clients can actually use for encryption.
From Chain Metadata
The announced ML‑KEM public key length is invalid.
What This Means
The announced ML-KEM public key has an invalid length.
Common Causes
- Wrong key type provided (not ML-KEM-768)
- Truncated or corrupted key bytes
- Client using wrong cryptographic library
How to Fix
- Verify key is exactly 1184 bytes (ML-KEM-768 public key size)
- Use correct ML-KEM-768 key generation
- Check for encoding issues in key transmission
Thrown By
Runtime Info
- Pallet Index
- 30
- Error Index
- 4
- Error Code
- 30.4
- Removed In
- v385