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