@solibo/solibo-sdk 1.7.7 → 1.7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/KmLogging-logging.mjs +98 -98
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +1 -1
- package/KotlinBigInteger-bignum.mjs +1114 -1114
- package/MultiplatformSettings-multiplatform-settings-test.mjs +18 -18
- package/MultiplatformSettings-multiplatform-settings.mjs +16 -16
- package/Stately-stately-concurrency.mjs +3 -3
- package/bitops-library-bits.mjs +33 -33
- package/bitops-library-endian.mjs +3 -3
- package/core-library-digest.mjs +29 -29
- package/cryptography-kotlin-cryptography-bigint.mjs +27 -27
- package/cryptography-kotlin-cryptography-core.mjs +47 -47
- package/cryptography-kotlin-cryptography-provider-base.mjs +4 -4
- package/cryptography-kotlin-cryptography-provider-webcrypto.mjs +135 -135
- package/cryptography-kotlin-cryptography-random.mjs +15 -15
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.mjs +112 -112
- package/cryptography-kotlin-cryptography-serialization-asn1.mjs +237 -237
- package/cryptography-kotlin-cryptography-serialization-pem.mjs +15 -15
- package/hash-library-md.mjs +30 -30
- package/index.mjs +4 -0
- package/kotlin-kotlin-stdlib.mjs +4 -4
- package/kotlinx-coroutines-core.mjs +7 -7
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/ktor-ktor-client-auth.mjs +224 -224
- package/ktor-ktor-client-encoding.mjs +75 -75
- package/ktor-ktor-client-logging.mjs +520 -520
- package/ktor-ktor-client-mock.mjs +39 -39
- package/ktor-ktor-websockets.mjs +2 -2
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.mjs +20722 -20286
- package/solibo-sdk-sdk-home-api.mjs.map +1 -1
- package/solibo-sdk-sdk.d.mts +97 -3
- package/solibo-sdk-sdk.mjs +3674 -3656
- package/solibo-sdk-sdk.mjs.map +1 -1
|
@@ -90,21 +90,21 @@ initMetadataForCompanion(Companion_9, CryptographyAlgorithmId);
|
|
|
90
90
|
initMetadataForCompanion(Companion_10, CryptographyAlgorithmId);
|
|
91
91
|
initMetadataForCompanion(Companion_11, CryptographyAlgorithmId);
|
|
92
92
|
function decodeFromByteArray(format, bytes, $completion) {
|
|
93
|
-
return this.
|
|
93
|
+
return this.pt3(format, bytes);
|
|
94
94
|
}
|
|
95
95
|
initMetadataForInterface(KeyDecoder, 'KeyDecoder', VOID, VOID, VOID, [2]);
|
|
96
96
|
function hash(data, $completion) {
|
|
97
|
-
return this.
|
|
97
|
+
return this.st3(data);
|
|
98
98
|
}
|
|
99
99
|
function hashBlocking(data) {
|
|
100
|
-
var tmp0 = this.
|
|
100
|
+
var tmp0 = this.qt3();
|
|
101
101
|
var tmp$ret$0;
|
|
102
102
|
$l$block: {
|
|
103
103
|
// Inline function 'kotlin.use' call
|
|
104
104
|
var exception = null;
|
|
105
105
|
try {
|
|
106
|
-
tmp0.
|
|
107
|
-
tmp$ret$0 = tmp0.
|
|
106
|
+
tmp0.tt3(data);
|
|
107
|
+
tmp$ret$0 = tmp0.ut3();
|
|
108
108
|
break $l$block;
|
|
109
109
|
} catch ($p) {
|
|
110
110
|
if ($p instanceof Error) {
|
|
@@ -123,17 +123,17 @@ function hashBlocking(data) {
|
|
|
123
123
|
}
|
|
124
124
|
initMetadataForInterface(Hasher, 'Hasher', VOID, VOID, VOID, [1]);
|
|
125
125
|
function generateSignature(data, $completion) {
|
|
126
|
-
return this.
|
|
126
|
+
return this.xt3(data);
|
|
127
127
|
}
|
|
128
128
|
function generateSignatureBlocking(data) {
|
|
129
|
-
var tmp0 = this.
|
|
129
|
+
var tmp0 = this.vt3();
|
|
130
130
|
var tmp$ret$0;
|
|
131
131
|
$l$block: {
|
|
132
132
|
// Inline function 'kotlin.use' call
|
|
133
133
|
var exception = null;
|
|
134
134
|
try {
|
|
135
|
-
tmp0.
|
|
136
|
-
tmp$ret$0 = tmp0.
|
|
135
|
+
tmp0.tt3(data);
|
|
136
|
+
tmp$ret$0 = tmp0.yt3();
|
|
137
137
|
break $l$block;
|
|
138
138
|
} catch ($p) {
|
|
139
139
|
if ($p instanceof Error) {
|
|
@@ -156,10 +156,10 @@ function update$default(source, startIndex, endIndex, $super) {
|
|
|
156
156
|
endIndex = endIndex === VOID ? source.length : endIndex;
|
|
157
157
|
var tmp;
|
|
158
158
|
if ($super === VOID) {
|
|
159
|
-
this.
|
|
159
|
+
this.zt3(source, startIndex, endIndex);
|
|
160
160
|
tmp = Unit_instance;
|
|
161
161
|
} else {
|
|
162
|
-
tmp = $super.
|
|
162
|
+
tmp = $super.zt3.call(this, source, startIndex, endIndex);
|
|
163
163
|
}
|
|
164
164
|
return tmp;
|
|
165
165
|
}
|
|
@@ -168,12 +168,12 @@ initMetadataForInterface(UpdateFunction, 'UpdateFunction', VOID, VOID, [AutoClos
|
|
|
168
168
|
function CryptographyAlgorithm() {
|
|
169
169
|
}
|
|
170
170
|
function CryptographyAlgorithmId(name) {
|
|
171
|
-
this.
|
|
171
|
+
this.wt2_1 = name;
|
|
172
172
|
}
|
|
173
173
|
function Companion() {
|
|
174
174
|
}
|
|
175
|
-
protoOf(Companion).
|
|
176
|
-
return CryptographySystem_getInstance().
|
|
175
|
+
protoOf(Companion).xt2 = function () {
|
|
176
|
+
return CryptographySystem_getInstance().zt2();
|
|
177
177
|
};
|
|
178
178
|
var Companion_instance;
|
|
179
179
|
function Companion_getInstance() {
|
|
@@ -181,8 +181,8 @@ function Companion_getInstance() {
|
|
|
181
181
|
}
|
|
182
182
|
function CryptographyProvider() {
|
|
183
183
|
}
|
|
184
|
-
protoOf(CryptographyProvider).
|
|
185
|
-
var tmp0_elvis_lhs = this.
|
|
184
|
+
protoOf(CryptographyProvider).bt3 = function (identifier) {
|
|
185
|
+
var tmp0_elvis_lhs = this.at3(identifier);
|
|
186
186
|
var tmp;
|
|
187
187
|
if (tmp0_elvis_lhs == null) {
|
|
188
188
|
throw IllegalStateException_init_$Create$('Algorithm not found: ' + toString(identifier));
|
|
@@ -193,14 +193,14 @@ protoOf(CryptographyProvider).ot2 = function (identifier) {
|
|
|
193
193
|
};
|
|
194
194
|
function CryptographySystem() {
|
|
195
195
|
CryptographySystem_instance = this;
|
|
196
|
-
this.
|
|
196
|
+
this.yt2_1 = new CryptographySystemImpl();
|
|
197
197
|
loadProviders(this);
|
|
198
198
|
}
|
|
199
|
-
protoOf(CryptographySystem).
|
|
200
|
-
return this.
|
|
199
|
+
protoOf(CryptographySystem).zt2 = function () {
|
|
200
|
+
return this.yt2_1.zt2();
|
|
201
201
|
};
|
|
202
|
-
protoOf(CryptographySystem).
|
|
203
|
-
return this.
|
|
202
|
+
protoOf(CryptographySystem).it3 = function (provider, priority) {
|
|
203
|
+
return this.yt2_1.it3(provider, priority);
|
|
204
204
|
};
|
|
205
205
|
var CryptographySystem_instance;
|
|
206
206
|
function CryptographySystem_getInstance() {
|
|
@@ -210,17 +210,17 @@ function CryptographySystem_getInstance() {
|
|
|
210
210
|
}
|
|
211
211
|
function CompositeProvider(providers) {
|
|
212
212
|
CryptographyProvider.call(this);
|
|
213
|
-
this.
|
|
213
|
+
this.jt3_1 = providers;
|
|
214
214
|
}
|
|
215
|
-
protoOf(CompositeProvider).
|
|
216
|
-
var tmp0 = this.
|
|
215
|
+
protoOf(CompositeProvider).at3 = function (identifier) {
|
|
216
|
+
var tmp0 = this.jt3_1;
|
|
217
217
|
var tmp$ret$0;
|
|
218
218
|
$l$block: {
|
|
219
219
|
// Inline function 'kotlin.collections.firstNotNullOfOrNull' call
|
|
220
220
|
var _iterator__ex2g4s = tmp0.t();
|
|
221
221
|
while (_iterator__ex2g4s.u()) {
|
|
222
222
|
var element = _iterator__ex2g4s.v();
|
|
223
|
-
var result = element.
|
|
223
|
+
var result = element.at3(identifier);
|
|
224
224
|
if (!(result == null)) {
|
|
225
225
|
tmp$ret$0 = result;
|
|
226
226
|
break $l$block;
|
|
@@ -231,16 +231,16 @@ protoOf(CompositeProvider).nt2 = function (identifier) {
|
|
|
231
231
|
return tmp$ret$0;
|
|
232
232
|
};
|
|
233
233
|
function sam$kotlin_Comparator$0(function_0) {
|
|
234
|
-
this.
|
|
234
|
+
this.kt3_1 = function_0;
|
|
235
235
|
}
|
|
236
236
|
protoOf(sam$kotlin_Comparator$0).ue = function (a, b) {
|
|
237
|
-
return this.
|
|
237
|
+
return this.kt3_1(a, b);
|
|
238
238
|
};
|
|
239
239
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
240
240
|
return this.ue(a, b);
|
|
241
241
|
};
|
|
242
242
|
protoOf(sam$kotlin_Comparator$0).u3 = function () {
|
|
243
|
-
return this.
|
|
243
|
+
return this.kt3_1;
|
|
244
244
|
};
|
|
245
245
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
246
246
|
var tmp;
|
|
@@ -269,7 +269,7 @@ function CryptographySystemImpl$lazyRegisteredProviders$lambda$lambda(a, b) {
|
|
|
269
269
|
function CryptographySystemImpl$lazyRegisteredProviders$lambda(this$0) {
|
|
270
270
|
return function () {
|
|
271
271
|
// Inline function 'kotlin.collections.sortedBy' call
|
|
272
|
-
var this_0 = this$0.
|
|
272
|
+
var this_0 = this$0.ct3_1.l1();
|
|
273
273
|
// Inline function 'kotlin.comparisons.compareBy' call
|
|
274
274
|
var tmp = CryptographySystemImpl$lazyRegisteredProviders$lambda$lambda;
|
|
275
275
|
var tmp$ret$1 = new sam$kotlin_Comparator$0(tmp);
|
|
@@ -288,11 +288,11 @@ function CryptographySystemImpl$lazyRegisteredProviders$lambda(this$0) {
|
|
|
288
288
|
}
|
|
289
289
|
function CryptographySystemImpl$lazyDefaultProvider$lambda(this$0) {
|
|
290
290
|
return function () {
|
|
291
|
-
var tmp0_elvis_lhs = this$0.
|
|
291
|
+
var tmp0_elvis_lhs = this$0.et3_1;
|
|
292
292
|
var tmp;
|
|
293
293
|
if (tmp0_elvis_lhs == null) {
|
|
294
294
|
// Inline function 'kotlin.let' call
|
|
295
|
-
var it = this$0.
|
|
295
|
+
var it = this$0.dt3_1.n1();
|
|
296
296
|
var tmp_0;
|
|
297
297
|
switch (it.g1()) {
|
|
298
298
|
case 0:
|
|
@@ -316,27 +316,27 @@ function CryptographySystemImpl$lazyDefaultProvider$lambda(this$0) {
|
|
|
316
316
|
}
|
|
317
317
|
function CryptographySystemImpl$lazyDefaultRandom$lambda(this$0) {
|
|
318
318
|
return function () {
|
|
319
|
-
var tmp0_elvis_lhs = this$0.
|
|
319
|
+
var tmp0_elvis_lhs = this$0.gt3_1;
|
|
320
320
|
return tmp0_elvis_lhs == null ? Default_getInstance() : tmp0_elvis_lhs;
|
|
321
321
|
};
|
|
322
322
|
}
|
|
323
323
|
function CryptographySystemImpl() {
|
|
324
324
|
var tmp = this;
|
|
325
325
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
326
|
-
tmp.
|
|
326
|
+
tmp.ct3_1 = LinkedHashMap_init_$Create$();
|
|
327
327
|
var tmp_0 = this;
|
|
328
|
-
tmp_0.
|
|
329
|
-
this.
|
|
328
|
+
tmp_0.dt3_1 = lazy(CryptographySystemImpl$lazyRegisteredProviders$lambda(this));
|
|
329
|
+
this.et3_1 = null;
|
|
330
330
|
var tmp_1 = this;
|
|
331
|
-
tmp_1.
|
|
332
|
-
this.
|
|
331
|
+
tmp_1.ft3_1 = lazy(CryptographySystemImpl$lazyDefaultProvider$lambda(this));
|
|
332
|
+
this.gt3_1 = null;
|
|
333
333
|
var tmp_2 = this;
|
|
334
|
-
tmp_2.
|
|
334
|
+
tmp_2.ht3_1 = lazy(CryptographySystemImpl$lazyDefaultRandom$lambda(this));
|
|
335
335
|
}
|
|
336
|
-
protoOf(CryptographySystemImpl).
|
|
337
|
-
return this.
|
|
336
|
+
protoOf(CryptographySystemImpl).zt2 = function () {
|
|
337
|
+
return this.ft3_1.n1();
|
|
338
338
|
};
|
|
339
|
-
protoOf(CryptographySystemImpl).
|
|
339
|
+
protoOf(CryptographySystemImpl).it3 = function (provider, priority) {
|
|
340
340
|
// Inline function 'kotlin.require' call
|
|
341
341
|
if (!(priority >= 0)) {
|
|
342
342
|
var message = 'Priority must be greater or equal to 0';
|
|
@@ -344,19 +344,19 @@ protoOf(CryptographySystemImpl).vt2 = function (provider, priority) {
|
|
|
344
344
|
}
|
|
345
345
|
// Inline function 'kotlin.collections.contains' call
|
|
346
346
|
// Inline function 'kotlin.collections.containsKey' call
|
|
347
|
-
var this_0 = this.
|
|
347
|
+
var this_0 = this.ct3_1;
|
|
348
348
|
// Inline function 'kotlin.require' call
|
|
349
349
|
if (!!(isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).y2(priority)) {
|
|
350
350
|
var message_0 = 'Provider with priority ' + priority + ' already registered. Every registered provider should have unique priority.';
|
|
351
351
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
352
352
|
}
|
|
353
353
|
// Inline function 'kotlin.check' call
|
|
354
|
-
if (!!this.
|
|
354
|
+
if (!!this.dt3_1.mq()) {
|
|
355
355
|
var message_1 = 'Cannot register provider after `getRegisteredProviders` was called';
|
|
356
356
|
throw IllegalStateException_init_$Create$(toString(message_1));
|
|
357
357
|
}
|
|
358
358
|
// Inline function 'kotlin.collections.set' call
|
|
359
|
-
this.
|
|
359
|
+
this.ct3_1.d3(priority, provider);
|
|
360
360
|
};
|
|
361
361
|
function Format() {
|
|
362
362
|
}
|
|
@@ -438,13 +438,13 @@ function _Curve___get_name__impl__klrusc($this) {
|
|
|
438
438
|
}
|
|
439
439
|
function Companion_3() {
|
|
440
440
|
}
|
|
441
|
-
protoOf(Companion_3).
|
|
441
|
+
protoOf(Companion_3).lt3 = function () {
|
|
442
442
|
return _Curve___init__impl__ygix12('P-256');
|
|
443
443
|
};
|
|
444
|
-
protoOf(Companion_3).
|
|
444
|
+
protoOf(Companion_3).mt3 = function () {
|
|
445
445
|
return _Curve___init__impl__ygix12('P-384');
|
|
446
446
|
};
|
|
447
|
-
protoOf(Companion_3).
|
|
447
|
+
protoOf(Companion_3).nt3 = function () {
|
|
448
448
|
return _Curve___init__impl__ygix12('P-521');
|
|
449
449
|
};
|
|
450
450
|
var Companion_instance_3;
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
//endregion
|
|
27
27
|
function convertEcPrivateKeyFromSec1ToPkcs8(input) {
|
|
28
28
|
var ecPrivateKey = Default_getInstance().lu(Companion_instance.q6h(), input);
|
|
29
|
-
var tmp = ecPrivateKey.
|
|
29
|
+
var tmp = ecPrivateKey.ot6_1;
|
|
30
30
|
var tmp0 = tmp == null ? null : new EcParameters(tmp);
|
|
31
31
|
$l$block: {
|
|
32
32
|
// Inline function 'kotlin.checkNotNull' call
|
|
@@ -34,15 +34,15 @@ function convertEcPrivateKeyFromSec1ToPkcs8(input) {
|
|
|
34
34
|
var message = 'EC Parameters are not present in the key';
|
|
35
35
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
36
36
|
} else {
|
|
37
|
-
tmp0.
|
|
37
|
+
tmp0.it6_1;
|
|
38
38
|
break $l$block;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
var privateKeyInfo = new PrivateKeyInfo(0, new EcKeyAlgorithmIdentifier(ecPrivateKey.
|
|
41
|
+
var privateKeyInfo = new PrivateKeyInfo(0, new EcKeyAlgorithmIdentifier(ecPrivateKey.ot6_1), input);
|
|
42
42
|
return Default_getInstance().ku(Companion_getInstance().q6h(), privateKeyInfo);
|
|
43
43
|
}
|
|
44
44
|
function unwrapPem(label, key) {
|
|
45
|
-
return ensurePemLabel(Pem_instance.
|
|
45
|
+
return ensurePemLabel(Pem_instance.it7(key), label).lt7_1;
|
|
46
46
|
}
|
|
47
47
|
function wrapPrivateKeyInfo(version, identifier, key) {
|
|
48
48
|
return Default_getInstance().ku(Companion_getInstance().q6h(), new PrivateKeyInfo(version, identifier, key));
|