Sha256: 1b33e230b7072a114980fa354b39a1663bfd421c87ada50959fd789c884daaf5
Contents?: true
Size: 575 Bytes
Versions: 8
Compression:
Stored size: 575 Bytes
Contents
require "cose/security_message" module COSE class Recipient < SecurityMessage attr_reader :ciphertext, :recipients def self.keyword_arguments_for_initialize(decoded) keyword_arguments = { ciphertext: decoded[0] } if decoded[1] keyword_arguments[:recipients] = decoded[1].map { |s| COSE::Recipient.deserialize(s) } end keyword_arguments end def initialize(ciphertext:, recipients: nil, **keyword_arguments) super(**keyword_arguments) @ciphertext = ciphertext @recipients = recipients end end end
Version data entries
8 entries across 8 versions & 1 rubygems