everscale-client-ruby 1.1.50 → 1.1.60

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,21 +3,28 @@ module TonClient
3
3
  class Crypto
4
4
  include CommonInstanceHelpers
5
5
 
6
- attr_reader :context, :request_id, :requests
6
+ attr_reader :context, :request_id, :requests, :monitor
7
7
  MODULE = self.to_s.downcase.gsub(/^(.+::|)(\w+)$/, '\2').freeze
8
8
 
9
- def initialize(context: nil, request_id: nil, requests: nil)
9
+ def initialize(context: nil, request_id: nil, requests: nil, monitor: nil)
10
10
  @context = context
11
11
  @request_id = request_id
12
12
  @requests = requests
13
+ @monitor = monitor
13
14
  end
14
15
 
15
16
  # INPUT: ParamsOfFactorize
16
17
  # composite: String - # # Hexadecimal representation of u64 composite number.
17
18
  # RESPONSE: ResultOfFactorize
18
19
  # factors: Array - # # Two factors of composite or empty if composite can't be factorized.
20
+ # Async
19
21
  def factorize(payload, &block)
20
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
22
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
23
+ end
24
+
25
+ # Sync
26
+ def factorize_sync(payload)
27
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
21
28
  end
22
29
 
23
30
  # INPUT: ParamsOfModularPower
@@ -26,39 +33,69 @@ module TonClient
26
33
  # modulus: String - # # `modulus` argument of calculation.
27
34
  # RESPONSE: ResultOfModularPower
28
35
  # modular_power: String - # # Result of modular exponentiation
36
+ # Async
29
37
  def modular_power(payload, &block)
30
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
38
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
39
+ end
40
+
41
+ # Sync
42
+ def modular_power_sync(payload)
43
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
31
44
  end
32
45
 
33
46
  # INPUT: ParamsOfTonCrc16
34
47
  # data: String - # # Input data for CRC calculation. # # Encoded with `base64`.
35
48
  # RESPONSE: ResultOfTonCrc16
36
49
  # crc: Number - # # Calculated CRC for input data.
50
+ # Async
37
51
  def ton_crc16(payload, &block)
38
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
52
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
53
+ end
54
+
55
+ # Sync
56
+ def ton_crc16_sync(payload)
57
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
39
58
  end
40
59
 
41
60
  # INPUT: ParamsOfGenerateRandomBytes
42
61
  # length: Number - # # Size of random byte array.
43
62
  # RESPONSE: ResultOfGenerateRandomBytes
44
63
  # bytes: String - # # Generated bytes encoded in `base64`.
64
+ # Async
45
65
  def generate_random_bytes(payload, &block)
46
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
66
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
67
+ end
68
+
69
+ # Sync
70
+ def generate_random_bytes_sync(payload)
71
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
47
72
  end
48
73
 
49
74
  # INPUT: ParamsOfConvertPublicKeyToTonSafeFormat
50
75
  # public_key: String - # # Public key - 64 symbols hex string
51
76
  # RESPONSE: ResultOfConvertPublicKeyToTonSafeFormat
52
77
  # ton_public_key: String - # # Public key represented in TON safe format.
78
+ # Async
53
79
  def convert_public_key_to_ton_safe_format(payload, &block)
54
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
80
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
81
+ end
82
+
83
+ # Sync
84
+ def convert_public_key_to_ton_safe_format_sync(payload)
85
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
55
86
  end
56
87
 
57
88
  # RESPONSE: KeyPair
58
89
  # public: String - # # Public key - 64 symbols hex string
59
90
  # secret: String - # # Private key - u64 symbols hex string
91
+ # Async
60
92
  def generate_random_sign_keys(&block)
61
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
93
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
94
+ end
95
+
96
+ # Sync
97
+ def generate_random_sign_keys_sync()
98
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: {})
62
99
  end
63
100
 
64
101
  # INPUT: ParamsOfSign
@@ -67,8 +104,14 @@ module TonClient
67
104
  # RESPONSE: ResultOfSign
68
105
  # signed: String - # # Signed data combined with signature encoded in `base64`.
69
106
  # signature: String - # # Signature encoded in `hex`.
