bls12-381 0.2.1 → 0.2.2

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: 99316469ec10f56e7547ee00a2496693a9bf637f3671a252481d0cd8db826625
4
- data.tar.gz: 58d6687cd394025e3c03981eaf4a12cf1843a859cad20a1b0790caae02027d02
3
+ metadata.gz: 6b881234573ce97de2f335ffb3fc245e2c0ab586dc66b881e6caa9fdc09b623c
4
+ data.tar.gz: c5aeaeaab593ddfa9053a729a590ccef8c1d01ccdc8219bb9ce90be9e165f644
5
5
  SHA512:
6
- metadata.gz: be64b1239722876a9fb0e4c3b0326e90d1fcbf945bb1d3f01e66c468f6213653c7c30b9caa743ac8438d404602bcf5279c7192237362139229615e226949f18b
7
- data.tar.gz: 21904be1eb488d0f856a7aeec9b8c5d3275ebd6d6d5be9cd7388d0aeff816f15480136f13498e6ae540dfdca0e3bd6cb7ed6fc941218eaf2b06d781daa1400f2
6
+ metadata.gz: 40a7ac130ea64f950cd0a6e13107ebe0a4d62a4281828f0ecd7a19a133939d27e2eacf773eb0101b7d0790e77a2df736d3d351c0cb6bb33bd7bb393dd757d9cf
7
+ data.tar.gz: a733451aaa70fcb037aed82f45bd0aa1abe58519a276dd81c9b8d8b7cbcf470ec7358b914b10d0cf9049187e5fcf798138410cc4ca4186112aa30909cc2941f9
@@ -5,12 +5,20 @@ on: [push,pull_request]
5
5
  jobs:
6
6
  build:
7
7
  runs-on: ubuntu-latest
8
+ name: Ruby ${{ matrix.ruby }}
9
+ strategy:
10
+ matrix:
11
+ ruby:
12
+ - '3.0.5'
13
+ - '3.1.3'
14
+ - '3.2.0'
8
15
  steps:
9
16
  - uses: actions/checkout@v2
10
17
  - name: Set up Ruby
11
18
  uses: ruby/setup-ruby@v1
12
19
  with:
13
- ruby-version: 3.0.0
20
+ ruby-version: ${{ matrix.ruby }}
21
+ bundler-cache: true
14
22
  - name: Run the default task
15
23
  run: |
16
24
  gem install bundler -v 2.2.11
data/lib/bls/field.rb CHANGED
@@ -63,6 +63,15 @@ module BLS
63
63
  multiply(v)
64
64
  end
65
65
  alias / div
66
+
67
+ def to_s
68
+ value.to_s
69
+ end
70
+
71
+ def ==(other)
72
+ return false unless other.is_a?(self.class)
73
+ value == other.value
74
+ end
66
75
  end
67
76
 
68
77
  # Finite field over q.
data/lib/bls/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BLS
4
- VERSION = '0.2.1'
4
+ VERSION = '0.2.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bls12-381
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shigeyuki Azuchi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-16 00:00:00.000000000 Z
11
+ date: 2023-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler