secp256k1-ruby 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/secp256k1/c.rb +2 -2
- data/lib/secp256k1/key.rb +1 -1
- data/lib/secp256k1/version.rb +1 -1
- 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: db5e8ba0d30e8b606984d821a7d19f499214f8cee6ec63c7637d725800aded1f
|
4
|
+
data.tar.gz: a36f35d9d9970e09a6f45ae2391f74c4cd4a62583e1faeca5c4196193e54a28e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75c4b294406ae6c65f35160bc92ea4e48b203ea3b125c27bf2932e59a08363a3f85554f6f11bf9b5856f80a6ccf81c503f841467f451e3344eee002078a57b19
|
7
|
+
data.tar.gz: 92030f3ac79c05697d6ae50873e525228face08bbea4ba0cd21015fe43589a932868f00ce6a0402a3901935e26eaceaf7382dd30f118a23d315a4cc974d2bf83
|
data/lib/secp256k1/c.rb
CHANGED
@@ -85,7 +85,7 @@ module Secp256k1
|
|
85
85
|
# int secp256k1_ecdsa_recoverable_signature_convert(const secp256k1_context *ctx, secp256k1_ecdsa_signature *sig, const secp256k1_ecdsa_recoverable_signature *sigin)
|
86
86
|
attach_function :secp256k1_ecdsa_recoverable_signature_convert, [:pointer, :pointer, :pointer], :int
|
87
87
|
|
88
|
-
# int secp256k1_ecdh(const secp256k1_context* ctx, unsigned char *
|
89
|
-
attach_function :secp256k1_ecdh, [:pointer, :pointer, :pointer, :pointer], :int
|
88
|
+
# int secp256k1_ecdh(const secp256k1_context* ctx, unsigned char *output, const secp256k1_pubkey *point, const unsigned char *scalar, secp256k1_ecdh_hash_function hashfp, void *data)
|
89
|
+
attach_function :secp256k1_ecdh, [:pointer, :pointer, :pointer, :pointer, :pointer, :pointer], :int
|
90
90
|
end
|
91
91
|
end
|
data/lib/secp256k1/key.rb
CHANGED
@@ -113,7 +113,7 @@ module Secp256k1
|
|
113
113
|
|
114
114
|
result = FFI::MemoryPointer.new :char, 32
|
115
115
|
|
116
|
-
res = C.secp256k1_ecdh @ctx, result, @public_key, scalar
|
116
|
+
res = C.secp256k1_ecdh @ctx, result, @public_key, scalar, nil, nil
|
117
117
|
raise AssertError, "invalid scalar (#{scalar})" unless res == 1
|
118
118
|
|
119
119
|
result.read_bytes(32)
|
data/lib/secp256k1/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: secp256k1-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hajime Yamaguchi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|