Sha256: ad383f0b95de54e3e7e0736f9504263b2bb51fa147394acd585e0a0f4cb7488a
Contents?: true
Size: 428 Bytes
Versions: 8
Compression:
Stored size: 428 Bytes
Contents
require "cbor" require "cose/security_message" module COSE class Sign1 < SecurityMessage attr_reader :payload, :signature def self.keyword_arguments_for_initialize(decoded) { payload: CBOR.decode(decoded[0]), signature: decoded[1] } end def initialize(payload:, signature:, **keyword_arguments) super(**keyword_arguments) @payload = payload @signature = signature end end end
Version data entries
8 entries across 8 versions & 1 rubygems