@xyo-network/wallet-model 5.3.30 → 5.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -38,449 +38,6 @@ bun add {{name}}
38
38
 
39
39
  See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
40
40
 
41
- ## Reference
42
-
43
- ### packages
44
-
45
- ### protocol
46
-
47
- ### packages
48
-
49
- ### crypto
50
-
51
- ### packages
52
-
53
- ### wallet-model
54
-
55
- ### .temp-typedoc
56
-
57
- ### interfaces
58
-
59
- ### <a id="WalletInstance"></a>WalletInstance
60
-
61
- [**@xyo-network/wallet-model**](#../README)
62
-
63
- ***
64
-
65
- ## Extends
66
-
67
- - `AccountInstance`
68
-
69
- ## Properties
70
-
71
- ### address
72
-
73
- ```ts
74
- readonly address: BrandedAddress;
75
- ```
76
-
77
- ### Inherited from
78
-
79
- ```ts
80
- AccountInstance.address
81
- ```
82
-
83
- ***
84
-
85
- ### addressBytes
86
-
87
- ```ts
88
- readonly addressBytes: ArrayBufferLike;
89
- ```
90
-
91
- ### Inherited from
92
-
93
- ```ts
94
- AccountInstance.addressBytes
95
- ```
96
-
97
- ***
98
-
99
- ### previousHash
100
-
101
- ```ts
102
- previousHash: BrandedHash | undefined;
103
- ```
104
-
105
- ### Inherited from
106
-
107
- ```ts
108
- AccountInstance.previousHash
109
- ```
110
-
111
- ***
112
-
113
- ### previousHashBytes
114
-
115
- ```ts
116
- previousHashBytes: ArrayBufferLike | undefined;
117
- ```
118
-
119
- ### Inherited from
120
-
121
- ```ts
122
- AccountInstance.previousHashBytes
123
- ```
124
-
125
- ***
126
-
127
- ### private?
128
-
129
- ```ts
130
- readonly optional private?: PrivateKeyInstance;
131
- ```
132
-
133
- ### Inherited from
134
-
135
- ```ts
136
- AccountInstance.private
137
- ```
138
-
139
- ***
140
-
141
- ### public?
142
-
143
- ```ts
144
- readonly optional public?: PublicKeyInstance;
145
- ```
146
-
147
- ### Inherited from
148
-
149
- ```ts
150
- AccountInstance.public
151
- ```
152
-
153
- ***
154
-
155
- ### sign
156
-
157
- ```ts
158
- sign: (hash, previousHash?) => Promise<[ArrayBufferLike, BrandedHash?]>;
159
- ```
160
-
161
- ### Parameters
162
-
163
- #### hash
164
-
165
- `ArrayBufferLike`
166
-
167
- #### previousHash?
168
-
169
- `ArrayBufferLike`
170
-
171
- ### Returns
172
-
173
- `Promise`\<\[`ArrayBufferLike`, `BrandedHash`?\]\>
174
-
175
- ### Inherited from
176
-
177
- ```ts
178
- AccountInstance.sign
179
- ```
180
-
181
- ***
182
-
183
- ### verify
184
-
185
- ```ts
186
- verify: (msg, signature) => Promise<boolean>;
187
- ```
188
-
189
- ### Parameters
190
-
191
- #### msg
192
-
193
- `ArrayBufferLike`
194
-
195
- #### signature
196
-
197
- `ArrayBufferLike`
198
-
199
- ### Returns
200
-
201
- `Promise`\<`boolean`\>
202
-
203
- ### Inherited from
204
-
205
- ```ts
206
- AccountInstance.verify
207
- ```
208
-
209
- ***
210
-
211
- ### chainCode
212
-
213
- ```ts
214
- readonly chainCode: string;
215
- ```
216
-
217
- ***
218
-
219
- ### depth
220
-
221
- ```ts
222
- readonly depth: number;
223
- ```
224
-
225
- ***
226
-
227
- ### derivePath
228
-
229
- ```ts
230
- readonly derivePath: (path) => Promise<WalletInstance>;
231
- ```
232
-
233
- ### Parameters
234
-
235
- #### path
236
-
237
- `string`
238
-
239
- ### Returns
240
-
241
- `Promise`\<`WalletInstance`\>
242
-
243
- ***
244
-
245
- ### extendedKey
246
-
247
- ```ts
248
- readonly extendedKey: string;
249
- ```
250
-
251
- ***
252
-
253
- ### fingerprint
254
-
255
- ```ts
256
- readonly fingerprint: string;
257
- ```
258
-
259
- ***
260
-
261
- ### index
262
-
263
- ```ts
264
- readonly index: number;
265
- ```
266
-
267
- ***
268
-
269
- ### mnemonic?
270
-
271
- ```ts
272
- readonly optional mnemonic?: MnemonicInstance | null;
273
- ```
274
-
275
- ***
276
-
277
- ### neuter
278
-
279
- ```ts
280
- readonly neuter: () => WalletInstance;
281
- ```
282
-
283
- ### Returns
284
-
285
- `WalletInstance`
286
-
287
- ***
288
-
289
- ### parentFingerprint
290
-
291
- ```ts
292
- readonly parentFingerprint: string;
293
- ```
294
-
295
- ***
296
-
297
- ### path
298
-
299
- ```ts
300
- readonly path: string | null;
301
- ```
302
-
303
- ***
304
-
305
- ### privateKey
306
-
307
- ```ts
308
- readonly privateKey: BrandedHex;
309
- ```
310
-
311
- ***
312
-
313
- ### publicKey
314
-
315
- ```ts
316
- readonly publicKey: BrandedHex;
317
- ```
318
-
319
- ### <a id="WalletStatic"></a>WalletStatic
320
-
321
- [**@xyo-network/wallet-model**](#../README)
322
-
323
- ***
324
-
325
- ## Extends
326
-
327
- - `Omit`\<`AccountStatic`\<`T`\>, `"create"`\>
328
-
329
- ## Type Parameters
330
-
331
- ### T
332
-
333
- `T` *extends* [`WalletInstance`](#WalletInstance) = [`WalletInstance`](#WalletInstance)
334
-
335
- ## Properties
336
-
337
- ### previousHashStore?
338
-
339
- ```ts
340
- optional previousHashStore?: PreviousHashStore;
341
- ```
342
-
343
- ### Inherited from
344
-
345
- ```ts
346
- Omit.previousHashStore
347
- ```
348
-
349
- ## Methods
350
-
351
- ### fromPrivateKey()
352
-
353
- ```ts
354
- fromPrivateKey(key): Promise<AccountInstance>;
355
- ```
356
-
357
- ### Parameters
358
-
359
- #### key
360
-
361
- `string` \| `bigint` \| `ArrayBufferLike`
362
-
363
- ### Returns
364
-
365
- `Promise`\<`AccountInstance`\>
366
-
367
- ### Inherited from
368
-
369
- ```ts
370
- Omit.fromPrivateKey
371
- ```
372
-
373
- ***
374
-
375
- ### create()
376
-
377
- ```ts
378
- create(config): Promise<T>;
379
- ```
380
-
381
- ### Parameters
382
-
383
- #### config
384
-
385
- `AccountConfig`
386
-
387
- ### Returns
388
-
389
- `Promise`\<`T`\>
390
-
391
- ***
392
-
393
- ### fromExtendedKey()
394
-
395
- ```ts
396
- fromExtendedKey(key): Promise<T>;
397
- ```
398
-
399
- ### Parameters
400
-
401
- #### key
402
-
403
- `string`
404
-
405
- ### Returns
406
-
407
- `Promise`\<`T`\>
408
-
409
- ***
410
-
411
- ### fromMnemonic()
412
-
413
- ```ts
414
- fromMnemonic(mnemonic): Promise<T>;
415
- ```
416
-
417
- ### Parameters
418
-
419
- #### mnemonic
420
-
421
- `MnemonicInstance`
422
-
423
- ### Returns
424
-
425
- `Promise`\<`T`\>
426
-
427
- ***
428
-
429
- ### fromPhrase()
430
-
431
- ```ts
432
- fromPhrase(mnemonic, path?): Promise<T>;
433
- ```
434
-
435
- ### Parameters
436
-
437
- #### mnemonic
438
-
439
- `string`
440
-
441
- #### path?
442
-
443
- `string`
444
-
445
- ### Returns
446
-
447
- `Promise`\<`T`\>
448
-
449
- ***
450
-
451
- ### fromSeed()
452
-
453
- ```ts
454
- fromSeed(seed): Promise<T>;
455
- ```
456
-
457
- ### Parameters
458
-
459
- #### seed
460
-
461
- `string` \| `ArrayBufferLike`
462
-
463
- ### Returns
464
-
465
- `Promise`\<`T`\>
466
-
467
- ***
468
-
469
- ### random()
470
-
471
- ```ts
472
- random(): any;
473
- ```
474
-
475
- ### Returns
476
-
477
- `any`
478
-
479
- ### Overrides
480
-
481
- ```ts
482
- Omit.random
483
- ```
484
41
 
485
42
 
486
43
  [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
@@ -18,7 +18,7 @@ export interface WordlistInstance {
18
18
  *
19
19
  * By default, %%words%% are joined by a single space.
20
20
  */
21
- join(words: Array<string>): string;
22
- split(phrase: string): Array<string>;
21
+ join(words: string[]): string;
22
+ split(phrase: string): string[];
23
23
  }
24
24
  //# sourceMappingURL=Wordlist.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Wordlist.d.ts","sourceRoot":"","sources":["../../src/Wordlist.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAA;IAEd;;;;SAIK;IACL,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IAE9B;;;;SAIK;IACL,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;IAElC;;;;;OAKG;IACH,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,CAAA;IAElC,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;CAErC"}
1
+ {"version":3,"file":"Wordlist.d.ts","sourceRoot":"","sources":["../../src/Wordlist.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAA;IAEd;;;;SAIK;IACL,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IAE9B;;;;SAIK;IACL,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;IAElC;;;;;OAKG;IACH,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAAA;IAE7B,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAEhC"}
@@ -18,7 +18,7 @@ export interface WordlistInstance {
18
18
  *
19
19
  * By default, %%words%% are joined by a single space.
20
20
  */
21
- join(words: Array<string>): string;
22
- split(phrase: string): Array<string>;
21
+ join(words: string[]): string;
22
+ split(phrase: string): string[];
23
23
  }
24
24
  //# sourceMappingURL=Wordlist.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Wordlist.d.ts","sourceRoot":"","sources":["../../src/Wordlist.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAA;IAEd;;;;SAIK;IACL,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IAE9B;;;;SAIK;IACL,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;IAElC;;;;;OAKG;IACH,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,CAAA;IAElC,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;CAErC"}
1
+ {"version":3,"file":"Wordlist.d.ts","sourceRoot":"","sources":["../../src/Wordlist.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAA;IAEd;;;;SAIK;IACL,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IAE9B;;;;SAIK;IACL,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;IAElC;;;;;OAKG;IACH,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAAA;IAE7B,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAEhC"}
@@ -18,7 +18,7 @@ export interface WordlistInstance {
18
18
  *
19
19
  * By default, %%words%% are joined by a single space.
20
20
  */
21
- join(words: Array<string>): string;
22
- split(phrase: string): Array<string>;
21
+ join(words: string[]): string;
22
+ split(phrase: string): string[];
23
23
  }
24
24
  //# sourceMappingURL=Wordlist.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Wordlist.d.ts","sourceRoot":"","sources":["../../src/Wordlist.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAA;IAEd;;;;SAIK;IACL,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IAE9B;;;;SAIK;IACL,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;IAElC;;;;;OAKG;IACH,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,CAAA;IAElC,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;CAErC"}
1
+ {"version":3,"file":"Wordlist.d.ts","sourceRoot":"","sources":["../../src/Wordlist.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAA;IAEd;;;;SAIK;IACL,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IAE9B;;;;SAIK;IACL,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;IAElC;;;;;OAKG;IACH,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAAA;IAE7B,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAEhC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/wallet-model",
3
- "version": "5.3.30",
3
+ "version": "5.4.0",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -22,12 +22,10 @@
22
22
  "exports": {
23
23
  ".": {
24
24
  "types": "./dist/neutral/index.d.ts",
25
- "import": "./dist/neutral/index.mjs",
26
25
  "default": "./dist/neutral/index.mjs"
27
26
  },
28
27
  "./package.json": "./package.json"
29
28
  },
30
- "types": "dist/neutral/index.d.ts",
31
29
  "files": [
32
30
  "dist",
33
31
  "!**/*.bench.*",
@@ -36,23 +34,21 @@
36
34
  "README.md"
37
35
  ],
38
36
  "dependencies": {
39
- "@xyo-network/account-model": "~5.3.30"
37
+ "@xyo-network/account-model": "~5.4.0"
40
38
  },
41
39
  "devDependencies": {
42
40
  "@opentelemetry/api": "^1.9.1",
43
- "@xylabs/sdk-js": "^5.0.95",
44
- "@xylabs/ts-scripts-common": "~7.8.7",
45
- "@xylabs/ts-scripts-pnpm": "~7.8.7",
46
- "@xylabs/tsconfig": "~7.8.7",
47
- "axios": "^1.14.0",
41
+ "@xylabs/sdk-js": "^5.0.97",
42
+ "@xylabs/toolchain": "~7.10.8",
43
+ "@xylabs/tsconfig": "~7.10.8",
48
44
  "pako": "~2.1.0",
49
45
  "typescript": "~5.9.3",
50
46
  "zod": "^4.3.6",
51
- "@xyo-network/previous-hash-store-model": "~5.3.30"
47
+ "@xyo-network/previous-hash-store-model": "~5.4.0"
52
48
  },
53
49
  "peerDependencies": {
54
- "@xylabs/sdk-js": "^5",
55
- "@xyo-network/previous-hash-store-model": "~5.3.30"
50
+ "@xylabs/sdk-js": "^5.0.97",
51
+ "@xyo-network/previous-hash-store-model": "~5.4"
56
52
  },
57
53
  "publishConfig": {
58
54
  "access": "public"