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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9daded734687b356d4147443cafec3ebd9ce34389b359ada33187985126bda24
4
- data.tar.gz: e47abb0c23075e7ab2e9cf49123fbf615ab8565761fba0cde772b8c199c475f4
3
+ metadata.gz: db5e8ba0d30e8b606984d821a7d19f499214f8cee6ec63c7637d725800aded1f
4
+ data.tar.gz: a36f35d9d9970e09a6f45ae2391f74c4cd4a62583e1faeca5c4196193e54a28e
5
5
  SHA512:
6
- metadata.gz: 748ae0fe478678a849aee8884f19e8e8ba493fee30e3d8cd60c65479120718d30f4ff0a22134dec67fbf8487f199a9ad8edbe63da3604e55337e9fe1c3530f33
7
- data.tar.gz: 26eacdf649584978df4433eb103eb6a35f512e4ccd31e52403f7baf741275f0218d2a32dfff00fcb7037b95ed9c736b65bffba9c5088e0e649c50b199d0adbb9
6
+ metadata.gz: 75c4b294406ae6c65f35160bc92ea4e48b203ea3b125c27bf2932e59a08363a3f85554f6f11bf9b5856f80a6ccf81c503f841467f451e3344eee002078a57b19
7
+ data.tar.gz: 92030f3ac79c05697d6ae50873e525228face08bbea4ba0cd21015fe43589a932868f00ce6a0402a3901935e26eaceaf7382dd30f118a23d315a4cc974d2bf83
@@ -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 *result, const secp256k1_pubkey *point, const unsigned char *scalar)
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
@@ -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)
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : ascii-8bit -*-
2
2
  module Secp256k1
3
- VERSION = '0.4.0'
3
+ VERSION = '0.4.1'
4
4
  end
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.0
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: 2018-01-05 00:00:00.000000000 Z
11
+ date: 2019-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler