Sha256: 418f247f915c00895accac926fddc7f00f466662f5a1b1bcfbd871dd36cf4e90

Contents?: true

Size: 338 Bytes

Versions: 8

Compression:

Stored size: 338 Bytes

Contents

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

8 entries across 8 versions & 1 rubygems

Version Path
cose-0.8.0 lib/cose/signature.rb
cose-0.7.0 lib/cose/signature.rb
cose-0.6.1 lib/cose/signature.rb
cose-0.6.0 lib/cose/signature.rb
cose-0.5.0 lib/cose/signature.rb
cose-0.4.1 lib/cose/signature.rb
cose-0.4.0 lib/cose/signature.rb
cose-0.3.0 lib/cose/signature.rb