Problem
validateEncryptedBlob documents an explicit hex or base64 encoding option but always auto-detects input. A value valid in the other encoding can therefore be accepted despite the caller requirement.
Task
Respect the explicit encoding option and use auto-detection only when no encoding is supplied.
Acceptance criteria
- Forced hex accepts only valid hex.
- Forced base64 accepts only valid base64.
- Omitted encoding retains auto-detection.
- Existing encrypted-blob tests, SDK tests, and typecheck pass.
Suggested implementation prompt
Fix encrypted-blob validation so the explicit encoding option selects exactly one decoder, add or adjust focused tests, run SDK validation, and keep the change scoped.
Problem
validateEncryptedBlobdocuments an explicithexorbase64encoding option but always auto-detects input. A value valid in the other encoding can therefore be accepted despite the caller requirement.Task
Respect the explicit encoding option and use auto-detection only when no encoding is supplied.
Acceptance criteria
Suggested implementation prompt