Sha256: ab0b8a93d696d4cab1c1dd80540f8cc39ee26054281fab992504ad1a8c92c5f0

Contents?: true

Size: 369 Bytes

Versions: 9

Compression:

Stored size: 369 Bytes

Contents

# frozen_string_literal: true

require "cose/security_message"

module COSE
  class Signature < SecurityMessage
    attr_reader :signature

    def self.keyword_arguments_for_initialize(decoded)
      { signature: decoded[0] }
    end

    def initialize(signature:, **keyword_arguments)
      super(**keyword_arguments)

      @signature = signature
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cose-1.3.1 lib/cose/signature.rb
cose-1.3.0 lib/cose/signature.rb
cose-1.2.1 lib/cose/signature.rb
cose-1.2.0 lib/cose/signature.rb
cose-1.1.0 lib/cose/signature.rb
cose-1.0.0 lib/cose/signature.rb
cose-0.11.0 lib/cose/signature.rb
cose-0.10.0 lib/cose/signature.rb
cose-0.9.0 lib/cose/signature.rb