107
+ # Async
70
108
  def sign(payload, &block)
71
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
109
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
110
+ end
111
+
112
+ # Sync
113
+ def sign_sync(payload)
114
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
72
115
  end
73
116
 
74
117
  # INPUT: ParamsOfVerifySignature
@@ -76,24 +119,42 @@ module TonClient
76
119
  # public: String - # # Signer's public key - 64 symbols hex string
77
120
  # RESPONSE: ResultOfVerifySignature
78
121
  # unsigned: String - # # Unsigned data encoded in `base64`.
122
+ # Async
79
123
  def verify_signature(payload, &block)
80
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
124
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
125
+ end
126
+
127
+ # Sync
128
+ def verify_signature_sync(payload)
129
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
81
130
  end
82
131
 
83
132
  # INPUT: ParamsOfHash
84
133
  # data: String - # # Input data for hash calculation. # # Encoded with `base64`.
85
134
  # RESPONSE: ResultOfHash
86
135
  # hash: String - # # Hash of input `data`. # # Encoded with 'hex'.
136
+ # Async
87
137
  def sha256(payload, &block)
88
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
138
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
139
+ end
140
+
141
+ # Sync
142
+ def sha256_sync(payload)
143
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
89
144
  end
90
145
 
91
146
  # INPUT: ParamsOfHash
92
147
  # data: String - # # Input data for hash calculation. # # Encoded with `base64`.
93
148
  # RESPONSE: ResultOfHash
94
149
  # hash: String - # # Hash of input `data`. # # Encoded with 'hex'.
150
+ # Async
95
151
  def sha512(payload, &block)
96
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
152
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
153
+ end
154
+
155
+ # Sync
156
+ def sha512_sync(payload)
157
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
97
158
  end
98
159
 
99
160
  # INPUT: ParamsOfScrypt
@@ -105,8 +166,14 @@ module TonClient
105
166
  # dk_len: Number - # # Intended output length in octets of the derived key.
106
167
  # RESPONSE: ResultOfScrypt
107
168
  # key: String - # # Derived key. # # Encoded with `hex`.
169
+ # Async
108
170
  def scrypt(payload, &block)
109
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
171
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
172
+ end
173
+
174
+ # Sync
175
+ def scrypt_sync(payload)
176
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
110
177
  end
111
178
 
112
179
  # INPUT: ParamsOfNaclSignKeyPairFromSecret
@@ -114,8 +181,14 @@ module TonClient
114
181
  # RESPONSE: KeyPair
115
182
  # public: String - # # Public key - 64 symbols hex string
116
183
  # secret: String - # # Private key - u64 symbols hex string
184
+ # Async
117
185
  def nacl_sign_keypair_from_secret_key(payload, &block)
118
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
186
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
187
+ end
188
+
189
+ # Sync
190
+ def nacl_sign_keypair_from_secret_key_sync(payload)
191
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
119
192
  end
120
193
 
121
194
  # INPUT: ParamsOfNaclSign
@@ -123,8 +196,14 @@ module TonClient
123
196
  # secret: String - # # Signer's secret key - unprefixed 0-padded to 128 symbols hex string (concatenation of 64 symbols secret and 64 symbols public keys). See `nacl_sign_keypair_from_secret_key`.
124
197
  # RESPONSE: ResultOfNaclSign
125
198
  # signed: String - # # Signed data, encoded in `base64`.
199
+ # Async
126
200
  def nacl_sign(payload, &block)
127
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
201
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
202
+ end
203
+
204
+ # Sync
205
+ def nacl_sign_sync(payload)
206
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
128
207
  end
129
208
 
130
209
  # INPUT: ParamsOfNaclSignOpen
@@ -132,8 +211,14 @@ module TonClient
132
211
  # public: String - # # Signer's public key - unprefixed 0-padded to 64 symbols hex string
133
212
  # RESPONSE: ResultOfNaclSignOpen
134
213
  # unsigned: String - # # Unsigned data, encoded in `base64`.
214
+ # Async
135
215
  def nacl_sign_open(payload, &block)
136
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
216
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
217
+ end
218
+
219
+ # Sync
220
+ def nacl_sign_open_sync(payload)
221
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
137
222
  end
