ecdsa_ext 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b62285517cc90d7dcb953cc669c69c22883e2804f729bf28e937922b43439aa
4
- data.tar.gz: 99f865acb675894ad30c868ddd7ce421c9a84fd063c4e57c5abe022419abf85c
3
+ metadata.gz: b7deba9160e31d20d837d2fce03b555c8f9dee1cc40c1bbdb04958c0a489e1ad
4
+ data.tar.gz: ec8fea9687a956a1390311257ae71b4d22bd9aea47867c8ae69310198da42deb
5
5
  SHA512:
6
- metadata.gz: 932217994dec3b19d5896eae554b94a98180d37836af0c921aaf08bc0667787a871cfc19d3745ffd538c3b6adca86a02ace890e5fd746ab406e97e6c7d8fbbac
7
- data.tar.gz: 35a8165ff84e644ad6866208d3bacc930112b37e999e1bfafc898b73825175983fb4a0875d8e2fcde1a60450b8a8d98bca0e533f204a65da7736a946a88124c3
6
+ metadata.gz: 4938e0327a13cfc62fe1c009d840ebe7c8a36aac30393cd72c0729b0c985ee14d92b05aaccfd0d5d9997d3e43869529de1e7f55762c527be00908f48c63419bd
7
+ data.tar.gz: 63d3a4e725d737a4ba5a625ba811b448e707a5c0cb121e7546d3b9ec51caebe3f6efa8981d4f3186918ab5c56540db33fc68500b952696394dba8a744caa7674
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ECDSA
4
+ # Extension of ECDSA::Point class.
5
+ class Point
6
+ # Convert coordinates to projective point.
7
+ # @return [ECDSA::Ext::ProjectivePoint]
8
+ def to_projective
9
+ ECDSA::Ext::ProjectivePoint.from_affine(self)
10
+ end
11
+ end
12
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ECDSA
4
4
  module Ext
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
data/lib/ecdsa/ext.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  require_relative "ext/version"
3
+ require_relative "ext/point"
3
4
  module ECDSA
4
5
  # Extension for ecdsa gem.
5
6
  module Ext
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecdsa_ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - azuchi
@@ -46,6 +46,7 @@ files:
46
46
  - bin/setup
47
47
  - ecdsa_ext.gemspec
48
48
  - lib/ecdsa/ext.rb
49
+ - lib/ecdsa/ext/point.rb
49
50
  - lib/ecdsa/ext/point_arithmetic.rb
50
51
  - lib/ecdsa/ext/projective_point.rb
51
52
  - lib/ecdsa/ext/version.rb