cedarcode / cose-ruby

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

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

Closed grzuy closed 4 years ago

grzuy commented 4 years ago

Closes #40

It's now possible to:

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