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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f2511bfcedc7830c107d0391dcf70b6312df06e6fe5e4a7a3fe87d9e01eecbb
4
- data.tar.gz: 767b15073c03f315d25ddd28cc3fb6058d091d9705228608b09d324870eb9221
3
+ metadata.gz: b6395d22ac9beb0d4385e388f56d15dad863c9a3a94e52a2f9db3211710e8295
4
+ data.tar.gz: 9aae9c090f3423cdd56977684530728be0f8fca038a88daeafb065c9acb087eb
5
5
  SHA512:
6
- metadata.gz: 65c555699eae57ff19352a63618e555d7ab8feeb69f18c5199926c00255f20b11c6f954c201665ca8bce7cd3df1bddf54be3caa9e076209d3142c049f1427e3f
7
- data.tar.gz: d78eeff877df1cd5b2d0e8a2491dfac42e93659cf18f3762b5b84d119df29c86c6d0b9442d29999437914fed2a95ebe49d2239eaf7ef2f7f5a16b7a3d456b7e3
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(36)
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(36)
214
+ (x_scalar + y_scalar).to_bytes(32)
215
215
  end
216
216
  end
217
217
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MixinBot
4
- VERSION = '1.2.2'
4
+ VERSION = '1.2.3'
5
5
  end
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.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-08-30 00:00:00.000000000 Z
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.17
324
+ rubygems_version: 3.5.20
325
325
  signing_key:
326
326
  specification_version: 4
327
327
  summary: A Ruby SDK for Mixin Nexwork