@runflame/wallet-wasm 0.0.1-rc.3 → 0.0.1-rc.31
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/flamewallet_wasm.d.ts +69 -17
- package/flamewallet_wasm.js +96 -1
- package/flamewallet_wasm_bg.wasm +0 -0
- package/flamewallet_wasm_bg.wasm.d.ts +27 -15
- package/package.json +1 -1
- package/sbom.cdx.json +4 -3
package/flamewallet_wasm.d.ts
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
/** Which network addresses are encoded for: `f1…` or `tf1…`. */
|
|
4
4
|
export type Network = "mainnet" | "testnet";
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* What a `Wallet` was built from, and so what it can do: `spend` (seed or
|
|
8
|
+
* mnemonic) finds, opens and spends; `view` (view key) finds and opens;
|
|
9
|
+
* `receive` (receiving key) only finds.
|
|
10
|
+
*/
|
|
11
|
+
export type WalletKind = "spend" | "view" | "receive";
|
|
12
|
+
|
|
6
13
|
/** `m/35263'/network'/0'/branch/index`; branch 0 is receiving, 1 is change. */
|
|
7
14
|
export interface KeyPath {
|
|
8
15
|
branch: number;
|
|
@@ -55,7 +62,7 @@ export interface TransferOutput {
|
|
|
55
62
|
qty: bigint;
|
|
56
63
|
/** Absent for flames. */
|
|
57
64
|
flavor?: Uint8Array;
|
|
58
|
-
/** Sealed into the note for the recipient alone; at most
|
|
65
|
+
/** Sealed into the note for the recipient alone; at most 4006 bytes. */
|
|
59
66
|
memo?: Uint8Array;
|
|
60
67
|
}
|
|
61
68
|
|
|
@@ -107,6 +114,8 @@ export interface FlameError extends Error {
|
|
|
107
114
|
kind:
|
|
108
115
|
| "invalidMnemonic"
|
|
109
116
|
| "invalidSeed"
|
|
117
|
+
| "invalidKey"
|
|
118
|
+
| "notPermitted"
|
|
110
119
|
| "invalidAddress"
|
|
111
120
|
| "invalidKeyPath"
|
|
112
121
|
| "invalidBytes"
|
|
@@ -120,6 +129,10 @@ export interface FlameError extends Error {
|
|
|
120
129
|
input?: number;
|
|
121
130
|
/** For `note`: how it failed. */
|
|
122
131
|
failure?: NoteFailure;
|
|
132
|
+
/** For `notPermitted`: the wallet that refused. */
|
|
133
|
+
wallet?: WalletKind;
|
|
134
|
+
/** For `notPermitted`: the least kind of wallet that could. */
|
|
135
|
+
needs?: WalletKind;
|
|
123
136
|
}
|
|
124
137
|
|
|
125
138
|
|
|
@@ -127,7 +140,10 @@ export interface FlameError extends Error {
|
|
|
127
140
|
/**
|
|
128
141
|
* One account, `m/35263'/network'/0'`. Its keys live in this module's
|
|
129
142
|
* memory until `free()` — or `using` — drops the handle, which zeroizes
|
|
130
|
-
* them
|
|
143
|
+
* them. Two calls hand key material to JavaScript, where nothing can wipe
|
|
144
|
+
* it, so keep what they return as secret as the wallet: `viewKey()` reads
|
|
145
|
+
* every amount and memo, and `receivingKey()` links every address.
|
|
146
|
+
* Neither can spend.
|
|
131
147
|
*/
|
|
132
148
|
export class Wallet {
|
|
133
149
|
private constructor();
|
|
@@ -146,11 +162,29 @@ export class Wallet {
|
|
|
146
162
|
* seeing the seed.
|
|
147
163
|
*/
|
|
148
164
|
static fromMnemonic(phrase: string, passphrase: string, network: Network, nextIndex: number): Wallet;
|
|
165
|
+
/**
|
|
166
|
+
* A receive wallet from its bech32f receiving key, as `receivingKey`
|
|
167
|
+
* gives it. It issues addresses and finds payments; `viewKey`,
|
|
168
|
+
* `openNote` and `buildTransfer` throw `notPermitted`. Only the key
|
|
169
|
+
* `receivingKey` exports will do, as with `fromViewKey`.
|
|
170
|
+
*/
|
|
171
|
+
static fromReceivingKey(receivingKey: string, network: Network, nextIndex: number): Wallet;
|
|
149
172
|
/**
|
|
150
173
|
* The account below a 64-byte seed, with `nextIndex` receiving
|
|
151
174
|
* addresses already issued; a new wallet passes 0.
|
|
152
175
|
*/
|
|
153
176
|
static fromSeed(seed: Uint8Array, network: Network, nextIndex: number): Wallet;
|
|
177
|
+
/**
|
|
178
|
+
* A view wallet from its bech32f view key, as `viewKey` gives it.
|
|
179
|
+
* Everything works except `buildTransfer`, which throws
|
|
180
|
+
* `notPermitted`. Only the key `viewKey` exports will do: a key from
|
|
181
|
+
* another node is accepted and silently owns nothing.
|
|
182
|
+
*/
|
|
183
|
+
static fromViewKey(viewKey: string, network: Network, nextIndex: number): Wallet;
|
|
184
|
+
/**
|
|
185
|
+
* What this wallet was built from: `spend`, `view` or `receive`.
|
|
186
|
+
*/
|
|
187
|
+
kind(): WalletKind;
|
|
154
188
|
network(): Network;
|
|
155
189
|
/**
|
|
156
190
|
* Issues the next receiving address and advances the counter.
|
|
@@ -173,6 +207,12 @@ export class Wallet {
|
|
|
173
207
|
* The bech32f receiving key an indexer is given.
|
|
174
208
|
*/
|
|
175
209
|
receivingKey(): string;
|
|
210
|
+
/**
|
|
211
|
+
* The bech32f view key a view wallet is built from: it reads every
|
|
212
|
+
* amount and memo but cannot spend, so store it as a secret. A
|
|
213
|
+
* receive wallet throws `notPermitted`.
|
|
214
|
+
*/
|
|
215
|
+
viewKey(): string;
|
|
176
216
|
}
|
|
177
217
|
|
|
178
218
|
/**
|
|
@@ -219,13 +259,17 @@ export interface InitOutput {
|
|
|
219
259
|
readonly wallet_address: (a: number, b: number, c: number) => void;
|
|
220
260
|
readonly wallet_buildTransfer: (a: number, b: number, c: number) => void;
|
|
221
261
|
readonly wallet_fromMnemonic: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
262
|
+
readonly wallet_fromReceivingKey: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
222
263
|
readonly wallet_fromSeed: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
264
|
+
readonly wallet_fromViewKey: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
265
|
+
readonly wallet_kind: (a: number) => number;
|
|
223
266
|
readonly wallet_network: (a: number, b: number) => void;
|
|
224
267
|
readonly wallet_nextAddress: (a: number, b: number) => void;
|
|
225
268
|
readonly wallet_nextIndex: (a: number) => number;
|
|
226
269
|
readonly wallet_openNote: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
227
270
|
readonly wallet_owns: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
228
271
|
readonly wallet_receivingKey: (a: number, b: number) => void;
|
|
272
|
+
readonly wallet_viewKey: (a: number, b: number) => void;
|
|
229
273
|
readonly ffi_flamewallet_ffi_uniffi_contract_version: () => number;
|
|
230
274
|
readonly ffi_flamewallet_ffi_rustbuffer_alloc: (a: number, b: bigint, c: number) => void;
|
|
231
275
|
readonly ffi_flamewallet_ffi_rustbuffer_from_bytes: (a: number, b: number, c: number) => void;
|
|
@@ -273,6 +317,12 @@ export interface InitOutput {
|
|
|
273
317
|
readonly uniffi_flamewallet_ffi_checksum_constructor_wallet_new: () => number;
|
|
274
318
|
readonly uniffi_flamewallet_ffi_fn_constructor_wallet_from_mnemonic: (a: number, b: number, c: number, d: number, e: number) => bigint;
|
|
275
319
|
readonly uniffi_flamewallet_ffi_checksum_constructor_wallet_from_mnemonic: () => number;
|
|
320
|
+
readonly uniffi_flamewallet_ffi_fn_constructor_wallet_from_view_key: (a: number, b: number, c: number, d: number) => bigint;
|
|
321
|
+
readonly uniffi_flamewallet_ffi_checksum_constructor_wallet_from_view_key: () => number;
|
|
322
|
+
readonly uniffi_flamewallet_ffi_fn_constructor_wallet_from_receiving_key: (a: number, b: number, c: number, d: number) => bigint;
|
|
323
|
+
readonly uniffi_flamewallet_ffi_checksum_constructor_wallet_from_receiving_key: () => number;
|
|
324
|
+
readonly uniffi_flamewallet_ffi_fn_method_wallet_kind: (a: number, b: bigint, c: number) => void;
|
|
325
|
+
readonly uniffi_flamewallet_ffi_checksum_method_wallet_kind: () => number;
|
|
276
326
|
readonly uniffi_flamewallet_ffi_fn_method_wallet_network: (a: number, b: bigint, c: number) => void;
|
|
277
327
|
readonly uniffi_flamewallet_ffi_checksum_method_wallet_network: () => number;
|
|
278
328
|
readonly uniffi_flamewallet_ffi_fn_method_wallet_address: (a: number, b: bigint, c: number, d: number) => void;
|
|
@@ -285,34 +335,36 @@ export interface InitOutput {
|
|
|
285
335
|
readonly uniffi_flamewallet_ffi_checksum_method_wallet_owns: () => number;
|
|
286
336
|
readonly uniffi_flamewallet_ffi_fn_method_wallet_receiving_key: (a: number, b: bigint, c: number) => void;
|
|
287
337
|
readonly uniffi_flamewallet_ffi_checksum_method_wallet_receiving_key: () => number;
|
|
338
|
+
readonly uniffi_flamewallet_ffi_fn_method_wallet_view_key: (a: number, b: bigint, c: number) => void;
|
|
339
|
+
readonly uniffi_flamewallet_ffi_checksum_method_wallet_view_key: () => number;
|
|
288
340
|
readonly uniffi_flamewallet_ffi_fn_method_wallet_open_note: (a: number, b: bigint, c: number, d: number, e: number, f: number) => void;
|
|
289
341
|
readonly uniffi_flamewallet_ffi_checksum_method_wallet_open_note: () => number;
|
|
290
342
|
readonly uniffi_flamewallet_ffi_fn_method_wallet_build_transfer: (a: number, b: bigint, c: number, d: number) => void;
|
|
291
343
|
readonly uniffi_flamewallet_ffi_checksum_method_wallet_build_transfer: () => number;
|
|
344
|
+
readonly ffi_flamewallet_ffi_rust_future_free_f64: (a: bigint) => void;
|
|
345
|
+
readonly ffi_flamewallet_ffi_rust_future_cancel_f64: (a: bigint) => void;
|
|
346
|
+
readonly ffi_flamewallet_ffi_rust_future_free_u32: (a: bigint) => void;
|
|
347
|
+
readonly ffi_flamewallet_ffi_rust_future_cancel_u32: (a: bigint) => void;
|
|
292
348
|
readonly ffi_flamewallet_ffi_rust_future_free_rust_buffer: (a: bigint) => void;
|
|
293
349
|
readonly ffi_flamewallet_ffi_rust_future_cancel_rust_buffer: (a: bigint) => void;
|
|
350
|
+
readonly ffi_flamewallet_ffi_rust_future_free_u16: (a: bigint) => void;
|
|
351
|
+
readonly ffi_flamewallet_ffi_rust_future_cancel_u16: (a: bigint) => void;
|
|
294
352
|
readonly ffi_flamewallet_ffi_rust_future_free_i64: (a: bigint) => void;
|
|
295
353
|
readonly ffi_flamewallet_ffi_rust_future_cancel_i64: (a: bigint) => void;
|
|
296
|
-
readonly ffi_flamewallet_ffi_rust_future_free_u64: (a: bigint) => void;
|
|
297
|
-
readonly ffi_flamewallet_ffi_rust_future_complete_u64: (a: bigint, b: number) => bigint;
|
|
298
|
-
readonly ffi_flamewallet_ffi_rust_future_cancel_u64: (a: bigint) => void;
|
|
299
|
-
readonly ffi_flamewallet_ffi_rust_future_free_u8: (a: bigint) => void;
|
|
300
|
-
readonly ffi_flamewallet_ffi_rust_future_cancel_u8: (a: bigint) => void;
|
|
301
|
-
readonly ffi_flamewallet_ffi_rust_future_free_void: (a: bigint) => void;
|
|
302
|
-
readonly ffi_flamewallet_ffi_rust_future_cancel_void: (a: bigint) => void;
|
|
303
354
|
readonly ffi_flamewallet_ffi_rust_future_free_i16: (a: bigint) => void;
|
|
304
355
|
readonly ffi_flamewallet_ffi_rust_future_cancel_i16: (a: bigint) => void;
|
|
305
|
-
readonly ffi_flamewallet_ffi_rust_future_free_u32: (a: bigint) => void;
|
|
306
|
-
readonly ffi_flamewallet_ffi_rust_future_cancel_u32: (a: bigint) => void;
|
|
307
|
-
readonly ffi_flamewallet_ffi_rust_future_free_f64: (a: bigint) => void;
|
|
308
|
-
readonly ffi_flamewallet_ffi_rust_future_cancel_f64: (a: bigint) => void;
|
|
309
|
-
readonly ffi_flamewallet_ffi_rust_future_free_i8: (a: bigint) => void;
|
|
310
|
-
readonly ffi_flamewallet_ffi_rust_future_cancel_i8: (a: bigint) => void;
|
|
311
356
|
readonly ffi_flamewallet_ffi_rust_future_free_i32: (a: bigint) => void;
|
|
312
357
|
readonly ffi_flamewallet_ffi_rust_future_complete_u32: (a: bigint, b: number) => number;
|
|
313
358
|
readonly ffi_flamewallet_ffi_rust_future_cancel_i32: (a: bigint) => void;
|
|
314
|
-
readonly
|
|
315
|
-
readonly
|
|
359
|
+
readonly ffi_flamewallet_ffi_rust_future_free_i8: (a: bigint) => void;
|
|
360
|
+
readonly ffi_flamewallet_ffi_rust_future_cancel_i8: (a: bigint) => void;
|
|
361
|
+
readonly ffi_flamewallet_ffi_rust_future_free_u8: (a: bigint) => void;
|
|
362
|
+
readonly ffi_flamewallet_ffi_rust_future_cancel_u8: (a: bigint) => void;
|
|
363
|
+
readonly ffi_flamewallet_ffi_rust_future_free_u64: (a: bigint) => void;
|
|
364
|
+
readonly ffi_flamewallet_ffi_rust_future_complete_u64: (a: bigint, b: number) => bigint;
|
|
365
|
+
readonly ffi_flamewallet_ffi_rust_future_cancel_u64: (a: bigint) => void;
|
|
366
|
+
readonly ffi_flamewallet_ffi_rust_future_free_void: (a: bigint) => void;
|
|
367
|
+
readonly ffi_flamewallet_ffi_rust_future_cancel_void: (a: bigint) => void;
|
|
316
368
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
317
369
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
318
370
|
readonly __wbindgen_export3: (a: number) => void;
|
package/flamewallet_wasm.js
CHANGED
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* One account, `m/35263'/network'/0'`. Its keys live in this module's
|
|
5
5
|
* memory until `free()` — or `using` — drops the handle, which zeroizes
|
|
6
|
-
* them
|
|
6
|
+
* them. Two calls hand key material to JavaScript, where nothing can wipe
|
|
7
|
+
* it, so keep what they return as secret as the wallet: `viewKey()` reads
|
|
8
|
+
* every amount and memo, and `receivingKey()` links every address.
|
|
9
|
+
* Neither can spend.
|
|
7
10
|
*/
|
|
8
11
|
export class Wallet {
|
|
9
12
|
static __wrap(ptr) {
|
|
@@ -90,6 +93,33 @@ export class Wallet {
|
|
|
90
93
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
91
94
|
}
|
|
92
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* A receive wallet from its bech32f receiving key, as `receivingKey`
|
|
98
|
+
* gives it. It issues addresses and finds payments; `viewKey`,
|
|
99
|
+
* `openNote` and `buildTransfer` throw `notPermitted`. Only the key
|
|
100
|
+
* `receivingKey` exports will do, as with `fromViewKey`.
|
|
101
|
+
* @param {string} receivingKey
|
|
102
|
+
* @param {Network} network
|
|
103
|
+
* @param {number} nextIndex
|
|
104
|
+
* @returns {Wallet}
|
|
105
|
+
*/
|
|
106
|
+
static fromReceivingKey(receivingKey, network, nextIndex) {
|
|
107
|
+
try {
|
|
108
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
109
|
+
const ptr0 = passStringToWasm0(receivingKey, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
110
|
+
const len0 = WASM_VECTOR_LEN;
|
|
111
|
+
wasm.wallet_fromReceivingKey(retptr, ptr0, len0, addHeapObject(network), nextIndex);
|
|
112
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
113
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
114
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
115
|
+
if (r2) {
|
|
116
|
+
throw takeObject(r1);
|
|
117
|
+
}
|
|
118
|
+
return Wallet.__wrap(r0);
|
|
119
|
+
} finally {
|
|
120
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
93
123
|
/**
|
|
94
124
|
* The account below a 64-byte seed, with `nextIndex` receiving
|
|
95
125
|
* addresses already issued; a new wallet passes 0.
|
|
@@ -115,6 +145,41 @@ export class Wallet {
|
|
|
115
145
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
116
146
|
}
|
|
117
147
|
}
|
|
148
|
+
/**
|
|
149
|
+
* A view wallet from its bech32f view key, as `viewKey` gives it.
|
|
150
|
+
* Everything works except `buildTransfer`, which throws
|
|
151
|
+
* `notPermitted`. Only the key `viewKey` exports will do: a key from
|
|
152
|
+
* another node is accepted and silently owns nothing.
|
|
153
|
+
* @param {string} viewKey
|
|
154
|
+
* @param {Network} network
|
|
155
|
+
* @param {number} nextIndex
|
|
156
|
+
* @returns {Wallet}
|
|
157
|
+
*/
|
|
158
|
+
static fromViewKey(viewKey, network, nextIndex) {
|
|
159
|
+
try {
|
|
160
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
161
|
+
const ptr0 = passStringToWasm0(viewKey, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
162
|
+
const len0 = WASM_VECTOR_LEN;
|
|
163
|
+
wasm.wallet_fromViewKey(retptr, ptr0, len0, addHeapObject(network), nextIndex);
|
|
164
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
165
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
166
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
167
|
+
if (r2) {
|
|
168
|
+
throw takeObject(r1);
|
|
169
|
+
}
|
|
170
|
+
return Wallet.__wrap(r0);
|
|
171
|
+
} finally {
|
|
172
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* What this wallet was built from: `spend`, `view` or `receive`.
|
|
177
|
+
* @returns {WalletKind}
|
|
178
|
+
*/
|
|
179
|
+
kind() {
|
|
180
|
+
const ret = wasm.wallet_kind(this.__wbg_ptr);
|
|
181
|
+
return takeObject(ret);
|
|
182
|
+
}
|
|
118
183
|
/**
|
|
119
184
|
* @returns {Network}
|
|
120
185
|
*/
|
|
@@ -230,6 +295,36 @@ export class Wallet {
|
|
|
230
295
|
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
231
296
|
}
|
|
232
297
|
}
|
|
298
|
+
/**
|
|
299
|
+
* The bech32f view key a view wallet is built from: it reads every
|
|
300
|
+
* amount and memo but cannot spend, so store it as a secret. A
|
|
301
|
+
* receive wallet throws `notPermitted`.
|
|
302
|
+
* @returns {string}
|
|
303
|
+
*/
|
|
304
|
+
viewKey() {
|
|
305
|
+
let deferred2_0;
|
|
306
|
+
let deferred2_1;
|
|
307
|
+
try {
|
|
308
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
309
|
+
wasm.wallet_viewKey(retptr, this.__wbg_ptr);
|
|
310
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
311
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
312
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
313
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
314
|
+
var ptr1 = r0;
|
|
315
|
+
var len1 = r1;
|
|
316
|
+
if (r3) {
|
|
317
|
+
ptr1 = 0; len1 = 0;
|
|
318
|
+
throw takeObject(r2);
|
|
319
|
+
}
|
|
320
|
+
deferred2_0 = ptr1;
|
|
321
|
+
deferred2_1 = len1;
|
|
322
|
+
return getStringFromWasm0(ptr1, len1);
|
|
323
|
+
} finally {
|
|
324
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
325
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
233
328
|
}
|
|
234
329
|
if (Symbol.dispose) Wallet.prototype[Symbol.dispose] = Wallet.prototype.free;
|
|
235
330
|
|
package/flamewallet_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -11,13 +11,17 @@ export const validateMnemonic: (a: number, b: number) => number;
|
|
|
11
11
|
export const wallet_address: (a: number, b: number, c: number) => void;
|
|
12
12
|
export const wallet_buildTransfer: (a: number, b: number, c: number) => void;
|
|
13
13
|
export const wallet_fromMnemonic: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
14
|
+
export const wallet_fromReceivingKey: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
14
15
|
export const wallet_fromSeed: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
16
|
+
export const wallet_fromViewKey: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
17
|
+
export const wallet_kind: (a: number) => number;
|
|
15
18
|
export const wallet_network: (a: number, b: number) => void;
|
|
16
19
|
export const wallet_nextAddress: (a: number, b: number) => void;
|
|
17
20
|
export const wallet_nextIndex: (a: number) => number;
|
|
18
21
|
export const wallet_openNote: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
19
22
|
export const wallet_owns: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
20
23
|
export const wallet_receivingKey: (a: number, b: number) => void;
|
|
24
|
+
export const wallet_viewKey: (a: number, b: number) => void;
|
|
21
25
|
export const ffi_flamewallet_ffi_uniffi_contract_version: () => number;
|
|
22
26
|
export const ffi_flamewallet_ffi_rustbuffer_alloc: (a: number, b: bigint, c: number) => void;
|
|
23
27
|
export const ffi_flamewallet_ffi_rustbuffer_from_bytes: (a: number, b: number, c: number) => void;
|
|
@@ -65,6 +69,12 @@ export const uniffi_flamewallet_ffi_fn_constructor_wallet_new: (a: number, b: nu
|
|
|
65
69
|
export const uniffi_flamewallet_ffi_checksum_constructor_wallet_new: () => number;
|
|
66
70
|
export const uniffi_flamewallet_ffi_fn_constructor_wallet_from_mnemonic: (a: number, b: number, c: number, d: number, e: number) => bigint;
|
|
67
71
|
export const uniffi_flamewallet_ffi_checksum_constructor_wallet_from_mnemonic: () => number;
|
|
72
|
+
export const uniffi_flamewallet_ffi_fn_constructor_wallet_from_view_key: (a: number, b: number, c: number, d: number) => bigint;
|
|
73
|
+
export const uniffi_flamewallet_ffi_checksum_constructor_wallet_from_view_key: () => number;
|
|
74
|
+
export const uniffi_flamewallet_ffi_fn_constructor_wallet_from_receiving_key: (a: number, b: number, c: number, d: number) => bigint;
|
|
75
|
+
export const uniffi_flamewallet_ffi_checksum_constructor_wallet_from_receiving_key: () => number;
|
|
76
|
+
export const uniffi_flamewallet_ffi_fn_method_wallet_kind: (a: number, b: bigint, c: number) => void;
|
|
77
|
+
export const uniffi_flamewallet_ffi_checksum_method_wallet_kind: () => number;
|
|
68
78
|
export const uniffi_flamewallet_ffi_fn_method_wallet_network: (a: number, b: bigint, c: number) => void;
|
|
69
79
|
export const uniffi_flamewallet_ffi_checksum_method_wallet_network: () => number;
|
|
70
80
|
export const uniffi_flamewallet_ffi_fn_method_wallet_address: (a: number, b: bigint, c: number, d: number) => void;
|
|
@@ -77,34 +87,36 @@ export const uniffi_flamewallet_ffi_fn_method_wallet_owns: (a: number, b: bigint
|
|
|
77
87
|
export const uniffi_flamewallet_ffi_checksum_method_wallet_owns: () => number;
|
|
78
88
|
export const uniffi_flamewallet_ffi_fn_method_wallet_receiving_key: (a: number, b: bigint, c: number) => void;
|
|
79
89
|
export const uniffi_flamewallet_ffi_checksum_method_wallet_receiving_key: () => number;
|
|
90
|
+
export const uniffi_flamewallet_ffi_fn_method_wallet_view_key: (a: number, b: bigint, c: number) => void;
|
|
91
|
+
export const uniffi_flamewallet_ffi_checksum_method_wallet_view_key: () => number;
|
|
80
92
|
export const uniffi_flamewallet_ffi_fn_method_wallet_open_note: (a: number, b: bigint, c: number, d: number, e: number, f: number) => void;
|
|
81
93
|
export const uniffi_flamewallet_ffi_checksum_method_wallet_open_note: () => number;
|
|
82
94
|
export const uniffi_flamewallet_ffi_fn_method_wallet_build_transfer: (a: number, b: bigint, c: number, d: number) => void;
|
|
83
95
|
export const uniffi_flamewallet_ffi_checksum_method_wallet_build_transfer: () => number;
|
|
96
|
+
export const ffi_flamewallet_ffi_rust_future_free_f64: (a: bigint) => void;
|
|
97
|
+
export const ffi_flamewallet_ffi_rust_future_cancel_f64: (a: bigint) => void;
|
|
98
|
+
export const ffi_flamewallet_ffi_rust_future_free_u32: (a: bigint) => void;
|
|
99
|
+
export const ffi_flamewallet_ffi_rust_future_cancel_u32: (a: bigint) => void;
|
|
84
100
|
export const ffi_flamewallet_ffi_rust_future_free_rust_buffer: (a: bigint) => void;
|
|
85
101
|
export const ffi_flamewallet_ffi_rust_future_cancel_rust_buffer: (a: bigint) => void;
|
|
102
|
+
export const ffi_flamewallet_ffi_rust_future_free_u16: (a: bigint) => void;
|
|
103
|
+
export const ffi_flamewallet_ffi_rust_future_cancel_u16: (a: bigint) => void;
|
|
86
104
|
export const ffi_flamewallet_ffi_rust_future_free_i64: (a: bigint) => void;
|
|
87
105
|
export const ffi_flamewallet_ffi_rust_future_cancel_i64: (a: bigint) => void;
|
|
88
|
-
export const ffi_flamewallet_ffi_rust_future_free_u64: (a: bigint) => void;
|
|
89
|
-
export const ffi_flamewallet_ffi_rust_future_complete_u64: (a: bigint, b: number) => bigint;
|
|
90
|
-
export const ffi_flamewallet_ffi_rust_future_cancel_u64: (a: bigint) => void;
|
|
91
|
-
export const ffi_flamewallet_ffi_rust_future_free_u8: (a: bigint) => void;
|
|
92
|
-
export const ffi_flamewallet_ffi_rust_future_cancel_u8: (a: bigint) => void;
|
|
93
|
-
export const ffi_flamewallet_ffi_rust_future_free_void: (a: bigint) => void;
|
|
94
|
-
export const ffi_flamewallet_ffi_rust_future_cancel_void: (a: bigint) => void;
|
|
95
106
|
export const ffi_flamewallet_ffi_rust_future_free_i16: (a: bigint) => void;
|
|
96
107
|
export const ffi_flamewallet_ffi_rust_future_cancel_i16: (a: bigint) => void;
|
|
97
|
-
export const ffi_flamewallet_ffi_rust_future_free_u32: (a: bigint) => void;
|
|
98
|
-
export const ffi_flamewallet_ffi_rust_future_cancel_u32: (a: bigint) => void;
|
|
99
|
-
export const ffi_flamewallet_ffi_rust_future_free_f64: (a: bigint) => void;
|
|
100
|
-
export const ffi_flamewallet_ffi_rust_future_cancel_f64: (a: bigint) => void;
|
|
101
|
-
export const ffi_flamewallet_ffi_rust_future_free_i8: (a: bigint) => void;
|
|
102
|
-
export const ffi_flamewallet_ffi_rust_future_cancel_i8: (a: bigint) => void;
|
|
103
108
|
export const ffi_flamewallet_ffi_rust_future_free_i32: (a: bigint) => void;
|
|
104
109
|
export const ffi_flamewallet_ffi_rust_future_complete_u32: (a: bigint, b: number) => number;
|
|
105
110
|
export const ffi_flamewallet_ffi_rust_future_cancel_i32: (a: bigint) => void;
|
|
106
|
-
export const
|
|
107
|
-
export const
|
|
111
|
+
export const ffi_flamewallet_ffi_rust_future_free_i8: (a: bigint) => void;
|
|
112
|
+
export const ffi_flamewallet_ffi_rust_future_cancel_i8: (a: bigint) => void;
|
|
113
|
+
export const ffi_flamewallet_ffi_rust_future_free_u8: (a: bigint) => void;
|
|
114
|
+
export const ffi_flamewallet_ffi_rust_future_cancel_u8: (a: bigint) => void;
|
|
115
|
+
export const ffi_flamewallet_ffi_rust_future_free_u64: (a: bigint) => void;
|
|
116
|
+
export const ffi_flamewallet_ffi_rust_future_complete_u64: (a: bigint, b: number) => bigint;
|
|
117
|
+
export const ffi_flamewallet_ffi_rust_future_cancel_u64: (a: bigint) => void;
|
|
118
|
+
export const ffi_flamewallet_ffi_rust_future_free_void: (a: bigint) => void;
|
|
119
|
+
export const ffi_flamewallet_ffi_rust_future_cancel_void: (a: bigint) => void;
|
|
108
120
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
109
121
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
110
122
|
export const __wbindgen_export3: (a: number) => void;
|
package/package.json
CHANGED
package/sbom.cdx.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"bomFormat": "CycloneDX",
|
|
3
3
|
"specVersion": "1.3",
|
|
4
4
|
"version": 1,
|
|
5
|
-
"serialNumber": "urn:uuid:
|
|
5
|
+
"serialNumber": "urn:uuid:0af8014d-f823-4be7-929c-0beedee13a33",
|
|
6
6
|
"metadata": {
|
|
7
|
-
"timestamp": "2026-10-
|
|
7
|
+
"timestamp": "2026-10-19T12:56:24.121669000Z",
|
|
8
8
|
"tools": [
|
|
9
9
|
{
|
|
10
10
|
"vendor": "CycloneDX",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"bom-ref": "path+file:///Users/runner/work/flame-lib/flame-lib/cells#0.1.0",
|
|
99
99
|
"name": "cells",
|
|
100
100
|
"version": "0.1.0",
|
|
101
|
-
"description": "Content-addressed cells
|
|
101
|
+
"description": "Content-addressed cells and tries for Flame",
|
|
102
102
|
"scope": "required",
|
|
103
103
|
"licenses": [
|
|
104
104
|
{
|
|
@@ -4932,6 +4932,7 @@
|
|
|
4932
4932
|
"ref": "path+file:///Users/runner/work/flame-lib/flame-lib/flamepayments#0.1.0",
|
|
4933
4933
|
"dependsOn": [
|
|
4934
4934
|
"registry+https://github.com/rust-lang/crates.io-index#aes-siv@0.8.0",
|
|
4935
|
+
"path+file:///Users/runner/work/flame-lib/flame-lib/cells#0.1.0",
|
|
4935
4936
|
"registry+https://github.com/rust-lang/crates.io-index#curve25519-dalek@4.1.3",
|
|
4936
4937
|
"path+file:///Users/runner/work/flame-lib/flame-lib/flamechain#0.1.0",
|
|
4937
4938
|
"path+file:///Users/runner/work/flame-lib/flame-lib/flamekd#0.1.0",
|