Sha256: 2770ac484745927a56f32caf35ea7fa2ca34c20a32d9d5af225102a5d722dc68
Contents?: true
Size: 323 Bytes
Versions: 1
Compression:
Stored size: 323 Bytes
Contents
# frozen_string_literal: true require "cbor" module COSE module Key class Base def self.deserialize(cbor) from_map(CBOR.decode(cbor)) end def self.enforce_type(map, kty, error_message) if map[LABEL_KTY] != kty raise error_message end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cose-0.4.0 | lib/cose/key/base.rb |