138
223
 
139
224
  # INPUT: ParamsOfNaclSign
@@ -141,8 +226,14 @@ module TonClient
141
226
  # secret: String - # # Signer's secret key - unprefixed 0-padded to 128 symbols hex string (concatenation of 64 symbols secret and 64 symbols public keys). See `nacl_sign_keypair_from_secret_key`.
142
227
  # RESPONSE: ResultOfNaclSignDetached
143
228
  # signature: String - # # Signature encoded in `hex`.
229
+ # Async
144
230
  def nacl_sign_detached(payload, &block)
145
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
231
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
232
+ end
233
+
234
+ # Sync
235
+ def nacl_sign_detached_sync(payload)
236
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
146
237
  end
147
238
 
148
239
  # INPUT: ParamsOfNaclSignDetachedVerify
@@ -151,15 +242,27 @@ module TonClient
151
242
  # public: String - # # Signer's public key - unprefixed 0-padded to 64 symbols hex string.
152
243
  # RESPONSE: ResultOfNaclSignDetachedVerify
153
244
  # succeeded: Boolean - # # `true` if verification succeeded or `false` if it failed
245
+ # Async
154
246
  def nacl_sign_detached_verify(payload, &block)
155
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
247
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
248
+ end
249
+
250
+ # Sync
251
+ def nacl_sign_detached_verify_sync(payload)
252
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
156
253
  end
157
254
 
158
255
  # RESPONSE: KeyPair
159
256
  # public: String - # # Public key - 64 symbols hex string
160
257
  # secret: String - # # Private key - u64 symbols hex string
258
+ # Async
161
259
  def nacl_box_keypair(&block)
162
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
260
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
261
+ end
262
+
263
+ # Sync
264
+ def nacl_box_keypair_sync()
265
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: {})
163
266
  end
164
267
 
165
268
  # INPUT: ParamsOfNaclBoxKeyPairFromSecret
@@ -167,8 +270,14 @@ module TonClient
167
270
  # RESPONSE: KeyPair
168
271
  # public: String - # # Public key - 64 symbols hex string
169
272
  # secret: String - # # Private key - u64 symbols hex string
273
+ # Async
170
274
  def nacl_box_keypair_from_secret_key(payload, &block)
171
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
275
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
276
+ end
277
+
278
+ # Sync
279
+ def nacl_box_keypair_from_secret_key_sync(payload)
280
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
172
281
  end
173
282
 
174
283
  # INPUT: ParamsOfNaclBox
@@ -178,8 +287,14 @@ module TonClient
178
287
  # secret: String - # # Sender's private key - unprefixed 0-padded to 64 symbols hex string
179
288
  # RESPONSE: ResultOfNaclBox
180
289
  # encrypted: String - # # Encrypted data encoded in `base64`.
290
+ # Async
181
291
  def nacl_box(payload, &block)
182
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
292
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
293
+ end
294
+
295
+ # Sync
296
+ def nacl_box_sync(payload)
297
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
183
298
  end
184
299
 
185
300
  # INPUT: ParamsOfNaclBoxOpen
@@ -189,8 +304,14 @@ module TonClient
189
304
  # secret: String - # # Receiver's private key - unprefixed 0-padded to 64 symbols hex string
190
305
  # RESPONSE: ResultOfNaclBoxOpen
191
306
  # decrypted: String - # # Decrypted data encoded in `base64`.
307
+ # Async
192
308
  def nacl_box_open(payload, &block)
193
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
309
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
310
+ end
311
+
312
+ # Sync
313
+ def nacl_box_open_sync(payload)
314
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
194
315
  end
195
316
 
196
317
  # INPUT: ParamsOfNaclSecretBox
@@ -199,8 +320,14 @@ module TonClient
199
320
  # key: String - # # Secret key - unprefixed 0-padded to 64 symbols hex string
200
321
  # RESPONSE: ResultOfNaclBox
201
322
  # encrypted: String - # # Encrypted data encoded in `base64`.
323
+ # Async
202
324
  def nacl_secret_box(payload, &block)
203
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
325
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
326
+ end
327
+
328
+ # Sync
329
+ def nacl_secret_box_sync(payload)
330
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
204
331
  end
205
332
 
206
333
  # INPUT: ParamsOfNaclSecretBoxOpen
@@ -209,16 +336,28 @@ module TonClient
209
336
  # key: String - # # Secret key - unprefixed 0-padded to 64 symbols hex string
210
337
  # RESPONSE: ResultOfNaclBoxOpen
211
338
  # decrypted: String - # # Decrypted data encoded in `base64`.
339
+ # Async
212
340
  def nacl_secret_box_open(payload, &block)
213
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
341
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
342
+ end
343
+
344
+ # Sync
345
+ def nacl_secret_box_open_sync(payload)
346
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
214
347
  end
215
348
 
216
349
  # INPUT: ParamsOfMnemonicWords
217
350
  # dictionary: MnemonicDictionary - # # Dictionary identifier
218
351
  # RESPONSE: ResultOfMnemonicWords
219
352
  # words: String - # # The list of mnemonic words
353
+ # Async
220
354
  def mnemonic_words(payload, &block)
221
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
355
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
356
+ end
357
+
358
+ # Sync
359
+ def mnemonic_words_sync(payload)
360
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
222
361
  end
223
362
 
224
363
  # INPUT: ParamsOfMnemonicFromRandom
@@ -226,8 +365,14 @@ module TonClient
226
365
  # word_count: Number<Optional> - # # Mnemonic word count
227
366
  # RESPONSE: ResultOfMnemonicFromRandom
228
367
  # phrase: String - # # String of mnemonic words
368
+ # Async
229
369
  def mnemonic_from_random(payload, &block)
230
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
370
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
371
+ end
372
+
373
+ # Sync
374
+ def mnemonic_from_random_sync(payload)
375
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
231
376
  end
232
377
 
233
378
  # INPUT: ParamsOfMnemonicFromEntropy
@@ -236,8 +381,14 @@ module TonClient
236
381
  # word_count: Number<Optional> - # # Mnemonic word count
237
382
  # RESPONSE: ResultOfMnemonicFromEntropy
238
383
  # phrase: String - # # Phrase
384
+ # Async
239
385
  def mnemonic_from_entropy(payload, &block)
240
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
386
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
387
+ end
388
+
389
+ # Sync
390
+ def mnemonic_from_entropy_sync(payload)
391
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
241
392
  end
242
393
 
243
394
  # INPUT: ParamsOfMnemonicVerify
@@ -246,8 +397,14 @@ module TonClient
246
397
  # word_count: Number<Optional> - # # Word count
247
398
  # RESPONSE: ResultOfMnemonicVerify
248
399
  # valid: Boolean - # # Flag indicating if the mnemonic is valid or not
400
+ # Async
249
401
  def mnemonic_verify(payload, &block)
250
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
402
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
403
+ end
404
+
405
+ # Sync
406
+ def mnemonic_verify_sync(payload)
407
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
251
408
  end
252
409
 
253
410
  # INPUT: ParamsOfMnemonicDeriveSignKeys
@@ -258,8 +415,14 @@ module TonClient
258
415
  # RESPONSE: KeyPair
259
416
  # public: String - # # Public key - 64 symbols hex string
260
417
  # secret: String - # # Private key - u64 symbols hex string
418
+ # Async
261
419
  def mnemonic_derive_sign_keys(payload, &block)
262
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
420
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
421
+ end
422
+
423
+ # Sync
424
+ def mnemonic_derive_sign_keys_sync(payload)
425
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
263
426
  end
264
427
 
265
428
  # INPUT: ParamsOfHDKeyXPrvFromMnemonic
@@ -268,8 +431,14 @@ module TonClient
268
431
  # word_count: Number<Optional> - # # Mnemonic word count
269
432
  # RESPONSE: ResultOfHDKeyXPrvFromMnemonic
270
433
  # xprv: String - # # Serialized extended master private key
434
+ # Async
271
435
  def hdkey_xprv_from_mnemonic(payload, &block)
272
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
436
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
437
+ end
438
+
439
+ # Sync
440
+ def hdkey_xprv_from_mnemonic_sync(payload)
441
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
273
442
  end
274
443
 
