Skip to content

fix(sdk): honor the requested encrypted-blob encoding #255

Description

@karagozemin

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third Campaign

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions