react-native-neural-wallet-lib 0.1.45 → 0.1.47

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.
@@ -122,6 +122,14 @@ RustBuffer
122
122
  uniffi_wallet_fn_func_generate_solana_keypair(RustBuffer mnemonic_str,
123
123
  RustBuffer path_str,
124
124
  RustCallStatus *uniffi_out_err);
125
+ int8_t uniffi_wallet_fn_func_is_valid_ethereum_private_key(
126
+ RustBuffer private_key, RustCallStatus *uniffi_out_err);
127
+ int8_t uniffi_wallet_fn_func_is_valid_mnemonic(RustBuffer mnemonic,
128
+ RustCallStatus *uniffi_out_err);
129
+ int8_t uniffi_wallet_fn_func_is_valid_solana_private_key(
130
+ RustBuffer private_key, RustCallStatus *uniffi_out_err);
131
+ int8_t uniffi_wallet_fn_func_is_valid_wif(RustBuffer wif,
132
+ RustCallStatus *uniffi_out_err);
125
133
  RustBuffer uniffi_wallet_fn_func_solana_private_key_to_keypair(
126
134
  RustBuffer private_key_base58, RustCallStatus *uniffi_out_err);
127
135
  RustBuffer
@@ -258,6 +266,10 @@ uint16_t uniffi_wallet_checksum_func_generate_complex_password();
258
266
  uint16_t uniffi_wallet_checksum_func_generate_eth_keypair();
259
267
  uint16_t uniffi_wallet_checksum_func_generate_mnemonic();
260
268
  uint16_t uniffi_wallet_checksum_func_generate_solana_keypair();
269
+ uint16_t uniffi_wallet_checksum_func_is_valid_ethereum_private_key();
270
+ uint16_t uniffi_wallet_checksum_func_is_valid_mnemonic();
271
+ uint16_t uniffi_wallet_checksum_func_is_valid_solana_private_key();
272
+ uint16_t uniffi_wallet_checksum_func_is_valid_wif();
261
273
  uint16_t uniffi_wallet_checksum_func_solana_private_key_to_keypair();
262
274
  uint16_t uniffi_wallet_checksum_func_string_to_base64();
263
275
  uint32_t ffi_wallet_uniffi_contract_version();
@@ -1746,6 +1758,51 @@ NativeWallet::NativeWallet(
1746
1758
  return this->cpp_uniffi_wallet_fn_func_generate_solana_keypair(
1747
1759
  rt, thisVal, args, count);
1748
1760
  });
1761
+ props["ubrn_uniffi_wallet_fn_func_is_valid_ethereum_private_key"] =
1762
+ jsi::Function::createFromHostFunction(
1763
+ rt,
1764
+ jsi::PropNameID::forAscii(
1765
+ rt, "ubrn_uniffi_wallet_fn_func_is_valid_ethereum_private_key"),
1766
+ 1,
1767
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
1768
+ const jsi::Value *args, size_t count) -> jsi::Value {
1769
+ return this
1770
+ ->cpp_uniffi_wallet_fn_func_is_valid_ethereum_private_key(
1771
+ rt, thisVal, args, count);
1772
+ });
1773
+ props["ubrn_uniffi_wallet_fn_func_is_valid_mnemonic"] =
1774
+ jsi::Function::createFromHostFunction(
1775
+ rt,
1776
+ jsi::PropNameID::forAscii(
1777
+ rt, "ubrn_uniffi_wallet_fn_func_is_valid_mnemonic"),
1778
+ 1,
1779
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
1780
+ const jsi::Value *args, size_t count) -> jsi::Value {
1781
+ return this->cpp_uniffi_wallet_fn_func_is_valid_mnemonic(
1782
+ rt, thisVal, args, count);
1783
+ });
1784
+ props["ubrn_uniffi_wallet_fn_func_is_valid_solana_private_key"] =
1785
+ jsi::Function::createFromHostFunction(
1786
+ rt,
1787
+ jsi::PropNameID::forAscii(
1788
+ rt, "ubrn_uniffi_wallet_fn_func_is_valid_solana_private_key"),
1789
+ 1,
1790
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
1791
+ const jsi::Value *args, size_t count) -> jsi::Value {
1792
+ return this->cpp_uniffi_wallet_fn_func_is_valid_solana_private_key(
1793
+ rt, thisVal, args, count);
1794
+ });
1795
+ props["ubrn_uniffi_wallet_fn_func_is_valid_wif"] =
1796
+ jsi::Function::createFromHostFunction(
1797
+ rt,
1798
+ jsi::PropNameID::forAscii(rt,
1799
+ "ubrn_uniffi_wallet_fn_func_is_valid_wif"),
1800
+ 1,
1801
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
1802
+ const jsi::Value *args, size_t count) -> jsi::Value {
1803
+ return this->cpp_uniffi_wallet_fn_func_is_valid_wif(rt, thisVal,
1804
+ args, count);
1805
+ });
1749
1806
  props["ubrn_uniffi_wallet_fn_func_solana_private_key_to_keypair"] =
