Skip to content

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

Merged
grzuy merged 1 commit into
masterfrom
key_deserialization_error
Oct 25, 2019
Merged

feat: provide simpler way to rescue key deserialization error#50
grzuy merged 1 commit into
masterfrom
key_deserialization_error

Conversation

@grzuy

@grzuy grzuy commented Oct 24, 2019

Copy link
Copy Markdown
Contributor

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