Method: COSE::Key::EC2#initialize

Defined in:
lib/cose/key/ec2.rb

#initialize(attrs = {}) ⇒ EC2

Returns a new instance of EC2.



22
23
24
25
26
27
28
# File 'lib/cose/key/ec2.rb', line 22

def initialize(attrs = {})
  super
  self.crv = attrs[CRV]
  self.x = attrs[X]
  self.y = attrs[Y]
  self.d = attrs[D]
end