Skip to content

Crashing error when signing fails #473

Closed

Description

@Julien-cpsn

Hello,

Thanks for this great library.

The problem occurs when users try to use the encode function.
Inside encode at line 189 you call the sign method, which crashes the whole application when failing. In ATAC, users may use custom stuff and it will lead to crashes.

let signature = b64_encode(signing_provider.sign(message.as_bytes()));

It would be better to use the try_sign method, which will not crash.

If you don't want such a thing, then it would be great to have a try_encode function.

Have a great day

Activity

  1. Keats commented on Dec 30, 2025

    @Keats
    Owner

    ah I didn't think that part could crash, we should swap it to try_sign

  2. added a commit that references this issue on Jan 12, 2026
    7f27a6d
  3. Keats commented on Jan 12, 2026

    @Keats
    Owner

    I think the PR above should fix the issue

  4. Julien-cpsn commented on Jan 13, 2026

    @Julien-cpsn
    Author

    @Keats do you have visibility on when this will be merged/released?

  5. Keats commented on Jan 14, 2026

    @Keats
    Owner

    I will probably release 10.3.0 this week with that change if i can find the time

  6. Julien-cpsn commented on Jan 24, 2026

    @Julien-cpsn
    Author

    @Keats any update?

  7. added 3 commits that reference this issue on Jan 27, 2026
    be7ad66
    99a2f35
    9bd621d
  8. Keats commented on Jan 28, 2026

    @Keats
    Owner

    It's in 10.3

  9. added a commit that references this issue on Jan 30, 2026
    50d15e0
  10. added a commit that references this issue on Feb 12, 2026
    4ef9538
  11. added 2 commits that reference this issue on Mar 17, 2026
    7f818d3
    b9cf6e4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions