Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: provide simpler way to rescue key deserialization error #50

Merged
merged 1 commit into from
Oct 25, 2019

Conversation

grzuy
Copy link
Contributor

@grzuy grzuy commented Oct 24, 2019

Closes #40

It's now possible to:

begin
  COSE::Key.deserialize(cbor)
rescue COSE::KeyDeserializationError
  # handle error
end

It's now possible to:

```ruby
begin
  COSE::Key.deserialize(cbor)
rescue COSE::KeyDeserializationError
  # handle error
end
```
@grzuy grzuy merged commit cd67e8c into master Oct 25, 2019
@grzuy grzuy deleted the key_deserialization_error branch October 25, 2019 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide a safe way to check if a key is valid.
1 participant