This commit adds additional validation checks when decoding extended private keys: 1. Verifies that byte 45 is zero as required by BIP-32 specification 2. For master keys (depth=0), ensures parent fingerprint is zero 3. For master keys (depth=0), ensures child number is zero These checks improve security by rejecting malformed keys that could potentially lead to unexpected behavior. Added corresponding error types and unit tests to verify each validation rule. |
||
---|---|---|
.. | ||
contrib | ||
embedded | ||
examples | ||
src | ||
tests | ||
CHANGELOG.md | ||
Cargo.toml |