@actioncodes/protocol 2.0.22 → 2.0.23

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 (79) hide show
  1. package/README.md +239 -146
  2. package/docs/ActionCodesProtocol/README.md +2 -2
  3. package/docs/ActionCodesProtocol/classes/ActionCodesProtocol.md +183 -33
  4. package/docs/README.md +425 -8
  5. package/docs/adapters/BaseChainAdapter/README.md +3 -4
  6. package/docs/adapters/BaseChainAdapter/classes/BaseChainAdapter.md +87 -20
  7. package/docs/adapters/BaseChainAdapter/interfaces/ChainAdapter.md +68 -12
  8. package/docs/adapters/BaseChainAdapter/type-aliases/SignFn.md +25 -0
  9. package/docs/adapters/SolanaAdapter/README.md +6 -3
  10. package/docs/adapters/SolanaAdapter/classes/SolanaAdapter.md +140 -43
  11. package/docs/adapters/SolanaAdapter/type-aliases/SolanaTransaction.md +3 -3
  12. package/docs/adapters/SolanaAdapter/variables/ADAPTER_CHAIN_NAME.md +11 -0
  13. package/docs/constants/README.md +2 -2
  14. package/docs/constants/variables/CODE_CHARSET_DIGITS.md +2 -2
  15. package/docs/constants/variables/CODE_DEFAULT_LENGTH.md +2 -2
  16. package/docs/constants/variables/CODE_MAX_LENGTH.md +2 -2
  17. package/docs/constants/variables/CODE_MIN_LENGTH.md +2 -2
  18. package/docs/constants/variables/PROTOCOL_META_MAX_BYTES.md +3 -3
  19. package/docs/constants/variables/PROTOCOL_NORMALIZATION.md +2 -2
  20. package/docs/constants/variables/SUPPORTED_CHAINS.md +9 -3
  21. package/docs/errors/README.md +4 -2
  22. package/docs/errors/classes/ExpiredCodeError.md +85 -21
  23. package/docs/errors/classes/InvalidAdapterError.md +751 -0
  24. package/docs/errors/classes/InvalidCodeFormatError.md +85 -21
  25. package/docs/errors/classes/InvalidPubkeyFormatError.md +85 -21
  26. package/docs/errors/classes/InvalidSignatureError.md +85 -21
  27. package/docs/errors/classes/MetaMismatchError.md +85 -21
  28. package/docs/errors/classes/MissingMetaError.md +85 -21
  29. package/docs/errors/classes/ProtocolError.md +75 -21
  30. package/docs/errors/classes/TransactionNotSignedByIntendedOwnerError.md +85 -21
  31. package/docs/errors/classes/TransactionNotSignedByIssuerError.md +755 -0
  32. package/docs/errors/enumerations/ProtocolErrorCode.md +39 -15
  33. package/docs/index/README.md +170 -14
  34. package/docs/modules.md +3 -3
  35. package/docs/strategy/DelegationStrategy/README.md +11 -0
  36. package/docs/strategy/DelegationStrategy/classes/DelegationStrategy.md +79 -0
  37. package/docs/strategy/WalletStrategy/README.md +2 -2
  38. package/docs/strategy/WalletStrategy/classes/WalletStrategy.md +22 -18
  39. package/docs/types/README.md +11 -3
  40. package/docs/types/interfaces/ActionCode.md +23 -26
  41. package/docs/types/interfaces/ActionCodeRevoke.md +93 -0
  42. package/docs/types/interfaces/CanonicalMessageParts.md +5 -13
  43. package/docs/types/interfaces/CanonicalRevokeMessageParts.md +33 -0
  44. package/docs/types/interfaces/CodeGenerationConfig.md +6 -6
  45. package/docs/types/interfaces/DelegatedActionCode.md +97 -0
  46. package/docs/types/interfaces/DelegatedActionCodeRevoke.md +105 -0
  47. package/docs/types/interfaces/DelegationProof.md +49 -0
  48. package/docs/types/type-aliases/Chain.md +11 -0
  49. package/docs/utils/canonical/README.md +6 -2
  50. package/docs/utils/canonical/functions/getCanonicalMessageParts.md +21 -0
  51. package/docs/utils/canonical/functions/serializeCanonical.md +3 -3
  52. package/docs/utils/canonical/functions/serializeCanonicalRevoke.md +21 -0
  53. package/docs/utils/canonical/functions/serializeDelegationProof.md +21 -0
  54. package/docs/utils/canonical/variables/CANONICAL_MESSAGE_PREFIX.md +3 -3
  55. package/docs/utils/canonical/variables/CANONICAL_MESSAGE_VERSION.md +3 -3
  56. package/docs/utils/canonical/variables/CANONICAL_REVOKE_MESSAGE_PREFIX.md +11 -0
  57. package/docs/utils/crypto/README.md +2 -3
  58. package/docs/utils/crypto/functions/base32EncodeCrockford.md +2 -2
  59. package/docs/utils/crypto/functions/codeHash.md +2 -2
  60. package/docs/utils/crypto/functions/digestToDigits.md +2 -2
  61. package/docs/utils/crypto/functions/hkdfSha256.md +2 -2
  62. package/docs/utils/crypto/functions/hmacSha256.md +2 -2
  63. package/docs/utils/crypto/functions/sha256.md +2 -2
  64. package/docs/utils/crypto/functions/truncateBits.md +2 -2
  65. package/docs/utils/protocolMeta/README.md +2 -2
  66. package/docs/utils/protocolMeta/functions/buildProtocolMeta.md +3 -3
  67. package/docs/utils/protocolMeta/functions/parseProtocolMeta.md +3 -3
  68. package/docs/utils/protocolMeta/functions/validateProtocolMetaFormat.md +3 -3
  69. package/docs/utils/protocolMeta/interfaces/ProtocolMetaFields.md +11 -3
  70. package/docs/utils/protocolMeta/variables/SCHEME.md +3 -3
  71. package/package.json +7 -7
  72. package/docs/adapters/BaseChainAdapter/interfaces/BaseContext.md +0 -17
  73. package/docs/adapters/BaseChainAdapter/type-aliases/ChainContext.md +0 -23
  74. package/docs/adapters/NodeCryptoAdapter/README.md +0 -15
  75. package/docs/adapters/NodeCryptoAdapter/classes/NodeCryptoAdapter.md +0 -254
  76. package/docs/adapters/NodeCryptoAdapter/type-aliases/NodeCryptoContext.md +0 -27
  77. package/docs/adapters/SolanaAdapter/type-aliases/SolanaContext.md +0 -27
  78. package/docs/types/interfaces/CodeGenerationResult.md +0 -25
  79. package/docs/utils/crypto/functions/generateRandomSecret.md +0 -15
@@ -0,0 +1,751 @@
1
+ [**@actioncodes/protocol**](../../README.md)
2
+
3
+ ***
4
+
5
+ [@actioncodes/protocol](../../modules.md) / [errors](../README.md) / InvalidAdapterError
6
+
7
+ # Class: InvalidAdapterError
8
+
9
+ Defined in: src/errors.ts:244
10
+
11
+ ## Extends
12
+
13
+ - [`ProtocolError`](ProtocolError.md)
14
+
15
+ ## Constructors
16
+
17
+ ### Constructor
18
+
19
+ > **new InvalidAdapterError**(`adapter`): `InvalidAdapterError`
20
+
21
+ Defined in: src/errors.ts:245
22
+
23
+ #### Parameters
24
+
25
+ ##### adapter
26
+
27
+ `string`
28
+
29
+ #### Returns
30
+
31
+ `InvalidAdapterError`
32
+
33
+ #### Overrides
34
+
35
+ [`ProtocolError`](ProtocolError.md).[`constructor`](ProtocolError.md#constructor)
36
+
37
+ ## Properties
38
+
39
+ ### cause?
40
+
41
+ > `optional` **cause**: `unknown`
42
+
43
+ Defined in: node\_modules/typescript/lib/lib.es2022.error.d.ts:26
44
+
45
+ The cause of the error.
46
+
47
+ #### Inherited from
48
+
49
+ [`ProtocolError`](ProtocolError.md).[`cause`](ProtocolError.md#cause)
50
+
51
+ ***
52
+
53
+ ### code
54
+
55
+ > `readonly` **code**: [`ProtocolErrorCode`](../enumerations/ProtocolErrorCode.md)
56
+
57
+ Defined in: src/errors.ts:34
58
+
59
+ #### Inherited from
60
+
61
+ [`ProtocolError`](ProtocolError.md).[`code`](ProtocolError.md#code)
62
+
63
+ ***
64
+
65
+ ### details?
66
+
67
+ > `readonly` `optional` **details**: `Record`\<`string`, `unknown`\>
68
+
69
+ Defined in: src/errors.ts:36
70
+
71
+ #### Inherited from
72
+
73
+ [`ProtocolError`](ProtocolError.md).[`details`](ProtocolError.md#details)
74
+
75
+ ***
76
+
77
+ ### message
78
+
79
+ > **message**: `string`
80
+
81
+ Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1077
82
+
83
+ #### Inherited from
84
+
85
+ [`ProtocolError`](ProtocolError.md).[`message`](ProtocolError.md#message)
86
+
87
+ ***
88
+
89
+ ### name
90
+
91
+ > **name**: `string`
92
+
93
+ Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1076
94
+
95
+ #### Inherited from
96
+
97
+ [`ProtocolError`](ProtocolError.md).[`name`](ProtocolError.md#name)
98
+
99
+ ***
100
+
101
+ ### stack?
102
+
103
+ > `optional` **stack**: `string`
104
+
105
+ Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1078
106
+
107
+ #### Inherited from
108
+
109
+ [`ProtocolError`](ProtocolError.md).[`stack`](ProtocolError.md#stack)
110
+
111
+ ***
112
+
113
+ ### stackTraceLimit
114
+
115
+ > `static` **stackTraceLimit**: `number`
116
+
117
+ Defined in: node\_modules/@types/node/globals.d.ts:68
118
+
119
+ The `Error.stackTraceLimit` property specifies the number of stack frames
120
+ collected by a stack trace (whether generated by `new Error().stack` or
121
+ `Error.captureStackTrace(obj)`).
122
+
123
+ The default value is `10` but may be set to any valid JavaScript number. Changes
124
+ will affect any stack trace captured _after_ the value has been changed.
125
+
126
+ If set to a non-number value, or set to a negative number, stack traces will
127
+ not capture any frames.
128
+
129
+ #### Inherited from
130
+
131
+ [`ProtocolError`](ProtocolError.md).[`stackTraceLimit`](ProtocolError.md#stacktracelimit)
132
+
133
+ ## Methods
134
+
135
+ ### captureStackTrace()
136
+
137
+ #### Call Signature
138
+
139
+ > `static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
140
+
141
+ Defined in: node\_modules/@types/node/globals.d.ts:52
142
+
143
+ Creates a `.stack` property on `targetObject`, which when accessed returns
144
+ a string representing the location in the code at which
145
+ `Error.captureStackTrace()` was called.
146
+
147
+ ```js
148
+ const myObject = {};
149
+ Error.captureStackTrace(myObject);
150
+ myObject.stack; // Similar to `new Error().stack`
151
+ ```
152
+
153
+ The first line of the trace will be prefixed with
154
+ `${myObject.name}: ${myObject.message}`.
155
+
156
+ The optional `constructorOpt` argument accepts a function. If given, all frames
157
+ above `constructorOpt`, including `constructorOpt`, will be omitted from the
158
+ generated stack trace.
159
+
160
+ The `constructorOpt` argument is useful for hiding implementation
161
+ details of error generation from the user. For instance:
162
+
163
+ ```js
164
+ function a() {
165
+ b();
166
+ }
167
+
168
+ function b() {
169
+ c();
170
+ }
171
+
172
+ function c() {
173
+ // Create an error without stack trace to avoid calculating the stack trace twice.
174
+ const { stackTraceLimit } = Error;
175
+ Error.stackTraceLimit = 0;
176
+ const error = new Error();
177
+ Error.stackTraceLimit = stackTraceLimit;
178
+
179
+ // Capture the stack trace above function b
180
+ Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
181
+ throw error;
182
+ }
183
+
184
+ a();
185
+ ```
186
+
187
+ ##### Parameters
188
+
189
+ ###### targetObject
190
+
191
+ `object`
192
+
193
+ ###### constructorOpt?
194
+
195
+ `Function`
196
+
197
+ ##### Returns
198
+
199
+ `void`
200
+
201
+ ##### Inherited from
202
+
203
+ [`ProtocolError`](ProtocolError.md).[`captureStackTrace`](ProtocolError.md#capturestacktrace)
204
+
205
+ #### Call Signature
206
+
207
+ > `static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
208
+
209
+ Defined in: node\_modules/bun-types/globals.d.ts:985
210
+
211
+ Create .stack property on a target object
212
+
213
+ ##### Parameters
214
+
215
+ ###### targetObject
216
+
217
+ `object`
218
+
219
+ ###### constructorOpt?
220
+
221
+ `Function`
222
+
223
+ ##### Returns
224
+
225
+ `void`
226
+
227
+ ##### Inherited from
228
+
229
+ [`ProtocolError`](ProtocolError.md).[`captureStackTrace`](ProtocolError.md#capturestacktrace)
230
+
231
+ ***
232
+
233
+ ### create()
234
+
235
+ > `static` **create**(`code`, `message`, `details?`): [`ProtocolError`](ProtocolError.md)
236
+
237
+ Defined in: src/errors.ts:149
238
+
239
+ #### Parameters
240
+
241
+ ##### code
242
+
243
+ [`ProtocolErrorCode`](../enumerations/ProtocolErrorCode.md)
244
+
245
+ ##### message
246
+
247
+ `string`
248
+
249
+ ##### details?
250
+
251
+ `Record`\<`string`, `unknown`\>
252
+
253
+ #### Returns
254
+
255
+ [`ProtocolError`](ProtocolError.md)
256
+
257
+ #### Inherited from
258
+
259
+ [`ProtocolError`](ProtocolError.md).[`create`](ProtocolError.md#create)
260
+
261
+ ***
262
+
263
+ ### cryptoError()
264
+
265
+ > `static` **cryptoError**(`operation`, `reason`): [`ProtocolError`](ProtocolError.md)
266
+
267
+ Defined in: src/errors.ts:127
268
+
269
+ #### Parameters
270
+
271
+ ##### operation
272
+
273
+ `string`
274
+
275
+ ##### reason
276
+
277
+ `string`
278
+
279
+ #### Returns
280
+
281
+ [`ProtocolError`](ProtocolError.md)
282
+
283
+ #### Inherited from
284
+
285
+ [`ProtocolError`](ProtocolError.md).[`cryptoError`](ProtocolError.md#cryptoerror)
286
+
287
+ ***
288
+
289
+ ### expiredCode()
290
+
291
+ > `static` **expiredCode**(`code`, `expiresAt`, `currentTime`): [`ExpiredCodeError`](ExpiredCodeError.md)
292
+
293
+ Defined in: src/errors.ts:43
294
+
295
+ #### Parameters
296
+
297
+ ##### code
298
+
299
+ `string`
300
+
301
+ ##### expiresAt
302
+
303
+ `number`
304
+
305
+ ##### currentTime
306
+
307
+ `number`
308
+
309
+ #### Returns
310
+
311
+ [`ExpiredCodeError`](ExpiredCodeError.md)
312
+
313
+ #### Inherited from
314
+
315
+ [`ProtocolError`](ProtocolError.md).[`expiredCode`](ProtocolError.md#expiredcode)
316
+
317
+ ***
318
+
319
+ ### invalidAdapter()
320
+
321
+ > `static` **invalidAdapter**(`adapter`): `InvalidAdapterError`
322
+
323
+ Defined in: src/errors.ts:144
324
+
325
+ #### Parameters
326
+
327
+ ##### adapter
328
+
329
+ `string`
330
+
331
+ #### Returns
332
+
333
+ `InvalidAdapterError`
334
+
335
+ #### Inherited from
336
+
337
+ [`ProtocolError`](ProtocolError.md).[`invalidAdapter`](ProtocolError.md#invalidadapter)
338
+
339
+ ***
340
+
341
+ ### invalidCode()
342
+
343
+ > `static` **invalidCode**(): [`ProtocolError`](ProtocolError.md)
344
+
345
+ Defined in: src/errors.ts:47
346
+
347
+ #### Returns
348
+
349
+ [`ProtocolError`](ProtocolError.md)
350
+
351
+ #### Inherited from
352
+
353
+ [`ProtocolError`](ProtocolError.md).[`invalidCode`](ProtocolError.md#invalidcode)
354
+
355
+ ***
356
+
357
+ ### invalidCodeFormat()
358
+
359
+ > `static` **invalidCodeFormat**(`code`, `reason`): [`InvalidCodeFormatError`](InvalidCodeFormatError.md)
360
+
361
+ Defined in: src/errors.ts:55
362
+
363
+ #### Parameters
364
+
365
+ ##### code
366
+
367
+ `string`
368
+
369
+ ##### reason
370
+
371
+ `string`
372
+
373
+ #### Returns
374
+
375
+ [`InvalidCodeFormatError`](InvalidCodeFormatError.md)
376
+
377
+ #### Inherited from
378
+
379
+ [`ProtocolError`](ProtocolError.md).[`invalidCodeFormat`](ProtocolError.md#invalidcodeformat)
380
+
381
+ ***
382
+
383
+ ### invalidDigest()
384
+
385
+ > `static` **invalidDigest**(`reason`): [`ProtocolError`](ProtocolError.md)
386
+
387
+ Defined in: src/errors.ts:135
388
+
389
+ #### Parameters
390
+
391
+ ##### reason
392
+
393
+ `string`
394
+
395
+ #### Returns
396
+
397
+ [`ProtocolError`](ProtocolError.md)
398
+
399
+ #### Inherited from
400
+
401
+ [`ProtocolError`](ProtocolError.md).[`invalidDigest`](ProtocolError.md#invaliddigest)
402
+
403
+ ***
404
+
405
+ ### invalidInput()
406
+
407
+ > `static` **invalidInput**(`field`, `value`, `reason`): [`ProtocolError`](ProtocolError.md)
408
+
409
+ Defined in: src/errors.ts:110
410
+
411
+ #### Parameters
412
+
413
+ ##### field
414
+
415
+ `string`
416
+
417
+ ##### value
418
+
419
+ `unknown`
420
+
421
+ ##### reason
422
+
423
+ `string`
424
+
425
+ #### Returns
426
+
427
+ [`ProtocolError`](ProtocolError.md)
428
+
429
+ #### Inherited from
430
+
431
+ [`ProtocolError`](ProtocolError.md).[`invalidInput`](ProtocolError.md#invalidinput)
432
+
433
+ ***
434
+
435
+ ### invalidMetaFormat()
436
+
437
+ > `static` **invalidMetaFormat**(`reason`): [`ProtocolError`](ProtocolError.md)
438
+
439
+ Defined in: src/errors.ts:68
440
+
441
+ #### Parameters
442
+
443
+ ##### reason
444
+
445
+ `string`
446
+
447
+ #### Returns
448
+
449
+ [`ProtocolError`](ProtocolError.md)
450
+
451
+ #### Inherited from
452
+
453
+ [`ProtocolError`](ProtocolError.md).[`invalidMetaFormat`](ProtocolError.md#invalidmetaformat)
454
+
455
+ ***
456
+
457
+ ### invalidPubkeyFormat()
458
+
459
+ > `static` **invalidPubkeyFormat**(`pubkey`, `reason`): [`InvalidPubkeyFormatError`](InvalidPubkeyFormatError.md)
460
+
461
+ Defined in: src/errors.ts:105
462
+
463
+ #### Parameters
464
+
465
+ ##### pubkey
466
+
467
+ `string`
468
+
469
+ ##### reason
470
+
471
+ `string`
472
+
473
+ #### Returns
474
+
475
+ [`InvalidPubkeyFormatError`](InvalidPubkeyFormatError.md)
476
+
477
+ #### Inherited from
478
+
479
+ [`ProtocolError`](ProtocolError.md).[`invalidPubkeyFormat`](ProtocolError.md#invalidpubkeyformat)
480
+
481
+ ***
482
+
483
+ ### invalidSignature()
484
+
485
+ > `static` **invalidSignature**(`reason`): [`InvalidSignatureError`](InvalidSignatureError.md)
486
+
487
+ Defined in: src/errors.ts:59
488
+
489
+ #### Parameters
490
+
491
+ ##### reason
492
+
493
+ `string`
494
+
495
+ #### Returns
496
+
497
+ [`InvalidSignatureError`](InvalidSignatureError.md)
498
+
499
+ #### Inherited from
500
+
501
+ [`ProtocolError`](ProtocolError.md).[`invalidSignature`](ProtocolError.md#invalidsignature)
502
+
503
+ ***
504
+
505
+ ### invalidTransactionFormat()
506
+
507
+ > `static` **invalidTransactionFormat**(`reason`): [`ProtocolError`](ProtocolError.md)
508
+
509
+ Defined in: src/errors.ts:97
510
+
511
+ #### Parameters
512
+
513
+ ##### reason
514
+
515
+ `string`
516
+
517
+ #### Returns
518
+
519
+ [`ProtocolError`](ProtocolError.md)
520
+
521
+ #### Inherited from
522
+
523
+ [`ProtocolError`](ProtocolError.md).[`invalidTransactionFormat`](ProtocolError.md#invalidtransactionformat)
524
+
525
+ ***
526
+
527
+ ### isError()
528
+
529
+ #### Call Signature
530
+
531
+ > `static` **isError**(`error`): `error is Error`
532
+
533
+ Defined in: node\_modules/typescript/lib/lib.esnext.error.d.ts:23
534
+
535
+ Indicates whether the argument provided is a built-in Error instance or not.
536
+
537
+ ##### Parameters
538
+
539
+ ###### error
540
+
541
+ `unknown`
542
+
543
+ ##### Returns
544
+
545
+ `error is Error`
546
+
547
+ ##### Inherited from
548
+
549
+ [`ProtocolError`](ProtocolError.md).[`isError`](ProtocolError.md#iserror)
550
+
551
+ #### Call Signature
552
+
553
+ > `static` **isError**(`value`): `value is Error`
554
+
555
+ Defined in: node\_modules/bun-types/globals.d.ts:980
556
+
557
+ Check if a value is an instance of Error
558
+
559
+ ##### Parameters
560
+
561
+ ###### value
562
+
563
+ `unknown`
564
+
565
+ The value to check
566
+
567
+ ##### Returns
568
+
569
+ `value is Error`
570
+
571
+ True if the value is an instance of Error, false otherwise
572
+
573
+ ##### Inherited from
574
+
575
+ [`ProtocolError`](ProtocolError.md).[`isError`](ProtocolError.md#iserror)
576
+
577
+ ***
578
+
579
+ ### metaMismatch()
580
+
581
+ > `static` **metaMismatch**(`expected`, `actual`, `field`): [`MetaMismatchError`](MetaMismatchError.md)
582
+
583
+ Defined in: src/errors.ts:76
584
+
585
+ #### Parameters
586
+
587
+ ##### expected
588
+
589
+ `string`
590
+
591
+ ##### actual
592
+
593
+ `string`
594
+
595
+ ##### field
596
+
597
+ `string`
598
+
599
+ #### Returns
600
+
601
+ [`MetaMismatchError`](MetaMismatchError.md)
602
+
603
+ #### Inherited from
604
+
605
+ [`ProtocolError`](ProtocolError.md).[`metaMismatch`](ProtocolError.md#metamismatch)
606
+
607
+ ***
608
+
609
+ ### metaTooLarge()
610
+
611
+ > `static` **metaTooLarge**(`maxBytes`, `actualBytes`): [`ProtocolError`](ProtocolError.md)
612
+
613
+ Defined in: src/errors.ts:80
614
+
615
+ #### Parameters
616
+
617
+ ##### maxBytes
618
+
619
+ `number`
620
+
621
+ ##### actualBytes
622
+
623
+ `number`
624
+
625
+ #### Returns
626
+
627
+ [`ProtocolError`](ProtocolError.md)
628
+
629
+ #### Inherited from
630
+
631
+ [`ProtocolError`](ProtocolError.md).[`metaTooLarge`](ProtocolError.md#metatoolarge)
632
+
633
+ ***
634
+
635
+ ### missingMeta()
636
+
637
+ > `static` **missingMeta**(): [`MissingMetaError`](MissingMetaError.md)
638
+
639
+ Defined in: src/errors.ts:64
640
+
641
+ #### Returns
642
+
643
+ [`MissingMetaError`](MissingMetaError.md)
644
+
645
+ #### Inherited from
646
+
647
+ [`ProtocolError`](ProtocolError.md).[`missingMeta`](ProtocolError.md#missingmeta)
648
+
649
+ ***
650
+
651
+ ### missingRequiredField()
652
+
653
+ > `static` **missingRequiredField**(`field`): [`ProtocolError`](ProtocolError.md)
654
+
655
+ Defined in: src/errors.ts:118
656
+
657
+ #### Parameters
658
+
659
+ ##### field
660
+
661
+ `string`
662
+
663
+ #### Returns
664
+
665
+ [`ProtocolError`](ProtocolError.md)
666
+
667
+ #### Inherited from
668
+
669
+ [`ProtocolError`](ProtocolError.md).[`missingRequiredField`](ProtocolError.md#missingrequiredfield)
670
+
671
+ ***
672
+
673
+ ### prepareStackTrace()
674
+
675
+ > `static` **prepareStackTrace**(`err`, `stackTraces`): `any`
676
+
677
+ Defined in: node\_modules/@types/node/globals.d.ts:56
678
+
679
+ #### Parameters
680
+
681
+ ##### err
682
+
683
+ `Error`
684
+
685
+ ##### stackTraces
686
+
687
+ `CallSite`[]
688
+
689
+ #### Returns
690
+
691
+ `any`
692
+
693
+ #### See
694
+
695
+ https://v8.dev/docs/stack-trace-api#customizing-stack-traces
696
+
697
+ #### Inherited from
698
+
699
+ [`ProtocolError`](ProtocolError.md).[`prepareStackTrace`](ProtocolError.md#preparestacktrace)
700
+
701
+ ***
702
+
703
+ ### transactionNotSignedByIntendedOwner()
704
+
705
+ > `static` **transactionNotSignedByIntendedOwner**(`intended`, `actualSigners`): [`TransactionNotSignedByIntendedOwnerError`](TransactionNotSignedByIntendedOwnerError.md)
706
+
707
+ Defined in: src/errors.ts:89
708
+
709
+ #### Parameters
710
+
711
+ ##### intended
712
+
713
+ `string`
714
+
715
+ ##### actualSigners
716
+
717
+ `string`[]
718
+
719
+ #### Returns
720
+
721
+ [`TransactionNotSignedByIntendedOwnerError`](TransactionNotSignedByIntendedOwnerError.md)
722
+
723
+ #### Inherited from
724
+
725
+ [`ProtocolError`](ProtocolError.md).[`transactionNotSignedByIntendedOwner`](ProtocolError.md#transactionnotsignedbyintendedowner)
726
+
727
+ ***
728
+
729
+ ### transactionNotSignedByIssuer()
730
+
731
+ > `static` **transactionNotSignedByIssuer**(`issuer`, `actualSigners`): [`TransactionNotSignedByIssuerError`](TransactionNotSignedByIssuerError.md)
732
+
733
+ Defined in: src/errors.ts:93
734
+
735
+ #### Parameters
736
+
737
+ ##### issuer
738
+
739
+ `string`
740
+
741
+ ##### actualSigners
742
+
743
+ `string`[]
744
+
745
+ #### Returns
746
+
747
+ [`TransactionNotSignedByIssuerError`](TransactionNotSignedByIssuerError.md)
748
+
749
+ #### Inherited from
750
+
751
+ [`ProtocolError`](ProtocolError.md).[`transactionNotSignedByIssuer`](ProtocolError.md#transactionnotsignedbyissuer)