cojson-core-rn 0.19.10
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/CojsonCoreRn.podspec +44 -0
- package/CojsonCoreRnFramework.xcframework/Info.plist +43 -0
- package/CojsonCoreRnFramework.xcframework/ios-arm64/libcojson_core_rn.a +0 -0
- package/CojsonCoreRnFramework.xcframework/ios-arm64-simulator/libcojson_core_rn.a +0 -0
- package/LICENSE.txt +19 -0
- package/README.md +50 -0
- package/android/CMakeLists.txt +76 -0
- package/android/build.gradle +144 -0
- package/android/cpp-adapter.cpp +43 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +5 -0
- package/android/src/main/java/com/cojsoncorern/CojsonCoreRnModule.kt +43 -0
- package/android/src/main/java/com/cojsoncorern/CojsonCoreRnPackage.kt +34 -0
- package/android/src/main/jniLibs/arm64-v8a/libcojson_core_rn.a +0 -0
- package/android/src/main/jniLibs/armeabi-v7a/libcojson_core_rn.a +0 -0
- package/android/src/main/jniLibs/x86/libcojson_core_rn.a +0 -0
- package/android/src/main/jniLibs/x86_64/libcojson_core_rn.a +0 -0
- package/cpp/cojson-core-rn.cpp +16 -0
- package/cpp/cojson-core-rn.h +15 -0
- package/cpp/generated/cojson_core_rn.cpp +3523 -0
- package/cpp/generated/cojson_core_rn.hpp +128 -0
- package/ios/CojsonCoreRn.h +16 -0
- package/ios/CojsonCoreRn.mm +66 -0
- package/lib/module/NativeCojsonCoreRn.js +7 -0
- package/lib/module/NativeCojsonCoreRn.js.map +1 -0
- package/lib/module/generated/cojson_core_rn-ffi.js +43 -0
- package/lib/module/generated/cojson_core_rn-ffi.js.map +1 -0
- package/lib/module/generated/cojson_core_rn.js +1311 -0
- package/lib/module/generated/cojson_core_rn.js.map +1 -0
- package/lib/module/index.js +43 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/NativeCojsonCoreRn.d.ts +8 -0
- package/lib/typescript/src/NativeCojsonCoreRn.d.ts.map +1 -0
- package/lib/typescript/src/generated/cojson_core_rn-ffi.d.ts +158 -0
- package/lib/typescript/src/generated/cojson_core_rn-ffi.d.ts.map +1 -0
- package/lib/typescript/src/generated/cojson_core_rn.d.ts +1299 -0
- package/lib/typescript/src/generated/cojson_core_rn.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +8 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/package.json +167 -0
- package/src/NativeCojsonCoreRn.ts +10 -0
- package/src/generated/cojson_core_rn-ffi.ts +429 -0
- package/src/generated/cojson_core_rn.ts +2342 -0
- package/src/index.tsx +41 -0
|
@@ -0,0 +1,1299 @@
|
|
|
1
|
+
import { type UniffiByteArray, type UniffiRustArcPtr, type UnsafeMutableRawPointer, FfiConverterObject, RustBuffer, UniffiAbstractObject, destructorGuardSymbol, pointerLiteralSymbol, uniffiTypeNameSymbol } from 'uniffi-bindgen-react-native';
|
|
2
|
+
/**
|
|
3
|
+
* Hash data once using BLAKE3.
|
|
4
|
+
* - `data`: Raw bytes to hash
|
|
5
|
+
* Returns 32 bytes of hash output.
|
|
6
|
+
* This is the simplest way to compute a BLAKE3 hash of a single piece of data.
|
|
7
|
+
*/
|
|
8
|
+
export declare function blake3HashOnce(data: ArrayBuffer): ArrayBuffer;
|
|
9
|
+
/**
|
|
10
|
+
* Hash data once using BLAKE3 with a context prefix.
|
|
11
|
+
* - `data`: Raw bytes to hash
|
|
12
|
+
* - `context`: Context bytes to prefix to the data
|
|
13
|
+
* Returns 32 bytes of hash output.
|
|
14
|
+
* This is useful for domain separation - the same data hashed with different contexts will produce different outputs.
|
|
15
|
+
*/
|
|
16
|
+
export declare function blake3HashOnceWithContext(data: ArrayBuffer, context: ArrayBuffer): ArrayBuffer;
|
|
17
|
+
/**
|
|
18
|
+
* Uniffi-exposed function to decrypt bytes with a key secret and nonce material.
|
|
19
|
+
* - `ciphertext`: The encrypted bytes to decrypt
|
|
20
|
+
* - `key_secret`: A base58-encoded key secret with "keySecret_z" prefix
|
|
21
|
+
* - `nonce_material`: Raw bytes used to generate the nonce (must match encryption)
|
|
22
|
+
* Returns the decrypted bytes or throws an error if decryption fails.
|
|
23
|
+
*/
|
|
24
|
+
export declare function decrypt(ciphertext: ArrayBuffer, keySecret: string, nonceMaterial: ArrayBuffer): ArrayBuffer;
|
|
25
|
+
/**
|
|
26
|
+
* Uniffi-exposed function for XSalsa20 decryption without authentication.
|
|
27
|
+
* - `key`: 32-byte key for decryption (must match encryption key)
|
|
28
|
+
* - `nonce_material`: Raw bytes used to generate a 24-byte nonce (must match encryption)
|
|
29
|
+
* - `ciphertext`: Encrypted bytes to decrypt
|
|
30
|
+
* Returns the decrypted bytes or throws an error if decryption fails.
|
|
31
|
+
* Note: This function does not provide authentication. Use decrypt_xsalsa20_poly1305 for authenticated decryption.
|
|
32
|
+
*/
|
|
33
|
+
export declare function decryptXsalsa20(key: ArrayBuffer, nonceMaterial: ArrayBuffer, ciphertext: ArrayBuffer): ArrayBuffer;
|
|
34
|
+
/**
|
|
35
|
+
* uniffi-exposed function to sign a message using Ed25519.
|
|
36
|
+
* - `signing_key`: 32 bytes of signing key material
|
|
37
|
+
* - `message`: Raw bytes to sign
|
|
38
|
+
* Returns 64 bytes of signature material or throws CryptoErrorUniffi if signing fails.
|
|
39
|
+
*/
|
|
40
|
+
export declare function ed25519Sign(signingKey: ArrayBuffer, message: ArrayBuffer): ArrayBuffer;
|
|
41
|
+
/**
|
|
42
|
+
* uniffi-exposed function to validate and copy Ed25519 signature bytes.
|
|
43
|
+
* - `bytes`: 64 bytes of signature material to validate
|
|
44
|
+
* Returns the same 64 bytes if valid or throws CryptoErrorUniffi if invalid.
|
|
45
|
+
*/
|
|
46
|
+
export declare function ed25519SignatureFromBytes(bytes: ArrayBuffer): ArrayBuffer;
|
|
47
|
+
/**
|
|
48
|
+
* uniffi-exposed function to validate and copy Ed25519 signing key bytes.
|
|
49
|
+
* - `bytes`: 32 bytes of signing key material to validate
|
|
50
|
+
* Returns the same 32 bytes if valid or throws CryptoErrorUniffi if invalid.
|
|
51
|
+
*/
|
|
52
|
+
export declare function ed25519SigningKeyFromBytes(bytes: ArrayBuffer): ArrayBuffer;
|
|
53
|
+
/**
|
|
54
|
+
* uniffi-exposed function to sign a message with an Ed25519 signing key.
|
|
55
|
+
* - `signing_key`: 32 bytes of signing key material
|
|
56
|
+
* - `message`: Raw bytes to sign
|
|
57
|
+
* Returns 64 bytes of signature material or throws CryptoErrorUniffi if signing fails.
|
|
58
|
+
*/
|
|
59
|
+
export declare function ed25519SigningKeySign(signingKey: ArrayBuffer, message: ArrayBuffer): ArrayBuffer;
|
|
60
|
+
/**
|
|
61
|
+
* uniffi-exposed function to derive the public key from an Ed25519 signing key.
|
|
62
|
+
* - `signing_key`: 32 bytes of signing key material
|
|
63
|
+
* Returns 32 bytes of public key material or throws CryptoErrorUniffi if key is invalid.
|
|
64
|
+
*/
|
|
65
|
+
export declare function ed25519SigningKeyToPublic(signingKey: ArrayBuffer): ArrayBuffer;
|
|
66
|
+
/**
|
|
67
|
+
* uniffi-exposed function to verify an Ed25519 signature.
|
|
68
|
+
* - `verifying_key`: 32 bytes of verifying key material
|
|
69
|
+
* - `message`: Raw bytes that were signed
|
|
70
|
+
* - `signature`: 64 bytes of signature material
|
|
71
|
+
* Returns true if signature is valid, false otherwise, or throws CryptoErrorUniffi if verification fails.
|
|
72
|
+
*/
|
|
73
|
+
export declare function ed25519Verify(verifyingKey: ArrayBuffer, message: ArrayBuffer, signature: ArrayBuffer): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* uniffi-exposed function to derive an Ed25519 verifying key from a signing key.
|
|
76
|
+
* - `signing_key`: 32 bytes of signing key material
|
|
77
|
+
* Returns 32 bytes of verifying key material or throws CryptoErrorUniffi if key is invalid.
|
|
78
|
+
*/
|
|
79
|
+
export declare function ed25519VerifyingKey(signingKey: ArrayBuffer): ArrayBuffer;
|
|
80
|
+
/**
|
|
81
|
+
* uniffi-exposed function to validate and copy Ed25519 verifying key bytes.
|
|
82
|
+
* - `bytes`: 32 bytes of verifying key material to validate
|
|
83
|
+
* Returns the same 32 bytes if valid or throws CryptoErrorUniffi if invalid.
|
|
84
|
+
*/
|
|
85
|
+
export declare function ed25519VerifyingKeyFromBytes(bytes: ArrayBuffer): ArrayBuffer;
|
|
86
|
+
/**
|
|
87
|
+
* Uniffi-exposed function to encrypt bytes with a key secret and nonce material.
|
|
88
|
+
* - `value`: The raw bytes to encrypt
|
|
89
|
+
* - `key_secret`: A base58-encoded key secret with "keySecret_z" prefix
|
|
90
|
+
* - `nonce_material`: Raw bytes used to generate the nonce
|
|
91
|
+
* Returns the encrypted bytes or throws an error if encryption fails.
|
|
92
|
+
*/
|
|
93
|
+
export declare function encrypt(value: ArrayBuffer, keySecret: string, nonceMaterial: ArrayBuffer): ArrayBuffer;
|
|
94
|
+
/**
|
|
95
|
+
* Uniffi-exposed function for XSalsa20 encryption without authentication.
|
|
96
|
+
* - `key`: 32-byte key for encryption
|
|
97
|
+
* - `nonce_material`: Raw bytes used to generate a 24-byte nonce via BLAKE3
|
|
98
|
+
* - `plaintext`: Raw bytes to encrypt
|
|
99
|
+
* Returns the encrypted bytes or throws an error if encryption fails.
|
|
100
|
+
* Note: This function does not provide authentication. Use encrypt_xsalsa20_poly1305 for authenticated encryption.
|
|
101
|
+
*/
|
|
102
|
+
export declare function encryptXsalsa20(key: ArrayBuffer, nonceMaterial: ArrayBuffer, plaintext: ArrayBuffer): ArrayBuffer;
|
|
103
|
+
/**
|
|
104
|
+
* Generate a 24-byte nonce from input material using BLAKE3.
|
|
105
|
+
* - `nonce_material`: Raw bytes to derive the nonce from
|
|
106
|
+
* Returns 24 bytes suitable for use as a nonce in cryptographic operations.
|
|
107
|
+
* This function is deterministic - the same input will produce the same nonce.
|
|
108
|
+
*/
|
|
109
|
+
export declare function generateNonce(nonceMaterial: ArrayBuffer): ArrayBuffer;
|
|
110
|
+
/**
|
|
111
|
+
* Uniffi-exposed function to derive a sealer ID from a sealer secret.
|
|
112
|
+
* - `secret`: UTF-8 encoded sealer secret string
|
|
113
|
+
* Returns a base58-encoded sealer ID with "sealer_z" prefix or throws an error if derivation fails.
|
|
114
|
+
*/
|
|
115
|
+
export declare function getSealerId(secret: string): string;
|
|
116
|
+
/**
|
|
117
|
+
* Uniffi-exposed function to derive a signer ID from a signing key.
|
|
118
|
+
* - `secret`: UTF-8 encoded Ed25519 signing key string
|
|
119
|
+
* Returns base58-encoded verifying key with "signer_z" prefix or throws an error if derivation fails.
|
|
120
|
+
*/
|
|
121
|
+
export declare function getSignerId(secret: string): string;
|
|
122
|
+
/**
|
|
123
|
+
* Generate a new Ed25519 signing key using secure random number generation.
|
|
124
|
+
* Returns 32 bytes of raw key material suitable for use with other Ed25519 functions.
|
|
125
|
+
*/
|
|
126
|
+
export declare function newEd25519SigningKey(): ArrayBuffer;
|
|
127
|
+
/**
|
|
128
|
+
* Generate a new X25519 private key using secure random number generation.
|
|
129
|
+
* Returns 32 bytes of raw key material suitable for use with other X25519 functions.
|
|
130
|
+
* This key can be reused for multiple Diffie-Hellman exchanges.
|
|
131
|
+
*/
|
|
132
|
+
export declare function newX25519PrivateKey(): ArrayBuffer;
|
|
133
|
+
/**
|
|
134
|
+
* Uniffi-exposed function for sealing a message using X25519 + XSalsa20-Poly1305.
|
|
135
|
+
* Provides authenticated encryption with perfect forward secrecy.
|
|
136
|
+
* - `message`: Raw bytes to seal
|
|
137
|
+
* - `sender_secret`: Base58-encoded sender's private key with "sealerSecret_z" prefix
|
|
138
|
+
* - `recipient_id`: Base58-encoded recipient's public key with "sealer_z" prefix
|
|
139
|
+
* - `nonce_material`: Raw bytes used to generate the nonce
|
|
140
|
+
* Returns sealed bytes or throws an error if sealing fails.
|
|
141
|
+
*/
|
|
142
|
+
export declare function seal(message: ArrayBuffer, senderSecret: string, recipientId: string, nonceMaterial: ArrayBuffer): ArrayBuffer;
|
|
143
|
+
/**
|
|
144
|
+
* Uniffi-exposed function to sign a message using Ed25519.
|
|
145
|
+
* - `message`: Raw bytes to sign
|
|
146
|
+
* - `secret`: UTF-8 encoded Ed25519 signing key string
|
|
147
|
+
* Returns base58-encoded signature with "signature_z" prefix or throws an error if signing fails.
|
|
148
|
+
*/
|
|
149
|
+
export declare function sign(message: ArrayBuffer, secret: string): string;
|
|
150
|
+
/**
|
|
151
|
+
* Uniffi-exposed function for unsealing a message using X25519 + XSalsa20-Poly1305.
|
|
152
|
+
* Provides authenticated decryption with perfect forward secrecy.
|
|
153
|
+
* - `sealed_message`: The sealed bytes to decrypt
|
|
154
|
+
* - `recipient_secret`: Base58-encoded recipient's private key with "sealerSecret_z" prefix
|
|
155
|
+
* - `sender_id`: Base58-encoded sender's public key with "sealer_z" prefix
|
|
156
|
+
* - `nonce_material`: Raw bytes used to generate the nonce (must match sealing)
|
|
157
|
+
* Returns unsealed bytes or throws an error if unsealing fails.
|
|
158
|
+
*/
|
|
159
|
+
export declare function unseal(sealedMessage: ArrayBuffer, recipientSecret: string, senderId: string, nonceMaterial: ArrayBuffer): ArrayBuffer;
|
|
160
|
+
/**
|
|
161
|
+
* Uniffi-exposed function to verify an Ed25519 signature.
|
|
162
|
+
* - `signature`: Base58-encoded signature string
|
|
163
|
+
* - `message`: Raw bytes that were signed
|
|
164
|
+
* - `id`: Base58-encoded verifying key string
|
|
165
|
+
* Returns true if signature is valid, false otherwise, or throws an error if verification fails.
|
|
166
|
+
*/
|
|
167
|
+
export declare function verify(signature: string, message: ArrayBuffer, id: string): boolean;
|
|
168
|
+
/**
|
|
169
|
+
* Uniffi-exposed function to perform X25519 Diffie-Hellman key exchange.
|
|
170
|
+
* - `private_key`: 32 bytes of private key material
|
|
171
|
+
* - `public_key`: 32 bytes of public key material
|
|
172
|
+
* Returns 32 bytes of shared secret material or throws an error if key exchange fails.
|
|
173
|
+
*/
|
|
174
|
+
export declare function x25519DiffieHellman(privateKey: ArrayBuffer, publicKey: ArrayBuffer): ArrayBuffer;
|
|
175
|
+
/**
|
|
176
|
+
* Uniffi-exposed function to derive an X25519 public key from a private key.
|
|
177
|
+
* - `private_key`: 32 bytes of private key material
|
|
178
|
+
* Returns 32 bytes of public key material or throws an error if key is invalid.
|
|
179
|
+
*/
|
|
180
|
+
export declare function x25519PublicKey(privateKey: ArrayBuffer): ArrayBuffer;
|
|
181
|
+
export declare enum Blake3Error_Tags {
|
|
182
|
+
LockError = "LockError"
|
|
183
|
+
}
|
|
184
|
+
export declare const Blake3Error: Readonly<{
|
|
185
|
+
instanceOf: (obj: any) => obj is Blake3Error;
|
|
186
|
+
LockError: {
|
|
187
|
+
new (): {
|
|
188
|
+
readonly tag: Blake3Error_Tags.LockError;
|
|
189
|
+
/**
|
|
190
|
+
* @private
|
|
191
|
+
* This field is private and should not be used, use `tag` instead.
|
|
192
|
+
*/
|
|
193
|
+
readonly [uniffiTypeNameSymbol]: "Blake3Error";
|
|
194
|
+
name: string;
|
|
195
|
+
message: string;
|
|
196
|
+
stack?: string;
|
|
197
|
+
cause?: unknown;
|
|
198
|
+
};
|
|
199
|
+
"new"(): {
|
|
200
|
+
readonly tag: Blake3Error_Tags.LockError;
|
|
201
|
+
/**
|
|
202
|
+
* @private
|
|
203
|
+
* This field is private and should not be used, use `tag` instead.
|
|
204
|
+
*/
|
|
205
|
+
readonly [uniffiTypeNameSymbol]: "Blake3Error";
|
|
206
|
+
name: string;
|
|
207
|
+
message: string;
|
|
208
|
+
stack?: string;
|
|
209
|
+
cause?: unknown;
|
|
210
|
+
};
|
|
211
|
+
instanceOf(obj: any): obj is {
|
|
212
|
+
readonly tag: Blake3Error_Tags.LockError;
|
|
213
|
+
/**
|
|
214
|
+
* @private
|
|
215
|
+
* This field is private and should not be used, use `tag` instead.
|
|
216
|
+
*/
|
|
217
|
+
readonly [uniffiTypeNameSymbol]: "Blake3Error";
|
|
218
|
+
name: string;
|
|
219
|
+
message: string;
|
|
220
|
+
stack?: string;
|
|
221
|
+
cause?: unknown;
|
|
222
|
+
};
|
|
223
|
+
hasInner(obj: any): obj is {
|
|
224
|
+
readonly tag: Blake3Error_Tags.LockError;
|
|
225
|
+
/**
|
|
226
|
+
* @private
|
|
227
|
+
* This field is private and should not be used, use `tag` instead.
|
|
228
|
+
*/
|
|
229
|
+
readonly [uniffiTypeNameSymbol]: "Blake3Error";
|
|
230
|
+
name: string;
|
|
231
|
+
message: string;
|
|
232
|
+
stack?: string;
|
|
233
|
+
cause?: unknown;
|
|
234
|
+
};
|
|
235
|
+
isError(error: unknown): error is Error;
|
|
236
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
237
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
238
|
+
stackTraceLimit: number;
|
|
239
|
+
};
|
|
240
|
+
}>;
|
|
241
|
+
export type Blake3Error = InstanceType<(typeof Blake3Error)[keyof Omit<typeof Blake3Error, 'instanceOf'>]>;
|
|
242
|
+
export declare enum CryptoErrorUniffi_Tags {
|
|
243
|
+
InvalidKeyLength = "InvalidKeyLength",
|
|
244
|
+
InvalidNonceLength = "InvalidNonceLength",
|
|
245
|
+
InvalidSealerSecretFormat = "InvalidSealerSecretFormat",
|
|
246
|
+
InvalidSignatureLength = "InvalidSignatureLength",
|
|
247
|
+
InvalidVerifyingKey = "InvalidVerifyingKey",
|
|
248
|
+
InvalidPublicKey = "InvalidPublicKey",
|
|
249
|
+
WrongTag = "WrongTag",
|
|
250
|
+
CipherError = "CipherError",
|
|
251
|
+
InvalidPrefix = "InvalidPrefix",
|
|
252
|
+
Base58Error = "Base58Error"
|
|
253
|
+
}
|
|
254
|
+
export declare const CryptoErrorUniffi: Readonly<{
|
|
255
|
+
instanceOf: (obj: any) => obj is CryptoErrorUniffi;
|
|
256
|
+
InvalidKeyLength: {
|
|
257
|
+
new (v0: bigint, v1: bigint): {
|
|
258
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidKeyLength;
|
|
259
|
+
readonly inner: Readonly<[/*u64*/ bigint, /*u64*/ bigint]>;
|
|
260
|
+
/**
|
|
261
|
+
* @private
|
|
262
|
+
* This field is private and should not be used, use `tag` instead.
|
|
263
|
+
*/
|
|
264
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
265
|
+
name: string;
|
|
266
|
+
message: string;
|
|
267
|
+
stack?: string;
|
|
268
|
+
cause?: unknown;
|
|
269
|
+
};
|
|
270
|
+
"new"(v0: bigint, v1: bigint): {
|
|
271
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidKeyLength;
|
|
272
|
+
readonly inner: Readonly<[/*u64*/ bigint, /*u64*/ bigint]>;
|
|
273
|
+
/**
|
|
274
|
+
* @private
|
|
275
|
+
* This field is private and should not be used, use `tag` instead.
|
|
276
|
+
*/
|
|
277
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
278
|
+
name: string;
|
|
279
|
+
message: string;
|
|
280
|
+
stack?: string;
|
|
281
|
+
cause?: unknown;
|
|
282
|
+
};
|
|
283
|
+
instanceOf(obj: any): obj is {
|
|
284
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidKeyLength;
|
|
285
|
+
readonly inner: Readonly<[/*u64*/ bigint, /*u64*/ bigint]>;
|
|
286
|
+
/**
|
|
287
|
+
* @private
|
|
288
|
+
* This field is private and should not be used, use `tag` instead.
|
|
289
|
+
*/
|
|
290
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
291
|
+
name: string;
|
|
292
|
+
message: string;
|
|
293
|
+
stack?: string;
|
|
294
|
+
cause?: unknown;
|
|
295
|
+
};
|
|
296
|
+
hasInner(obj: any): obj is {
|
|
297
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidKeyLength;
|
|
298
|
+
readonly inner: Readonly<[/*u64*/ bigint, /*u64*/ bigint]>;
|
|
299
|
+
/**
|
|
300
|
+
* @private
|
|
301
|
+
* This field is private and should not be used, use `tag` instead.
|
|
302
|
+
*/
|
|
303
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
304
|
+
name: string;
|
|
305
|
+
message: string;
|
|
306
|
+
stack?: string;
|
|
307
|
+
cause?: unknown;
|
|
308
|
+
};
|
|
309
|
+
getInner(obj: {
|
|
310
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidKeyLength;
|
|
311
|
+
readonly inner: Readonly<[/*u64*/ bigint, /*u64*/ bigint]>;
|
|
312
|
+
/**
|
|
313
|
+
* @private
|
|
314
|
+
* This field is private and should not be used, use `tag` instead.
|
|
315
|
+
*/
|
|
316
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
317
|
+
name: string;
|
|
318
|
+
message: string;
|
|
319
|
+
stack?: string;
|
|
320
|
+
cause?: unknown;
|
|
321
|
+
}): Readonly<[/*u64*/ bigint, /*u64*/ bigint]>;
|
|
322
|
+
isError(error: unknown): error is Error;
|
|
323
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
324
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
325
|
+
stackTraceLimit: number;
|
|
326
|
+
};
|
|
327
|
+
InvalidNonceLength: {
|
|
328
|
+
new (): {
|
|
329
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidNonceLength;
|
|
330
|
+
/**
|
|
331
|
+
* @private
|
|
332
|
+
* This field is private and should not be used, use `tag` instead.
|
|
333
|
+
*/
|
|
334
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
335
|
+
name: string;
|
|
336
|
+
message: string;
|
|
337
|
+
stack?: string;
|
|
338
|
+
cause?: unknown;
|
|
339
|
+
};
|
|
340
|
+
"new"(): {
|
|
341
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidNonceLength;
|
|
342
|
+
/**
|
|
343
|
+
* @private
|
|
344
|
+
* This field is private and should not be used, use `tag` instead.
|
|
345
|
+
*/
|
|
346
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
347
|
+
name: string;
|
|
348
|
+
message: string;
|
|
349
|
+
stack?: string;
|
|
350
|
+
cause?: unknown;
|
|
351
|
+
};
|
|
352
|
+
instanceOf(obj: any): obj is {
|
|
353
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidNonceLength;
|
|
354
|
+
/**
|
|
355
|
+
* @private
|
|
356
|
+
* This field is private and should not be used, use `tag` instead.
|
|
357
|
+
*/
|
|
358
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
359
|
+
name: string;
|
|
360
|
+
message: string;
|
|
361
|
+
stack?: string;
|
|
362
|
+
cause?: unknown;
|
|
363
|
+
};
|
|
364
|
+
hasInner(obj: any): obj is {
|
|
365
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidNonceLength;
|
|
366
|
+
/**
|
|
367
|
+
* @private
|
|
368
|
+
* This field is private and should not be used, use `tag` instead.
|
|
369
|
+
*/
|
|
370
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
371
|
+
name: string;
|
|
372
|
+
message: string;
|
|
373
|
+
stack?: string;
|
|
374
|
+
cause?: unknown;
|
|
375
|
+
};
|
|
376
|
+
isError(error: unknown): error is Error;
|
|
377
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
378
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
379
|
+
stackTraceLimit: number;
|
|
380
|
+
};
|
|
381
|
+
InvalidSealerSecretFormat: {
|
|
382
|
+
new (): {
|
|
383
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidSealerSecretFormat;
|
|
384
|
+
/**
|
|
385
|
+
* @private
|
|
386
|
+
* This field is private and should not be used, use `tag` instead.
|
|
387
|
+
*/
|
|
388
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
389
|
+
name: string;
|
|
390
|
+
message: string;
|
|
391
|
+
stack?: string;
|
|
392
|
+
cause?: unknown;
|
|
393
|
+
};
|
|
394
|
+
"new"(): {
|
|
395
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidSealerSecretFormat;
|
|
396
|
+
/**
|
|
397
|
+
* @private
|
|
398
|
+
* This field is private and should not be used, use `tag` instead.
|
|
399
|
+
*/
|
|
400
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
401
|
+
name: string;
|
|
402
|
+
message: string;
|
|
403
|
+
stack?: string;
|
|
404
|
+
cause?: unknown;
|
|
405
|
+
};
|
|
406
|
+
instanceOf(obj: any): obj is {
|
|
407
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidSealerSecretFormat;
|
|
408
|
+
/**
|
|
409
|
+
* @private
|
|
410
|
+
* This field is private and should not be used, use `tag` instead.
|
|
411
|
+
*/
|
|
412
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
413
|
+
name: string;
|
|
414
|
+
message: string;
|
|
415
|
+
stack?: string;
|
|
416
|
+
cause?: unknown;
|
|
417
|
+
};
|
|
418
|
+
hasInner(obj: any): obj is {
|
|
419
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidSealerSecretFormat;
|
|
420
|
+
/**
|
|
421
|
+
* @private
|
|
422
|
+
* This field is private and should not be used, use `tag` instead.
|
|
423
|
+
*/
|
|
424
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
425
|
+
name: string;
|
|
426
|
+
message: string;
|
|
427
|
+
stack?: string;
|
|
428
|
+
cause?: unknown;
|
|
429
|
+
};
|
|
430
|
+
isError(error: unknown): error is Error;
|
|
431
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
432
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
433
|
+
stackTraceLimit: number;
|
|
434
|
+
};
|
|
435
|
+
InvalidSignatureLength: {
|
|
436
|
+
new (): {
|
|
437
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidSignatureLength;
|
|
438
|
+
/**
|
|
439
|
+
* @private
|
|
440
|
+
* This field is private and should not be used, use `tag` instead.
|
|
441
|
+
*/
|
|
442
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
443
|
+
name: string;
|
|
444
|
+
message: string;
|
|
445
|
+
stack?: string;
|
|
446
|
+
cause?: unknown;
|
|
447
|
+
};
|
|
448
|
+
"new"(): {
|
|
449
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidSignatureLength;
|
|
450
|
+
/**
|
|
451
|
+
* @private
|
|
452
|
+
* This field is private and should not be used, use `tag` instead.
|
|
453
|
+
*/
|
|
454
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
455
|
+
name: string;
|
|
456
|
+
message: string;
|
|
457
|
+
stack?: string;
|
|
458
|
+
cause?: unknown;
|
|
459
|
+
};
|
|
460
|
+
instanceOf(obj: any): obj is {
|
|
461
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidSignatureLength;
|
|
462
|
+
/**
|
|
463
|
+
* @private
|
|
464
|
+
* This field is private and should not be used, use `tag` instead.
|
|
465
|
+
*/
|
|
466
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
467
|
+
name: string;
|
|
468
|
+
message: string;
|
|
469
|
+
stack?: string;
|
|
470
|
+
cause?: unknown;
|
|
471
|
+
};
|
|
472
|
+
hasInner(obj: any): obj is {
|
|
473
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidSignatureLength;
|
|
474
|
+
/**
|
|
475
|
+
* @private
|
|
476
|
+
* This field is private and should not be used, use `tag` instead.
|
|
477
|
+
*/
|
|
478
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
479
|
+
name: string;
|
|
480
|
+
message: string;
|
|
481
|
+
stack?: string;
|
|
482
|
+
cause?: unknown;
|
|
483
|
+
};
|
|
484
|
+
isError(error: unknown): error is Error;
|
|
485
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
486
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
487
|
+
stackTraceLimit: number;
|
|
488
|
+
};
|
|
489
|
+
InvalidVerifyingKey: {
|
|
490
|
+
new (v0: string): {
|
|
491
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidVerifyingKey;
|
|
492
|
+
readonly inner: Readonly<[string]>;
|
|
493
|
+
/**
|
|
494
|
+
* @private
|
|
495
|
+
* This field is private and should not be used, use `tag` instead.
|
|
496
|
+
*/
|
|
497
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
498
|
+
name: string;
|
|
499
|
+
message: string;
|
|
500
|
+
stack?: string;
|
|
501
|
+
cause?: unknown;
|
|
502
|
+
};
|
|
503
|
+
"new"(v0: string): {
|
|
504
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidVerifyingKey;
|
|
505
|
+
readonly inner: Readonly<[string]>;
|
|
506
|
+
/**
|
|
507
|
+
* @private
|
|
508
|
+
* This field is private and should not be used, use `tag` instead.
|
|
509
|
+
*/
|
|
510
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
511
|
+
name: string;
|
|
512
|
+
message: string;
|
|
513
|
+
stack?: string;
|
|
514
|
+
cause?: unknown;
|
|
515
|
+
};
|
|
516
|
+
instanceOf(obj: any): obj is {
|
|
517
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidVerifyingKey;
|
|
518
|
+
readonly inner: Readonly<[string]>;
|
|
519
|
+
/**
|
|
520
|
+
* @private
|
|
521
|
+
* This field is private and should not be used, use `tag` instead.
|
|
522
|
+
*/
|
|
523
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
524
|
+
name: string;
|
|
525
|
+
message: string;
|
|
526
|
+
stack?: string;
|
|
527
|
+
cause?: unknown;
|
|
528
|
+
};
|
|
529
|
+
hasInner(obj: any): obj is {
|
|
530
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidVerifyingKey;
|
|
531
|
+
readonly inner: Readonly<[string]>;
|
|
532
|
+
/**
|
|
533
|
+
* @private
|
|
534
|
+
* This field is private and should not be used, use `tag` instead.
|
|
535
|
+
*/
|
|
536
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
537
|
+
name: string;
|
|
538
|
+
message: string;
|
|
539
|
+
stack?: string;
|
|
540
|
+
cause?: unknown;
|
|
541
|
+
};
|
|
542
|
+
getInner(obj: {
|
|
543
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidVerifyingKey;
|
|
544
|
+
readonly inner: Readonly<[string]>;
|
|
545
|
+
/**
|
|
546
|
+
* @private
|
|
547
|
+
* This field is private and should not be used, use `tag` instead.
|
|
548
|
+
*/
|
|
549
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
550
|
+
name: string;
|
|
551
|
+
message: string;
|
|
552
|
+
stack?: string;
|
|
553
|
+
cause?: unknown;
|
|
554
|
+
}): Readonly<[string]>;
|
|
555
|
+
isError(error: unknown): error is Error;
|
|
556
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
557
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
558
|
+
stackTraceLimit: number;
|
|
559
|
+
};
|
|
560
|
+
InvalidPublicKey: {
|
|
561
|
+
new (v0: string): {
|
|
562
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidPublicKey;
|
|
563
|
+
readonly inner: Readonly<[string]>;
|
|
564
|
+
/**
|
|
565
|
+
* @private
|
|
566
|
+
* This field is private and should not be used, use `tag` instead.
|
|
567
|
+
*/
|
|
568
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
569
|
+
name: string;
|
|
570
|
+
message: string;
|
|
571
|
+
stack?: string;
|
|
572
|
+
cause?: unknown;
|
|
573
|
+
};
|
|
574
|
+
"new"(v0: string): {
|
|
575
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidPublicKey;
|
|
576
|
+
readonly inner: Readonly<[string]>;
|
|
577
|
+
/**
|
|
578
|
+
* @private
|
|
579
|
+
* This field is private and should not be used, use `tag` instead.
|
|
580
|
+
*/
|
|
581
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
582
|
+
name: string;
|
|
583
|
+
message: string;
|
|
584
|
+
stack?: string;
|
|
585
|
+
cause?: unknown;
|
|
586
|
+
};
|
|
587
|
+
instanceOf(obj: any): obj is {
|
|
588
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidPublicKey;
|
|
589
|
+
readonly inner: Readonly<[string]>;
|
|
590
|
+
/**
|
|
591
|
+
* @private
|
|
592
|
+
* This field is private and should not be used, use `tag` instead.
|
|
593
|
+
*/
|
|
594
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
595
|
+
name: string;
|
|
596
|
+
message: string;
|
|
597
|
+
stack?: string;
|
|
598
|
+
cause?: unknown;
|
|
599
|
+
};
|
|
600
|
+
hasInner(obj: any): obj is {
|
|
601
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidPublicKey;
|
|
602
|
+
readonly inner: Readonly<[string]>;
|
|
603
|
+
/**
|
|
604
|
+
* @private
|
|
605
|
+
* This field is private and should not be used, use `tag` instead.
|
|
606
|
+
*/
|
|
607
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
608
|
+
name: string;
|
|
609
|
+
message: string;
|
|
610
|
+
stack?: string;
|
|
611
|
+
cause?: unknown;
|
|
612
|
+
};
|
|
613
|
+
getInner(obj: {
|
|
614
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidPublicKey;
|
|
615
|
+
readonly inner: Readonly<[string]>;
|
|
616
|
+
/**
|
|
617
|
+
* @private
|
|
618
|
+
* This field is private and should not be used, use `tag` instead.
|
|
619
|
+
*/
|
|
620
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
621
|
+
name: string;
|
|
622
|
+
message: string;
|
|
623
|
+
stack?: string;
|
|
624
|
+
cause?: unknown;
|
|
625
|
+
}): Readonly<[string]>;
|
|
626
|
+
isError(error: unknown): error is Error;
|
|
627
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
628
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
629
|
+
stackTraceLimit: number;
|
|
630
|
+
};
|
|
631
|
+
WrongTag: {
|
|
632
|
+
new (): {
|
|
633
|
+
readonly tag: CryptoErrorUniffi_Tags.WrongTag;
|
|
634
|
+
/**
|
|
635
|
+
* @private
|
|
636
|
+
* This field is private and should not be used, use `tag` instead.
|
|
637
|
+
*/
|
|
638
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
639
|
+
name: string;
|
|
640
|
+
message: string;
|
|
641
|
+
stack?: string;
|
|
642
|
+
cause?: unknown;
|
|
643
|
+
};
|
|
644
|
+
"new"(): {
|
|
645
|
+
readonly tag: CryptoErrorUniffi_Tags.WrongTag;
|
|
646
|
+
/**
|
|
647
|
+
* @private
|
|
648
|
+
* This field is private and should not be used, use `tag` instead.
|
|
649
|
+
*/
|
|
650
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
651
|
+
name: string;
|
|
652
|
+
message: string;
|
|
653
|
+
stack?: string;
|
|
654
|
+
cause?: unknown;
|
|
655
|
+
};
|
|
656
|
+
instanceOf(obj: any): obj is {
|
|
657
|
+
readonly tag: CryptoErrorUniffi_Tags.WrongTag;
|
|
658
|
+
/**
|
|
659
|
+
* @private
|
|
660
|
+
* This field is private and should not be used, use `tag` instead.
|
|
661
|
+
*/
|
|
662
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
663
|
+
name: string;
|
|
664
|
+
message: string;
|
|
665
|
+
stack?: string;
|
|
666
|
+
cause?: unknown;
|
|
667
|
+
};
|
|
668
|
+
hasInner(obj: any): obj is {
|
|
669
|
+
readonly tag: CryptoErrorUniffi_Tags.WrongTag;
|
|
670
|
+
/**
|
|
671
|
+
* @private
|
|
672
|
+
* This field is private and should not be used, use `tag` instead.
|
|
673
|
+
*/
|
|
674
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
675
|
+
name: string;
|
|
676
|
+
message: string;
|
|
677
|
+
stack?: string;
|
|
678
|
+
cause?: unknown;
|
|
679
|
+
};
|
|
680
|
+
isError(error: unknown): error is Error;
|
|
681
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
682
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
683
|
+
stackTraceLimit: number;
|
|
684
|
+
};
|
|
685
|
+
CipherError: {
|
|
686
|
+
new (): {
|
|
687
|
+
readonly tag: CryptoErrorUniffi_Tags.CipherError;
|
|
688
|
+
/**
|
|
689
|
+
* @private
|
|
690
|
+
* This field is private and should not be used, use `tag` instead.
|
|
691
|
+
*/
|
|
692
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
693
|
+
name: string;
|
|
694
|
+
message: string;
|
|
695
|
+
stack?: string;
|
|
696
|
+
cause?: unknown;
|
|
697
|
+
};
|
|
698
|
+
"new"(): {
|
|
699
|
+
readonly tag: CryptoErrorUniffi_Tags.CipherError;
|
|
700
|
+
/**
|
|
701
|
+
* @private
|
|
702
|
+
* This field is private and should not be used, use `tag` instead.
|
|
703
|
+
*/
|
|
704
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
705
|
+
name: string;
|
|
706
|
+
message: string;
|
|
707
|
+
stack?: string;
|
|
708
|
+
cause?: unknown;
|
|
709
|
+
};
|
|
710
|
+
instanceOf(obj: any): obj is {
|
|
711
|
+
readonly tag: CryptoErrorUniffi_Tags.CipherError;
|
|
712
|
+
/**
|
|
713
|
+
* @private
|
|
714
|
+
* This field is private and should not be used, use `tag` instead.
|
|
715
|
+
*/
|
|
716
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
717
|
+
name: string;
|
|
718
|
+
message: string;
|
|
719
|
+
stack?: string;
|
|
720
|
+
cause?: unknown;
|
|
721
|
+
};
|
|
722
|
+
hasInner(obj: any): obj is {
|
|
723
|
+
readonly tag: CryptoErrorUniffi_Tags.CipherError;
|
|
724
|
+
/**
|
|
725
|
+
* @private
|
|
726
|
+
* This field is private and should not be used, use `tag` instead.
|
|
727
|
+
*/
|
|
728
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
729
|
+
name: string;
|
|
730
|
+
message: string;
|
|
731
|
+
stack?: string;
|
|
732
|
+
cause?: unknown;
|
|
733
|
+
};
|
|
734
|
+
isError(error: unknown): error is Error;
|
|
735
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
736
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
737
|
+
stackTraceLimit: number;
|
|
738
|
+
};
|
|
739
|
+
InvalidPrefix: {
|
|
740
|
+
new (v0: string, v1: string): {
|
|
741
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidPrefix;
|
|
742
|
+
readonly inner: Readonly<[string, string]>;
|
|
743
|
+
/**
|
|
744
|
+
* @private
|
|
745
|
+
* This field is private and should not be used, use `tag` instead.
|
|
746
|
+
*/
|
|
747
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
748
|
+
name: string;
|
|
749
|
+
message: string;
|
|
750
|
+
stack?: string;
|
|
751
|
+
cause?: unknown;
|
|
752
|
+
};
|
|
753
|
+
"new"(v0: string, v1: string): {
|
|
754
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidPrefix;
|
|
755
|
+
readonly inner: Readonly<[string, string]>;
|
|
756
|
+
/**
|
|
757
|
+
* @private
|
|
758
|
+
* This field is private and should not be used, use `tag` instead.
|
|
759
|
+
*/
|
|
760
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
761
|
+
name: string;
|
|
762
|
+
message: string;
|
|
763
|
+
stack?: string;
|
|
764
|
+
cause?: unknown;
|
|
765
|
+
};
|
|
766
|
+
instanceOf(obj: any): obj is {
|
|
767
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidPrefix;
|
|
768
|
+
readonly inner: Readonly<[string, string]>;
|
|
769
|
+
/**
|
|
770
|
+
* @private
|
|
771
|
+
* This field is private and should not be used, use `tag` instead.
|
|
772
|
+
*/
|
|
773
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
774
|
+
name: string;
|
|
775
|
+
message: string;
|
|
776
|
+
stack?: string;
|
|
777
|
+
cause?: unknown;
|
|
778
|
+
};
|
|
779
|
+
hasInner(obj: any): obj is {
|
|
780
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidPrefix;
|
|
781
|
+
readonly inner: Readonly<[string, string]>;
|
|
782
|
+
/**
|
|
783
|
+
* @private
|
|
784
|
+
* This field is private and should not be used, use `tag` instead.
|
|
785
|
+
*/
|
|
786
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
787
|
+
name: string;
|
|
788
|
+
message: string;
|
|
789
|
+
stack?: string;
|
|
790
|
+
cause?: unknown;
|
|
791
|
+
};
|
|
792
|
+
getInner(obj: {
|
|
793
|
+
readonly tag: CryptoErrorUniffi_Tags.InvalidPrefix;
|
|
794
|
+
readonly inner: Readonly<[string, string]>;
|
|
795
|
+
/**
|
|
796
|
+
* @private
|
|
797
|
+
* This field is private and should not be used, use `tag` instead.
|
|
798
|
+
*/
|
|
799
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
800
|
+
name: string;
|
|
801
|
+
message: string;
|
|
802
|
+
stack?: string;
|
|
803
|
+
cause?: unknown;
|
|
804
|
+
}): Readonly<[string, string]>;
|
|
805
|
+
isError(error: unknown): error is Error;
|
|
806
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
807
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
808
|
+
stackTraceLimit: number;
|
|
809
|
+
};
|
|
810
|
+
Base58Error: {
|
|
811
|
+
new (v0: string): {
|
|
812
|
+
readonly tag: CryptoErrorUniffi_Tags.Base58Error;
|
|
813
|
+
readonly inner: Readonly<[string]>;
|
|
814
|
+
/**
|
|
815
|
+
* @private
|
|
816
|
+
* This field is private and should not be used, use `tag` instead.
|
|
817
|
+
*/
|
|
818
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
819
|
+
name: string;
|
|
820
|
+
message: string;
|
|
821
|
+
stack?: string;
|
|
822
|
+
cause?: unknown;
|
|
823
|
+
};
|
|
824
|
+
"new"(v0: string): {
|
|
825
|
+
readonly tag: CryptoErrorUniffi_Tags.Base58Error;
|
|
826
|
+
readonly inner: Readonly<[string]>;
|
|
827
|
+
/**
|
|
828
|
+
* @private
|
|
829
|
+
* This field is private and should not be used, use `tag` instead.
|
|
830
|
+
*/
|
|
831
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
832
|
+
name: string;
|
|
833
|
+
message: string;
|
|
834
|
+
stack?: string;
|
|
835
|
+
cause?: unknown;
|
|
836
|
+
};
|
|
837
|
+
instanceOf(obj: any): obj is {
|
|
838
|
+
readonly tag: CryptoErrorUniffi_Tags.Base58Error;
|
|
839
|
+
readonly inner: Readonly<[string]>;
|
|
840
|
+
/**
|
|
841
|
+
* @private
|
|
842
|
+
* This field is private and should not be used, use `tag` instead.
|
|
843
|
+
*/
|
|
844
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
845
|
+
name: string;
|
|
846
|
+
message: string;
|
|
847
|
+
stack?: string;
|
|
848
|
+
cause?: unknown;
|
|
849
|
+
};
|
|
850
|
+
hasInner(obj: any): obj is {
|
|
851
|
+
readonly tag: CryptoErrorUniffi_Tags.Base58Error;
|
|
852
|
+
readonly inner: Readonly<[string]>;
|
|
853
|
+
/**
|
|
854
|
+
* @private
|
|
855
|
+
* This field is private and should not be used, use `tag` instead.
|
|
856
|
+
*/
|
|
857
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
858
|
+
name: string;
|
|
859
|
+
message: string;
|
|
860
|
+
stack?: string;
|
|
861
|
+
cause?: unknown;
|
|
862
|
+
};
|
|
863
|
+
getInner(obj: {
|
|
864
|
+
readonly tag: CryptoErrorUniffi_Tags.Base58Error;
|
|
865
|
+
readonly inner: Readonly<[string]>;
|
|
866
|
+
/**
|
|
867
|
+
* @private
|
|
868
|
+
* This field is private and should not be used, use `tag` instead.
|
|
869
|
+
*/
|
|
870
|
+
readonly [uniffiTypeNameSymbol]: "CryptoErrorUniffi";
|
|
871
|
+
name: string;
|
|
872
|
+
message: string;
|
|
873
|
+
stack?: string;
|
|
874
|
+
cause?: unknown;
|
|
875
|
+
}): Readonly<[string]>;
|
|
876
|
+
isError(error: unknown): error is Error;
|
|
877
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
878
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
879
|
+
stackTraceLimit: number;
|
|
880
|
+
};
|
|
881
|
+
}>;
|
|
882
|
+
export type CryptoErrorUniffi = InstanceType<(typeof CryptoErrorUniffi)[keyof Omit<typeof CryptoErrorUniffi, 'instanceOf'>]>;
|
|
883
|
+
export declare enum SessionLogError_Tags {
|
|
884
|
+
CoJson = "CoJson",
|
|
885
|
+
Serde = "Serde",
|
|
886
|
+
Generic = "Generic",
|
|
887
|
+
LockError = "LockError"
|
|
888
|
+
}
|
|
889
|
+
export declare const SessionLogError: Readonly<{
|
|
890
|
+
instanceOf: (obj: any) => obj is SessionLogError;
|
|
891
|
+
CoJson: {
|
|
892
|
+
new (v0: string): {
|
|
893
|
+
readonly tag: SessionLogError_Tags.CoJson;
|
|
894
|
+
readonly inner: Readonly<[string]>;
|
|
895
|
+
/**
|
|
896
|
+
* @private
|
|
897
|
+
* This field is private and should not be used, use `tag` instead.
|
|
898
|
+
*/
|
|
899
|
+
readonly [uniffiTypeNameSymbol]: "SessionLogError";
|
|
900
|
+
name: string;
|
|
901
|
+
message: string;
|
|
902
|
+
stack?: string;
|
|
903
|
+
cause?: unknown;
|
|
904
|
+
};
|
|
905
|
+
"new"(v0: string): {
|
|
906
|
+
readonly tag: SessionLogError_Tags.CoJson;
|
|
907
|
+
readonly inner: Readonly<[string]>;
|
|
908
|
+
/**
|
|
909
|
+
* @private
|
|
910
|
+
* This field is private and should not be used, use `tag` instead.
|
|
911
|
+
*/
|
|
912
|
+
readonly [uniffiTypeNameSymbol]: "SessionLogError";
|
|
913
|
+
name: string;
|
|
914
|
+
message: string;
|
|
915
|
+
stack?: string;
|
|
916
|
+
cause?: unknown;
|
|
917
|
+
};
|
|
918
|
+
instanceOf(obj: any): obj is {
|
|
919
|
+
readonly tag: SessionLogError_Tags.CoJson;
|
|
920
|
+
readonly inner: Readonly<[string]>;
|
|
921
|
+
/**
|
|
922
|
+
* @private
|
|
923
|
+
* This field is private and should not be used, use `tag` instead.
|
|
924
|
+
*/
|
|
925
|
+
readonly [uniffiTypeNameSymbol]: "SessionLogError";
|
|
926
|
+
name: string;
|
|
927
|
+
message: string;
|
|
928
|
+
stack?: string;
|
|
929
|
+
cause?: unknown;
|
|
930
|
+
};
|
|
931
|
+
hasInner(obj: any): obj is {
|
|
932
|
+
readonly tag: SessionLogError_Tags.CoJson;
|
|
933
|
+
readonly inner: Readonly<[string]>;
|
|
934
|
+
/**
|
|
935
|
+
* @private
|
|
936
|
+
* This field is private and should not be used, use `tag` instead.
|
|
937
|
+
*/
|
|
938
|
+
readonly [uniffiTypeNameSymbol]: "SessionLogError";
|
|
939
|
+
name: string;
|
|
940
|
+
message: string;
|
|
941
|
+
stack?: string;
|
|
942
|
+
cause?: unknown;
|
|
943
|
+
};
|
|
944
|
+
getInner(obj: {
|
|
945
|
+
readonly tag: SessionLogError_Tags.CoJson;
|
|
946
|
+
readonly inner: Readonly<[string]>;
|
|
947
|
+
/**
|
|
948
|
+
* @private
|
|
949
|
+
* This field is private and should not be used, use `tag` instead.
|
|
950
|
+
*/
|
|
951
|
+
readonly [uniffiTypeNameSymbol]: "SessionLogError";
|
|
952
|
+
name: string;
|
|
953
|
+
message: string;
|
|
954
|
+
stack?: string;
|
|
955
|
+
cause?: unknown;
|
|
956
|
+
}): Readonly<[string]>;
|
|
957
|
+
isError(error: unknown): error is Error;
|
|
958
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
959
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
960
|
+
stackTraceLimit: number;
|
|
961
|
+
};
|
|
962
|
+
Serde: {
|
|
963
|
+
new (v0: string): {
|
|
964
|
+
readonly tag: SessionLogError_Tags.Serde;
|
|
965
|
+
readonly inner: Readonly<[string]>;
|
|
966
|
+
/**
|
|
967
|
+
* @private
|
|
968
|
+
* This field is private and should not be used, use `tag` instead.
|
|
969
|
+
*/
|
|
970
|
+
readonly [uniffiTypeNameSymbol]: "SessionLogError";
|
|
971
|
+
name: string;
|
|
972
|
+
message: string;
|
|
973
|
+
stack?: string;
|
|
974
|
+
cause?: unknown;
|
|
975
|
+
};
|
|
976
|
+
"new"(v0: string): {
|
|
977
|
+
readonly tag: SessionLogError_Tags.Serde;
|
|
978
|
+
readonly inner: Readonly<[string]>;
|
|
979
|
+
/**
|
|
980
|
+
* @private
|
|
981
|
+
* This field is private and should not be used, use `tag` instead.
|
|
982
|
+
*/
|
|
983
|
+
readonly [uniffiTypeNameSymbol]: "SessionLogError";
|
|
984
|
+
name: string;
|
|
985
|
+
message: string;
|
|
986
|
+
stack?: string;
|
|
987
|
+
cause?: unknown;
|
|
988
|
+
};
|
|
989
|
+
instanceOf(obj: any): obj is {
|
|
990
|
+
readonly tag: SessionLogError_Tags.Serde;
|
|
991
|
+
readonly inner: Readonly<[string]>;
|
|
992
|
+
/**
|
|
993
|
+
* @private
|
|
994
|
+
* This field is private and should not be used, use `tag` instead.
|
|
995
|
+
*/
|
|
996
|
+
readonly [uniffiTypeNameSymbol]: "SessionLogError";
|
|
997
|
+
name: string;
|
|
998
|
+
message: string;
|
|
999
|
+
stack?: string;
|
|
1000
|
+
cause?: unknown;
|
|
1001
|
+
};
|
|
1002
|
+
hasInner(obj: any): obj is {
|
|
1003
|
+
readonly tag: SessionLogError_Tags.Serde;
|
|
1004
|
+
readonly inner: Readonly<[string]>;
|
|
1005
|
+
/**
|
|
1006
|
+
* @private
|
|
1007
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1008
|
+
*/
|
|
1009
|
+
readonly [uniffiTypeNameSymbol]: "SessionLogError";
|
|
1010
|
+
name: string;
|
|
1011
|
+
message: string;
|
|
1012
|
+
stack?: string;
|
|
1013
|
+
cause?: unknown;
|
|
1014
|
+
};
|
|
1015
|
+
getInner(obj: {
|
|
1016
|
+
readonly tag: SessionLogError_Tags.Serde;
|
|
1017
|
+
readonly inner: Readonly<[string]>;
|
|
1018
|
+
/**
|
|
1019
|
+
* @private
|
|
1020
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1021
|
+
*/
|
|
1022
|
+
readonly [uniffiTypeNameSymbol]: "SessionLogError";
|
|
1023
|
+
name: string;
|
|
1024
|
+
message: string;
|
|
1025
|
+
stack?: string;
|
|
1026
|
+
cause?: unknown;
|
|
1027
|
+
}): Readonly<[string]>;
|
|
1028
|
+
isError(error: unknown): error is Error;
|
|
1029
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1030
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1031
|
+
stackTraceLimit: number;
|
|
1032
|
+
};
|
|
1033
|
+
Generic: {
|
|
1034
|
+
new (v0: string): {
|
|
1035
|
+
readonly tag: SessionLogError_Tags.Generic;
|
|
1036
|
+
readonly inner: Readonly<[string]>;
|
|
1037
|
+
/**
|
|
1038
|
+
* @private
|
|
1039
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1040
|
+
*/
|
|
1041
|
+
readonly [uniffiTypeNameSymbol]: "SessionLogError";
|
|
1042
|
+
name: string;
|
|
1043
|
+
message: string;
|
|
1044
|
+
stack?: string;
|
|
1045
|
+
cause?: unknown;
|
|
1046
|
+
};
|
|
1047
|
+
"new"(v0: string): {
|
|
1048
|
+
readonly tag: SessionLogError_Tags.Generic;
|
|
1049
|
+
readonly inner: Readonly<[string]>;
|
|
1050
|
+
/**
|
|
1051
|
+
* @private
|
|
1052
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1053
|
+
*/
|
|
1054
|
+
readonly [uniffiTypeNameSymbol]: "SessionLogError";
|
|
1055
|
+
name: string;
|
|
1056
|
+
message: string;
|
|
1057
|
+
stack?: string;
|
|
1058
|
+
cause?: unknown;
|
|
1059
|
+
};
|
|
1060
|
+
instanceOf(obj: any): obj is {
|
|
1061
|
+
readonly tag: SessionLogError_Tags.Generic;
|
|
1062
|
+
readonly inner: Readonly<[string]>;
|
|
1063
|
+
/**
|
|
1064
|
+
* @private
|
|
1065
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1066
|
+
*/
|
|
1067
|
+
readonly [uniffiTypeNameSymbol]: "SessionLogError";
|
|
1068
|
+
name: string;
|
|
1069
|
+
message: string;
|
|
1070
|
+
stack?: string;
|
|
1071
|
+
cause?: unknown;
|
|
1072
|
+
};
|
|
1073
|
+
hasInner(obj: any): obj is {
|
|
1074
|
+
readonly tag: SessionLogError_Tags.Generic;
|
|
1075
|
+
readonly inner: Readonly<[string]>;
|
|
1076
|
+
/**
|
|
1077
|
+
* @private
|
|
1078
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1079
|
+
*/
|
|
1080
|
+
readonly [uniffiTypeNameSymbol]: "SessionLogError";
|
|
1081
|
+
name: string;
|
|
1082
|
+
message: string;
|
|
1083
|
+
stack?: string;
|
|
1084
|
+
cause?: unknown;
|
|
1085
|
+
};
|
|
1086
|
+
getInner(obj: {
|
|
1087
|
+
readonly tag: SessionLogError_Tags.Generic;
|
|
1088
|
+
readonly inner: Readonly<[string]>;
|
|
1089
|
+
/**
|
|
1090
|
+
* @private
|
|
1091
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1092
|
+
*/
|
|
1093
|
+
readonly [uniffiTypeNameSymbol]: "SessionLogError";
|
|
1094
|
+
name: string;
|
|
1095
|
+
message: string;
|
|
1096
|
+
stack?: string;
|
|
1097
|
+
cause?: unknown;
|
|
1098
|
+
}): Readonly<[string]>;
|
|
1099
|
+
isError(error: unknown): error is Error;
|
|
1100
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1101
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1102
|
+
stackTraceLimit: number;
|
|
1103
|
+
};
|
|
1104
|
+
LockError: {
|
|
1105
|
+
new (): {
|
|
1106
|
+
readonly tag: SessionLogError_Tags.LockError;
|
|
1107
|
+
/**
|
|
1108
|
+
* @private
|
|
1109
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1110
|
+
*/
|
|
1111
|
+
readonly [uniffiTypeNameSymbol]: "SessionLogError";
|
|
1112
|
+
name: string;
|
|
1113
|
+
message: string;
|
|
1114
|
+
stack?: string;
|
|
1115
|
+
cause?: unknown;
|
|
1116
|
+
};
|
|
1117
|
+
"new"(): {
|
|
1118
|
+
readonly tag: SessionLogError_Tags.LockError;
|
|
1119
|
+
/**
|
|
1120
|
+
* @private
|
|
1121
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1122
|
+
*/
|
|
1123
|
+
readonly [uniffiTypeNameSymbol]: "SessionLogError";
|
|
1124
|
+
name: string;
|
|
1125
|
+
message: string;
|
|
1126
|
+
stack?: string;
|
|
1127
|
+
cause?: unknown;
|
|
1128
|
+
};
|
|
1129
|
+
instanceOf(obj: any): obj is {
|
|
1130
|
+
readonly tag: SessionLogError_Tags.LockError;
|
|
1131
|
+
/**
|
|
1132
|
+
* @private
|
|
1133
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1134
|
+
*/
|
|
1135
|
+
readonly [uniffiTypeNameSymbol]: "SessionLogError";
|
|
1136
|
+
name: string;
|
|
1137
|
+
message: string;
|
|
1138
|
+
stack?: string;
|
|
1139
|
+
cause?: unknown;
|
|
1140
|
+
};
|
|
1141
|
+
hasInner(obj: any): obj is {
|
|
1142
|
+
readonly tag: SessionLogError_Tags.LockError;
|
|
1143
|
+
/**
|
|
1144
|
+
* @private
|
|
1145
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1146
|
+
*/
|
|
1147
|
+
readonly [uniffiTypeNameSymbol]: "SessionLogError";
|
|
1148
|
+
name: string;
|
|
1149
|
+
message: string;
|
|
1150
|
+
stack?: string;
|
|
1151
|
+
cause?: unknown;
|
|
1152
|
+
};
|
|
1153
|
+
isError(error: unknown): error is Error;
|
|
1154
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1155
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1156
|
+
stackTraceLimit: number;
|
|
1157
|
+
};
|
|
1158
|
+
}>;
|
|
1159
|
+
export type SessionLogError = InstanceType<(typeof SessionLogError)[keyof Omit<typeof SessionLogError, 'instanceOf'>]>;
|
|
1160
|
+
export interface Blake3HasherInterface {
|
|
1161
|
+
cloneHasher(): Blake3HasherInterface;
|
|
1162
|
+
finalize(): ArrayBuffer;
|
|
1163
|
+
update(data: ArrayBuffer): void;
|
|
1164
|
+
}
|
|
1165
|
+
export declare class Blake3Hasher extends UniffiAbstractObject implements Blake3HasherInterface {
|
|
1166
|
+
readonly [uniffiTypeNameSymbol] = "Blake3Hasher";
|
|
1167
|
+
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
1168
|
+
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
1169
|
+
constructor();
|
|
1170
|
+
cloneHasher(): Blake3HasherInterface;
|
|
1171
|
+
finalize(): ArrayBuffer;
|
|
1172
|
+
update(data: ArrayBuffer): void;
|
|
1173
|
+
/**
|
|
1174
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
1175
|
+
*/
|
|
1176
|
+
uniffiDestroy(): void;
|
|
1177
|
+
static instanceOf(obj: any): obj is Blake3Hasher;
|
|
1178
|
+
}
|
|
1179
|
+
export interface SessionLogInterface {
|
|
1180
|
+
addNewPrivateTransaction(changesJson: string, signerSecret: string, encryptionKey: string, keyId: string, madeAt: number, meta: string | undefined): string;
|
|
1181
|
+
addNewTrustingTransaction(changesJson: string, signerSecret: string, madeAt: number, meta: string | undefined): string;
|
|
1182
|
+
cloneSessionLog(): SessionLogInterface;
|
|
1183
|
+
decryptNextTransactionChangesJson(txIndex: number, encryptionKey: string): string;
|
|
1184
|
+
decryptNextTransactionMetaJson(txIndex: number, encryptionKey: string): string | undefined;
|
|
1185
|
+
tryAdd(transactionsJson: Array<string>, newSignatureStr: string, skipVerify: boolean): void;
|
|
1186
|
+
}
|
|
1187
|
+
export declare class SessionLog extends UniffiAbstractObject implements SessionLogInterface {
|
|
1188
|
+
readonly [uniffiTypeNameSymbol] = "SessionLog";
|
|
1189
|
+
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
1190
|
+
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
1191
|
+
constructor(coId: string, sessionId: string, signerId: string | undefined);
|
|
1192
|
+
addNewPrivateTransaction(changesJson: string, signerSecret: string, encryptionKey: string, keyId: string, madeAt: number, meta: string | undefined): string;
|
|
1193
|
+
addNewTrustingTransaction(changesJson: string, signerSecret: string, madeAt: number, meta: string | undefined): string;
|
|
1194
|
+
cloneSessionLog(): SessionLogInterface;
|
|
1195
|
+
decryptNextTransactionChangesJson(txIndex: number, encryptionKey: string): string;
|
|
1196
|
+
decryptNextTransactionMetaJson(txIndex: number, encryptionKey: string): string | undefined;
|
|
1197
|
+
tryAdd(transactionsJson: Array<string>, newSignatureStr: string, skipVerify: boolean): void;
|
|
1198
|
+
/**
|
|
1199
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
1200
|
+
*/
|
|
1201
|
+
uniffiDestroy(): void;
|
|
1202
|
+
static instanceOf(obj: any): obj is SessionLog;
|
|
1203
|
+
}
|
|
1204
|
+
/**
|
|
1205
|
+
* This should be called before anything else.
|
|
1206
|
+
*
|
|
1207
|
+
* It is likely that this is being done for you by the library's `index.ts`.
|
|
1208
|
+
*
|
|
1209
|
+
* It checks versions of uniffi between when the Rust scaffolding was generated
|
|
1210
|
+
* and when the bindings were generated.
|
|
1211
|
+
*
|
|
1212
|
+
* It also initializes the machinery to enable Rust to talk back to Javascript.
|
|
1213
|
+
*/
|
|
1214
|
+
declare function uniffiEnsureInitialized(): void;
|
|
1215
|
+
declare const _default: Readonly<{
|
|
1216
|
+
initialize: typeof uniffiEnsureInitialized;
|
|
1217
|
+
converters: {
|
|
1218
|
+
FfiConverterTypeBlake3Error: {
|
|
1219
|
+
read(from: RustBuffer): {
|
|
1220
|
+
readonly tag: Blake3Error_Tags.LockError;
|
|
1221
|
+
/**
|
|
1222
|
+
* @private
|
|
1223
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1224
|
+
*/
|
|
1225
|
+
readonly [uniffiTypeNameSymbol]: "Blake3Error";
|
|
1226
|
+
name: string;
|
|
1227
|
+
message: string;
|
|
1228
|
+
stack?: string;
|
|
1229
|
+
cause?: unknown;
|
|
1230
|
+
};
|
|
1231
|
+
write(value: {
|
|
1232
|
+
readonly tag: Blake3Error_Tags.LockError;
|
|
1233
|
+
/**
|
|
1234
|
+
* @private
|
|
1235
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1236
|
+
*/
|
|
1237
|
+
readonly [uniffiTypeNameSymbol]: "Blake3Error";
|
|
1238
|
+
name: string;
|
|
1239
|
+
message: string;
|
|
1240
|
+
stack?: string;
|
|
1241
|
+
cause?: unknown;
|
|
1242
|
+
}, into: RustBuffer): void;
|
|
1243
|
+
allocationSize(value: {
|
|
1244
|
+
readonly tag: Blake3Error_Tags.LockError;
|
|
1245
|
+
/**
|
|
1246
|
+
* @private
|
|
1247
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1248
|
+
*/
|
|
1249
|
+
readonly [uniffiTypeNameSymbol]: "Blake3Error";
|
|
1250
|
+
name: string;
|
|
1251
|
+
message: string;
|
|
1252
|
+
stack?: string;
|
|
1253
|
+
cause?: unknown;
|
|
1254
|
+
}): number;
|
|
1255
|
+
lift(value: UniffiByteArray): {
|
|
1256
|
+
readonly tag: Blake3Error_Tags.LockError;
|
|
1257
|
+
/**
|
|
1258
|
+
* @private
|
|
1259
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1260
|
+
*/
|
|
1261
|
+
readonly [uniffiTypeNameSymbol]: "Blake3Error";
|
|
1262
|
+
name: string;
|
|
1263
|
+
message: string;
|
|
1264
|
+
stack?: string;
|
|
1265
|
+
cause?: unknown;
|
|
1266
|
+
};
|
|
1267
|
+
lower(value: {
|
|
1268
|
+
readonly tag: Blake3Error_Tags.LockError;
|
|
1269
|
+
/**
|
|
1270
|
+
* @private
|
|
1271
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1272
|
+
*/
|
|
1273
|
+
readonly [uniffiTypeNameSymbol]: "Blake3Error";
|
|
1274
|
+
name: string;
|
|
1275
|
+
message: string;
|
|
1276
|
+
stack?: string;
|
|
1277
|
+
cause?: unknown;
|
|
1278
|
+
}): UniffiByteArray;
|
|
1279
|
+
};
|
|
1280
|
+
FfiConverterTypeBlake3Hasher: FfiConverterObject<Blake3HasherInterface>;
|
|
1281
|
+
FfiConverterTypeCryptoErrorUniffi: {
|
|
1282
|
+
read(from: RustBuffer): CryptoErrorUniffi;
|
|
1283
|
+
write(value: CryptoErrorUniffi, into: RustBuffer): void;
|
|
1284
|
+
allocationSize(value: CryptoErrorUniffi): number;
|
|
1285
|
+
lift(value: UniffiByteArray): CryptoErrorUniffi;
|
|
1286
|
+
lower(value: CryptoErrorUniffi): UniffiByteArray;
|
|
1287
|
+
};
|
|
1288
|
+
FfiConverterTypeSessionLog: FfiConverterObject<SessionLogInterface>;
|
|
1289
|
+
FfiConverterTypeSessionLogError: {
|
|
1290
|
+
read(from: RustBuffer): SessionLogError;
|
|
1291
|
+
write(value: SessionLogError, into: RustBuffer): void;
|
|
1292
|
+
allocationSize(value: SessionLogError): number;
|
|
1293
|
+
lift(value: UniffiByteArray): SessionLogError;
|
|
1294
|
+
lower(value: SessionLogError): UniffiByteArray;
|
|
1295
|
+
};
|
|
1296
|
+
};
|
|
1297
|
+
}>;
|
|
1298
|
+
export default _default;
|
|
1299
|
+
//# sourceMappingURL=cojson_core_rn.d.ts.map
|