275
444
  # INPUT: ParamsOfHDKeyDeriveFromXPrv
@@ -278,8 +447,14 @@ module TonClient
278
447
  # hardened: Boolean - # # Indicates the derivation of hardened/not-hardened key (see BIP-0032)
279
448
  # RESPONSE: ResultOfHDKeyDeriveFromXPrv
280
449
  # xprv: String - # # Serialized extended private key
450
+ # Async
281
451
  def hdkey_derive_from_xprv(payload, &block)
282
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
452
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
453
+ end
454
+
455
+ # Sync
456
+ def hdkey_derive_from_xprv_sync(payload)
457
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
283
458
  end
284
459
 
285
460
  # INPUT: ParamsOfHDKeyDeriveFromXPrvPath
@@ -287,24 +462,42 @@ module TonClient
287
462
  # path: String - # # Derivation path, for instance "m/44'/396'/0'/0/0"
288
463
  # RESPONSE: ResultOfHDKeyDeriveFromXPrvPath
289
464
  # xprv: String - # # Derived serialized extended private key
465
+ # Async
290
466
  def hdkey_derive_from_xprv_path(payload, &block)
291
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
467
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
468
+ end
469
+
470
+ # Sync
471
+ def hdkey_derive_from_xprv_path_sync(payload)
472
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
292
473
  end
293
474
 
294
475
  # INPUT: ParamsOfHDKeySecretFromXPrv
295
476
  # xprv: String - # # Serialized extended private key
296
477
  # RESPONSE: ResultOfHDKeySecretFromXPrv
297
478
  # secret: String - # # Private key - 64 symbols hex string
479
+ # Async
298
480
  def hdkey_secret_from_xprv(payload, &block)
299
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
481
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
482
+ end
483
+
484
+ # Sync
485
+ def hdkey_secret_from_xprv_sync(payload)
486
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
300
487
  end
301
488
 
302
489
  # INPUT: ParamsOfHDKeyPublicFromXPrv
303
490
  # xprv: String - # # Serialized extended private key
304
491
  # RESPONSE: ResultOfHDKeyPublicFromXPrv
305
492
  # public: String - # # Public key - 64 symbols hex string
493
+ # Async
306
494
  def hdkey_public_from_xprv(payload, &block)
307
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
495
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
496
+ end
497
+
498
+ # Sync
499
+ def hdkey_public_from_xprv_sync(payload)
500
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
308
501
  end
309
502
 
310
503
  # INPUT: ParamsOfChaCha20
@@ -313,8 +506,14 @@ module TonClient
313
506
  # nonce: String - # # 96-bit nonce. # # Must be encoded with `hex`.
314
507
  # RESPONSE: ResultOfChaCha20
315
508
  # data: String - # # Encrypted/decrypted data. # # Encoded with `base64`.
509
+ # Async
316
510
  def chacha20(payload, &block)
317
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
511
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
512
+ end
513
+
514
+ # Sync
515
+ def chacha20_sync(payload)
516
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
318
517
  end
319
518
 
320
519
  # INPUT: ParamsOfCreateCryptoBox
@@ -322,22 +521,40 @@ module TonClient
322
521
  # secret: CryptoBoxSecret - # # Cryptobox secret
323
522
  # RESPONSE: RegisteredCryptoBox
324
523
  # handle: CryptoBoxHandle -
524
+ # Async
325
525
  def create_crypto_box(payload, &block)
326
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
526
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
527
+ end
528
+
529
+ # Sync
530
+ def create_crypto_box_sync(payload)
531
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
327
532
  end
328
533
 
329
534
  # INPUT: RegisteredCryptoBox
330
535
  # handle: CryptoBoxHandle -
536
+ # Async
331
537
  def remove_crypto_box(payload, &block)
332
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
538
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
539
+ end
540
+
541
+ # Sync
542
+ def remove_crypto_box_sync(payload)
543
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
333
544
  end
334
545
 
335
546
  # INPUT: RegisteredCryptoBox
336
547
  # handle: CryptoBoxHandle -
337
548
  # RESPONSE: ResultOfGetCryptoBoxInfo
338
549
  # encrypted_secret: String - # # Secret (seed phrase) encrypted with salt and password.
550
+ # Async
339
551
  def get_crypto_box_info(payload, &block)
340
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
552
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
553
+ end
554
+
555
+ # Sync
556
+ def get_crypto_box_info_sync(payload)
557
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
341
558
  end
342
559
 
343
560
  # INPUT: RegisteredCryptoBox
@@ -346,8 +563,14 @@ module TonClient
346
563
  # phrase: String -
347
564
  # dictionary: MnemonicDictionary -
348
565
  # wordcount: Number -
566
+ # Async
349
567
  def get_crypto_box_seed_phrase(payload, &block)
350
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
568
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
569
+ end
570
+
571
+ # Sync
572
+ def get_crypto_box_seed_phrase_sync(payload)
573
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
351
574
  end
352
575
 
353
576
  # INPUT: ParamsOfGetSigningBoxFromCryptoBox
@@ -356,8 +579,14 @@ module TonClient
356
579
  # secret_lifetime: Number<Optional> - # # Store derived secret for this lifetime (in ms). The timer starts after each signing box operation. Secrets will be deleted immediately after each signing box operation, if this value is not set.
357
580
  # RESPONSE: RegisteredSigningBox
358
581
  # handle: SigningBoxHandle - # # Handle of the signing box.
582
+ # Async
359
583
  def get_signing_box_from_crypto_box(payload, &block)
360
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
584
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
585
+ end
586
+
587
+ # Sync
588
+ def get_signing_box_from_crypto_box_sync(payload)
589
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
361
590
  end
362
591
 
363
592
  # INPUT: ParamsOfGetEncryptionBoxFromCryptoBox
@@ -367,20 +596,38 @@ module TonClient
367
596
  # secret_lifetime: Number<Optional> - # # Store derived secret for encryption algorithm for this lifetime (in ms). The timer starts after each encryption box operation. Secrets will be deleted (overwritten with zeroes) after each encryption operation, if this value is not set.
368
597
  # RESPONSE: RegisteredEncryptionBox
369
598
  # handle: EncryptionBoxHandle - # # Handle of the encryption box.
599
+ # Async
370
600
  def get_encryption_box_from_crypto_box(payload, &block)
371
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
601
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
602
+ end
603
+
604
+ # Sync
605
+ def get_encryption_box_from_crypto_box_sync(payload)
606
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
372
607
  end
373
608
 
374
609
  # INPUT: RegisteredCryptoBox
375
610
  # handle: CryptoBoxHandle -
611
+ # Async
376
612
  def clear_crypto_box_secret_cache(payload, &block)
377
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
613
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
614
+ end
615
+
616
+ # Sync
617
+ def clear_crypto_box_secret_cache_sync(payload)
618
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
378
619
  end
379
620
 
380
621
  # RESPONSE: RegisteredSigningBox
381
622
  # handle: SigningBoxHandle - # # Handle of the signing box.
623
+ # Async
382
624
  def register_signing_box(&block)
383
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
625
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
626
+ end
627
+
628
+ # Sync
629
+ def register_signing_box_sync()
630
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: {})
384
631
  end
385
632
 
386
633
  # INPUT: KeyPair
@@ -388,16 +635,28 @@ module TonClient
388
635
  # secret: String - # # Private key - u64 symbols hex string
389
636
  # RESPONSE: RegisteredSigningBox
390
637
  # handle: SigningBoxHandle - # # Handle of the signing box.
638
+ # Async
391
639
  def get_signing_box(payload, &block)
392
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
640
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
641
+ end
642
+
643
+ # Sync
644
+ def get_signing_box_sync(payload)
645
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
393
646
  end
394
647
 
395
648
  # INPUT: RegisteredSigningBox
396
649
  # handle: SigningBoxHandle - # # Handle of the signing box.
397
650
  # RESPONSE: ResultOfSigningBoxGetPublicKey
398
651
  # pubkey: String - # # Public key of signing box. # # Encoded with hex
652
+ # Async
399
653
  def signing_box_get_public_key(payload, &block)
400
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
654
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
655
+ end
656
+
657
+ # Sync
658
+ def signing_box_get_public_key_sync(payload)
659
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
401
660
  end
