bitcoin-secp256k1 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/secp256k1/key.rb +1 -1
- data/lib/secp256k1/version.rb +1 -1
- data/test/secp256k1_test.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d36e6ccb0fd0eb123a66a40139756f414c8fc23642be70aa45cbab0e4a73ee84
|
4
|
+
data.tar.gz: 2c1ffa147209b75f43686231df61b98675d67fa0f83f88170db21ec408a185e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef8f810a7f40748c362bd8e4c1162486efbb9a8330906129075f7819b1d6b1cf88835e4247cc617c5d3073ed4625af9dbef1dd277030b5b92e564c4c7580f6b9
|
7
|
+
data.tar.gz: 8a428f795271a7878bafd6282e10128f52f99b6bda7539b85a90d412b1d411339970236363c763766fb3ecbaff596197407c12441d0c2fe2062c904d6659bc7b
|
data/Gemfile.lock
CHANGED
data/lib/secp256k1/key.rb
CHANGED
data/lib/secp256k1/version.rb
CHANGED
data/test/secp256k1_test.rb
CHANGED
@@ -37,6 +37,13 @@ class Secp256k1Test < Minitest::Test
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
+
def test_ecdsa_verity
|
41
|
+
pk = PrivateKey.new
|
42
|
+
raw_sig = pk.ecdsa_sign 'test'
|
43
|
+
assert pk.pubkey.ecdsa_verify('test', raw_sig)
|
44
|
+
assert !pk.pubkey.ecdsa_verify('testtest', raw_sig)
|
45
|
+
end
|
46
|
+
|
40
47
|
def test_ecdsa_compact
|
41
48
|
pk = PrivateKey.new
|
42
49
|
raw_sig = pk.ecdsa_sign 'test'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bitcoin-secp256k1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Xie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|