glueby 1.1.0 → 1.1.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a8f1227734487ffe7cfec63f102badd602e5d37688534aa46889eee5ba666b3
|
4
|
+
data.tar.gz: 67012970c3960b835e122f1d4e29dc231bcbb8ab9dc0b76045ba8827f73174da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8db5d47bfb94b58d23e1cb64dae9058ce04d063b1cdba6064ad3e881b68a3a7701d5eb3ccec26c1ce8d6df2619672366912bd0e7395ef86d4d2981ce28b85ff
|
7
|
+
data.tar.gz: cf939bae1b6d2850cda5e461b30ed3998d1b0c0e167ce5da4135d4afcab3a2d82728350dfaf4fb2fac9eb95d29f9f1868001b1694a9eefacc7cc339b00fd58b9
|
@@ -209,7 +209,11 @@ module Glueby
|
|
209
209
|
|
210
210
|
key = Tapyrus::Key.new(pubkey: payment_base, key_type: Tapyrus::Key::TYPES[:compressed])
|
211
211
|
commitment = create_pay_to_contract_commitment(key, contents)
|
212
|
-
|
212
|
+
p2c_private_key = (ar_key.private_key.to_i(16) + commitment) % group.order # K + commitment
|
213
|
+
Tapyrus::Key.new(
|
214
|
+
priv_key: ECDSA::Format::IntegerOctetString.encode(p2c_private_key, 32).bth,
|
215
|
+
key_type: Tapyrus::Key::TYPES[:compressed]
|
216
|
+
)
|
213
217
|
end
|
214
218
|
end
|
215
219
|
end
|
data/lib/glueby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glueby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- azuchi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tapyrus
|