lib/acme/client/jwk/ecdsa.rb in acme-client-1.0.0 vs lib/acme/client/jwk/ecdsa.rb in acme-client-2.0.0

- old
+ new

@@ -80,11 +80,10 @@ [r, s].join end private - # rubocop:disable Metrics/AbcSize def coordinates @coordinates ||= begin hex = public_key.to_bn.to_s(16) data_len = hex.length - 2 hex_x = hex[2, data_len / 2] @@ -94,10 +93,9 @@ x: OpenSSL::BN.new([hex_x].pack('H*'), 2), y: OpenSSL::BN.new([hex_y].pack('H*'), 2) } end end - # rubocop:enable Metrics/AbcSize def public_key @private_key.public_key end end