@umbra-privacy/sdk 1.0.0 → 2.0.1
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/README.md +104 -25
- package/dist/{addresses-Brzgurv_.d.ts → addresses-B7HybtbJ.d.ts} +2 -1
- package/dist/{addresses-D_0YAS6B.d.cts → addresses-CTVY1oi7.d.cts} +2 -1
- package/dist/arcium-BXXlryfe.d.cts +20 -0
- package/dist/arcium-BXXlryfe.d.ts +20 -0
- package/dist/chunk-3LS5P32X.cjs +10892 -0
- package/dist/chunk-3LS5P32X.cjs.map +1 -0
- package/dist/chunk-4RHXVBNI.js +203 -0
- package/dist/chunk-4RHXVBNI.js.map +1 -0
- package/dist/chunk-4TZVXB5G.js +324 -0
- package/dist/chunk-4TZVXB5G.js.map +1 -0
- package/dist/chunk-5GUSMQ74.cjs +549 -0
- package/dist/chunk-5GUSMQ74.cjs.map +1 -0
- package/dist/chunk-5KPQXPQM.js +36 -0
- package/dist/chunk-5KPQXPQM.js.map +1 -0
- package/dist/chunk-AXD7LXYY.cjs +405 -0
- package/dist/chunk-AXD7LXYY.cjs.map +1 -0
- package/dist/{chunk-HOEXDXRC.cjs → chunk-BL6WXLPV.cjs} +32 -360
- package/dist/chunk-BL6WXLPV.cjs.map +1 -0
- package/dist/chunk-CFFLOE7D.cjs +598 -0
- package/dist/chunk-CFFLOE7D.cjs.map +1 -0
- package/dist/{chunk-BM7N6N7E.js → chunk-CFTW5WNG.js} +3 -325
- package/dist/chunk-CFTW5WNG.js.map +1 -0
- package/dist/chunk-DD2WCK4C.js +327 -0
- package/dist/chunk-DD2WCK4C.js.map +1 -0
- package/dist/chunk-DMPMQ74B.cjs +246 -0
- package/dist/chunk-DMPMQ74B.cjs.map +1 -0
- package/dist/{chunk-2Q75CQQJ.js → chunk-EEKF4553.js} +2 -2
- package/dist/chunk-EEKF4553.js.map +1 -0
- package/dist/chunk-ENVYYEM4.cjs +113 -0
- package/dist/chunk-ENVYYEM4.cjs.map +1 -0
- package/dist/chunk-FQX6ZYGJ.js +500 -0
- package/dist/chunk-FQX6ZYGJ.js.map +1 -0
- package/dist/chunk-FSK2ICMB.cjs +39 -0
- package/dist/chunk-FSK2ICMB.cjs.map +1 -0
- package/dist/chunk-FZYWLQAF.cjs +355 -0
- package/dist/chunk-FZYWLQAF.cjs.map +1 -0
- package/dist/chunk-GP26R377.js +436 -0
- package/dist/chunk-GP26R377.js.map +1 -0
- package/dist/chunk-HA5FLM63.js +393 -0
- package/dist/chunk-HA5FLM63.js.map +1 -0
- package/dist/chunk-INJ73LXQ.js +1107 -0
- package/dist/chunk-INJ73LXQ.js.map +1 -0
- package/dist/chunk-KMRROOME.js +10750 -0
- package/dist/chunk-KMRROOME.js.map +1 -0
- package/dist/{chunk-MDFSBU5W.cjs → chunk-LTCKPTZC.cjs} +2 -351
- package/dist/chunk-LTCKPTZC.cjs.map +1 -0
- package/dist/chunk-MKNCBUFA.js +564 -0
- package/dist/chunk-MKNCBUFA.js.map +1 -0
- package/dist/chunk-NKVMSABR.cjs +207 -0
- package/dist/chunk-NKVMSABR.cjs.map +1 -0
- package/dist/chunk-OFDWNWCL.js +70 -0
- package/dist/chunk-OFDWNWCL.js.map +1 -0
- package/dist/chunk-QJAUUYZU.cjs +331 -0
- package/dist/chunk-QJAUUYZU.cjs.map +1 -0
- package/dist/chunk-TLR7A64G.js +103 -0
- package/dist/chunk-TLR7A64G.js.map +1 -0
- package/dist/{chunk-MVKTV3FT.cjs → chunk-TQQZGNOI.cjs} +2 -2
- package/dist/chunk-TQQZGNOI.cjs.map +1 -0
- package/dist/chunk-UOFYS6M3.js +219 -0
- package/dist/chunk-UOFYS6M3.js.map +1 -0
- package/dist/chunk-UXMQI6B7.js +2406 -0
- package/dist/chunk-UXMQI6B7.js.map +1 -0
- package/dist/chunk-WN75ORDT.js +571 -0
- package/dist/chunk-WN75ORDT.js.map +1 -0
- package/dist/chunk-Y55PYKXH.cjs +595 -0
- package/dist/chunk-Y55PYKXH.cjs.map +1 -0
- package/dist/chunk-YEZBTYCP.cjs +77 -0
- package/dist/chunk-YEZBTYCP.cjs.map +1 -0
- package/dist/chunk-ZQOIYCGA.cjs +1126 -0
- package/dist/chunk-ZQOIYCGA.cjs.map +1 -0
- package/dist/chunk-ZY3TSHMJ.cjs +2665 -0
- package/dist/chunk-ZY3TSHMJ.cjs.map +1 -0
- package/dist/client-DkVBHMWb.d.cts +2613 -0
- package/dist/client-V4AF6Bz9.d.ts +2613 -0
- package/dist/common/pda/index.cjs +145 -0
- package/dist/common/pda/index.cjs.map +1 -0
- package/dist/common/pda/index.d.cts +1250 -0
- package/dist/common/pda/index.d.ts +1250 -0
- package/dist/common/pda/index.js +8 -0
- package/dist/common/pda/index.js.map +1 -0
- package/dist/constants/index.cjs +38 -164
- package/dist/constants/index.cjs.map +1 -1
- package/dist/constants/index.d.cts +8 -425
- package/dist/constants/index.d.ts +8 -425
- package/dist/constants/index.js +15 -124
- package/dist/constants/index.js.map +1 -1
- package/dist/crypto/index.cjs +583 -0
- package/dist/crypto/index.cjs.map +1 -0
- package/dist/crypto/index.d.cts +6731 -0
- package/dist/crypto/index.d.ts +6731 -0
- package/dist/crypto/index.js +14 -0
- package/dist/crypto/index.js.map +1 -0
- package/dist/{cryptography-BTGC72u-.d.ts → cryptography-BFSJcvi6.d.ts} +3 -2465
- package/dist/{cryptography-BTGC72u-.d.cts → cryptography-D6tPDh-Y.d.cts} +3 -2465
- package/dist/errors/index.cjs +64 -54
- package/dist/errors/index.d.cts +7 -797
- package/dist/errors/index.d.ts +7 -797
- package/dist/errors/index.js +3 -1
- package/dist/errors-B9EoPeWV.d.cts +593 -0
- package/dist/errors-B9EoPeWV.d.ts +593 -0
- package/dist/errors-DAIrstEL.d.cts +300 -0
- package/dist/errors-DPNMfyh0.d.ts +300 -0
- package/dist/index-BG0yjL7C.d.cts +6006 -0
- package/dist/index-ByynoyBO.d.ts +6006 -0
- package/dist/index.cjs +5133 -16116
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1031 -7685
- package/dist/index.d.ts +1031 -7685
- package/dist/index.js +3228 -14905
- package/dist/index.js.map +1 -1
- package/dist/interfaces/index.d.cts +14 -6
- package/dist/interfaces/index.d.ts +14 -6
- package/dist/interfaces-43cReBcS.d.cts +3346 -0
- package/dist/interfaces-B8xKNl_6.d.ts +997 -0
- package/dist/interfaces-D2NO6kDD.d.cts +997 -0
- package/dist/interfaces-z_xYJlgV.d.ts +3346 -0
- package/dist/math/index.cjs +115 -0
- package/dist/math/index.cjs.map +1 -0
- package/dist/math/index.d.cts +1327 -0
- package/dist/math/index.d.ts +1327 -0
- package/dist/math/index.js +10 -0
- package/dist/math/index.js.map +1 -0
- package/dist/networks-RMd3abPE.d.ts +44 -0
- package/dist/networks-yAoO8peQ.d.cts +44 -0
- package/dist/relayer-NRRMSMNB.js +4 -0
- package/dist/relayer-NRRMSMNB.js.map +1 -0
- package/dist/relayer-RJHEIXJG.cjs +21 -0
- package/dist/relayer-RJHEIXJG.cjs.map +1 -0
- package/dist/solana/index.cjs +56 -0
- package/dist/solana/index.cjs.map +1 -0
- package/dist/solana/index.d.cts +105 -0
- package/dist/solana/index.d.ts +105 -0
- package/dist/solana/index.js +7 -0
- package/dist/solana/index.js.map +1 -0
- package/dist/{index-CLj_zWSD.d.ts → temporal-BbRaEPoO.d.ts} +1 -1
- package/dist/{index-CX6_pIRS.d.cts → temporal-oUj7iCaq.d.cts} +1 -1
- package/dist/transaction-forwarder-5mAMTjw6.d.ts +1155 -0
- package/dist/transaction-forwarder-C6gMUG7a.d.cts +1155 -0
- package/dist/types/index.cjs +232 -231
- package/dist/types/index.d.cts +15 -1485
- package/dist/types/index.d.ts +15 -1485
- package/dist/types/index.js +2 -1
- package/dist/types-BohhvPth.d.cts +87 -0
- package/dist/types-CW0oTT0j.d.ts +87 -0
- package/dist/types-C_V_CaKK.d.cts +2468 -0
- package/dist/types-C_V_CaKK.d.ts +2468 -0
- package/dist/types-Ca7frykr.d.ts +793 -0
- package/dist/types-CuKeoI19.d.cts +1296 -0
- package/dist/types-CxfTIpN9.d.ts +1052 -0
- package/dist/{types-n-sHFcgr.d.ts → types-D1jDUjfN.d.ts} +2 -2
- package/dist/types-DKEDUlH9.d.ts +1296 -0
- package/dist/types-EKuIfxTz.d.cts +1052 -0
- package/dist/{types-BBuELtY8.d.cts → types-IMGYmlv-.d.cts} +2 -2
- package/dist/types-PwNLi_2k.d.cts +793 -0
- package/dist/utils/index.cjs +823 -525
- package/dist/utils/index.d.cts +1711 -4021
- package/dist/utils/index.d.ts +1711 -4021
- package/dist/utils/index.js +9 -3
- package/dist/{versions-D9PqsEvj.d.cts → versions-BRlR36EA.d.cts} +1 -0
- package/dist/{versions-D9PqsEvj.d.ts → versions-BRlR36EA.d.ts} +1 -0
- package/package.json +79 -18
- package/dist/chunk-2Q75CQQJ.js.map +0 -1
- package/dist/chunk-BM7N6N7E.js.map +0 -1
- package/dist/chunk-GXKSUB2U.cjs +0 -4416
- package/dist/chunk-GXKSUB2U.cjs.map +0 -1
- package/dist/chunk-HOEXDXRC.cjs.map +0 -1
- package/dist/chunk-MDFSBU5W.cjs.map +0 -1
- package/dist/chunk-MQY7HDIA.js +0 -600
- package/dist/chunk-MQY7HDIA.js.map +0 -1
- package/dist/chunk-MVKTV3FT.cjs.map +0 -1
- package/dist/chunk-PG2J6V6Y.js +0 -4094
- package/dist/chunk-PG2J6V6Y.js.map +0 -1
- package/dist/chunk-VEGLTTYQ.cjs +0 -621
- package/dist/chunk-VEGLTTYQ.cjs.map +0 -1
- package/dist/chunk-WVHQ46DD.js +0 -758
- package/dist/chunk-WVHQ46DD.js.map +0 -1
- package/dist/index-B9pDY73x.d.ts +0 -12933
- package/dist/index-D33yo0qB.d.cts +0 -12933
- package/dist/networks-C-orpSFW.d.ts +0 -65
- package/dist/networks-FxYERGD1.d.cts +0 -65
|
@@ -0,0 +1,549 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkLTCKPTZC_cjs = require('./chunk-LTCKPTZC.cjs');
|
|
4
|
+
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
5
|
+
|
|
6
|
+
// src/common/converters/byte-encoding.ts
|
|
7
|
+
function convertU8LeBytesToU8BeBytes(value) {
|
|
8
|
+
chunkLTCKPTZC_cjs.assertU8LeBytes(value);
|
|
9
|
+
const result = new Uint8Array(value);
|
|
10
|
+
chunkLTCKPTZC_cjs.assertU8BeBytes(result);
|
|
11
|
+
return result;
|
|
12
|
+
}
|
|
13
|
+
chunkPK6SKIKE_cjs.__name(convertU8LeBytesToU8BeBytes, "convertU8LeBytesToU8BeBytes");
|
|
14
|
+
function convertU8BeBytesToU8LeBytes(value) {
|
|
15
|
+
chunkLTCKPTZC_cjs.assertU8BeBytes(value);
|
|
16
|
+
const result = new Uint8Array(value);
|
|
17
|
+
chunkLTCKPTZC_cjs.assertU8LeBytes(result);
|
|
18
|
+
return result;
|
|
19
|
+
}
|
|
20
|
+
chunkPK6SKIKE_cjs.__name(convertU8BeBytesToU8LeBytes, "convertU8BeBytesToU8LeBytes");
|
|
21
|
+
function convertU16LeBytesToU16BeBytes(value) {
|
|
22
|
+
chunkLTCKPTZC_cjs.assertU16LeBytes(value);
|
|
23
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U16_BYTE_LENGTH);
|
|
24
|
+
for (let index = 0; index < chunkLTCKPTZC_cjs.U16_BYTE_LENGTH; index++) {
|
|
25
|
+
result[index] = value[chunkLTCKPTZC_cjs.U16_BYTE_LENGTH - 1 - index];
|
|
26
|
+
}
|
|
27
|
+
chunkLTCKPTZC_cjs.assertU16BeBytes(result);
|
|
28
|
+
return result;
|
|
29
|
+
}
|
|
30
|
+
chunkPK6SKIKE_cjs.__name(convertU16LeBytesToU16BeBytes, "convertU16LeBytesToU16BeBytes");
|
|
31
|
+
function convertU16BeBytesToU16LeBytes(value) {
|
|
32
|
+
chunkLTCKPTZC_cjs.assertU16BeBytes(value);
|
|
33
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U16_BYTE_LENGTH);
|
|
34
|
+
for (let index = 0; index < chunkLTCKPTZC_cjs.U16_BYTE_LENGTH; index++) {
|
|
35
|
+
result[index] = value[chunkLTCKPTZC_cjs.U16_BYTE_LENGTH - 1 - index];
|
|
36
|
+
}
|
|
37
|
+
chunkLTCKPTZC_cjs.assertU16LeBytes(result);
|
|
38
|
+
return result;
|
|
39
|
+
}
|
|
40
|
+
chunkPK6SKIKE_cjs.__name(convertU16BeBytesToU16LeBytes, "convertU16BeBytesToU16LeBytes");
|
|
41
|
+
function convertU32LeBytesToU32BeBytes(value) {
|
|
42
|
+
chunkLTCKPTZC_cjs.assertU32LeBytes(value);
|
|
43
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U32_BYTE_LENGTH);
|
|
44
|
+
for (let index = 0; index < chunkLTCKPTZC_cjs.U32_BYTE_LENGTH; index++) {
|
|
45
|
+
result[index] = value[chunkLTCKPTZC_cjs.U32_BYTE_LENGTH - 1 - index];
|
|
46
|
+
}
|
|
47
|
+
chunkLTCKPTZC_cjs.assertU32BeBytes(result);
|
|
48
|
+
return result;
|
|
49
|
+
}
|
|
50
|
+
chunkPK6SKIKE_cjs.__name(convertU32LeBytesToU32BeBytes, "convertU32LeBytesToU32BeBytes");
|
|
51
|
+
function convertU32BeBytesToU32LeBytes(value) {
|
|
52
|
+
chunkLTCKPTZC_cjs.assertU32BeBytes(value);
|
|
53
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U32_BYTE_LENGTH);
|
|
54
|
+
for (let index = 0; index < chunkLTCKPTZC_cjs.U32_BYTE_LENGTH; index++) {
|
|
55
|
+
result[index] = value[chunkLTCKPTZC_cjs.U32_BYTE_LENGTH - 1 - index];
|
|
56
|
+
}
|
|
57
|
+
chunkLTCKPTZC_cjs.assertU32LeBytes(result);
|
|
58
|
+
return result;
|
|
59
|
+
}
|
|
60
|
+
chunkPK6SKIKE_cjs.__name(convertU32BeBytesToU32LeBytes, "convertU32BeBytesToU32LeBytes");
|
|
61
|
+
function convertU64LeBytesToU64BeBytes(value) {
|
|
62
|
+
chunkLTCKPTZC_cjs.assertU64LeBytes(value);
|
|
63
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U64_BYTE_LENGTH);
|
|
64
|
+
for (let index = 0; index < chunkLTCKPTZC_cjs.U64_BYTE_LENGTH; index++) {
|
|
65
|
+
result[index] = value[chunkLTCKPTZC_cjs.U64_BYTE_LENGTH - 1 - index];
|
|
66
|
+
}
|
|
67
|
+
chunkLTCKPTZC_cjs.assertU64BeBytes(result);
|
|
68
|
+
return result;
|
|
69
|
+
}
|
|
70
|
+
chunkPK6SKIKE_cjs.__name(convertU64LeBytesToU64BeBytes, "convertU64LeBytesToU64BeBytes");
|
|
71
|
+
function convertU64BeBytesToU64LeBytes(value) {
|
|
72
|
+
chunkLTCKPTZC_cjs.assertU64BeBytes(value);
|
|
73
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U64_BYTE_LENGTH);
|
|
74
|
+
for (let index = 0; index < chunkLTCKPTZC_cjs.U64_BYTE_LENGTH; index++) {
|
|
75
|
+
result[index] = value[chunkLTCKPTZC_cjs.U64_BYTE_LENGTH - 1 - index];
|
|
76
|
+
}
|
|
77
|
+
chunkLTCKPTZC_cjs.assertU64LeBytes(result);
|
|
78
|
+
return result;
|
|
79
|
+
}
|
|
80
|
+
chunkPK6SKIKE_cjs.__name(convertU64BeBytesToU64LeBytes, "convertU64BeBytesToU64LeBytes");
|
|
81
|
+
function convertU128LeBytesToU128BeBytes(value) {
|
|
82
|
+
chunkLTCKPTZC_cjs.assertU128LeBytes(value);
|
|
83
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U128_BYTE_LENGTH);
|
|
84
|
+
for (let index = 0; index < chunkLTCKPTZC_cjs.U128_BYTE_LENGTH; index++) {
|
|
85
|
+
result[index] = value[chunkLTCKPTZC_cjs.U128_BYTE_LENGTH - 1 - index];
|
|
86
|
+
}
|
|
87
|
+
chunkLTCKPTZC_cjs.assertU128BeBytes(result);
|
|
88
|
+
return result;
|
|
89
|
+
}
|
|
90
|
+
chunkPK6SKIKE_cjs.__name(convertU128LeBytesToU128BeBytes, "convertU128LeBytesToU128BeBytes");
|
|
91
|
+
function convertU128BeBytesToU128LeBytes(value) {
|
|
92
|
+
chunkLTCKPTZC_cjs.assertU128BeBytes(value);
|
|
93
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U128_BYTE_LENGTH);
|
|
94
|
+
for (let index = 0; index < chunkLTCKPTZC_cjs.U128_BYTE_LENGTH; index++) {
|
|
95
|
+
result[index] = value[chunkLTCKPTZC_cjs.U128_BYTE_LENGTH - 1 - index];
|
|
96
|
+
}
|
|
97
|
+
chunkLTCKPTZC_cjs.assertU128LeBytes(result);
|
|
98
|
+
return result;
|
|
99
|
+
}
|
|
100
|
+
chunkPK6SKIKE_cjs.__name(convertU128BeBytesToU128LeBytes, "convertU128BeBytesToU128LeBytes");
|
|
101
|
+
function convertU256LeBytesToU256BeBytes(value) {
|
|
102
|
+
chunkLTCKPTZC_cjs.assertU256LeBytes(value);
|
|
103
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U256_BYTE_LENGTH);
|
|
104
|
+
for (let index = 0; index < chunkLTCKPTZC_cjs.U256_BYTE_LENGTH; index++) {
|
|
105
|
+
result[index] = value[chunkLTCKPTZC_cjs.U256_BYTE_LENGTH - 1 - index];
|
|
106
|
+
}
|
|
107
|
+
chunkLTCKPTZC_cjs.assertU256BeBytes(result);
|
|
108
|
+
return result;
|
|
109
|
+
}
|
|
110
|
+
chunkPK6SKIKE_cjs.__name(convertU256LeBytesToU256BeBytes, "convertU256LeBytesToU256BeBytes");
|
|
111
|
+
function convertU256BeBytesToU256LeBytes(value) {
|
|
112
|
+
chunkLTCKPTZC_cjs.assertU256BeBytes(value);
|
|
113
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U256_BYTE_LENGTH);
|
|
114
|
+
for (let index = 0; index < chunkLTCKPTZC_cjs.U256_BYTE_LENGTH; index++) {
|
|
115
|
+
result[index] = value[chunkLTCKPTZC_cjs.U256_BYTE_LENGTH - 1 - index];
|
|
116
|
+
}
|
|
117
|
+
chunkLTCKPTZC_cjs.assertU256LeBytes(result);
|
|
118
|
+
return result;
|
|
119
|
+
}
|
|
120
|
+
chunkPK6SKIKE_cjs.__name(convertU256BeBytesToU256LeBytes, "convertU256BeBytesToU256LeBytes");
|
|
121
|
+
function convertU512LeBytesToU512BeBytes(value) {
|
|
122
|
+
chunkLTCKPTZC_cjs.assertU512LeBytes(value);
|
|
123
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U512_BYTE_LENGTH);
|
|
124
|
+
for (let index = 0; index < chunkLTCKPTZC_cjs.U512_BYTE_LENGTH; index++) {
|
|
125
|
+
result[index] = value[chunkLTCKPTZC_cjs.U512_BYTE_LENGTH - 1 - index];
|
|
126
|
+
}
|
|
127
|
+
chunkLTCKPTZC_cjs.assertU512BeBytes(result);
|
|
128
|
+
return result;
|
|
129
|
+
}
|
|
130
|
+
chunkPK6SKIKE_cjs.__name(convertU512LeBytesToU512BeBytes, "convertU512LeBytesToU512BeBytes");
|
|
131
|
+
function convertU512BeBytesToU512LeBytes(value) {
|
|
132
|
+
chunkLTCKPTZC_cjs.assertU512BeBytes(value);
|
|
133
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U512_BYTE_LENGTH);
|
|
134
|
+
for (let index = 0; index < chunkLTCKPTZC_cjs.U512_BYTE_LENGTH; index++) {
|
|
135
|
+
result[index] = value[chunkLTCKPTZC_cjs.U512_BYTE_LENGTH - 1 - index];
|
|
136
|
+
}
|
|
137
|
+
chunkLTCKPTZC_cjs.assertU512LeBytes(result);
|
|
138
|
+
return result;
|
|
139
|
+
}
|
|
140
|
+
chunkPK6SKIKE_cjs.__name(convertU512BeBytesToU512LeBytes, "convertU512BeBytesToU512LeBytes");
|
|
141
|
+
function convertU1024LeBytesToU1024BeBytes(value) {
|
|
142
|
+
chunkLTCKPTZC_cjs.assertU1024LeBytes(value);
|
|
143
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U1024_BYTE_LENGTH);
|
|
144
|
+
for (let index = 0; index < chunkLTCKPTZC_cjs.U1024_BYTE_LENGTH; index++) {
|
|
145
|
+
result[index] = value[chunkLTCKPTZC_cjs.U1024_BYTE_LENGTH - 1 - index];
|
|
146
|
+
}
|
|
147
|
+
chunkLTCKPTZC_cjs.assertU1024BeBytes(result);
|
|
148
|
+
return result;
|
|
149
|
+
}
|
|
150
|
+
chunkPK6SKIKE_cjs.__name(convertU1024LeBytesToU1024BeBytes, "convertU1024LeBytesToU1024BeBytes");
|
|
151
|
+
function convertU1024BeBytesToU1024LeBytes(value) {
|
|
152
|
+
chunkLTCKPTZC_cjs.assertU1024BeBytes(value);
|
|
153
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U1024_BYTE_LENGTH);
|
|
154
|
+
for (let index = 0; index < chunkLTCKPTZC_cjs.U1024_BYTE_LENGTH; index++) {
|
|
155
|
+
result[index] = value[chunkLTCKPTZC_cjs.U1024_BYTE_LENGTH - 1 - index];
|
|
156
|
+
}
|
|
157
|
+
chunkLTCKPTZC_cjs.assertU1024LeBytes(result);
|
|
158
|
+
return result;
|
|
159
|
+
}
|
|
160
|
+
chunkPK6SKIKE_cjs.__name(convertU1024BeBytesToU1024LeBytes, "convertU1024BeBytesToU1024LeBytes");
|
|
161
|
+
function encodeU8ToU8LeBytes(value) {
|
|
162
|
+
chunkLTCKPTZC_cjs.assertU8(value);
|
|
163
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U8_BYTE_LENGTH);
|
|
164
|
+
result[0] = Number(value);
|
|
165
|
+
chunkLTCKPTZC_cjs.assertU8LeBytes(result);
|
|
166
|
+
return result;
|
|
167
|
+
}
|
|
168
|
+
chunkPK6SKIKE_cjs.__name(encodeU8ToU8LeBytes, "encodeU8ToU8LeBytes");
|
|
169
|
+
function encodeU8ToU8BeBytes(value) {
|
|
170
|
+
chunkLTCKPTZC_cjs.assertU8(value);
|
|
171
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U8_BYTE_LENGTH);
|
|
172
|
+
result[0] = Number(value);
|
|
173
|
+
chunkLTCKPTZC_cjs.assertU8BeBytes(result);
|
|
174
|
+
return result;
|
|
175
|
+
}
|
|
176
|
+
chunkPK6SKIKE_cjs.__name(encodeU8ToU8BeBytes, "encodeU8ToU8BeBytes");
|
|
177
|
+
function encodeU16ToU16LeBytes(value) {
|
|
178
|
+
chunkLTCKPTZC_cjs.assertU16(value);
|
|
179
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U16_BYTE_LENGTH);
|
|
180
|
+
let temporary = value;
|
|
181
|
+
for (let index = 0; index < chunkLTCKPTZC_cjs.U16_BYTE_LENGTH; index++) {
|
|
182
|
+
result[index] = Number(temporary & 0xffn);
|
|
183
|
+
temporary >>= 8n;
|
|
184
|
+
}
|
|
185
|
+
chunkLTCKPTZC_cjs.assertU16LeBytes(result);
|
|
186
|
+
return result;
|
|
187
|
+
}
|
|
188
|
+
chunkPK6SKIKE_cjs.__name(encodeU16ToU16LeBytes, "encodeU16ToU16LeBytes");
|
|
189
|
+
function encodeU16ToU16BeBytes(value) {
|
|
190
|
+
chunkLTCKPTZC_cjs.assertU16(value);
|
|
191
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U16_BYTE_LENGTH);
|
|
192
|
+
let temporary = value;
|
|
193
|
+
for (let index = chunkLTCKPTZC_cjs.U16_BYTE_LENGTH - 1; index >= 0; index--) {
|
|
194
|
+
result[index] = Number(temporary & 0xffn);
|
|
195
|
+
temporary >>= 8n;
|
|
196
|
+
}
|
|
197
|
+
chunkLTCKPTZC_cjs.assertU16BeBytes(result);
|
|
198
|
+
return result;
|
|
199
|
+
}
|
|
200
|
+
chunkPK6SKIKE_cjs.__name(encodeU16ToU16BeBytes, "encodeU16ToU16BeBytes");
|
|
201
|
+
function encodeU32ToU32LeBytes(value) {
|
|
202
|
+
chunkLTCKPTZC_cjs.assertU32(value);
|
|
203
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U32_BYTE_LENGTH);
|
|
204
|
+
let temporary = value;
|
|
205
|
+
for (let index = 0; index < chunkLTCKPTZC_cjs.U32_BYTE_LENGTH; index++) {
|
|
206
|
+
result[index] = Number(temporary & 0xffn);
|
|
207
|
+
temporary >>= 8n;
|
|
208
|
+
}
|
|
209
|
+
chunkLTCKPTZC_cjs.assertU32LeBytes(result);
|
|
210
|
+
return result;
|
|
211
|
+
}
|
|
212
|
+
chunkPK6SKIKE_cjs.__name(encodeU32ToU32LeBytes, "encodeU32ToU32LeBytes");
|
|
213
|
+
function encodeU32ToU32BeBytes(value) {
|
|
214
|
+
chunkLTCKPTZC_cjs.assertU32(value);
|
|
215
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U32_BYTE_LENGTH);
|
|
216
|
+
let temporary = value;
|
|
217
|
+
for (let index = chunkLTCKPTZC_cjs.U32_BYTE_LENGTH - 1; index >= 0; index--) {
|
|
218
|
+
result[index] = Number(temporary & 0xffn);
|
|
219
|
+
temporary >>= 8n;
|
|
220
|
+
}
|
|
221
|
+
chunkLTCKPTZC_cjs.assertU32BeBytes(result);
|
|
222
|
+
return result;
|
|
223
|
+
}
|
|
224
|
+
chunkPK6SKIKE_cjs.__name(encodeU32ToU32BeBytes, "encodeU32ToU32BeBytes");
|
|
225
|
+
function encodeU64ToU64LeBytes(value) {
|
|
226
|
+
chunkLTCKPTZC_cjs.assertU64(value);
|
|
227
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U64_BYTE_LENGTH);
|
|
228
|
+
let temporary = value;
|
|
229
|
+
for (let index = 0; index < chunkLTCKPTZC_cjs.U64_BYTE_LENGTH; index++) {
|
|
230
|
+
result[index] = Number(temporary & 0xffn);
|
|
231
|
+
temporary >>= 8n;
|
|
232
|
+
}
|
|
233
|
+
chunkLTCKPTZC_cjs.assertU64LeBytes(result);
|
|
234
|
+
return result;
|
|
235
|
+
}
|
|
236
|
+
chunkPK6SKIKE_cjs.__name(encodeU64ToU64LeBytes, "encodeU64ToU64LeBytes");
|
|
237
|
+
function encodeU64ToU64BeBytes(value) {
|
|
238
|
+
chunkLTCKPTZC_cjs.assertU64(value);
|
|
239
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U64_BYTE_LENGTH);
|
|
240
|
+
let temporary = value;
|
|
241
|
+
for (let index = chunkLTCKPTZC_cjs.U64_BYTE_LENGTH - 1; index >= 0; index--) {
|
|
242
|
+
result[index] = Number(temporary & 0xffn);
|
|
243
|
+
temporary >>= 8n;
|
|
244
|
+
}
|
|
245
|
+
chunkLTCKPTZC_cjs.assertU64BeBytes(result);
|
|
246
|
+
return result;
|
|
247
|
+
}
|
|
248
|
+
chunkPK6SKIKE_cjs.__name(encodeU64ToU64BeBytes, "encodeU64ToU64BeBytes");
|
|
249
|
+
function encodeU128ToU128LeBytes(value) {
|
|
250
|
+
chunkLTCKPTZC_cjs.assertU128(value);
|
|
251
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U128_BYTE_LENGTH);
|
|
252
|
+
let temporary = value;
|
|
253
|
+
for (let index = 0; index < chunkLTCKPTZC_cjs.U128_BYTE_LENGTH; index++) {
|
|
254
|
+
result[index] = Number(temporary & 0xffn);
|
|
255
|
+
temporary >>= 8n;
|
|
256
|
+
}
|
|
257
|
+
chunkLTCKPTZC_cjs.assertU128LeBytes(result);
|
|
258
|
+
return result;
|
|
259
|
+
}
|
|
260
|
+
chunkPK6SKIKE_cjs.__name(encodeU128ToU128LeBytes, "encodeU128ToU128LeBytes");
|
|
261
|
+
function encodeU128ToU128BeBytes(value) {
|
|
262
|
+
chunkLTCKPTZC_cjs.assertU128(value);
|
|
263
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U128_BYTE_LENGTH);
|
|
264
|
+
let temporary = value;
|
|
265
|
+
for (let index = chunkLTCKPTZC_cjs.U128_BYTE_LENGTH - 1; index >= 0; index--) {
|
|
266
|
+
result[index] = Number(temporary & 0xffn);
|
|
267
|
+
temporary >>= 8n;
|
|
268
|
+
}
|
|
269
|
+
chunkLTCKPTZC_cjs.assertU128BeBytes(result);
|
|
270
|
+
return result;
|
|
271
|
+
}
|
|
272
|
+
chunkPK6SKIKE_cjs.__name(encodeU128ToU128BeBytes, "encodeU128ToU128BeBytes");
|
|
273
|
+
function encodeU256ToU256LeBytes(value) {
|
|
274
|
+
chunkLTCKPTZC_cjs.assertU256(value);
|
|
275
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U256_BYTE_LENGTH);
|
|
276
|
+
let temporary = value;
|
|
277
|
+
for (let index = 0; index < chunkLTCKPTZC_cjs.U256_BYTE_LENGTH; index++) {
|
|
278
|
+
result[index] = Number(temporary & 0xffn);
|
|
279
|
+
temporary >>= 8n;
|
|
280
|
+
}
|
|
281
|
+
chunkLTCKPTZC_cjs.assertU256LeBytes(result);
|
|
282
|
+
return result;
|
|
283
|
+
}
|
|
284
|
+
chunkPK6SKIKE_cjs.__name(encodeU256ToU256LeBytes, "encodeU256ToU256LeBytes");
|
|
285
|
+
function encodeU256ToU256BeBytes(value) {
|
|
286
|
+
chunkLTCKPTZC_cjs.assertU256(value);
|
|
287
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U256_BYTE_LENGTH);
|
|
288
|
+
let temporary = value;
|
|
289
|
+
for (let index = chunkLTCKPTZC_cjs.U256_BYTE_LENGTH - 1; index >= 0; index--) {
|
|
290
|
+
result[index] = Number(temporary & 0xffn);
|
|
291
|
+
temporary >>= 8n;
|
|
292
|
+
}
|
|
293
|
+
chunkLTCKPTZC_cjs.assertU256BeBytes(result);
|
|
294
|
+
return result;
|
|
295
|
+
}
|
|
296
|
+
chunkPK6SKIKE_cjs.__name(encodeU256ToU256BeBytes, "encodeU256ToU256BeBytes");
|
|
297
|
+
function encodeU512ToU512LeBytes(value) {
|
|
298
|
+
chunkLTCKPTZC_cjs.assertU512(value);
|
|
299
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U512_BYTE_LENGTH);
|
|
300
|
+
let temporary = value;
|
|
301
|
+
for (let index = 0; index < chunkLTCKPTZC_cjs.U512_BYTE_LENGTH; index++) {
|
|
302
|
+
result[index] = Number(temporary & 0xffn);
|
|
303
|
+
temporary >>= 8n;
|
|
304
|
+
}
|
|
305
|
+
chunkLTCKPTZC_cjs.assertU512LeBytes(result);
|
|
306
|
+
return result;
|
|
307
|
+
}
|
|
308
|
+
chunkPK6SKIKE_cjs.__name(encodeU512ToU512LeBytes, "encodeU512ToU512LeBytes");
|
|
309
|
+
function encodeU512ToU512BeBytes(value) {
|
|
310
|
+
chunkLTCKPTZC_cjs.assertU512(value);
|
|
311
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U512_BYTE_LENGTH);
|
|
312
|
+
let temporary = value;
|
|
313
|
+
for (let index = chunkLTCKPTZC_cjs.U512_BYTE_LENGTH - 1; index >= 0; index--) {
|
|
314
|
+
result[index] = Number(temporary & 0xffn);
|
|
315
|
+
temporary >>= 8n;
|
|
316
|
+
}
|
|
317
|
+
chunkLTCKPTZC_cjs.assertU512BeBytes(result);
|
|
318
|
+
return result;
|
|
319
|
+
}
|
|
320
|
+
chunkPK6SKIKE_cjs.__name(encodeU512ToU512BeBytes, "encodeU512ToU512BeBytes");
|
|
321
|
+
function encodeU1024ToU1024LeBytes(value) {
|
|
322
|
+
chunkLTCKPTZC_cjs.assertU1024(value);
|
|
323
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U1024_BYTE_LENGTH);
|
|
324
|
+
let temporary = value;
|
|
325
|
+
for (let index = 0; index < chunkLTCKPTZC_cjs.U1024_BYTE_LENGTH; index++) {
|
|
326
|
+
result[index] = Number(temporary & 0xffn);
|
|
327
|
+
temporary >>= 8n;
|
|
328
|
+
}
|
|
329
|
+
chunkLTCKPTZC_cjs.assertU1024LeBytes(result);
|
|
330
|
+
return result;
|
|
331
|
+
}
|
|
332
|
+
chunkPK6SKIKE_cjs.__name(encodeU1024ToU1024LeBytes, "encodeU1024ToU1024LeBytes");
|
|
333
|
+
function encodeU1024ToU1024BeBytes(value) {
|
|
334
|
+
chunkLTCKPTZC_cjs.assertU1024(value);
|
|
335
|
+
const result = new Uint8Array(chunkLTCKPTZC_cjs.U1024_BYTE_LENGTH);
|
|
336
|
+
let temporary = value;
|
|
337
|
+
for (let index = chunkLTCKPTZC_cjs.U1024_BYTE_LENGTH - 1; index >= 0; index--) {
|
|
338
|
+
result[index] = Number(temporary & 0xffn);
|
|
339
|
+
temporary >>= 8n;
|
|
340
|
+
}
|
|
341
|
+
chunkLTCKPTZC_cjs.assertU1024BeBytes(result);
|
|
342
|
+
return result;
|
|
343
|
+
}
|
|
344
|
+
chunkPK6SKIKE_cjs.__name(encodeU1024ToU1024BeBytes, "encodeU1024ToU1024BeBytes");
|
|
345
|
+
function decodeU8LeBytesToU8(value) {
|
|
346
|
+
chunkLTCKPTZC_cjs.assertU8LeBytes(value);
|
|
347
|
+
const result = BigInt(value[0]);
|
|
348
|
+
chunkLTCKPTZC_cjs.assertU8(result);
|
|
349
|
+
return result;
|
|
350
|
+
}
|
|
351
|
+
chunkPK6SKIKE_cjs.__name(decodeU8LeBytesToU8, "decodeU8LeBytesToU8");
|
|
352
|
+
function decodeU8BeBytesToU8(value) {
|
|
353
|
+
chunkLTCKPTZC_cjs.assertU8BeBytes(value);
|
|
354
|
+
const result = BigInt(value[0]);
|
|
355
|
+
chunkLTCKPTZC_cjs.assertU8(result);
|
|
356
|
+
return result;
|
|
357
|
+
}
|
|
358
|
+
chunkPK6SKIKE_cjs.__name(decodeU8BeBytesToU8, "decodeU8BeBytesToU8");
|
|
359
|
+
function decodeU16LeBytesToU16(value) {
|
|
360
|
+
chunkLTCKPTZC_cjs.assertU16LeBytes(value);
|
|
361
|
+
let result = 0n;
|
|
362
|
+
for (let index = chunkLTCKPTZC_cjs.U16_BYTE_LENGTH - 1; index >= 0; index--) {
|
|
363
|
+
result = result << 8n | BigInt(value[index]);
|
|
364
|
+
}
|
|
365
|
+
chunkLTCKPTZC_cjs.assertU16(result);
|
|
366
|
+
return result;
|
|
367
|
+
}
|
|
368
|
+
chunkPK6SKIKE_cjs.__name(decodeU16LeBytesToU16, "decodeU16LeBytesToU16");
|
|
369
|
+
function decodeU16BeBytesToU16(value) {
|
|
370
|
+
chunkLTCKPTZC_cjs.assertU16BeBytes(value);
|
|
371
|
+
let result = 0n;
|
|
372
|
+
for (let index = 0; index < chunkLTCKPTZC_cjs.U16_BYTE_LENGTH; index++) {
|
|
373
|
+
result = result << 8n | BigInt(value[index]);
|
|
374
|
+
}
|
|
375
|
+
chunkLTCKPTZC_cjs.assertU16(result);
|
|
376
|
+
return result;
|
|
377
|
+
}
|
|
378
|
+
chunkPK6SKIKE_cjs.__name(decodeU16BeBytesToU16, "decodeU16BeBytesToU16");
|
|
379
|
+
function decodeU32LeBytesToU32(value) {
|
|
380
|
+
chunkLTCKPTZC_cjs.assertU32LeBytes(value);
|
|
381
|
+
let result = 0n;
|
|
382
|
+
for (let index = chunkLTCKPTZC_cjs.U32_BYTE_LENGTH - 1; index >= 0; index--) {
|
|
383
|
+
result = result << 8n | BigInt(value[index]);
|
|
384
|
+
}
|
|
385
|
+
chunkLTCKPTZC_cjs.assertU32(result);
|
|
386
|
+
return result;
|
|
387
|
+
}
|
|
388
|
+
chunkPK6SKIKE_cjs.__name(decodeU32LeBytesToU32, "decodeU32LeBytesToU32");
|
|
389
|
+
function decodeU32BeBytesToU32(value) {
|
|
390
|
+
chunkLTCKPTZC_cjs.assertU32BeBytes(value);
|
|
391
|
+
let result = 0n;
|
|
392
|
+
for (let index = 0; index < chunkLTCKPTZC_cjs.U32_BYTE_LENGTH; index++) {
|
|
393
|
+
result = result << 8n | BigInt(value[index]);
|
|
394
|
+
}
|
|
395
|
+
chunkLTCKPTZC_cjs.assertU32(result);
|
|
396
|
+
return result;
|
|
397
|
+
}
|
|
398
|
+
chunkPK6SKIKE_cjs.__name(decodeU32BeBytesToU32, "decodeU32BeBytesToU32");
|
|
399
|
+
function decodeU64LeBytesToU64(value) {
|
|
400
|
+
chunkLTCKPTZC_cjs.assertU64LeBytes(value);
|
|
401
|
+
let result = 0n;
|
|
402
|
+
for (let index = chunkLTCKPTZC_cjs.U64_BYTE_LENGTH - 1; index >= 0; index--) {
|
|
403
|
+
result = result << 8n | BigInt(value[index]);
|
|
404
|
+
}
|
|
405
|
+
chunkLTCKPTZC_cjs.assertU64(result);
|
|
406
|
+
return result;
|
|
407
|
+
}
|
|
408
|
+
chunkPK6SKIKE_cjs.__name(decodeU64LeBytesToU64, "decodeU64LeBytesToU64");
|
|
409
|
+
function decodeU64BeBytesToU64(value) {
|
|
410
|
+
chunkLTCKPTZC_cjs.assertU64BeBytes(value);
|
|
411
|
+
let result = 0n;
|
|
412
|
+
for (let index = 0; index < chunkLTCKPTZC_cjs.U64_BYTE_LENGTH; index++) {
|
|
413
|
+
result = result << 8n | BigInt(value[index]);
|
|
414
|
+
}
|
|
415
|
+
chunkLTCKPTZC_cjs.assertU64(result);
|
|
416
|
+
return result;
|
|
417
|
+
}
|
|
418
|
+
chunkPK6SKIKE_cjs.__name(decodeU64BeBytesToU64, "decodeU64BeBytesToU64");
|
|
419
|
+
function decodeU128LeBytesToU128(value) {
|
|
420
|
+
chunkLTCKPTZC_cjs.assertU128LeBytes(value);
|
|
421
|
+
let result = 0n;
|
|
422
|
+
for (let index = chunkLTCKPTZC_cjs.U128_BYTE_LENGTH - 1; index >= 0; index--) {
|
|
423
|
+
result = result << 8n | BigInt(value[index]);
|
|
424
|
+
}
|
|
425
|
+
chunkLTCKPTZC_cjs.assertU128(result);
|
|
426
|
+
return result;
|
|
427
|
+
}
|
|
428
|
+
chunkPK6SKIKE_cjs.__name(decodeU128LeBytesToU128, "decodeU128LeBytesToU128");
|
|
429
|
+
function decodeU128BeBytesToU128(value) {
|
|
430
|
+
chunkLTCKPTZC_cjs.assertU128BeBytes(value);
|
|
431
|
+
let result = 0n;
|
|
432
|
+
for (let index = 0; index < chunkLTCKPTZC_cjs.U128_BYTE_LENGTH; index++) {
|
|
433
|
+
result = result << 8n | BigInt(value[index]);
|
|
434
|
+
}
|
|
435
|
+
chunkLTCKPTZC_cjs.assertU128(result);
|
|
436
|
+
return result;
|
|
437
|
+
}
|
|
438
|
+
chunkPK6SKIKE_cjs.__name(decodeU128BeBytesToU128, "decodeU128BeBytesToU128");
|
|
439
|
+
function decodeU256LeBytesToU256(value) {
|
|
440
|
+
chunkLTCKPTZC_cjs.assertU256LeBytes(value);
|
|
441
|
+
let result = 0n;
|
|
442
|
+
for (let index = chunkLTCKPTZC_cjs.U256_BYTE_LENGTH - 1; index >= 0; index--) {
|
|
443
|
+
result = result << 8n | BigInt(value[index]);
|
|
444
|
+
}
|
|
445
|
+
chunkLTCKPTZC_cjs.assertU256(result);
|
|
446
|
+
return result;
|
|
447
|
+
}
|
|
448
|
+
chunkPK6SKIKE_cjs.__name(decodeU256LeBytesToU256, "decodeU256LeBytesToU256");
|
|
449
|
+
function decodeU256BeBytesToU256(value) {
|
|
450
|
+
chunkLTCKPTZC_cjs.assertU256BeBytes(value);
|
|
451
|
+
let result = 0n;
|
|
452
|
+
for (let index = 0; index < chunkLTCKPTZC_cjs.U256_BYTE_LENGTH; index++) {
|
|
453
|
+
result = result << 8n | BigInt(value[index]);
|
|
454
|
+
}
|
|
455
|
+
chunkLTCKPTZC_cjs.assertU256(result);
|
|
456
|
+
return result;
|
|
457
|
+
}
|
|
458
|
+
chunkPK6SKIKE_cjs.__name(decodeU256BeBytesToU256, "decodeU256BeBytesToU256");
|
|
459
|
+
function decodeU512LeBytesToU512(value) {
|
|
460
|
+
chunkLTCKPTZC_cjs.assertU512LeBytes(value);
|
|
461
|
+
let result = 0n;
|
|
462
|
+
for (let index = chunkLTCKPTZC_cjs.U512_BYTE_LENGTH - 1; index >= 0; index--) {
|
|
463
|
+
result = result << 8n | BigInt(value[index]);
|
|
464
|
+
}
|
|
465
|
+
chunkLTCKPTZC_cjs.assertU512(result);
|
|
466
|
+
return result;
|
|
467
|
+
}
|
|
468
|
+
chunkPK6SKIKE_cjs.__name(decodeU512LeBytesToU512, "decodeU512LeBytesToU512");
|
|
469
|
+
function decodeU512BeBytesToU512(value) {
|
|
470
|
+
chunkLTCKPTZC_cjs.assertU512BeBytes(value);
|
|
471
|
+
let result = 0n;
|
|
472
|
+
for (let index = 0; index < chunkLTCKPTZC_cjs.U512_BYTE_LENGTH; index++) {
|
|
473
|
+
result = result << 8n | BigInt(value[index]);
|
|
474
|
+
}
|
|
475
|
+
chunkLTCKPTZC_cjs.assertU512(result);
|
|
476
|
+
return result;
|
|
477
|
+
}
|
|
478
|
+
chunkPK6SKIKE_cjs.__name(decodeU512BeBytesToU512, "decodeU512BeBytesToU512");
|
|
479
|
+
function decodeU1024LeBytesToU1024(value) {
|
|
480
|
+
chunkLTCKPTZC_cjs.assertU1024LeBytes(value);
|
|
481
|
+
let result = 0n;
|
|
482
|
+
for (let index = chunkLTCKPTZC_cjs.U1024_BYTE_LENGTH - 1; index >= 0; index--) {
|
|
483
|
+
result = result << 8n | BigInt(value[index]);
|
|
484
|
+
}
|
|
485
|
+
chunkLTCKPTZC_cjs.assertU1024(result);
|
|
486
|
+
return result;
|
|
487
|
+
}
|
|
488
|
+
chunkPK6SKIKE_cjs.__name(decodeU1024LeBytesToU1024, "decodeU1024LeBytesToU1024");
|
|
489
|
+
function decodeU1024BeBytesToU1024(value) {
|
|
490
|
+
chunkLTCKPTZC_cjs.assertU1024BeBytes(value);
|
|
491
|
+
let result = 0n;
|
|
492
|
+
for (let index = 0; index < chunkLTCKPTZC_cjs.U1024_BYTE_LENGTH; index++) {
|
|
493
|
+
result = result << 8n | BigInt(value[index]);
|
|
494
|
+
}
|
|
495
|
+
chunkLTCKPTZC_cjs.assertU1024(result);
|
|
496
|
+
return result;
|
|
497
|
+
}
|
|
498
|
+
chunkPK6SKIKE_cjs.__name(decodeU1024BeBytesToU1024, "decodeU1024BeBytesToU1024");
|
|
499
|
+
|
|
500
|
+
exports.convertU1024BeBytesToU1024LeBytes = convertU1024BeBytesToU1024LeBytes;
|
|
501
|
+
exports.convertU1024LeBytesToU1024BeBytes = convertU1024LeBytesToU1024BeBytes;
|
|
502
|
+
exports.convertU128BeBytesToU128LeBytes = convertU128BeBytesToU128LeBytes;
|
|
503
|
+
exports.convertU128LeBytesToU128BeBytes = convertU128LeBytesToU128BeBytes;
|
|
504
|
+
exports.convertU16BeBytesToU16LeBytes = convertU16BeBytesToU16LeBytes;
|
|
505
|
+
exports.convertU16LeBytesToU16BeBytes = convertU16LeBytesToU16BeBytes;
|
|
506
|
+
exports.convertU256BeBytesToU256LeBytes = convertU256BeBytesToU256LeBytes;
|
|
507
|
+
exports.convertU256LeBytesToU256BeBytes = convertU256LeBytesToU256BeBytes;
|
|
508
|
+
exports.convertU32BeBytesToU32LeBytes = convertU32BeBytesToU32LeBytes;
|
|
509
|
+
exports.convertU32LeBytesToU32BeBytes = convertU32LeBytesToU32BeBytes;
|
|
510
|
+
exports.convertU512BeBytesToU512LeBytes = convertU512BeBytesToU512LeBytes;
|
|
511
|
+
exports.convertU512LeBytesToU512BeBytes = convertU512LeBytesToU512BeBytes;
|
|
512
|
+
exports.convertU64BeBytesToU64LeBytes = convertU64BeBytesToU64LeBytes;
|
|
513
|
+
exports.convertU64LeBytesToU64BeBytes = convertU64LeBytesToU64BeBytes;
|
|
514
|
+
exports.convertU8BeBytesToU8LeBytes = convertU8BeBytesToU8LeBytes;
|
|
515
|
+
exports.convertU8LeBytesToU8BeBytes = convertU8LeBytesToU8BeBytes;
|
|
516
|
+
exports.decodeU1024BeBytesToU1024 = decodeU1024BeBytesToU1024;
|
|
517
|
+
exports.decodeU1024LeBytesToU1024 = decodeU1024LeBytesToU1024;
|
|
518
|
+
exports.decodeU128BeBytesToU128 = decodeU128BeBytesToU128;
|
|
519
|
+
exports.decodeU128LeBytesToU128 = decodeU128LeBytesToU128;
|
|
520
|
+
exports.decodeU16BeBytesToU16 = decodeU16BeBytesToU16;
|
|
521
|
+
exports.decodeU16LeBytesToU16 = decodeU16LeBytesToU16;
|
|
522
|
+
exports.decodeU256BeBytesToU256 = decodeU256BeBytesToU256;
|
|
523
|
+
exports.decodeU256LeBytesToU256 = decodeU256LeBytesToU256;
|
|
524
|
+
exports.decodeU32BeBytesToU32 = decodeU32BeBytesToU32;
|
|
525
|
+
exports.decodeU32LeBytesToU32 = decodeU32LeBytesToU32;
|
|
526
|
+
exports.decodeU512BeBytesToU512 = decodeU512BeBytesToU512;
|
|
527
|
+
exports.decodeU512LeBytesToU512 = decodeU512LeBytesToU512;
|
|
528
|
+
exports.decodeU64BeBytesToU64 = decodeU64BeBytesToU64;
|
|
529
|
+
exports.decodeU64LeBytesToU64 = decodeU64LeBytesToU64;
|
|
530
|
+
exports.decodeU8BeBytesToU8 = decodeU8BeBytesToU8;
|
|
531
|
+
exports.decodeU8LeBytesToU8 = decodeU8LeBytesToU8;
|
|
532
|
+
exports.encodeU1024ToU1024BeBytes = encodeU1024ToU1024BeBytes;
|
|
533
|
+
exports.encodeU1024ToU1024LeBytes = encodeU1024ToU1024LeBytes;
|
|
534
|
+
exports.encodeU128ToU128BeBytes = encodeU128ToU128BeBytes;
|
|
535
|
+
exports.encodeU128ToU128LeBytes = encodeU128ToU128LeBytes;
|
|
536
|
+
exports.encodeU16ToU16BeBytes = encodeU16ToU16BeBytes;
|
|
537
|
+
exports.encodeU16ToU16LeBytes = encodeU16ToU16LeBytes;
|
|
538
|
+
exports.encodeU256ToU256BeBytes = encodeU256ToU256BeBytes;
|
|
539
|
+
exports.encodeU256ToU256LeBytes = encodeU256ToU256LeBytes;
|
|
540
|
+
exports.encodeU32ToU32BeBytes = encodeU32ToU32BeBytes;
|
|
541
|
+
exports.encodeU32ToU32LeBytes = encodeU32ToU32LeBytes;
|
|
542
|
+
exports.encodeU512ToU512BeBytes = encodeU512ToU512BeBytes;
|
|
543
|
+
exports.encodeU512ToU512LeBytes = encodeU512ToU512LeBytes;
|
|
544
|
+
exports.encodeU64ToU64BeBytes = encodeU64ToU64BeBytes;
|
|
545
|
+
exports.encodeU64ToU64LeBytes = encodeU64ToU64LeBytes;
|
|
546
|
+
exports.encodeU8ToU8BeBytes = encodeU8ToU8BeBytes;
|
|
547
|
+
exports.encodeU8ToU8LeBytes = encodeU8ToU8LeBytes;
|
|
548
|
+
//# sourceMappingURL=chunk-5GUSMQ74.cjs.map
|
|
549
|
+
//# sourceMappingURL=chunk-5GUSMQ74.cjs.map
|