schnorr_sig 1.0.1.1 → 1.1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/Rakefile +7 -7
  4. data/VERSION +1 -1
  5. data/lib/schnorr_sig.rb +4 -13
  6. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 583aef17bbda178fd790a7cfddb29bdd1d38ee1d44092d3cb6afc2517a564a09
4
- data.tar.gz: 299a66f0e042c200b81f902e23ab2adb712a6260532fb28a6e23555cfc414db6
3
+ metadata.gz: '04096ddcd8421c7b601fa037d77fc049034203a886e2d635ee1257565ee72308'
4
+ data.tar.gz: a10d6ace74b3ae9e0b07421dcf59c4c8448101529894a65c3b78355b4b3bf8d0
5
5
  SHA512:
6
- metadata.gz: bb3a7ade41fcdd713ae0b9da0d8c0cf8c390f7c3da232e19e4be146f66bf45311aa19ab02025ff3b55e5dc11a000094817751aaf4dd2c4a9d7e9f93b455ff866
7
- data.tar.gz: 0dd87d6af1595d3a51b4d1788bb3b24f3c1a11a0997ceb3fc0543e422b4dde75fa04e2b3f1ca4ec5cdafe3fbd9f23091c23cd9608e9ea338e7a21f5b515a6dcf
6
+ metadata.gz: ee280ae97f3f823d7feb857376add0a601ff238462dff403fbba21c7fe0ff84c1918fc5886a680049b72fb85e083b59247c77c0a0aaea8c5e34015b1c6047b9c
7
+ data.tar.gz: ae6818931b8244e64d658c5541985035a1f93cae17748c65a41d02514b0e932fbbee7737658ccb6ae480bf2cba1a6b8220e6b60a79f3831d7b648b9dd425bd23
data/README.md CHANGED
@@ -110,7 +110,7 @@ Here are the fundamental functions common to both implementations:
110
110
  * `tagged_hash(str tag, str msg)` *returns* `32B hash`
111
111
  * `keypair()` *returns* `[32B sk, 32B pk]`
112
112
 
113
- Use `soft_verify?(pk, msg, sig)` to yield `false` if errors are raised.
113
+ Use `soft_verify?(pk, msg, sig)` to return false if errors are raised.
114
114
 
115
115
  ### Differences
116
116
 
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'rake/testtask'
2
2
 
3
- Rake::TestTask.new :test do |t|
3
+ Rake::TestTask.new :test => :vectors do |t|
4
4
  t.test_files = [
5
5
  'test/utils.rb',
6
6
  'test/pure.rb',
@@ -8,18 +8,18 @@ Rake::TestTask.new :test do |t|
8
8
  t.warning = true
9
9
  end
10
10
 
11
- Rake::TestTask.new :vectors do |t|
11
+ Rake::TestTask.new :fast => :vectors do |t|
12
12
  t.test_files = [
13
- 'test/vectors.rb',
14
- 'test/vectors_extra.rb',
13
+ 'test/utils.rb',
14
+ 'test/fast.rb',
15
15
  ]
16
16
  t.warning = true
17
17
  end
18
18
 
19
- Rake::TestTask.new :fast do |t|
19
+ Rake::TestTask.new :vectors do |t|
20
20
  t.test_files = [
21
- 'test/utils.rb',
22
- 'test/fast.rb',
21
+ 'test/vectors.rb',
22
+ 'test/vectors_extra.rb',
23
23
  ]
24
24
  t.warning = true
25
25
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1.1
1
+ 1.1.0.1
data/lib/schnorr_sig.rb CHANGED
@@ -1,16 +1,7 @@
1
- loaded = false
2
-
3
- if ENV['SCHNORR_SIG']&.downcase == 'fast'
4
- begin
5
- require 'schnorr_sig/fast'
6
- SchnorrSig.extend SchnorrSig::Fast
7
- loaded = true
8
- rescue LoadError => e
9
- warn [e.class, e.message].join(': ')
10
- end
11
- end
12
-
13
- unless loaded
1
+ begin
2
+ require 'schnorr_sig/fast'
3
+ SchnorrSig.extend SchnorrSig::Fast
4
+ rescue LoadError
14
5
  require 'schnorr_sig/pure'
15
6
  SchnorrSig.extend SchnorrSig::Pure
16
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schnorr_sig
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1.1
4
+ version: 1.1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rick Hull