cedarcode / cose-ruby

Ruby implementation of RFC 8152 CBOR Object Signing and Encryption (COSE)
https://rubygems.org/gems/cose
MIT License
16 stars 10 forks source link

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

Closed grzuy closed 5 years ago

grzuy commented 5 years ago

Closes #40

It's now possible to:

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