402
661
 
403
662
  # INPUT: ParamsOfSigningBoxSign
@@ -405,34 +664,64 @@ module TonClient
405
664
  # unsigned: String - # # Unsigned user data. # # Must be encoded with `base64`.
406
665
  # RESPONSE: ResultOfSigningBoxSign
407
666
  # signature: String - # # Data signature. # # Encoded with `hex`.
667
+ # Async
408
668
  def signing_box_sign(payload, &block)
409
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
669
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
670
+ end
671
+
672
+ # Sync
673
+ def signing_box_sign_sync(payload)
674
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
410
675
  end
411
676
 
412
677
  # INPUT: RegisteredSigningBox
413
678
  # handle: SigningBoxHandle - # # Handle of the signing box.
679
+ # Async
414
680
  def remove_signing_box(payload, &block)
415
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
681
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
682
+ end
683
+
684
+ # Sync
685
+ def remove_signing_box_sync(payload)
686
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
416
687
  end
417
688
 
418
689
  # RESPONSE: RegisteredEncryptionBox
419
690
  # handle: EncryptionBoxHandle - # # Handle of the encryption box.
691
+ # Async
420
692
  def register_encryption_box(&block)
421
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
693
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
694
+ end
695
+
696
+ # Sync
697
+ def register_encryption_box_sync()
698
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: {})
422
699
  end
423
700
 
424
701
  # INPUT: RegisteredEncryptionBox
425
702
  # handle: EncryptionBoxHandle - # # Handle of the encryption box.
703
+ # Async
426
704
  def remove_encryption_box(payload, &block)
427
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
705
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
706
+ end
707
+
708
+ # Sync
709
+ def remove_encryption_box_sync(payload)
710
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
428
711
  end
429
712
 
430
713
  # INPUT: ParamsOfEncryptionBoxGetInfo
431
714
  # encryption_box: EncryptionBoxHandle - # # Encryption box handle
432
715
  # RESPONSE: ResultOfEncryptionBoxGetInfo
433
716
  # info: EncryptionBoxInfo - # # Encryption box information
717
+ # Async
434
718
  def encryption_box_get_info(payload, &block)
435
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
719
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
720
+ end
721
+
722
+ # Sync
723
+ def encryption_box_get_info_sync(payload)
724
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
436
725
  end
437
726
 
438
727
  # INPUT: ParamsOfEncryptionBoxEncrypt
@@ -440,8 +729,14 @@ module TonClient
440
729
  # data: String - # # Data to be encrypted, encoded in Base64
441
730
  # RESPONSE: ResultOfEncryptionBoxEncrypt
442
731
  # data: String - # # Encrypted data, encoded in Base64. # # Padded to cipher block size
732
+ # Async
443
733
  def encryption_box_encrypt(payload, &block)
444
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
734
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
735
+ end
736
+
737
+ # Sync
738
+ def encryption_box_encrypt_sync(payload)
739
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
445
740
  end
446
741
 
447
742
  # INPUT: ParamsOfEncryptionBoxDecrypt
@@ -449,16 +744,28 @@ module TonClient
449
744
  # data: String - # # Data to be decrypted, encoded in Base64
450
745
  # RESPONSE: ResultOfEncryptionBoxDecrypt
451
746
  # data: String - # # Decrypted data, encoded in Base64.
747
+ # Async
452
748
  def encryption_box_decrypt(payload, &block)
453
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
749
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
750
+ end
751
+
752
+ # Sync
753
+ def encryption_box_decrypt_sync(payload)
754
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
454
755
  end
455
756
 
456
757
  # INPUT: ParamsOfCreateEncryptionBox
457
758
  # algorithm: EncryptionAlgorithm - # # Encryption algorithm specifier including cipher parameters (key, IV, etc)
458
759
  # RESPONSE: RegisteredEncryptionBox
459
760
  # handle: EncryptionBoxHandle - # # Handle of the encryption box.
761
+ # Async
460
762
  def create_encryption_box(payload, &block)
461
- TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
763
+ TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
764
+ end
765
+
766
+ # Sync
767
+ def create_encryption_box_sync(payload)
768
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
462
769
  end
463
770
 
464
771
  end