mixin_bot 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mixin_bot/transaction.rb +2 -0
- data/lib/mixin_bot/utils/crypto.rb +2 -2
- data/lib/mixin_bot/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6395d22ac9beb0d4385e388f56d15dad863c9a3a94e52a2f9db3211710e8295
|
4
|
+
data.tar.gz: 9aae9c090f3423cdd56977684530728be0f8fca038a88daeafb065c9acb087eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c77ea91ccd13cb5a5fdd7346541e0502dee29043ae10d117d337b0fd75a2761d306581b01e08b8e6d8ce58eb076bce24593e40b27e298556e988ada41917a10
|
7
|
+
data.tar.gz: efe0364c605d19ac5240b0877ec33316df487df0b5b60308e237451a4f757704465dd7642b4edc2e01b1c948dd8881c065ee2ee40a9a18b639f83e5aaa034c54
|
@@ -374,6 +374,8 @@ module MixinBot
|
|
374
374
|
|
375
375
|
signature.keys.sort.each do |key|
|
376
376
|
signature_bytes = [signature[key]].pack('H*').bytes
|
377
|
+
raise ArgumentError, 'Signature should be 64 bytes' if signature_bytes.size != 64
|
378
|
+
|
377
379
|
bytes += MixinBot.utils.encode_uint16 key
|
378
380
|
bytes += signature_bytes
|
379
381
|
end
|
@@ -85,7 +85,7 @@ module MixinBot
|
|
85
85
|
|
86
86
|
s_scalar = (x_scalar * y_scalar) + z_scalar
|
87
87
|
|
88
|
-
r_point.encode + s_scalar.to_bytes(
|
88
|
+
r_point.encode + s_scalar.to_bytes(32).ljust(32, "\x00")
|
89
89
|
end
|
90
90
|
|
91
91
|
def generate_unique_uuid(uuid1, uuid2)
|
@@ -211,7 +211,7 @@ module MixinBot
|
|
211
211
|
x_scalar = scalar_from_bytes x
|
212
212
|
y_scalar = scalar_from_bytes spend_key
|
213
213
|
|
214
|
-
(x_scalar + y_scalar).to_bytes(
|
214
|
+
(x_scalar + y_scalar).to_bytes(32)
|
215
215
|
end
|
216
216
|
end
|
217
217
|
end
|
data/lib/mixin_bot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mixin_bot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- an-lee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -321,7 +321,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
321
321
|
- !ruby/object:Gem::Version
|
322
322
|
version: '0'
|
323
323
|
requirements: []
|
324
|
-
rubygems_version: 3.5.
|
324
|
+
rubygems_version: 3.5.20
|
325
325
|
signing_key:
|
326
326
|
specification_version: 4
|
327
327
|
summary: A Ruby SDK for Mixin Nexwork
|