@xyo-network/wallet-model 5.3.25 → 5.3.26

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.
Files changed (2) hide show
  1. package/README.md +477 -10
  2. package/package.json +9 -9
package/README.md CHANGED
@@ -1,23 +1,490 @@
1
+ [![logo][]](https://xyo.network)
2
+
1
3
  # @xyo-network/wallet-model
2
4
 
3
- [![logo][]](https://xyo.network)
5
+ [![npm][npm-badge]][npm-link]
6
+ [![license][license-badge]][license-link]
7
+
8
+ > Primary SDK for using XYO Protocol 2.0
9
+
10
+ ## Install
11
+
12
+ Using npm:
4
13
 
5
- Version: 5.0.2
14
+ ```sh
15
+ npm install {{name}}
16
+ ```
6
17
 
7
- Primary SDK for using XYO Protocol 2.0
18
+ Using yarn:
8
19
 
9
- ## Documentation
20
+ ```sh
21
+ yarn add {{name}}
22
+ ```
10
23
 
11
- [TypeDoc Generated Documentation](https://gitbook.xyo.network/xyo-data-lab/xyo-reference/package-documentation/xyo-network__wallet-model)
24
+ Using pnpm:
25
+
26
+ ```sh
27
+ pnpm add {{name}}
28
+ ```
29
+
30
+ Using bun:
31
+
32
+ ```sh
33
+ bun add {{name}}
34
+ ```
12
35
 
13
- Part of [sdk-xyo-client-js](https://www.npmjs.com/package/@xyo-network/sdk-xyo-client-js)
14
36
 
15
37
  ## License
16
38
 
17
- > See the [LICENSE](LICENSE) file for license details
39
+ See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
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
18
480
 
19
- ## Credits
481
+ ```ts
482
+ Omit.random
483
+ ```
20
484
 
21
- [Made with 🔥 and ❄️ by XYO](https://xyo.network)
22
485
 
23
- [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
486
+ [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
487
+ [npm-badge]: https://img.shields.io/npm/v/@xyo-network/wallet-model.svg
488
+ [npm-link]: https://www.npmjs.com/package/@xyo-network/wallet-model
489
+ [license-badge]: https://img.shields.io/npm/l/@xyo-network/wallet-model.svg
490
+ [license-link]: https://github.com/xylabs/sdk-js/blob/main/LICENSE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/wallet-model",
3
- "version": "5.3.25",
3
+ "version": "5.3.26",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -22,11 +22,11 @@
22
22
  "exports": {
23
23
  ".": {
24
24
  "types": "./dist/neutral/index.d.ts",
25
+ "import": "./dist/neutral/index.mjs",
25
26
  "default": "./dist/neutral/index.mjs"
26
27
  },
27
28
  "./package.json": "./package.json"
28
29
  },
29
- "module": "dist/neutral/index.mjs",
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "files": [
32
32
  "dist",
@@ -36,21 +36,21 @@
36
36
  "README.md"
37
37
  ],
38
38
  "dependencies": {
39
- "@xyo-network/account-model": "~5.3.25"
39
+ "@xyo-network/account-model": "~5.3.26"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@opentelemetry/api": "^1.9.1",
43
- "@types/node": "^25.5.0",
44
- "@xylabs/sdk-js": "^5.0.93",
45
- "@xylabs/ts-scripts-common": "~7.6.16",
46
- "@xylabs/ts-scripts-pnpm": "~7.6.16",
47
- "@xylabs/tsconfig": "~7.6.16",
43
+ "@types/node": "^25.5.2",
44
+ "@xylabs/sdk-js": "^5.0.94",
45
+ "@xylabs/ts-scripts-common": "~7.7.5",
46
+ "@xylabs/ts-scripts-pnpm": "~7.7.5",
47
+ "@xylabs/tsconfig": "~7.7.5",
48
48
  "acorn": "^8.16.0",
49
49
  "axios": "^1.14.0",
50
50
  "esbuild": "^0.28.0",
51
51
  "typescript": "~5.9.3",
52
52
  "zod": "^4.3.6",
53
- "@xyo-network/account-model": "~5.3.25"
53
+ "@xyo-network/account-model": "~5.3.26"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@xylabs/sdk-js": "^5",