@nockbox/iris-wasm 0.2.0-alpha.2 → 0.2.0-alpha.3

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/iris_wasm.d.ts CHANGED
@@ -1,169 +1,456 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export function jam(noun: Noun): Uint8Array;
4
- export function untas(noun: Noun): string;
3
+ /**
4
+ * Hash a public key to get its digest (for use in PKH)
5
+ */
6
+ export function hashPublicKey(public_key_bytes: Uint8Array): string;
7
+ /**
8
+ * Hash a noun (jam as input)
9
+ */
10
+ export function hashNoun(noun: Uint8Array): string;
11
+ /**
12
+ * Hash a u64 value
13
+ */
14
+ export function hashU64(value: bigint): string;
15
+ /**
16
+ * Derive master key from BIP39 mnemonic phrase
17
+ */
18
+ export function deriveMasterKeyFromMnemonic(mnemonic: string, passphrase?: string | null): ExtendedKey;
19
+ /**
20
+ * Sign a message string with a private key
21
+ */
22
+ export function signMessage(private_key_bytes: Uint8Array, message: string): Signature;
23
+ /**
24
+ * Derive master key from seed bytes
25
+ */
26
+ export function deriveMasterKey(seed: Uint8Array): ExtendedKey;
27
+ /**
28
+ * Verify a signature with a public key
29
+ */
30
+ export function verifySignature(public_key_bytes: Uint8Array, signature: Signature, message: string): boolean;
31
+ /**
32
+ * Convert a string to sequence of Belts.
33
+ *
34
+ * This is equivalent to `atom_to_belts(tas(s))`.
35
+ *
36
+ * Belts are Atoms that fit the goldilocks prime field.
37
+ *
38
+ * If a transaction contains non-based (not-fitting) atoms, it will be rejected.
39
+ */
5
40
  export function tas_belts(s: string): Noun;
6
- export function belts_to_atom(noun: Noun): Noun;
41
+ /**
42
+ * Convert an Atom into a string.
43
+ */
44
+ export function untas(noun: Noun): string;
45
+ /**
46
+ * Cue a jammed Uint8Array into a Noun (see `jam`).
47
+ */
7
48
  export function cue(jam: Uint8Array): Noun;
8
- export function atom_to_belts(atom: Noun): Noun;
49
+ /**
50
+ * Convert a sequence of belts back into one atom.
51
+ */
52
+ export function belts_to_atom(noun: Noun): Noun;
53
+ /**
54
+ * Encode a Noun as a Uint8Array of bytes.
55
+ */
56
+ export function jam(noun: Noun): Uint8Array;
57
+ /**
58
+ * Convert string to an Atom.
59
+ */
9
60
  export function tas(s: string): Noun;
10
- export function digest_to_hex(d: Digest): string;
11
- export function note_from_protobuf(value: PbCom2Note): Note;
12
- export function rawTxToNockchainTx(tx: RawTxV1): NockchainTx;
13
- export function rawTxOutputs(tx: RawTx): Note[];
14
- export function rawTxFromProtobuf(tx: PbCom2RawTransaction): RawTx;
15
- export function note_to_protobuf(note: Note): PbCom2Note;
16
- export function create_note_v1(version: Version, origin_page: number, name: Name, note_data: NoteData, assets: Nicks): Note;
17
- export function note_hash(note: Note): Digest;
61
+ /**
62
+ * Convert an Atom to belts.
63
+ */
64
+ export function atom_to_belts(atom: Noun): Noun;
18
65
  export function hex_to_digest(s: string): Digest;
19
66
  export function create_note_v0(origin_page: number, sig_m: bigint, sig_pubkeys: Uint8Array[], source_hash: Digest, is_coinbase: boolean, timelock: Timelock | null | undefined, assets: Nicks): Note;
67
+ /**
68
+ * Convert raw transaction into protobuf format.
69
+ *
70
+ * Protobuf format is the one used by the Nockchain's gRPC interface, and the initial iris
71
+ * extension format. The new iris transaction signing API moves away from this format to use
72
+ * `NockchainTx`, as it includes the necessary spend condition and note information.
73
+ */
20
74
  export function rawTxToProtobuf(tx: RawTxV1): PbCom2RawTransaction;
75
+ export function create_note_v1(version: Version, origin_page: number, name: Name, note_data: NoteData, assets: Nicks): Note;
21
76
  export function digest_from_protobuf(value: PbCom1Hash): Digest;
77
+ /**
78
+ * Lossily convert raw transaction into a nockchain transaction, splitting witness away.
79
+ */
80
+ export function rawTxToNockchainTx(tx: RawTxV1): NockchainTx;
81
+ export function digest_to_hex(d: Digest): string;
82
+ export function note_to_protobuf(note: Note): PbCom2Note;
83
+ export function rawTxOutputs(tx: RawTx): Note[];
22
84
  export function digest_to_protobuf(d: Digest): PbCom1Hash;
85
+ export function note_hash(note: Note): Digest;
86
+ export function note_from_protobuf(value: PbCom2Note): Note;
87
+ export function rawTxFromProtobuf(tx: PbCom2RawTransaction): RawTx;
88
+ /**
89
+ * Convert NockchainTx into RawTx by recombining witness_data with the transaction, and
90
+ * recalculating the transaction ID.
91
+ */
23
92
  export function nockchainTxToRaw(tx: NockchainTx): RawTx;
24
93
  /**
25
- * Sign a message string with a private key
94
+ * r" Convert into `Noun`.
26
95
  */
27
- export function signMessage(private_key_bytes: Uint8Array, message: string): Signature;
96
+ export function witnessDataToNoun(v: WitnessData): Noun;
28
97
  /**
29
- * Derive master key from BIP39 mnemonic phrase
98
+ * r" Convert from `Noun`.
30
99
  */
31
- export function deriveMasterKeyFromMnemonic(mnemonic: string, passphrase?: string | null): ExtendedKey;
100
+ export function witnessDataFromNoun(noun: Noun): WitnessData;
101
+ export function lockMetadataHash(v: LockMetadata): Digest;
32
102
  /**
33
- * Hash a public key to get its digest (for use in PKH)
103
+ * r" Convert into `Noun`.
34
104
  */
35
- export function hashPublicKey(public_key_bytes: Uint8Array): string;
105
+ export function lockMetadataToNoun(v: LockMetadata): Noun;
36
106
  /**
37
- * Verify a signature with a public key
107
+ * r" Convert from `Noun`.
38
108
  */
39
- export function verifySignature(public_key_bytes: Uint8Array, signature: Signature, message: string): boolean;
109
+ export function lockMetadataFromNoun(noun: Noun): LockMetadata;
40
110
  /**
41
- * Hash a u64 value
111
+ * r" Convert from `Noun`.
42
112
  */
43
- export function hashU64(value: bigint): string;
113
+ export function versionFromNoun(noun: Noun): Version;
44
114
  /**
45
- * Derive master key from seed bytes
115
+ * r" Convert into `Noun`.
46
116
  */
47
- export function deriveMasterKey(seed: Uint8Array): ExtendedKey;
117
+ export function versionToNoun(v: Version): Noun;
118
+ export function versionHash(v: Version): Digest;
48
119
  /**
49
- * Hash a noun (jam as input)
120
+ * r" Convert into `Noun`.
121
+ */
122
+ export function timelockIntentToNoun(v: TimelockIntent): Noun;
123
+ /**
124
+ * r" Convert from `Noun`.
125
+ */
126
+ export function timelockIntentFromNoun(noun: Noun): TimelockIntent;
127
+ export function timelockIntentHash(v: TimelockIntent): Digest;
128
+ export function legacySignatureHash(v: LegacySignature): Digest;
129
+ /**
130
+ * r" Convert into `Noun`.
131
+ */
132
+ export function legacySignatureToNoun(v: LegacySignature): Noun;
133
+ /**
134
+ * r" Convert from `Noun`.
135
+ */
136
+ export function legacySignatureFromNoun(noun: Noun): LegacySignature;
137
+ export function haxHash(v: Hax): Digest;
138
+ /**
139
+ * r" Convert into `Noun`.
140
+ */
141
+ export function haxToNoun(v: Hax): Noun;
142
+ /**
143
+ * r" Convert from `Noun`.
144
+ */
145
+ export function haxFromNoun(noun: Noun): Hax;
146
+ /**
147
+ * r" Convert into `Noun`.
148
+ */
149
+ export function pkhToNoun(v: Pkh): Noun;
150
+ /**
151
+ * r" Convert from `Noun`.
152
+ */
153
+ export function pkhFromNoun(noun: Noun): Pkh;
154
+ export function pkhHash(v: Pkh): Digest;
155
+ /**
156
+ * r" Convert from `Noun`.
157
+ */
158
+ export function noteV1FromNoun(noun: Noun): NoteV1;
159
+ /**
160
+ * r" Convert into `Noun`.
161
+ */
162
+ export function noteV1ToNoun(v: NoteV1): Noun;
163
+ export function noteV1Hash(v: NoteV1): Digest;
164
+ /**
165
+ * r" Convert from `Noun`.
166
+ */
167
+ export function seedV1FromNoun(noun: Noun): SeedV1;
168
+ export function seedV1Hash(v: SeedV1): Digest;
169
+ /**
170
+ * r" Convert into `Noun`.
171
+ */
172
+ export function seedV1ToNoun(v: SeedV1): Noun;
173
+ /**
174
+ * r" Convert from `Noun`.
175
+ */
176
+ export function seedsV1FromNoun(noun: Noun): SeedsV1;
177
+ /**
178
+ * r" Convert into `Noun`.
179
+ */
180
+ export function seedsV1ToNoun(v: SeedsV1): Noun;
181
+ export function seedsV1Hash(v: SeedsV1): Digest;
182
+ /**
183
+ * r" Convert into `Noun`.
184
+ */
185
+ export function lockRootToNoun(v: LockRoot): Noun;
186
+ export function lockRootHash(v: LockRoot): Digest;
187
+ /**
188
+ * r" Convert from `Noun`.
189
+ */
190
+ export function lockRootFromNoun(noun: Noun): LockRoot;
191
+ /**
192
+ * r" Convert from `Noun`.
193
+ */
194
+ export function lockPrimitiveFromNoun(noun: Noun): LockPrimitive;
195
+ export function lockPrimitiveHash(v: LockPrimitive): Digest;
196
+ /**
197
+ * r" Convert into `Noun`.
198
+ */
199
+ export function lockPrimitiveToNoun(v: LockPrimitive): Noun;
200
+ export function spendConditionHash(v: SpendCondition): Digest;
201
+ /**
202
+ * r" Convert from `Noun`.
203
+ */
204
+ export function spendConditionFromNoun(noun: Noun): SpendCondition;
205
+ /**
206
+ * r" Convert into `Noun`.
207
+ */
208
+ export function spendConditionToNoun(v: SpendCondition): Noun;
209
+ /**
210
+ * r" Convert into `Noun`.
211
+ */
212
+ export function lockMerkleProofToNoun(v: LockMerkleProof): Noun;
213
+ export function lockMerkleProofHash(v: LockMerkleProof): Digest;
214
+ /**
215
+ * r" Convert from `Noun`.
216
+ */
217
+ export function lockMerkleProofFromNoun(noun: Noun): LockMerkleProof;
218
+ /**
219
+ * r" Convert into `Noun`.
220
+ */
221
+ export function nameToNoun(v: Name): Noun;
222
+ export function nameHash(v: Name): Digest;
223
+ /**
224
+ * r" Convert from `Noun`.
225
+ */
226
+ export function nameFromNoun(noun: Noun): Name;
227
+ /**
228
+ * r" Convert into `Noun`.
229
+ */
230
+ export function rawTxV0ToNoun(v: RawTxV0): Noun;
231
+ /**
232
+ * r" Convert from `Noun`.
233
+ */
234
+ export function rawTxV0FromNoun(noun: Noun): RawTxV0;
235
+ /**
236
+ * r" Convert from `Noun`.
237
+ */
238
+ export function inputDisplayFromNoun(noun: Noun): InputDisplay;
239
+ /**
240
+ * r" Convert into `Noun`.
241
+ */
242
+ export function inputDisplayToNoun(v: InputDisplay): Noun;
243
+ /**
244
+ * r" Convert from `Noun`.
245
+ */
246
+ export function timelockRangeFromNoun(noun: Noun): TimelockRange;
247
+ /**
248
+ * r" Convert into `Noun`.
249
+ */
250
+ export function timelockRangeToNoun(v: TimelockRange): Noun;
251
+ export function timelockRangeHash(v: TimelockRange): Digest;
252
+ /**
253
+ * r" Convert from `Noun`.
254
+ */
255
+ export function sigFromNoun(noun: Noun): Sig;
256
+ /**
257
+ * r" Convert into `Noun`.
258
+ */
259
+ export function sigToNoun(v: Sig): Noun;
260
+ export function sigHash(v: Sig): Digest;
261
+ /**
262
+ * r" Convert from `Noun`.
50
263
  */
51
- export function hashNoun(noun: Uint8Array): string;
52
- export function inputHash(v: Input): Digest;
53
264
  export function inputFromNoun(noun: Noun): Input;
265
+ export function inputHash(v: Input): Digest;
266
+ /**
267
+ * r" Convert into `Noun`.
268
+ */
54
269
  export function inputToNoun(v: Input): Noun;
55
- export function inputsToNoun(v: Inputs): Noun;
56
270
  export function inputsHash(v: Inputs): Digest;
271
+ /**
272
+ * r" Convert into `Noun`.
273
+ */
274
+ export function inputsToNoun(v: Inputs): Noun;
275
+ /**
276
+ * r" Convert from `Noun`.
277
+ */
57
278
  export function inputsFromNoun(noun: Noun): Inputs;
279
+ export function noteV0Hash(v: NoteV0): Digest;
280
+ /**
281
+ * r" Convert into `Noun`.
282
+ */
283
+ export function noteV0ToNoun(v: NoteV0): Noun;
284
+ /**
285
+ * r" Convert from `Noun`.
286
+ */
287
+ export function noteV0FromNoun(noun: Noun): NoteV0;
288
+ export function seedV0Hash(v: SeedV0): Digest;
289
+ /**
290
+ * r" Convert from `Noun`.
291
+ */
292
+ export function seedV0FromNoun(noun: Noun): SeedV0;
293
+ /**
294
+ * r" Convert into `Noun`.
295
+ */
296
+ export function seedV0ToNoun(v: SeedV0): Noun;
297
+ /**
298
+ * r" Convert into `Noun`.
299
+ */
58
300
  export function seedsV0ToNoun(v: SeedsV0): Noun;
301
+ /**
302
+ * r" Convert from `Noun`.
303
+ */
59
304
  export function seedsV0FromNoun(noun: Noun): SeedsV0;
60
305
  export function seedsV0Hash(v: SeedsV0): Digest;
306
+ export function spendV0Hash(v: SpendV0): Digest;
307
+ /**
308
+ * r" Convert from `Noun`.
309
+ */
61
310
  export function spendV0FromNoun(noun: Noun): SpendV0;
311
+ /**
312
+ * r" Convert into `Noun`.
313
+ */
62
314
  export function spendV0ToNoun(v: SpendV0): Noun;
63
- export function spendV0Hash(v: SpendV0): Digest;
64
- export function noteInnerHash(v: NoteInner): Digest;
65
- export function noteInnerFromNoun(noun: Noun): NoteInner;
66
- export function noteInnerToNoun(v: NoteInner): Noun;
67
- export function haxFromNoun(noun: Noun): Hax;
68
- export function haxHash(v: Hax): Digest;
69
- export function haxToNoun(v: Hax): Noun;
70
- export function noteV1Hash(v: NoteV1): Digest;
71
- export function noteV1ToNoun(v: NoteV1): Noun;
72
- export function noteV1FromNoun(noun: Noun): NoteV1;
73
- export function seedV1Hash(v: SeedV1): Digest;
74
- export function seedV1FromNoun(noun: Noun): SeedV1;
75
- export function seedV1ToNoun(v: SeedV1): Noun;
315
+ /**
316
+ * r" Convert into `Noun`.
317
+ */
318
+ export function timelockToNoun(v: Timelock): Noun;
319
+ export function timelockHash(v: Timelock): Digest;
320
+ /**
321
+ * r" Convert from `Noun`.
322
+ */
323
+ export function timelockFromNoun(noun: Noun): Timelock;
76
324
  export function witnessHash(v: Witness): Digest;
77
- export function witnessToNoun(v: Witness): Noun;
325
+ /**
326
+ * r" Convert from `Noun`.
327
+ */
78
328
  export function witnessFromNoun(noun: Noun): Witness;
79
- export function seedsV1Hash(v: SeedsV1): Digest;
80
- export function seedsV1ToNoun(v: SeedsV1): Noun;
81
- export function seedsV1FromNoun(noun: Noun): SeedsV1;
82
- export function spendV1Hash(v: SpendV1): Digest;
329
+ /**
330
+ * r" Convert into `Noun`.
331
+ */
332
+ export function witnessToNoun(v: Witness): Noun;
333
+ /**
334
+ * r" Convert from `Noun`.
335
+ */
83
336
  export function spendV1FromNoun(noun: Noun): SpendV1;
337
+ export function spendV1Hash(v: SpendV1): Digest;
338
+ /**
339
+ * r" Convert into `Noun`.
340
+ */
84
341
  export function spendV1ToNoun(v: SpendV1): Noun;
85
- export function lockRootToNoun(v: LockRoot): Noun;
86
- export function lockRootHash(v: LockRoot): Digest;
87
- export function lockRootFromNoun(noun: Noun): LockRoot;
88
342
  export function noteDataHash(v: NoteData): Digest;
89
- export function noteDataToNoun(v: NoteData): Noun;
343
+ /**
344
+ * r" Convert from `Noun`.
345
+ */
90
346
  export function noteDataFromNoun(noun: Noun): NoteData;
347
+ /**
348
+ * r" Convert into `Noun`.
349
+ */
350
+ export function noteDataToNoun(v: NoteData): Noun;
351
+ /**
352
+ * r" Convert into `Noun`.
353
+ */
91
354
  export function rawTxV1ToNoun(v: RawTxV1): Noun;
355
+ /**
356
+ * r" Convert from `Noun`.
357
+ */
92
358
  export function rawTxV1FromNoun(noun: Noun): RawTxV1;
359
+ export function spendsV1Hash(v: SpendsV1): Digest;
360
+ /**
361
+ * r" Convert from `Noun`.
362
+ */
93
363
  export function spendsV1FromNoun(noun: Noun): SpendsV1;
364
+ /**
365
+ * r" Convert into `Noun`.
366
+ */
94
367
  export function spendsV1ToNoun(v: SpendsV1): Noun;
95
- export function spendsV1Hash(v: SpendsV1): Digest;
368
+ export function merkleProofHash(v: MerkleProof): Digest;
369
+ /**
370
+ * r" Convert into `Noun`.
371
+ */
372
+ export function merkleProofToNoun(v: MerkleProof): Noun;
373
+ /**
374
+ * r" Convert from `Noun`.
375
+ */
376
+ export function merkleProofFromNoun(noun: Noun): MerkleProof;
377
+ /**
378
+ * r" Convert into `Noun`.
379
+ */
96
380
  export function nockchainTxToNoun(v: NockchainTx): Noun;
381
+ /**
382
+ * r" Convert from `Noun`.
383
+ */
97
384
  export function nockchainTxFromNoun(noun: Noun): NockchainTx;
98
- export function pkhSignatureFromNoun(noun: Noun): PkhSignature;
99
- export function pkhSignatureHash(v: PkhSignature): Digest;
385
+ /**
386
+ * r" Convert into `Noun`.
387
+ */
100
388
  export function pkhSignatureToNoun(v: PkhSignature): Noun;
101
- export function noteToNoun(v: Note): Noun;
389
+ export function pkhSignatureHash(v: PkhSignature): Digest;
390
+ /**
391
+ * r" Convert from `Noun`.
392
+ */
393
+ export function pkhSignatureFromNoun(noun: Noun): PkhSignature;
394
+ /**
395
+ * r" Convert into `Noun`.
396
+ */
397
+ export function transactionDisplayToNoun(v: TransactionDisplay): Noun;
398
+ /**
399
+ * r" Convert from `Noun`.
400
+ */
401
+ export function transactionDisplayFromNoun(noun: Noun): TransactionDisplay;
102
402
  export function noteHash(v: Note): Digest;
403
+ /**
404
+ * r" Convert into `Noun`.
405
+ */
406
+ export function noteToNoun(v: Note): Noun;
407
+ /**
408
+ * r" Convert from `Noun`.
409
+ */
103
410
  export function noteFromNoun(noun: Noun): Note;
104
- export function merkleProofHash(v: MerkleProof): Digest;
105
- export function merkleProofFromNoun(noun: Noun): MerkleProof;
106
- export function merkleProofToNoun(v: MerkleProof): Noun;
107
- export function lockPrimitiveToNoun(v: LockPrimitive): Noun;
108
- export function lockPrimitiveHash(v: LockPrimitive): Digest;
109
- export function lockPrimitiveFromNoun(noun: Noun): LockPrimitive;
110
- export function versionHash(v: Version): Digest;
111
- export function versionToNoun(v: Version): Noun;
112
- export function versionFromNoun(noun: Noun): Version;
113
- export function sigFromNoun(noun: Noun): Sig;
114
- export function sigToNoun(v: Sig): Noun;
115
- export function sigHash(v: Sig): Digest;
116
- export function timelockIntentHash(v: TimelockIntent): Digest;
117
- export function timelockIntentFromNoun(noun: Noun): TimelockIntent;
118
- export function timelockIntentToNoun(v: TimelockIntent): Noun;
119
- export function legacySignatureFromNoun(noun: Noun): LegacySignature;
120
- export function legacySignatureToNoun(v: LegacySignature): Noun;
121
- export function legacySignatureHash(v: LegacySignature): Digest;
122
- export function nameToNoun(v: Name): Noun;
123
- export function nameHash(v: Name): Digest;
124
- export function nameFromNoun(noun: Noun): Name;
411
+ /**
412
+ * r" Convert from `Noun`.
413
+ */
414
+ export function sourceFromNoun(noun: Noun): Source;
415
+ /**
416
+ * r" Convert into `Noun`.
417
+ */
125
418
  export function sourceToNoun(v: Source): Noun;
126
419
  export function sourceHash(v: Source): Digest;
127
- export function sourceFromNoun(noun: Noun): Source;
128
- export function noteV0Hash(v: NoteV0): Digest;
129
- export function noteV0ToNoun(v: NoteV0): Noun;
130
- export function noteV0FromNoun(noun: Noun): NoteV0;
131
- export function pkhFromNoun(noun: Noun): Pkh;
132
- export function pkhHash(v: Pkh): Digest;
133
- export function pkhToNoun(v: Pkh): Noun;
134
- export function witnessDataFromNoun(noun: Noun): WitnessData;
135
- export function witnessDataToNoun(v: WitnessData): Noun;
136
- export function lockMetadataToNoun(v: LockMetadata): Noun;
137
- export function lockMetadataHash(v: LockMetadata): Digest;
138
- export function lockMetadataFromNoun(noun: Noun): LockMetadata;
139
- export function timelockRangeHash(v: TimelockRange): Digest;
140
- export function timelockRangeToNoun(v: TimelockRange): Noun;
141
- export function timelockRangeFromNoun(noun: Noun): TimelockRange;
142
- export function seedV0Hash(v: SeedV0): Digest;
143
- export function seedV0ToNoun(v: SeedV0): Noun;
144
- export function seedV0FromNoun(noun: Noun): SeedV0;
145
- export function timelockToNoun(v: Timelock): Noun;
146
- export function timelockHash(v: Timelock): Digest;
147
- export function timelockFromNoun(noun: Noun): Timelock;
148
- export function rawTxV0FromNoun(noun: Noun): RawTxV0;
149
- export function rawTxV0ToNoun(v: RawTxV0): Noun;
150
- export function inputDisplayToNoun(v: InputDisplay): Noun;
151
- export function inputDisplayFromNoun(noun: Noun): InputDisplay;
152
- export function spendConditionFromNoun(noun: Noun): SpendCondition;
153
- export function spendConditionHash(v: SpendCondition): Digest;
154
- export function spendConditionToNoun(v: SpendCondition): Noun;
155
- export function lockMerkleProofToNoun(v: LockMerkleProof): Noun;
156
- export function lockMerkleProofHash(v: LockMerkleProof): Digest;
157
- export function lockMerkleProofFromNoun(noun: Noun): LockMerkleProof;
158
- export function transactionDisplayToNoun(v: TransactionDisplay): Noun;
159
- export function transactionDisplayFromNoun(noun: Noun): TransactionDisplay;
420
+ /**
421
+ * r" Convert into `Noun`.
422
+ */
160
423
  export function balanceToNoun(v: Balance): Noun;
424
+ /**
425
+ * r" Convert from `Noun`.
426
+ */
161
427
  export function balanceFromNoun(noun: Noun): Balance;
162
- export function balanceUpdateToNoun(v: BalanceUpdate): Noun;
428
+ /**
429
+ * r" Convert from `Noun`.
430
+ */
163
431
  export function balanceUpdateFromNoun(noun: Noun): BalanceUpdate;
164
- export function digestToNoun(v: Digest): Noun;
165
- export function digestHash(v: Digest): Digest;
432
+ /**
433
+ * r" Convert into `Noun`.
434
+ */
435
+ export function balanceUpdateToNoun(v: BalanceUpdate): Noun;
436
+ /**
437
+ * r" Convert into `Noun`.
438
+ */
439
+ export function noteInnerToNoun(v: NoteInner): Noun;
440
+ /**
441
+ * r" Convert from `Noun`.
442
+ */
443
+ export function noteInnerFromNoun(noun: Noun): NoteInner;
444
+ export function noteInnerHash(v: NoteInner): Digest;
445
+ /**
446
+ * r" Convert from `Noun`.
447
+ */
166
448
  export function digestFromNoun(noun: Noun): Digest;
449
+ export function digestHash(v: Digest): Digest;
450
+ /**
451
+ * r" Convert into `Noun`.
452
+ */
453
+ export function digestToNoun(v: Digest): Noun;
167
454
  /**
168
455
  * The `ReadableStreamType` enum.
169
456
  *
@@ -175,83 +462,59 @@ export interface TxNotes {
175
462
  spend_conditions: SpendCondition[];
176
463
  }
177
464
 
178
- export interface PbCom1BalanceEntry {
179
- name: PbCom1Name | undefined;
180
- note: PbCom1Note | undefined;
181
- }
182
-
183
- /**
184
- * min and max are absolute origin page numbers
185
- */
186
- export interface PbCom1TimeLockRangeAbsolute {
187
- min: PbCom1BlockHeight | undefined;
188
- max: PbCom1BlockHeight | undefined;
189
- }
190
-
191
465
  export interface PbCom1Input {
192
- note: PbCom1Note | undefined;
193
- spend: PbCom1Spend | undefined;
194
- }
195
-
196
- export interface PbCom1Wire {
197
- /**
198
- * e.g., \"http\", \"file\", \"wallet\", \"grpc\
199
- */
200
- source: string;
201
- /**
202
- * wire format version
203
- */
204
- version: number;
205
- /**
206
- * operation-specific tags
207
- */
208
- tags: PbCom1WireTag[];
209
- }
210
-
211
- export interface PbCom1Signature {
212
- entries: PbCom1SignatureEntry[];
213
- }
214
-
215
- export interface PbCom1TimeLockRangeAbsoluteAndRelative {
216
- absolute: PbCom1TimeLockRangeAbsolute | undefined;
217
- relative: PbCom1TimeLockRangeRelative | undefined;
218
- }
219
-
220
- export interface PbCom1Acknowledged {}
221
-
222
- export interface PbCom1WireTag {
223
- value: PbCom1WireTagValue | undefined;
466
+ note: PbCom1Note | null;
467
+ spend: PbCom1Spend | null;
224
468
  }
225
469
 
226
470
  export interface PbCom1BlockHeightDelta {
227
471
  value: string;
228
472
  }
229
473
 
230
- export interface PbCom1NamedInput {
231
- name: PbCom1Name | undefined;
232
- input: PbCom1Input | undefined;
474
+ export interface PbCom1OutputSource {
475
+ source: PbCom1Source | null;
476
+ }
477
+
478
+ export interface PbCom1Spend {
479
+ signature: PbCom1Signature | null;
480
+ seeds: PbCom1Seed[];
481
+ miner_fee_nicks: PbCom1Nicks | null;
233
482
  }
234
483
 
235
484
  /**
236
- * pub struct Hash(pub \\[Belt; 5\\]);
237
- * Use fixed fields to avoid variable-length vectors.
485
+ * pub chal: \\[Belt; 8\\],
486
+ * pub sig: \\[Belt; 8\\],
238
487
  */
239
- export interface PbCom1Hash {
240
- belt_1: PbCom1Belt | undefined;
241
- belt_2: PbCom1Belt | undefined;
242
- belt_3: PbCom1Belt | undefined;
243
- belt_4: PbCom1Belt | undefined;
244
- belt_5: PbCom1Belt | undefined;
488
+ export interface PbCom1EightBelt {
489
+ belt_1: PbCom1Belt | null;
490
+ belt_2: PbCom1Belt | null;
491
+ belt_3: PbCom1Belt | null;
492
+ belt_4: PbCom1Belt | null;
493
+ belt_5: PbCom1Belt | null;
494
+ belt_6: PbCom1Belt | null;
495
+ belt_7: PbCom1Belt | null;
496
+ belt_8: PbCom1Belt | null;
245
497
  }
246
498
 
247
- export interface PbCom1TimeLockIntent {
248
- value: PbCom1TimeLockIntentValue | undefined;
499
+ /**
500
+ * min and max are relative to the note\'s creation page
501
+ */
502
+ export interface PbCom1TimeLockRangeRelative {
503
+ min: PbCom1BlockHeightDelta | null;
504
+ max: PbCom1BlockHeightDelta | null;
249
505
  }
250
506
 
251
- export interface PbCom1Spend {
252
- signature: PbCom1Signature | undefined;
253
- seeds: PbCom1Seed[];
254
- miner_fee_nicks: PbCom1Nicks | undefined;
507
+ export interface PbCom1Lock {
508
+ /**
509
+ * threshold of keys required to spend the note
510
+ */
511
+ keys_required: number;
512
+ /**
513
+ * DEPRECATED: repeated string schnorr_pubkeys_b58 = 2;
514
+ *
515
+ * schnorr pubkeys (curve: cheetah)
516
+ */
517
+ schnorr_pubkeys: PbCom1SchnorrPubkey[];
255
518
  }
256
519
 
257
520
  export interface PbCom1WalletBalanceData {
@@ -268,24 +531,46 @@ export interface PbCom1WalletBalanceData {
268
531
  *
269
532
  * block height where balance was computed
270
533
  */
271
- height: PbCom1BlockHeight | undefined;
534
+ height: PbCom1BlockHeight | null;
272
535
  /**
273
536
  * block where balance was computed
274
537
  */
275
- block_id: PbCom1Hash | undefined;
538
+ block_id: PbCom1Hash | null;
276
539
  /**
277
540
  * Pagination cursor for fetching the next page in a paginated view.
278
541
  * When empty, there are no further results for this snapshot.
279
542
  */
280
- page: PbCom1PageResponse | undefined;
543
+ page: PbCom1PageResponse | null;
281
544
  }
282
545
 
283
- export interface PbCom1Seed {
284
- output_source: PbCom1OutputSource | undefined;
285
- recipient: PbCom1Lock | undefined;
286
- timelock_intent: PbCom1TimeLockIntent | undefined;
287
- gift: PbCom1Nicks | undefined;
288
- parent_hash: string;
546
+ /**
547
+ * pub struct Hash(pub \\[Belt; 5\\]);
548
+ * Use fixed fields to avoid variable-length vectors.
549
+ */
550
+ export interface PbCom1Hash {
551
+ belt_1: PbCom1Belt | null;
552
+ belt_2: PbCom1Belt | null;
553
+ belt_3: PbCom1Belt | null;
554
+ belt_4: PbCom1Belt | null;
555
+ belt_5: PbCom1Belt | null;
556
+ }
557
+
558
+ export interface PbCom1Base58Pubkey {
559
+ key: string;
560
+ }
561
+
562
+ /**
563
+ * Note: prefer using raw numeric fields in messages
564
+ * instead of these wrappers to simplify conversions.
565
+ * These remain defined for potential future use.
566
+ */
567
+ export interface PbCom1NoteVersion {
568
+ value: string;
569
+ }
570
+
571
+ export interface PbCom1BalanceEntry {
572
+ name: PbCom1Name | null;
573
+ note: PbCom1Note | null;
289
574
  }
290
575
 
291
576
  export interface PbCom1Name {
@@ -299,15 +584,42 @@ export interface PbCom1Name {
299
584
  last: string;
300
585
  }
301
586
 
302
- export interface PbCom1BlockHeight {
303
- value: string;
304
- }
587
+ export type PbCom1ErrorCode = "Unspecified" | "InvalidRequest" | "PeekFailed" | "PeekReturnedNoData" | "PokeFailed" | "NackappError" | "Timeout" | "InternalError" | "NotFound" | "PermissionDenied" | "InvalidWire" | "KernelError";
305
588
 
306
589
  /**
307
- * pub struct SchnorrPubkey(pub CheetahPoint);
590
+ * Use this when you want to force the output to not have a timelock
308
591
  */
309
- export interface PbCom1SchnorrPubkey {
310
- value: PbCom1CheetahPoint | undefined;
592
+ export interface PbCom1TimeLockRangeNeither {}
593
+
594
+ export interface PbCom1Note {
595
+ /**
596
+ * page-number when added to balance
597
+ */
598
+ origin_page: PbCom1BlockHeight | null;
599
+ /**
600
+ * enforced timelock
601
+ */
602
+ timelock: PbCom1TimeLockIntent | null;
603
+ /**
604
+ * nname (human/name label)
605
+ */
606
+ name: PbCom1Name | null;
607
+ /**
608
+ * spending condition
609
+ */
610
+ lock: PbCom1Lock | null;
611
+ /**
612
+ * provenance commitment
613
+ */
614
+ source: PbCom1Source | null;
615
+ /**
616
+ * coin amount (nicks)
617
+ */
618
+ assets: PbCom1Nicks | null;
619
+ /**
620
+ * note version (currently 0)
621
+ */
622
+ version: PbCom1NoteVersion | null;
311
623
  }
312
624
 
313
625
  /**
@@ -343,124 +655,66 @@ export interface PbCom1PageRequest {
343
655
  max_bytes: number;
344
656
  }
345
657
 
346
- export interface PbCom1Base58Pubkey {
347
- key: string;
658
+ /**
659
+ * pub struct CheetahPoint {
660
+ * pub x: F6lt,
661
+ * pub y: F6lt,
662
+ * pub inf: bool,
663
+ * }
664
+ */
665
+ export interface PbCom1CheetahPoint {
666
+ x: PbCom1SixBelt | null;
667
+ y: PbCom1SixBelt | null;
668
+ inf: boolean;
348
669
  }
349
670
 
350
- export type PbCom1ErrorCode = "Unspecified" | "InvalidRequest" | "PeekFailed" | "PeekReturnedNoData" | "PokeFailed" | "NackappError" | "Timeout" | "InternalError" | "NotFound" | "PermissionDenied" | "InvalidWire" | "KernelError";
351
-
352
671
  /**
353
- * pub struct F6lt(pub \\[Belt; 6\\]);
672
+ * pub struct Belt(pub u64);
354
673
  */
355
- export interface PbCom1SixBelt {
356
- belt_1: PbCom1Belt | undefined;
357
- belt_2: PbCom1Belt | undefined;
358
- belt_3: PbCom1Belt | undefined;
359
- belt_4: PbCom1Belt | undefined;
360
- belt_5: PbCom1Belt | undefined;
361
- belt_6: PbCom1Belt | undefined;
674
+ export interface PbCom1Belt {
675
+ value: string;
362
676
  }
363
677
 
364
- export interface PbCom1SchnorrSignature {
365
- chal: PbCom1EightBelt | undefined;
366
- sig: PbCom1EightBelt | undefined;
678
+ export interface PbCom1WireTag {
679
+ value: PbCom1WireTagValue | undefined;
367
680
  }
368
681
 
369
- export interface PbCom1Lock {
370
- /**
371
- * threshold of keys required to spend the note
372
- */
373
- keys_required: number;
374
- /**
375
- * DEPRECATED: repeated string schnorr_pubkeys_b58 = 2;
376
- *
377
- * schnorr pubkeys (curve: cheetah)
378
- */
379
- schnorr_pubkeys: PbCom1SchnorrPubkey[];
682
+ export interface PbCom1Signature {
683
+ entries: PbCom1SignatureEntry[];
380
684
  }
381
685
 
382
- export interface PbCom1Source {
383
- hash: string;
384
- coinbase: boolean;
686
+ export interface PbCom1BlockHeight {
687
+ value: string;
385
688
  }
386
689
 
387
- /**
388
- * Use this when you want to force the output to not have a timelock
389
- */
390
- export interface PbCom1TimeLockRangeNeither {}
690
+ export interface PbCom1NamedInput {
691
+ name: PbCom1Name | null;
692
+ input: PbCom1Input | null;
693
+ }
391
694
 
392
695
  /**
393
- * pub chal: \\[Belt; 8\\],
394
- * pub sig: \\[Belt; 8\\],
696
+ * pub struct SchnorrPubkey(pub CheetahPoint);
395
697
  */
396
- export interface PbCom1EightBelt {
397
- belt_1: PbCom1Belt | undefined;
398
- belt_2: PbCom1Belt | undefined;
399
- belt_3: PbCom1Belt | undefined;
400
- belt_4: PbCom1Belt | undefined;
401
- belt_5: PbCom1Belt | undefined;
402
- belt_6: PbCom1Belt | undefined;
403
- belt_7: PbCom1Belt | undefined;
404
- belt_8: PbCom1Belt | undefined;
405
- }
406
-
407
- export interface PbCom1PageResponse {
408
- /**
409
- * Opaque cursor for fetching the next page. Empty when there are no more
410
- * results.
411
- */
412
- next_page_token: string;
413
- }
414
-
415
- export interface PbCom1OutputSource {
416
- source: PbCom1Source | undefined;
417
- }
418
-
419
- export interface PbCom1ErrorStatus {
420
- code: number;
421
- message: string;
422
- /**
423
- * additional error context
424
- */
425
- details: string | undefined;
698
+ export interface PbCom1SchnorrPubkey {
699
+ value: PbCom1CheetahPoint | null;
426
700
  }
427
701
 
428
702
  /**
429
- * pub struct Belt(pub u64);
703
+ * pub struct F6lt(pub \\[Belt; 6\\]);
430
704
  */
431
- export interface PbCom1Belt {
432
- value: string;
705
+ export interface PbCom1SixBelt {
706
+ belt_1: PbCom1Belt | null;
707
+ belt_2: PbCom1Belt | null;
708
+ belt_3: PbCom1Belt | null;
709
+ belt_4: PbCom1Belt | null;
710
+ belt_5: PbCom1Belt | null;
711
+ belt_6: PbCom1Belt | null;
433
712
  }
434
713
 
435
- export interface PbCom1Note {
436
- /**
437
- * page-number when added to balance
438
- */
439
- origin_page: PbCom1BlockHeight | undefined;
440
- /**
441
- * enforced timelock
442
- */
443
- timelock: PbCom1TimeLockIntent | undefined;
444
- /**
445
- * nname (human/name label)
446
- */
447
- name: PbCom1Name | undefined;
448
- /**
449
- * spending condition
450
- */
451
- lock: PbCom1Lock | undefined;
452
- /**
453
- * provenance commitment
454
- */
455
- source: PbCom1Source | undefined;
456
- /**
457
- * coin amount (nicks)
458
- */
459
- assets: PbCom1Nicks | undefined;
460
- /**
461
- * note version (currently 0)
462
- */
463
- version: PbCom1NoteVersion | undefined;
714
+ export interface PbCom1Acknowledged {}
715
+
716
+ export interface PbCom1Nicks {
717
+ value: string;
464
718
  }
465
719
 
466
720
  /**
@@ -469,98 +723,114 @@ export interface PbCom1Note {
469
723
  */
470
724
  export interface PbCom1RawTransaction {
471
725
  named_inputs: PbCom1NamedInput[];
472
- timelock_range: PbCom1TimeLockRangeAbsolute | undefined;
473
- total_fees: PbCom1Nicks | undefined;
726
+ timelock_range: PbCom1TimeLockRangeAbsolute | null;
727
+ total_fees: PbCom1Nicks | null;
474
728
  id: string;
475
729
  }
476
730
 
477
- /**
478
- * min and max are relative to the note\'s creation page
479
- */
480
- export interface PbCom1TimeLockRangeRelative {
481
- min: PbCom1BlockHeightDelta | undefined;
482
- max: PbCom1BlockHeightDelta | undefined;
731
+ export interface PbCom1Seed {
732
+ output_source: PbCom1OutputSource | null;
733
+ recipient: PbCom1Lock | null;
734
+ timelock_intent: PbCom1TimeLockIntent | null;
735
+ gift: PbCom1Nicks | null;
736
+ parent_hash: string;
483
737
  }
484
738
 
485
- export interface PbCom1Nicks {
486
- value: string;
739
+ export interface PbCom1Wire {
740
+ /**
741
+ * e.g., \"http\", \"file\", \"wallet\", \"grpc\
742
+ */
743
+ source: string;
744
+ /**
745
+ * wire format version
746
+ */
747
+ version: number;
748
+ /**
749
+ * operation-specific tags
750
+ */
751
+ tags: PbCom1WireTag[];
752
+ }
753
+
754
+ export interface PbCom1Source {
755
+ hash: string;
756
+ coinbase: boolean;
487
757
  }
488
758
 
489
759
  export interface PbCom1SignatureEntry {
490
760
  /**
491
761
  * serialized pubkey corresponding to the signer
492
762
  */
493
- schnorr_pubkey: PbCom1SchnorrPubkey | undefined;
494
- signature: PbCom1SchnorrSignature | undefined;
763
+ schnorr_pubkey: PbCom1SchnorrPubkey | null;
764
+ signature: PbCom1SchnorrSignature | null;
495
765
  }
496
766
 
497
- /**
498
- * Note: prefer using raw numeric fields in messages
499
- * instead of these wrappers to simplify conversions.
500
- * These remain defined for potential future use.
501
- */
502
- export interface PbCom1NoteVersion {
503
- value: string;
767
+ export interface PbCom1ErrorStatus {
768
+ code: number;
769
+ message: string;
770
+ /**
771
+ * additional error context
772
+ */
773
+ details: string | null;
504
774
  }
505
775
 
506
776
  export interface PbCom1Base58Hash {
507
777
  hash: string;
508
778
  }
509
779
 
510
- /**
511
- * pub struct CheetahPoint {
512
- * pub x: F6lt,
513
- * pub y: F6lt,
514
- * pub inf: bool,
515
- * }
516
- */
517
- export interface PbCom1CheetahPoint {
518
- x: PbCom1SixBelt | undefined;
519
- y: PbCom1SixBelt | undefined;
520
- inf: boolean;
780
+ export interface PbCom1PageResponse {
781
+ /**
782
+ * Opaque cursor for fetching the next page. Empty when there are no more
783
+ * results.
784
+ */
785
+ next_page_token: string;
521
786
  }
522
787
 
523
- export interface PbCom2NoteV1 {
524
- version: PbCom1NoteVersion | undefined;
525
- origin_page: PbCom1BlockHeight | undefined;
526
- name: PbCom1Name | undefined;
527
- note_data: PbCom2NoteData | undefined;
528
- assets: PbCom1Nicks | undefined;
788
+ export interface PbCom1TimeLockIntent {
789
+ value: PbCom1TimeLockIntentValue | undefined;
529
790
  }
530
791
 
531
- export interface PbCom2LockMerkleProof {
532
- spend_condition: PbCom2SpendCondition | undefined;
533
- axis: number;
534
- proof: PbCom2MerkleProof | undefined;
792
+ export interface PbCom1TimeLockRangeAbsoluteAndRelative {
793
+ absolute: PbCom1TimeLockRangeAbsolute | null;
794
+ relative: PbCom1TimeLockRangeRelative | null;
535
795
  }
536
796
 
537
- export interface PbCom2Note {
538
- note_version: PbCom2NoteNoteVersion | undefined;
797
+ export interface PbCom1SchnorrSignature {
798
+ chal: PbCom1EightBelt | null;
799
+ sig: PbCom1EightBelt | null;
539
800
  }
540
801
 
541
- export interface PbCom2Spend {
542
- spend_kind: PbCom2SpendSpendKind | undefined;
802
+ /**
803
+ * min and max are absolute origin page numbers
804
+ */
805
+ export interface PbCom1TimeLockRangeAbsolute {
806
+ min: PbCom1BlockHeight | null;
807
+ max: PbCom1BlockHeight | null;
543
808
  }
544
809
 
545
- export interface PbCom2RawTransaction {
546
- version: PbCom1NoteVersion | undefined;
547
- id: string;
548
- spends: PbCom2SpendEntry[];
810
+ export interface PbCom2LockMerkleProof {
811
+ spend_condition: PbCom2SpendCondition | null;
812
+ axis: number;
813
+ proof: PbCom2MerkleProof | null;
549
814
  }
550
815
 
551
- export interface PbCom2LockTim {
552
- rel: PbCom1TimeLockRangeRelative | undefined;
553
- abs: PbCom1TimeLockRangeAbsolute | undefined;
816
+ export interface PbCom2PkhLock {
817
+ m: number;
818
+ hashes: string[];
554
819
  }
555
820
 
556
- export interface PbCom2WitnessSpend {
557
- witness: PbCom2Witness | undefined;
558
- seeds: PbCom2Seed[];
559
- fee: PbCom1Nicks | undefined;
821
+ export interface PbCom2BalanceEntry {
822
+ name: PbCom1Name | undefined;
823
+ note: PbCom2Note | null;
560
824
  }
561
825
 
562
- export interface PbCom2NoteData {
563
- entries: PbCom2NoteDataEntry[];
826
+ export interface PbCom2SpendCondition {
827
+ primitives: PbCom2LockPrimitive[];
828
+ }
829
+
830
+ export interface PbCom2WitnessSpend {
831
+ witness: PbCom2Witness | null;
832
+ seeds: PbCom2Seed[];
833
+ fee: PbCom1Nicks | undefined;
564
834
  }
565
835
 
566
836
  export interface PbCom2LegacySpend {
@@ -569,9 +839,27 @@ export interface PbCom2LegacySpend {
569
839
  fee: PbCom1Nicks | undefined;
570
840
  }
571
841
 
572
- export interface PbCom2PkhLock {
573
- m: number;
574
- hashes: string[];
842
+ export interface PbCom2PkhSignature {
843
+ entries: PbCom2PkhSignatureEntry[];
844
+ }
845
+
846
+ export interface PbCom2PkhSignatureEntry {
847
+ hash: string;
848
+ pubkey: PbCom1SchnorrPubkey | undefined;
849
+ signature: PbCom1SchnorrSignature | undefined;
850
+ }
851
+
852
+ export interface PbCom2Witness {
853
+ lock_merkle_proof: PbCom2LockMerkleProof | null;
854
+ pkh_signature: PbCom2PkhSignature | null;
855
+ /**
856
+ * uint64 tim = 4; // reserved field, currently 0
857
+ */
858
+ hax: PbCom2HaxPreimage[];
859
+ }
860
+
861
+ export interface PbCom2Spend {
862
+ spend_kind: PbCom2SpendSpendKind | undefined;
575
863
  }
576
864
 
577
865
  export interface PbCom2Seed {
@@ -580,16 +868,17 @@ export interface PbCom2Seed {
580
868
  */
581
869
  output_source: PbCom1Source | undefined;
582
870
  lock_root: string;
583
- note_data: PbCom2NoteData | undefined;
871
+ note_data: PbCom2NoteData | null;
584
872
  gift: PbCom1Nicks | undefined;
585
873
  parent_hash: string;
586
874
  }
587
875
 
588
- export interface PbCom2BurnLock {}
589
-
590
- export interface PbCom2MerkleProof {
591
- root: string;
592
- path: string[];
876
+ export interface PbCom2NoteDataEntry {
877
+ key: string;
878
+ /**
879
+ * jammed noun bytes
880
+ */
881
+ blob: number[];
593
882
  }
594
883
 
595
884
  export interface PbCom2HaxPreimage {
@@ -600,53 +889,47 @@ export interface PbCom2HaxPreimage {
600
889
  value: number[];
601
890
  }
602
891
 
603
- export interface PbCom2Witness {
604
- lock_merkle_proof: PbCom2LockMerkleProof | undefined;
605
- pkh_signature: PbCom2PkhSignature | undefined;
606
- /**
607
- * uint64 tim = 4; // reserved field, currently 0
608
- */
609
- hax: PbCom2HaxPreimage[];
610
- }
611
-
612
- export interface PbCom2SpendCondition {
613
- primitives: PbCom2LockPrimitive[];
892
+ export interface PbCom2LockTim {
893
+ rel: PbCom1TimeLockRangeRelative | undefined;
894
+ abs: PbCom1TimeLockRangeAbsolute | undefined;
614
895
  }
615
896
 
616
- export interface PbCom2PkhSignatureEntry {
617
- hash: string;
618
- pubkey: PbCom1SchnorrPubkey | undefined;
619
- signature: PbCom1SchnorrSignature | undefined;
897
+ export interface PbCom2NoteV1 {
898
+ version: PbCom1NoteVersion | undefined;
899
+ origin_page: PbCom1BlockHeight | undefined;
900
+ name: PbCom1Name | undefined;
901
+ note_data: PbCom2NoteData | null;
902
+ assets: PbCom1Nicks | undefined;
620
903
  }
621
904
 
622
- export interface PbCom2BalanceEntry {
623
- name: PbCom1Name | undefined;
624
- note: PbCom2Note | undefined;
905
+ export interface PbCom2Note {
906
+ note_version: PbCom2NoteNoteVersion | undefined;
625
907
  }
626
908
 
627
- export interface PbCom2SpendEntry {
628
- name: PbCom1Name | undefined;
629
- spend: PbCom2Spend | undefined;
909
+ export interface PbCom2MerkleProof {
910
+ root: string;
911
+ path: string[];
630
912
  }
631
913
 
632
914
  export interface PbCom2HaxLock {
633
915
  hashes: PbCom1Hash[];
634
916
  }
635
917
 
636
- export interface PbCom2NoteDataEntry {
637
- key: string;
638
- /**
639
- * jammed noun bytes
640
- */
641
- blob: number[];
918
+ export interface PbCom2BurnLock {}
919
+
920
+ export interface PbCom2SpendEntry {
921
+ name: PbCom1Name | undefined;
922
+ spend: PbCom2Spend | null;
642
923
  }
643
924
 
644
- export interface PbCom2LockPrimitive {
645
- primitive: PbCom2LockPrimitivePrimitive | undefined;
925
+ export interface PbCom2RawTransaction {
926
+ version: PbCom1NoteVersion | undefined;
927
+ id: string;
928
+ spends: PbCom2SpendEntry[];
646
929
  }
647
930
 
648
- export interface PbCom2PkhSignature {
649
- entries: PbCom2PkhSignatureEntry[];
931
+ export interface PbCom2LockPrimitive {
932
+ primitive: PbCom2LockPrimitivePrimitive | undefined;
650
933
  }
651
934
 
652
935
  export interface PbCom2Balance {
@@ -656,21 +939,19 @@ export interface PbCom2Balance {
656
939
  page: PbCom1PageResponse | undefined;
657
940
  }
658
941
 
659
- export type PbPub2WalletGetBalanceRequestSelector = { Address: PbCom1Base58Pubkey } | { FirstName: PbCom1Base58Hash };
660
-
661
- export interface PbPub2WalletSendTransactionRequest {
662
- tx_id: PbCom1Hash | undefined;
663
- raw_tx: PbCom2RawTransaction | undefined;
664
- }
665
-
666
- export interface PbPub2WalletGetBalanceResponse {
667
- result: PbPub2WalletGetBalanceResponseResult | undefined;
942
+ export interface PbCom2NoteData {
943
+ entries: PbCom2NoteDataEntry[];
668
944
  }
669
945
 
670
946
  export interface PbPub2WalletSendTransactionResponse {
671
947
  result: PbPub2WalletSendTransactionResponseResult | undefined;
672
948
  }
673
949
 
950
+ export interface PbPub2WalletSendTransactionRequest {
951
+ tx_id: PbCom1Hash | undefined;
952
+ raw_tx: PbCom2RawTransaction | undefined;
953
+ }
954
+
674
955
  export interface PbPub2WalletGetBalanceRequest {
675
956
  page: PbCom1PageRequest | undefined;
676
957
  selector: PbPub2WalletGetBalanceRequestSelector | undefined;
@@ -680,16 +961,34 @@ export interface PbPub2TransactionAcceptedResponse {
680
961
  result: PbPub2TransactionAcceptedResponseResult | undefined;
681
962
  }
682
963
 
964
+ export interface PbPub2WalletGetBalanceResponse {
965
+ result: PbPub2WalletGetBalanceResponseResult | undefined;
966
+ }
967
+
683
968
  export interface PbPub2TransactionAcceptedRequest {
684
969
  tx_id: PbCom1Base58Hash | undefined;
685
970
  }
686
971
 
687
972
  export type PbPub2TransactionAcceptedResponseResult = { Accepted: boolean } | { Error: PbCom1ErrorStatus };
688
973
 
689
- export type PbPri1PokeResponseResult = { Acknowledged: boolean } | { Error: PbCom1ErrorStatus };
974
+ export type PbCom2LockPrimitivePrimitive = { Pkh: PbCom2PkhLock } | { Tim: PbCom2LockTim } | { Hax: PbCom2HaxLock } | { Burn: PbCom2BurnLock };
975
+
976
+ export type PbPub2WalletGetBalanceRequestSelector = { Address: PbCom1Base58Pubkey } | { FirstName: PbCom1Base58Hash };
977
+
978
+ export type PbCom2NoteNoteVersion = { Legacy: PbCom1Note } | { V1: PbCom2NoteV1 };
979
+
980
+ export type PbPub2WalletSendTransactionResponseResult = { Ack: PbCom1Acknowledged } | { Error: PbCom1ErrorStatus };
690
981
 
691
982
  export type PbPri1PeekResponseResult = { Data: number[] } | { Error: PbCom1ErrorStatus };
692
983
 
984
+ export type PbCom2SpendSpendKind = { Legacy: PbCom2LegacySpend } | { Witness: PbCom2WitnessSpend };
985
+
986
+ export type PbPri1PokeResponseResult = { Acknowledged: boolean } | { Error: PbCom1ErrorStatus };
987
+
988
+ export interface PbPri1PokeResponse {
989
+ result: PbPri1PokeResponseResult | undefined;
990
+ }
991
+
693
992
  export interface PbPri1PeekResponse {
694
993
  result: PbPri1PeekResponseResult | undefined;
695
994
  }
@@ -709,10 +1008,6 @@ export interface PbPri1PokeRequest {
709
1008
  payload: number[];
710
1009
  }
711
1010
 
712
- export interface PbPri1PokeResponse {
713
- result: PbPri1PokeResponseResult | undefined;
714
- }
715
-
716
1011
  export interface PbPri1PeekRequest {
717
1012
  /**
718
1013
  * process ID for tracking
@@ -724,35 +1019,38 @@ export interface PbPri1PeekRequest {
724
1019
  path: number[];
725
1020
  }
726
1021
 
727
- export type PbCom2NoteNoteVersion = { Legacy: PbCom1Note } | { V1: PbCom2NoteV1 };
728
-
729
1022
  export type PbCom1TimeLockIntentValue = { Absolute: PbCom1TimeLockRangeAbsolute } | { Relative: PbCom1TimeLockRangeRelative } | { AbsoluteAndRelative: PbCom1TimeLockRangeAbsoluteAndRelative } | { Neither: PbCom1TimeLockRangeNeither };
730
1023
 
731
1024
  export type PbCom1WireTagValue = { Text: string } | { Number: number };
732
1025
 
733
- export type PbCom2LockPrimitivePrimitive = { Pkh: PbCom2PkhLock } | { Tim: PbCom2LockTim } | { Hax: PbCom2HaxLock } | { Burn: PbCom2BurnLock };
734
-
735
1026
  export type PbPub2WalletGetBalanceResponseResult = { Balance: PbCom2Balance } | { Error: PbCom1ErrorStatus };
736
1027
 
737
- export type PbCom2SpendSpendKind = { Legacy: PbCom2LegacySpend } | { Witness: PbCom2WitnessSpend };
738
-
739
- export type PbPub2WalletSendTransactionResponseResult = { Ack: PbCom1Acknowledged } | { Error: PbCom1ErrorStatus };
740
-
741
- export type LockPrimitive = { Pkh: Pkh } | { Tim: LockTim } | { Hax: Hax } | "Brn";
1028
+ export interface MerkleProof {
1029
+ root: Digest;
1030
+ path: Digest[];
1031
+ }
742
1032
 
743
1033
  export interface Witness {
744
1034
  lock_merkle_proof: LockMerkleProof;
745
1035
  pkh_signature: PkhSignature;
746
1036
  hax_map: ZMap<Digest, Noun>;
747
- tim: undefined;
1037
+ tim: null;
748
1038
  }
749
1039
 
750
- export interface SeedV1 {
751
- output_source: Source | undefined;
752
- lock_root: LockRoot;
753
- note_data: NoteData;
754
- gift: Nicks;
755
- parent_hash: Digest;
1040
+ export type SpendsV1 = ZMap<Name, SpendV1>;
1041
+
1042
+ export type InputDisplay = { version: 0; p: ZMap<Name, Sig> } | { version: 1; p: ZMap<Name, SpendCondition> };
1043
+
1044
+ export type LockPrimitive = { Pkh: Pkh } | { Tim: LockTim } | { Hax: Hax } | "Brn";
1045
+
1046
+ export type SpendV1 = { version: 0; spend: Spend0V1 } | { version: 1; spend: Spend1V1 };
1047
+
1048
+ export type NoteData = ZMap<string, Noun>;
1049
+
1050
+ export interface Spend1V1 {
1051
+ witness: Witness;
1052
+ seeds: SeedsV1;
1053
+ fee: Nicks;
756
1054
  }
757
1055
 
758
1056
  export interface NoteV1 {
@@ -763,28 +1061,40 @@ export interface NoteV1 {
763
1061
  assets: Nicks;
764
1062
  }
765
1063
 
1064
+ export interface Pkh {
1065
+ m: number;
1066
+ hashes: ZSet<Digest>;
1067
+ }
1068
+
1069
+ export type PkhSignature = ZMap<Digest, [PublicKey, Signature]>;
1070
+
1071
+ export type LockRoot = { Hash: Digest } | { Lock: SpendCondition };
1072
+
1073
+ export type SpendCondition = LockPrimitive[];
1074
+
1075
+ export interface LockMetadata {
1076
+ lock: SpendCondition;
1077
+ include_data: boolean;
1078
+ }
1079
+
766
1080
  export interface Spend0V1 {
767
1081
  signature: LegacySignature;
768
1082
  seeds: SeedsV1;
769
1083
  fee: Nicks;
770
1084
  }
771
1085
 
772
- export type NoteData = ZMap<string, Noun>;
773
-
774
- export type LockRoot = { Hash: Digest } | { Lock: SpendCondition };
775
-
776
1086
  export interface LockMerkleProof {
777
1087
  spend_condition: SpendCondition;
778
1088
  axis: number;
779
1089
  proof: MerkleProof;
780
1090
  }
781
1091
 
782
- export interface Pkh {
783
- m: number;
784
- hashes: ZSet<Digest>;
785
- }
1092
+ export type Hax = ZSet<Digest>;
786
1093
 
787
- export type SpendCondition = LockPrimitive[];
1094
+ export interface TransactionDisplay {
1095
+ inputs: InputDisplay;
1096
+ outputs: ZMap<Digest, LockMetadata>;
1097
+ }
788
1098
 
789
1099
  export interface NockchainTx {
790
1100
  version: Version;
@@ -794,47 +1104,24 @@ export interface NockchainTx {
794
1104
  witness_data: WitnessData;
795
1105
  }
796
1106
 
797
- export interface Spend1V1 {
798
- witness: Witness;
799
- seeds: SeedsV1;
800
- fee: Nicks;
1107
+ export interface WitnessData {
1108
+ data: ZMap<Name, Witness>;
801
1109
  }
802
1110
 
1111
+ export type SeedsV1 = ZSet<SeedV1>;
1112
+
803
1113
  export interface RawTxV1 {
804
1114
  version: 1;
805
1115
  id: TxId;
806
1116
  spends: SpendsV1;
807
1117
  }
808
1118
 
809
- export type InputDisplay = { version: 0; p: ZMap<Name, Sig> } | { version: 1; p: ZMap<Name, SpendCondition> };
810
-
811
- export type SeedsV1 = ZSet<SeedV1>;
812
-
813
- export interface LockMetadata {
814
- lock: SpendCondition;
815
- include_data: boolean;
816
- }
817
-
818
- export type SpendV1 = { version: 0; spend: Spend0V1 } | { version: 1; spend: Spend1V1 };
819
-
820
- export interface WitnessData {
821
- data: ZMap<Name, Witness>;
822
- }
823
-
824
- export type SpendsV1 = ZMap<Name, SpendV1>;
825
-
826
- export type PkhSignature = ZMap<Digest, [PublicKey, Signature]>;
827
-
828
- export interface TransactionDisplay {
829
- inputs: InputDisplay;
830
- outputs: ZMap<Digest, LockMetadata>;
831
- }
832
-
833
- export type Hax = ZSet<Digest>;
834
-
835
- export interface MerkleProof {
836
- root: Digest;
837
- path: Digest[];
1119
+ export interface SeedV1 {
1120
+ output_source: Source | null;
1121
+ lock_root: LockRoot;
1122
+ note_data: NoteData;
1123
+ gift: Nicks;
1124
+ parent_hash: Digest;
838
1125
  }
839
1126
 
840
1127
  export interface TxEngineSettings {
@@ -847,6 +1134,14 @@ export interface TxEngineSettings {
847
1134
 
848
1135
  export type RawTx = RawTxV0 | RawTxV1;
849
1136
 
1137
+ export interface SeedV0 {
1138
+ output_source: Source | null;
1139
+ recipient: Sig;
1140
+ timelock_intent: TimelockIntent;
1141
+ gift: Nicks;
1142
+ parent_hash: Digest;
1143
+ }
1144
+
850
1145
  export interface NoteV0 {
851
1146
  inner: NoteInner;
852
1147
  name: Name;
@@ -855,27 +1150,15 @@ export interface NoteV0 {
855
1150
  assets: Nicks;
856
1151
  }
857
1152
 
858
- export interface Input {
859
- note: NoteV0;
860
- spend: SpendV0;
861
- }
862
-
863
- export interface RawTxV0 {
864
- id: TxId;
865
- inputs: Inputs;
866
- timelock_range: TimelockRange;
867
- total_fees: Nicks;
1153
+ export interface SpendV0 {
1154
+ signature: LegacySignature | null;
1155
+ seeds: SeedsV0;
1156
+ fee: Nicks;
868
1157
  }
869
1158
 
870
- export interface SeedV0 {
871
- output_source: Source | undefined;
872
- recipient: Sig;
873
- timelock_intent: TimelockIntent;
874
- gift: Nicks;
875
- parent_hash: Digest;
876
- }
1159
+ export type Inputs = ZMap<Name, Input>;
877
1160
 
878
- export type LegacySignature = ZMap<PublicKey, Signature>;
1161
+ export type SeedsV0 = ZSet<SeedV0>;
879
1162
 
880
1163
  export interface NoteInner {
881
1164
  version: Version;
@@ -883,19 +1166,11 @@ export interface NoteInner {
883
1166
  timelock: TimelockIntent;
884
1167
  }
885
1168
 
886
- export interface Timelock {
887
- rel: TimelockRange;
888
- abs: TimelockRange;
889
- }
890
-
891
- export interface TimelockIntent {
892
- tim: Timelock | undefined;
893
- }
894
-
895
- export interface SpendV0 {
896
- signature: LegacySignature | undefined;
897
- seeds: SeedsV0;
898
- fee: Nicks;
1169
+ export interface RawTxV0 {
1170
+ id: TxId;
1171
+ inputs: Inputs;
1172
+ timelock_range: TimelockRange;
1173
+ total_fees: Nicks;
899
1174
  }
900
1175
 
901
1176
  export interface Sig {
@@ -903,22 +1178,23 @@ export interface Sig {
903
1178
  pubkeys: ZSet<PublicKey>;
904
1179
  }
905
1180
 
906
- export type SeedsV0 = ZSet<SeedV0>;
1181
+ export interface Input {
1182
+ note: NoteV0;
1183
+ spend: SpendV0;
1184
+ }
907
1185
 
908
- export type Inputs = ZMap<Name, Input>;
1186
+ export interface Timelock {
1187
+ rel: TimelockRange;
1188
+ abs: TimelockRange;
1189
+ }
909
1190
 
910
- /**
911
- * 64-bit unsigned integer representing the number of assets.
912
- */
913
- export type Nicks = string;
1191
+ export type LegacySignature = ZMap<PublicKey, Signature>;
914
1192
 
915
- export interface Name {
916
- first: Digest;
917
- last: Digest;
918
- _sig: number;
1193
+ export interface TimelockIntent {
1194
+ tim: Timelock | null;
919
1195
  }
920
1196
 
921
- export type Version = 0 | 1 | 2;
1197
+ export type MissingUnlocks = { Pkh: { num_sigs: number; sig_of: Digest[] } } | { Hax: { preimages_for: Digest[] } } | "Brn" | { Sig: { num_sigs: number; sig_of: PublicKey[] } };
922
1198
 
923
1199
  export interface BalanceUpdate {
924
1200
  height: BlockHeight;
@@ -926,48 +1202,76 @@ export interface BalanceUpdate {
926
1202
  notes: Balance;
927
1203
  }
928
1204
 
1205
+ export type Note = NoteV0 | NoteV1;
1206
+
1207
+ export interface Source {
1208
+ hash: Digest;
1209
+ is_coinbase: boolean;
1210
+ }
1211
+
929
1212
  /**
930
1213
  * Timelock range (for both absolute and relative constraints)
931
1214
  */
932
1215
  export interface TimelockRange {
933
- min: BlockHeight | undefined;
934
- max: BlockHeight | undefined;
1216
+ min: BlockHeight | null;
1217
+ max: BlockHeight | null;
935
1218
  }
936
1219
 
937
- export type Note = NoteV0 | NoteV1;
1220
+ /**
1221
+ * 64-bit unsigned integer representing the number of assets.
1222
+ */
1223
+ export type Nicks = string;
938
1224
 
939
1225
  export type Balance = ZMap<Name, Note>;
940
1226
 
941
- export interface Source {
942
- hash: Digest;
943
- is_coinbase: boolean;
1227
+ export interface Name {
1228
+ first: Digest;
1229
+ last: Digest;
1230
+ _sig: number;
944
1231
  }
945
1232
 
946
- export type MissingUnlocks = { Pkh: { num_sigs: number; sig_of: Digest[] } } | { Hax: { preimages_for: Digest[] } } | "Brn" | { Sig: { num_sigs: number; sig_of: PublicKey[] } };
1233
+ export type Version = 0 | 1 | 2;
1234
+
1235
+ export type PublicKey = CheetahPoint;
947
1236
 
948
1237
  export interface Signature {
949
- c: Uint8Array;
950
- s: Uint8Array;
1238
+ /**
1239
+ * Challenge part in little-endian hex
1240
+ */
1241
+ c: string;
1242
+ /**
1243
+ * Signature scalar in little-endian hex
1244
+ */
1245
+ s: string;
951
1246
  }
952
1247
 
953
- export type PublicKey = CheetahPoint;
954
-
1248
+ /**
1249
+ * Nock-native data structure
1250
+ *
1251
+ * A Noun is an Atom or a Cell.
1252
+ *
1253
+ * A Cell is a pair of Nouns.
1254
+ *
1255
+ * An Atom is a natural number.
1256
+ *
1257
+ * Specific to iris, serialized atoms are encoded as little-endian hex strings.
1258
+ */
955
1259
  export type Noun = string | [Noun];
956
1260
 
957
1261
  export type CheetahPoint = string;
958
1262
 
959
1263
  export type Digest = string;
960
1264
 
1265
+ export type ZSet<T> = ZBase<ZSetEntry<T>>;
1266
+
1267
+ export type ZSetEntry<T> = T;
1268
+
961
1269
  export type ZMap<K, V> = ZBase<ZMapEntry<K, V>>;
962
1270
 
963
1271
  export type ZMapEntry<K, V> = [K, V];
964
1272
 
965
1273
  export type ZBase<E> = E[];
966
1274
 
967
- export type ZSet<T> = ZBase<ZSetEntry<T>>;
968
-
969
- export type ZSetEntry<T> = T;
970
-
971
1275
  export class ExtendedKey {
972
1276
  private constructor();
973
1277
  free(): void;
@@ -1083,6 +1387,18 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
1083
1387
 
1084
1388
  export interface InitOutput {
1085
1389
  readonly memory: WebAssembly.Memory;
1390
+ readonly __wbg_extendedkey_free: (a: number, b: number) => void;
1391
+ readonly deriveMasterKey: (a: number, b: number) => number;
1392
+ readonly deriveMasterKeyFromMnemonic: (a: number, b: number, c: number, d: number) => [number, number, number];
1393
+ readonly extendedkey_chainCode: (a: number) => [number, number];
1394
+ readonly extendedkey_deriveChild: (a: number, b: number) => [number, number, number];
1395
+ readonly extendedkey_privateKey: (a: number) => [number, number];
1396
+ readonly extendedkey_publicKey: (a: number) => [number, number];
1397
+ readonly hashNoun: (a: number, b: number) => [number, number, number, number];
1398
+ readonly hashPublicKey: (a: number, b: number) => [number, number, number, number];
1399
+ readonly hashU64: (a: bigint) => [number, number];
1400
+ readonly signMessage: (a: number, b: number, c: number, d: number) => [number, number, number];
1401
+ readonly verifySignature: (a: number, b: number, c: any, d: number, e: number) => [number, number, number];
1086
1402
  readonly __wbg_grpcclient_free: (a: number, b: number) => void;
1087
1403
  readonly atom_to_belts: (a: any) => [number, number, number];
1088
1404
  readonly belts_to_atom: (a: any) => [number, number, number];
@@ -1138,18 +1454,6 @@ export interface InitOutput {
1138
1454
  readonly txbuilder_simpleSpend: (a: number, b: number, c: number, d: number, e: number, f: any, g: any, h: number, i: any, j: number) => [number, number];
1139
1455
  readonly txbuilder_spend: (a: number, b: number) => number;
1140
1456
  readonly txbuilder_validate: (a: number) => [number, number];
1141
- readonly __wbg_extendedkey_free: (a: number, b: number) => void;
1142
- readonly deriveMasterKey: (a: number, b: number) => number;
1143
- readonly deriveMasterKeyFromMnemonic: (a: number, b: number, c: number, d: number) => [number, number, number];
1144
- readonly extendedkey_chainCode: (a: number) => [number, number];
1145
- readonly extendedkey_deriveChild: (a: number, b: number) => [number, number, number];
1146
- readonly extendedkey_privateKey: (a: number) => [number, number];
1147
- readonly extendedkey_publicKey: (a: number) => [number, number];
1148
- readonly hashNoun: (a: number, b: number) => [number, number, number, number];
1149
- readonly hashPublicKey: (a: number, b: number) => [number, number, number, number];
1150
- readonly hashU64: (a: bigint) => [number, number];
1151
- readonly signMessage: (a: number, b: number, c: number, d: number) => [number, number, number];
1152
- readonly verifySignature: (a: number, b: number, c: any, d: number, e: number) => [number, number, number];
1153
1457
  readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
1154
1458
  readonly intounderlyingsource_cancel: (a: number) => void;
1155
1459
  readonly intounderlyingsource_pull: (a: number, b: any) => any;
@@ -1163,18 +1467,70 @@ export interface InitOutput {
1163
1467
  readonly intounderlyingsink_abort: (a: number, b: any) => any;
1164
1468
  readonly intounderlyingsink_close: (a: number) => any;
1165
1469
  readonly intounderlyingsink_write: (a: number, b: any) => any;
1470
+ readonly lockMetadataFromNoun: (a: any) => [number, number, number];
1471
+ readonly lockMetadataHash: (a: any) => any;
1472
+ readonly lockMetadataToNoun: (a: any) => any;
1473
+ readonly versionFromNoun: (a: any) => [number, number, number];
1474
+ readonly versionHash: (a: any) => any;
1475
+ readonly versionToNoun: (a: any) => any;
1476
+ readonly witnessDataFromNoun: (a: any) => [number, number, number];
1477
+ readonly witnessDataToNoun: (a: any) => any;
1166
1478
  readonly haxFromNoun: (a: any) => [number, number, number];
1167
1479
  readonly haxHash: (a: any) => any;
1168
1480
  readonly haxToNoun: (a: any) => any;
1481
+ readonly legacySignatureFromNoun: (a: any) => [number, number, number];
1482
+ readonly legacySignatureHash: (a: any) => any;
1483
+ readonly legacySignatureToNoun: (a: any) => any;
1484
+ readonly lockMerkleProofFromNoun: (a: any) => [number, number, number];
1485
+ readonly lockMerkleProofHash: (a: any) => any;
1486
+ readonly lockMerkleProofToNoun: (a: any) => any;
1487
+ readonly lockPrimitiveFromNoun: (a: any) => [number, number, number];
1488
+ readonly lockPrimitiveHash: (a: any) => any;
1489
+ readonly lockPrimitiveToNoun: (a: any) => any;
1490
+ readonly lockRootFromNoun: (a: any) => [number, number, number];
1491
+ readonly lockRootHash: (a: any) => any;
1492
+ readonly lockRootToNoun: (a: any) => any;
1493
+ readonly nameFromNoun: (a: any) => [number, number, number];
1494
+ readonly nameHash: (a: any) => any;
1495
+ readonly nameToNoun: (a: any) => any;
1496
+ readonly noteV1FromNoun: (a: any) => [number, number, number];
1497
+ readonly noteV1Hash: (a: any) => any;
1498
+ readonly noteV1ToNoun: (a: any) => any;
1499
+ readonly pkhFromNoun: (a: any) => [number, number, number];
1500
+ readonly pkhHash: (a: any) => any;
1501
+ readonly pkhToNoun: (a: any) => any;
1502
+ readonly seedV1FromNoun: (a: any) => [number, number, number];
1503
+ readonly seedV1Hash: (a: any) => any;
1504
+ readonly seedV1ToNoun: (a: any) => any;
1505
+ readonly seedsV1FromNoun: (a: any) => [number, number, number];
1506
+ readonly seedsV1Hash: (a: any) => any;
1507
+ readonly seedsV1ToNoun: (a: any) => any;
1508
+ readonly spendConditionFromNoun: (a: any) => [number, number, number];
1509
+ readonly spendConditionHash: (a: any) => any;
1510
+ readonly spendConditionToNoun: (a: any) => any;
1511
+ readonly timelockIntentFromNoun: (a: any) => [number, number, number];
1512
+ readonly timelockIntentHash: (a: any) => any;
1513
+ readonly timelockIntentToNoun: (a: any) => any;
1514
+ readonly inputDisplayFromNoun: (a: any) => [number, number, number];
1515
+ readonly inputDisplayToNoun: (a: any) => any;
1516
+ readonly rawTxV0FromNoun: (a: any) => [number, number, number];
1517
+ readonly rawTxV0ToNoun: (a: any) => any;
1518
+ readonly timelockRangeFromNoun: (a: any) => [number, number, number];
1519
+ readonly timelockRangeHash: (a: any) => any;
1520
+ readonly timelockRangeToNoun: (a: any) => any;
1521
+ readonly balanceFromNoun: (a: any) => [number, number, number];
1522
+ readonly balanceToNoun: (a: any) => any;
1523
+ readonly balanceUpdateFromNoun: (a: any) => [number, number, number];
1524
+ readonly balanceUpdateToNoun: (a: any) => any;
1169
1525
  readonly inputFromNoun: (a: any) => [number, number, number];
1170
1526
  readonly inputHash: (a: any) => any;
1171
1527
  readonly inputToNoun: (a: any) => any;
1172
1528
  readonly inputsFromNoun: (a: any) => [number, number, number];
1173
1529
  readonly inputsHash: (a: any) => any;
1174
1530
  readonly inputsToNoun: (a: any) => any;
1175
- readonly lockRootFromNoun: (a: any) => [number, number, number];
1176
- readonly lockRootHash: (a: any) => any;
1177
- readonly lockRootToNoun: (a: any) => any;
1531
+ readonly merkleProofFromNoun: (a: any) => [number, number, number];
1532
+ readonly merkleProofHash: (a: any) => any;
1533
+ readonly merkleProofToNoun: (a: any) => any;
1178
1534
  readonly nockchainTxFromNoun: (a: any) => [number, number, number];
1179
1535
  readonly nockchainTxToNoun: (a: any) => any;
1180
1536
  readonly noteDataFromNoun: (a: any) => [number, number, number];
@@ -1182,27 +1538,27 @@ export interface InitOutput {
1182
1538
  readonly noteDataToNoun: (a: any) => any;
1183
1539
  readonly noteFromNoun: (a: any) => [number, number, number];
1184
1540
  readonly noteHash: (a: any) => any;
1185
- readonly noteInnerFromNoun: (a: any) => [number, number, number];
1186
- readonly noteInnerHash: (a: any) => any;
1187
- readonly noteInnerToNoun: (a: any) => any;
1188
1541
  readonly noteToNoun: (a: any) => any;
1189
- readonly noteV1FromNoun: (a: any) => [number, number, number];
1190
- readonly noteV1Hash: (a: any) => any;
1191
- readonly noteV1ToNoun: (a: any) => any;
1542
+ readonly noteV0FromNoun: (a: any) => [number, number, number];
1543
+ readonly noteV0Hash: (a: any) => any;
1544
+ readonly noteV0ToNoun: (a: any) => any;
1192
1545
  readonly pkhSignatureFromNoun: (a: any) => [number, number, number];
1193
1546
  readonly pkhSignatureHash: (a: any) => any;
1194
1547
  readonly pkhSignatureToNoun: (a: any) => any;
1195
1548
  readonly rawTxV1FromNoun: (a: any) => [number, number, number];
1196
1549
  readonly rawTxV1ToNoun: (a: any) => any;
1197
- readonly seedV1FromNoun: (a: any) => [number, number, number];
1198
- readonly seedV1Hash: (a: any) => any;
1199
- readonly seedV1ToNoun: (a: any) => any;
1550
+ readonly seedV0FromNoun: (a: any) => [number, number, number];
1551
+ readonly seedV0Hash: (a: any) => any;
1552
+ readonly seedV0ToNoun: (a: any) => any;
1200
1553
  readonly seedsV0FromNoun: (a: any) => [number, number, number];
1201
1554
  readonly seedsV0Hash: (a: any) => any;
1202
1555
  readonly seedsV0ToNoun: (a: any) => any;
1203
- readonly seedsV1FromNoun: (a: any) => [number, number, number];
1204
- readonly seedsV1Hash: (a: any) => any;
1205
- readonly seedsV1ToNoun: (a: any) => any;
1556
+ readonly sigFromNoun: (a: any) => [number, number, number];
1557
+ readonly sigHash: (a: any) => any;
1558
+ readonly sigToNoun: (a: any) => any;
1559
+ readonly sourceFromNoun: (a: any) => [number, number, number];
1560
+ readonly sourceHash: (a: any) => any;
1561
+ readonly sourceToNoun: (a: any) => any;
1206
1562
  readonly spendV0FromNoun: (a: any) => [number, number, number];
1207
1563
  readonly spendV0Hash: (a: any) => any;
1208
1564
  readonly spendV0ToNoun: (a: any) => any;
@@ -1212,69 +1568,17 @@ export interface InitOutput {
1212
1568
  readonly spendsV1FromNoun: (a: any) => [number, number, number];
1213
1569
  readonly spendsV1Hash: (a: any) => any;
1214
1570
  readonly spendsV1ToNoun: (a: any) => any;
1215
- readonly witnessFromNoun: (a: any) => [number, number, number];
1216
- readonly witnessHash: (a: any) => any;
1217
- readonly witnessToNoun: (a: any) => any;
1218
- readonly lockPrimitiveFromNoun: (a: any) => [number, number, number];
1219
- readonly lockPrimitiveHash: (a: any) => any;
1220
- readonly lockPrimitiveToNoun: (a: any) => any;
1221
- readonly merkleProofFromNoun: (a: any) => [number, number, number];
1222
- readonly merkleProofHash: (a: any) => any;
1223
- readonly merkleProofToNoun: (a: any) => any;
1224
- readonly versionFromNoun: (a: any) => [number, number, number];
1225
- readonly versionHash: (a: any) => any;
1226
- readonly versionToNoun: (a: any) => any;
1227
- readonly sigFromNoun: (a: any) => [number, number, number];
1228
- readonly sigHash: (a: any) => any;
1229
- readonly sigToNoun: (a: any) => any;
1230
- readonly timelockIntentFromNoun: (a: any) => [number, number, number];
1231
- readonly timelockIntentHash: (a: any) => any;
1232
- readonly timelockIntentToNoun: (a: any) => any;
1233
- readonly legacySignatureFromNoun: (a: any) => [number, number, number];
1234
- readonly legacySignatureHash: (a: any) => any;
1235
- readonly legacySignatureToNoun: (a: any) => any;
1236
- readonly nameFromNoun: (a: any) => [number, number, number];
1237
- readonly nameHash: (a: any) => any;
1238
- readonly nameToNoun: (a: any) => any;
1239
- readonly sourceFromNoun: (a: any) => [number, number, number];
1240
- readonly sourceHash: (a: any) => any;
1241
- readonly sourceToNoun: (a: any) => any;
1242
- readonly lockMetadataFromNoun: (a: any) => [number, number, number];
1243
- readonly lockMetadataHash: (a: any) => any;
1244
- readonly lockMetadataToNoun: (a: any) => any;
1245
- readonly noteV0FromNoun: (a: any) => [number, number, number];
1246
- readonly noteV0Hash: (a: any) => any;
1247
- readonly noteV0ToNoun: (a: any) => any;
1248
- readonly pkhFromNoun: (a: any) => [number, number, number];
1249
- readonly pkhHash: (a: any) => any;
1250
- readonly pkhToNoun: (a: any) => any;
1251
- readonly timelockRangeFromNoun: (a: any) => [number, number, number];
1252
- readonly timelockRangeHash: (a: any) => any;
1253
- readonly timelockRangeToNoun: (a: any) => any;
1254
- readonly witnessDataFromNoun: (a: any) => [number, number, number];
1255
- readonly witnessDataToNoun: (a: any) => any;
1256
- readonly balanceFromNoun: (a: any) => [number, number, number];
1257
- readonly balanceToNoun: (a: any) => any;
1258
- readonly balanceUpdateFromNoun: (a: any) => [number, number, number];
1259
- readonly balanceUpdateToNoun: (a: any) => any;
1260
- readonly inputDisplayFromNoun: (a: any) => [number, number, number];
1261
- readonly inputDisplayToNoun: (a: any) => any;
1262
- readonly lockMerkleProofFromNoun: (a: any) => [number, number, number];
1263
- readonly lockMerkleProofHash: (a: any) => any;
1264
- readonly lockMerkleProofToNoun: (a: any) => any;
1265
- readonly rawTxV0FromNoun: (a: any) => [number, number, number];
1266
- readonly rawTxV0ToNoun: (a: any) => any;
1267
- readonly seedV0FromNoun: (a: any) => [number, number, number];
1268
- readonly seedV0Hash: (a: any) => any;
1269
- readonly seedV0ToNoun: (a: any) => any;
1270
- readonly spendConditionFromNoun: (a: any) => [number, number, number];
1271
- readonly spendConditionHash: (a: any) => any;
1272
- readonly spendConditionToNoun: (a: any) => any;
1273
1571
  readonly timelockFromNoun: (a: any) => [number, number, number];
1274
1572
  readonly timelockHash: (a: any) => any;
1275
1573
  readonly timelockToNoun: (a: any) => any;
1276
1574
  readonly transactionDisplayFromNoun: (a: any) => [number, number, number];
1277
1575
  readonly transactionDisplayToNoun: (a: any) => any;
1576
+ readonly witnessFromNoun: (a: any) => [number, number, number];
1577
+ readonly witnessHash: (a: any) => any;
1578
+ readonly witnessToNoun: (a: any) => any;
1579
+ readonly noteInnerFromNoun: (a: any) => [number, number, number];
1580
+ readonly noteInnerHash: (a: any) => any;
1581
+ readonly noteInnerToNoun: (a: any) => any;
1278
1582
  readonly digestFromNoun: (a: any) => [number, number, number];
1279
1583
  readonly digestHash: (a: any) => any;
1280
1584
  readonly digestToNoun: (a: any) => any;
@@ -1286,8 +1590,8 @@ export interface InitOutput {
1286
1590
  readonly __wbindgen_exn_store: (a: number) => void;
1287
1591
  readonly __externref_table_alloc: () => number;
1288
1592
  readonly __wbindgen_externrefs: WebAssembly.Table;
1289
- readonly __externref_table_dealloc: (a: number) => void;
1290
1593
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
1594
+ readonly __externref_table_dealloc: (a: number) => void;
1291
1595
  readonly __externref_drop_slice: (a: number, b: number) => void;
1292
1596
  readonly __wbindgen_start: () => void;
1293
1597
  }