1750
1807
  jsi::Function::createFromHostFunction(
1751
1808
  rt,
@@ -1851,6 +1908,54 @@ NativeWallet::NativeWallet(
1851
1908
  ->cpp_uniffi_wallet_checksum_func_generate_solana_keypair(
1852
1909
  rt, thisVal, args, count);
1853
1910
  });
1911
+ props["ubrn_uniffi_wallet_checksum_func_is_valid_ethereum_private_key"] =
1912
+ jsi::Function::createFromHostFunction(
1913
+ rt,
1914
+ jsi::PropNameID::forAscii(
1915
+ rt,
1916
+ "ubrn_uniffi_wallet_checksum_func_is_valid_ethereum_private_key"),
1917
+ 0,
1918
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
1919
+ const jsi::Value *args, size_t count) -> jsi::Value {
1920
+ return this
1921
+ ->cpp_uniffi_wallet_checksum_func_is_valid_ethereum_private_key(
1922
+ rt, thisVal, args, count);
1923
+ });
1924
+ props["ubrn_uniffi_wallet_checksum_func_is_valid_mnemonic"] =
1925
+ jsi::Function::createFromHostFunction(
1926
+ rt,
1927
+ jsi::PropNameID::forAscii(
1928
+ rt, "ubrn_uniffi_wallet_checksum_func_is_valid_mnemonic"),
1929
+ 0,
1930
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
1931
+ const jsi::Value *args, size_t count) -> jsi::Value {
1932
+ return this->cpp_uniffi_wallet_checksum_func_is_valid_mnemonic(
1933
+ rt, thisVal, args, count);
1934
+ });
1935
+ props["ubrn_uniffi_wallet_checksum_func_is_valid_solana_private_key"] =
1936
+ jsi::Function::createFromHostFunction(
1937
+ rt,
1938
+ jsi::PropNameID::forAscii(
1939
+ rt,
1940
+ "ubrn_uniffi_wallet_checksum_func_is_valid_solana_private_key"),
1941
+ 0,
1942
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
1943
+ const jsi::Value *args, size_t count) -> jsi::Value {
1944
+ return this
1945
+ ->cpp_uniffi_wallet_checksum_func_is_valid_solana_private_key(
1946
+ rt, thisVal, args, count);
1947
+ });
1948
+ props["ubrn_uniffi_wallet_checksum_func_is_valid_wif"] =
1949
+ jsi::Function::createFromHostFunction(
1950
+ rt,
1951
+ jsi::PropNameID::forAscii(
1952
+ rt, "ubrn_uniffi_wallet_checksum_func_is_valid_wif"),
1953
+ 0,
1954
+ [this](jsi::Runtime &rt, const jsi::Value &thisVal,
1955
+ const jsi::Value *args, size_t count) -> jsi::Value {
1956
+ return this->cpp_uniffi_wallet_checksum_func_is_valid_wif(
1957
+ rt, thisVal, args, count);
1958
+ });
1854
1959
  props["ubrn_uniffi_wallet_checksum_func_solana_private_key_to_keypair"] =
1855
1960
  jsi::Function::createFromHostFunction(
1856
1961
  rt,
@@ -2045,6 +2150,59 @@ jsi::Value NativeWallet::cpp_uniffi_wallet_fn_func_generate_solana_keypair(
2045
2150
  return uniffi::wallet::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
2046
2151
  }
2047
2152
  jsi::Value
2153
+ NativeWallet::cpp_uniffi_wallet_fn_func_is_valid_ethereum_private_key(
2154
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
2155
+ size_t count) {
2156
+ RustCallStatus status =
2157
+ uniffi::wallet::Bridging<RustCallStatus>::rustSuccess(rt);
2158
+ auto value = uniffi_wallet_fn_func_is_valid_ethereum_private_key(
2159
+ uniffi::wallet::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]),
2160
+ &status);
2161
+ uniffi::wallet::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status,
2162
+ args[count - 1]);
2163
+
2164
+ return uniffi_jsi::Bridging<int8_t>::toJs(rt, callInvoker, value);
2165
+ }
2166
+ jsi::Value NativeWallet::cpp_uniffi_wallet_fn_func_is_valid_mnemonic(
2167
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
2168
+ size_t count) {
2169
+ RustCallStatus status =
2170
+ uniffi::wallet::Bridging<RustCallStatus>::rustSuccess(rt);
2171
+ auto value = uniffi_wallet_fn_func_is_valid_mnemonic(
2172
+ uniffi::wallet::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]),
2173
+ &status);
2174
+ uniffi::wallet::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status,
2175
+ args[count - 1]);
2176
+
2177
+ return uniffi_jsi::Bridging<int8_t>::toJs(rt, callInvoker, value);
2178
+ }
2179
+ jsi::Value NativeWallet::cpp_uniffi_wallet_fn_func_is_valid_solana_private_key(
2180
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
2181
+ size_t count) {
2182
+ RustCallStatus status =
2183
+ uniffi::wallet::Bridging<RustCallStatus>::rustSuccess(rt);
2184
+ auto value = uniffi_wallet_fn_func_is_valid_solana_private_key(
2185
+ uniffi::wallet::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]),
2186
+ &status);
2187
+ uniffi::wallet::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status,
2188
+ args[count - 1]);
2189
+
2190
+ return uniffi_jsi::Bridging<int8_t>::toJs(rt, callInvoker, value);
2191
+ }
2192
+ jsi::Value NativeWallet::cpp_uniffi_wallet_fn_func_is_valid_wif(
2193
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
2194
+ size_t count) {
2195
+ RustCallStatus status =
2196
+ uniffi::wallet::Bridging<RustCallStatus>::rustSuccess(rt);
2197
+ auto value = uniffi_wallet_fn_func_is_valid_wif(
2198
+ uniffi::wallet::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]),
2199
+ &status);
2200
+ uniffi::wallet::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status,
2201
+ args[count - 1]);
2202
+
2203
+ return uniffi_jsi::Bridging<int8_t>::toJs(rt, callInvoker, value);
2204
+ }
2205
+ jsi::Value
2048
2206
  NativeWallet::cpp_uniffi_wallet_fn_func_solana_private_key_to_keypair(
2049
2207
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
2050
2208
  size_t count) {
@@ -2125,6 +2283,36 @@ NativeWallet::cpp_uniffi_wallet_checksum_func_generate_solana_keypair(
2125
2283
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
2126
2284
  }
2127
2285
  jsi::Value
2286
+ NativeWallet::cpp_uniffi_wallet_checksum_func_is_valid_ethereum_private_key(
2287
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
2288
+ size_t count) {
2289
+ auto value = uniffi_wallet_checksum_func_is_valid_ethereum_private_key();
2290
+
2291
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
2292
+ }
2293
+ jsi::Value NativeWallet::cpp_uniffi_wallet_checksum_func_is_valid_mnemonic(
2294
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
2295
+ size_t count) {
2296
+ auto value = uniffi_wallet_checksum_func_is_valid_mnemonic();
2297
+
2298
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
2299
+ }
2300
+ jsi::Value
2301
+ NativeWallet::cpp_uniffi_wallet_checksum_func_is_valid_solana_private_key(
2302
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
2303
+ size_t count) {
2304
+ auto value = uniffi_wallet_checksum_func_is_valid_solana_private_key();
2305
+
2306
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
2307
+ }
2308
+ jsi::Value NativeWallet::cpp_uniffi_wallet_checksum_func_is_valid_wif(
2309
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
2310
+ size_t count) {
2311
+ auto value = uniffi_wallet_checksum_func_is_valid_wif();
2312
+
2313
+ return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
2314
+ }
2315
+ jsi::Value
2128
2316
  NativeWallet::cpp_uniffi_wallet_checksum_func_solana_private_key_to_keypair(
2129
2317
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
2130
2318
  size_t count) {
@@ -49,6 +49,19 @@ protected:
49
49
  jsi::Value cpp_uniffi_wallet_fn_func_generate_solana_keypair(
50
50
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
51
51
  size_t count);
52
+ jsi::Value cpp_uniffi_wallet_fn_func_is_valid_ethereum_private_key(
53
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
54
+ size_t count);
55
+ jsi::Value cpp_uniffi_wallet_fn_func_is_valid_mnemonic(
56
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
57
+ size_t count);
58
+ jsi::Value cpp_uniffi_wallet_fn_func_is_valid_solana_private_key(
59
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
60
+ size_t count);
61
+ jsi::Value cpp_uniffi_wallet_fn_func_is_valid_wif(jsi::Runtime &rt,
62
+ const jsi::Value &thisVal,
63
+ const jsi::Value *args,
64
+ size_t count);
52
65
  jsi::Value cpp_uniffi_wallet_fn_func_solana_private_key_to_keypair(
53
66
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
54
67
  size_t count);
@@ -76,6 +89,18 @@ protected:
76
89
  jsi::Value cpp_uniffi_wallet_checksum_func_generate_solana_keypair(
77
90
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
78
91
  size_t count);
92
+ jsi::Value cpp_uniffi_wallet_checksum_func_is_valid_ethereum_private_key(
93
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
94
+ size_t count);
95
+ jsi::Value cpp_uniffi_wallet_checksum_func_is_valid_mnemonic(
96
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
97
+ size_t count);
98
+ jsi::Value cpp_uniffi_wallet_checksum_func_is_valid_solana_private_key(
99
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
100
+ size_t count);
101
+ jsi::Value cpp_uniffi_wallet_checksum_func_is_valid_wif(
102
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
103
+ size_t count);
79
104
  jsi::Value cpp_uniffi_wallet_checksum_func_solana_private_key_to_keypair(
80
105
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
81
106
  size_t count);
Binary file
@@ -1 +1 @@
1
- {"version":3,"names":["getter","globalThis","NativeWallet","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/wallet-ffi.ts"],"mappings":";;AAAA;AACA;;AA8EA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,YAAY;AAClC,eAAeF,MAAM;;AAErB;;AAmHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMG,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
1
+ {"version":3,"names":["getter","globalThis","NativeWallet","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/wallet-ffi.ts"],"mappings":";;AAAA;AACA;;AAkGA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,YAAY;AAClC,eAAeF,MAAM;;AAErB;;AAmHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMG,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
@@ -3,7 +3,7 @@
3
3
  // This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate.
4
4
  // Trust me, you don't want to mess with it!
5
5
  import nativeModule from "./wallet-ffi.js";
6
- import { AbstractFfiConverterByteArray, FfiConverterInt32, FfiConverterUInt8, UniffiError, UniffiInternalError, UniffiRustCaller, uniffiCreateFfiConverterString, uniffiCreateRecord, uniffiTypeNameSymbol } from 'uniffi-bindgen-react-native';
6
+ import { AbstractFfiConverterByteArray, FfiConverterBool, FfiConverterInt32, FfiConverterUInt8, UniffiError, UniffiInternalError, UniffiRustCaller, uniffiCreateFfiConverterString, uniffiCreateRecord, uniffiTypeNameSymbol } from 'uniffi-bindgen-react-native';
7
7
 
8
8
  // Get converters from the other files, if any.
9
9
  const uniffiCaller = new UniffiRustCaller(() => ({
@@ -51,6 +51,26 @@ export function generateSolanaKeypair(mnemonicStr, pathStr) /*throws*/{
51
51
  return nativeModule().ubrn_uniffi_wallet_fn_func_generate_solana_keypair(FfiConverterString.lower(mnemonicStr), FfiConverterString.lower(pathStr), callStatus);
52
52
  }, /*liftString:*/FfiConverterString.lift));
53
53
  }
54
+ export function isValidEthereumPrivateKey(privateKey) {
55
+ return FfiConverterBool.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
56
+ return nativeModule().ubrn_uniffi_wallet_fn_func_is_valid_ethereum_private_key(FfiConverterString.lower(privateKey), callStatus);
57
+ }, /*liftString:*/FfiConverterString.lift));
58
+ }
59
+ export function isValidMnemonic(mnemonic) {
60
+ return FfiConverterBool.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
61
+ return nativeModule().ubrn_uniffi_wallet_fn_func_is_valid_mnemonic(FfiConverterString.lower(mnemonic), callStatus);
62
+ }, /*liftString:*/FfiConverterString.lift));
63
+ }
64
+ export function isValidSolanaPrivateKey(privateKey) {
65
+ return FfiConverterBool.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
66
+ return nativeModule().ubrn_uniffi_wallet_fn_func_is_valid_solana_private_key(FfiConverterString.lower(privateKey), callStatus);
67
+ }, /*liftString:*/FfiConverterString.lift));
68
+ }
69
+ export function isValidWif(wif) {
70
+ return FfiConverterBool.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
71
+ return nativeModule().ubrn_uniffi_wallet_fn_func_is_valid_wif(FfiConverterString.lower(wif), callStatus);
72
+ }, /*liftString:*/FfiConverterString.lift));
73
+ }
54
74
  export function solanaPrivateKeyToKeypair(privateKeyBase58) /*throws*/{
55
75
  return FfiConverterTypeKeyPair.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeSolanaPrivateKeyError.lift.bind(FfiConverterTypeSolanaPrivateKeyError), /*caller:*/callStatus => {
56
76
  return nativeModule().ubrn_uniffi_wallet_fn_func_solana_private_key_to_keypair(FfiConverterString.lower(privateKeyBase58), callStatus);
@@ -2146,6 +2166,18 @@ function uniffiEnsureInitialized() {
2146
2166
  if (nativeModule().ubrn_uniffi_wallet_checksum_func_generate_solana_keypair() !== 19681) {
2147
2167
  throw new UniffiInternalError.ApiChecksumMismatch('uniffi_wallet_checksum_func_generate_solana_keypair');
2148
2168
  }
2169
+ if (nativeModule().ubrn_uniffi_wallet_checksum_func_is_valid_ethereum_private_key() !== 13240) {
2170
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_wallet_checksum_func_is_valid_ethereum_private_key');
2171
+ }
2172
+ if (nativeModule().ubrn_uniffi_wallet_checksum_func_is_valid_mnemonic() !== 14728) {
2173
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_wallet_checksum_func_is_valid_mnemonic');
2174
+ }
2175
+ if (nativeModule().ubrn_uniffi_wallet_checksum_func_is_valid_solana_private_key() !== 18401) {
2176
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_wallet_checksum_func_is_valid_solana_private_key');
2177
+ }
2178
+ if (nativeModule().ubrn_uniffi_wallet_checksum_func_is_valid_wif() !== 52436) {
2179
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_wallet_checksum_func_is_valid_wif');
2180
+ }
2149
2181
  if (nativeModule().ubrn_uniffi_wallet_checksum_func_solana_private_key_to_keypair() !== 14566) {
2150
2182
  throw new UniffiInternalError.ApiChecksumMismatch('uniffi_wallet_checksum_func_solana_private_key_to_keypair');
2151
2183
  }