@actioncodes/protocol 2.0.22 → 2.0.24

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 (85) hide show
  1. package/README.md +239 -146
  2. package/dist/adapters/SolanaAdapter.d.ts +8 -2
  3. package/dist/adapters/SolanaAdapter.d.ts.map +1 -1
  4. package/dist/index.cjs +2 -2
  5. package/dist/index.cjs.map +3 -3
  6. package/dist/index.js +2 -2
  7. package/dist/index.js.map +3 -3
  8. package/docs/ActionCodesProtocol/README.md +2 -2
  9. package/docs/ActionCodesProtocol/classes/ActionCodesProtocol.md +183 -33
  10. package/docs/README.md +425 -8
  11. package/docs/adapters/BaseChainAdapter/README.md +3 -4
  12. package/docs/adapters/BaseChainAdapter/classes/BaseChainAdapter.md +87 -20
  13. package/docs/adapters/BaseChainAdapter/interfaces/ChainAdapter.md +68 -12
  14. package/docs/adapters/BaseChainAdapter/type-aliases/SignFn.md +25 -0
  15. package/docs/adapters/SolanaAdapter/README.md +6 -3
  16. package/docs/adapters/SolanaAdapter/classes/SolanaAdapter.md +140 -43
  17. package/docs/adapters/SolanaAdapter/type-aliases/SolanaTransaction.md +3 -3
  18. package/docs/adapters/SolanaAdapter/variables/ADAPTER_CHAIN_NAME.md +11 -0
  19. package/docs/constants/README.md +2 -2
  20. package/docs/constants/variables/CODE_CHARSET_DIGITS.md +2 -2
  21. package/docs/constants/variables/CODE_DEFAULT_LENGTH.md +2 -2
  22. package/docs/constants/variables/CODE_MAX_LENGTH.md +2 -2
  23. package/docs/constants/variables/CODE_MIN_LENGTH.md +2 -2
  24. package/docs/constants/variables/PROTOCOL_META_MAX_BYTES.md +3 -3
  25. package/docs/constants/variables/PROTOCOL_NORMALIZATION.md +2 -2
  26. package/docs/constants/variables/SUPPORTED_CHAINS.md +9 -3
  27. package/docs/errors/README.md +4 -2
  28. package/docs/errors/classes/ExpiredCodeError.md +85 -21
  29. package/docs/errors/classes/InvalidAdapterError.md +751 -0
  30. package/docs/errors/classes/InvalidCodeFormatError.md +85 -21
  31. package/docs/errors/classes/InvalidPubkeyFormatError.md +85 -21
  32. package/docs/errors/classes/InvalidSignatureError.md +85 -21
  33. package/docs/errors/classes/MetaMismatchError.md +85 -21
  34. package/docs/errors/classes/MissingMetaError.md +85 -21
  35. package/docs/errors/classes/ProtocolError.md +75 -21
  36. package/docs/errors/classes/TransactionNotSignedByIntendedOwnerError.md +85 -21
  37. package/docs/errors/classes/TransactionNotSignedByIssuerError.md +755 -0
  38. package/docs/errors/enumerations/ProtocolErrorCode.md +39 -15
  39. package/docs/index/README.md +170 -14
  40. package/docs/modules.md +3 -3
  41. package/docs/strategy/DelegationStrategy/README.md +11 -0
  42. package/docs/strategy/DelegationStrategy/classes/DelegationStrategy.md +79 -0
  43. package/docs/strategy/WalletStrategy/README.md +2 -2
  44. package/docs/strategy/WalletStrategy/classes/WalletStrategy.md +22 -18
  45. package/docs/types/README.md +11 -3
  46. package/docs/types/interfaces/ActionCode.md +23 -26
  47. package/docs/types/interfaces/ActionCodeRevoke.md +93 -0
  48. package/docs/types/interfaces/CanonicalMessageParts.md +5 -13
  49. package/docs/types/interfaces/CanonicalRevokeMessageParts.md +33 -0
  50. package/docs/types/interfaces/CodeGenerationConfig.md +6 -6
  51. package/docs/types/interfaces/DelegatedActionCode.md +97 -0
  52. package/docs/types/interfaces/DelegatedActionCodeRevoke.md +105 -0
  53. package/docs/types/interfaces/DelegationProof.md +49 -0
  54. package/docs/types/type-aliases/Chain.md +11 -0
  55. package/docs/utils/canonical/README.md +6 -2
  56. package/docs/utils/canonical/functions/getCanonicalMessageParts.md +21 -0
  57. package/docs/utils/canonical/functions/serializeCanonical.md +3 -3
  58. package/docs/utils/canonical/functions/serializeCanonicalRevoke.md +21 -0
  59. package/docs/utils/canonical/functions/serializeDelegationProof.md +21 -0
  60. package/docs/utils/canonical/variables/CANONICAL_MESSAGE_PREFIX.md +3 -3
  61. package/docs/utils/canonical/variables/CANONICAL_MESSAGE_VERSION.md +3 -3
  62. package/docs/utils/canonical/variables/CANONICAL_REVOKE_MESSAGE_PREFIX.md +11 -0
  63. package/docs/utils/crypto/README.md +2 -3
  64. package/docs/utils/crypto/functions/base32EncodeCrockford.md +2 -2
  65. package/docs/utils/crypto/functions/codeHash.md +2 -2
  66. package/docs/utils/crypto/functions/digestToDigits.md +2 -2
  67. package/docs/utils/crypto/functions/hkdfSha256.md +2 -2
  68. package/docs/utils/crypto/functions/hmacSha256.md +2 -2
  69. package/docs/utils/crypto/functions/sha256.md +2 -2
  70. package/docs/utils/crypto/functions/truncateBits.md +2 -2
  71. package/docs/utils/protocolMeta/README.md +2 -2
  72. package/docs/utils/protocolMeta/functions/buildProtocolMeta.md +3 -3
  73. package/docs/utils/protocolMeta/functions/parseProtocolMeta.md +3 -3
  74. package/docs/utils/protocolMeta/functions/validateProtocolMetaFormat.md +3 -3
  75. package/docs/utils/protocolMeta/interfaces/ProtocolMetaFields.md +11 -3
  76. package/docs/utils/protocolMeta/variables/SCHEME.md +3 -3
  77. package/package.json +7 -7
  78. package/docs/adapters/BaseChainAdapter/interfaces/BaseContext.md +0 -17
  79. package/docs/adapters/BaseChainAdapter/type-aliases/ChainContext.md +0 -23
  80. package/docs/adapters/NodeCryptoAdapter/README.md +0 -15
  81. package/docs/adapters/NodeCryptoAdapter/classes/NodeCryptoAdapter.md +0 -254
  82. package/docs/adapters/NodeCryptoAdapter/type-aliases/NodeCryptoContext.md +0 -27
  83. package/docs/adapters/SolanaAdapter/type-aliases/SolanaContext.md +0 -27
  84. package/docs/types/interfaces/CodeGenerationResult.md +0 -25
  85. package/docs/utils/crypto/functions/generateRandomSecret.md +0 -15
@@ -1,60 +1,57 @@
1
- [**@actioncodes/protocol-v2**](../../README.md)
1
+ [**@actioncodes/protocol**](../../README.md)
2
2
 
3
3
  ***
4
4
 
5
- [@actioncodes/protocol-v2](../../modules.md) / [types](../README.md) / ActionCode
5
+ [@actioncodes/protocol](../../modules.md) / [types](../README.md) / ActionCode
6
6
 
7
7
  # Interface: ActionCode
8
8
 
9
- Defined in: src/types.ts:1
10
-
11
- ## Properties
12
-
13
- ### code
9
+ Defined in: src/types.ts:5
14
10
 
15
- > **code**: `string`
11
+ ## Extended by
16
12
 
17
- Defined in: src/types.ts:2
13
+ - [`DelegatedActionCode`](DelegatedActionCode.md)
14
+ - [`ActionCodeRevoke`](ActionCodeRevoke.md)
18
15
 
19
- ***
16
+ ## Properties
20
17
 
21
- ### expiresAt
18
+ ### chain
22
19
 
23
- > **expiresAt**: `number`
20
+ > **chain**: `"solana"`
24
21
 
25
- Defined in: src/types.ts:5
22
+ Defined in: src/types.ts:6
26
23
 
27
24
  ***
28
25
 
29
- ### pubkey
26
+ ### code
30
27
 
31
- > **pubkey**: `string`
28
+ > **code**: `string`
32
29
 
33
- Defined in: src/types.ts:3
30
+ Defined in: src/types.ts:7
34
31
 
35
32
  ***
36
33
 
37
- ### secret?
34
+ ### expiresAt
38
35
 
39
- > `optional` **secret**: `string`
36
+ > **expiresAt**: `number`
40
37
 
41
- Defined in: src/types.ts:9
38
+ Defined in: src/types.ts:10
42
39
 
43
40
  ***
44
41
 
45
- ### secretHint?
42
+ ### pubkey
46
43
 
47
- > `optional` **secretHint**: `string`
44
+ > **pubkey**: `string`
48
45
 
49
- Defined in: src/types.ts:7
46
+ Defined in: src/types.ts:8
50
47
 
51
48
  ***
52
49
 
53
- ### signature?
50
+ ### signature
54
51
 
55
- > `optional` **signature**: `string`
52
+ > **signature**: `string`
56
53
 
57
- Defined in: src/types.ts:6
54
+ Defined in: src/types.ts:11
58
55
 
59
56
  ***
60
57
 
@@ -62,4 +59,4 @@ Defined in: src/types.ts:6
62
59
 
63
60
  > **timestamp**: `number`
64
61
 
65
- Defined in: src/types.ts:4
62
+ Defined in: src/types.ts:9
@@ -0,0 +1,93 @@
1
+ [**@actioncodes/protocol**](../../README.md)
2
+
3
+ ***
4
+
5
+ [@actioncodes/protocol](../../modules.md) / [types](../README.md) / ActionCodeRevoke
6
+
7
+ # Interface: ActionCodeRevoke
8
+
9
+ Defined in: src/types.ts:43
10
+
11
+ ## Extends
12
+
13
+ - [`ActionCode`](ActionCode.md)
14
+
15
+ ## Properties
16
+
17
+ ### chain
18
+
19
+ > **chain**: `"solana"`
20
+
21
+ Defined in: src/types.ts:6
22
+
23
+ #### Inherited from
24
+
25
+ [`ActionCode`](ActionCode.md).[`chain`](ActionCode.md#chain)
26
+
27
+ ***
28
+
29
+ ### code
30
+
31
+ > **code**: `string`
32
+
33
+ Defined in: src/types.ts:7
34
+
35
+ #### Inherited from
36
+
37
+ [`ActionCode`](ActionCode.md).[`code`](ActionCode.md#code)
38
+
39
+ ***
40
+
41
+ ### expiresAt
42
+
43
+ > **expiresAt**: `number`
44
+
45
+ Defined in: src/types.ts:10
46
+
47
+ #### Inherited from
48
+
49
+ [`ActionCode`](ActionCode.md).[`expiresAt`](ActionCode.md#expiresat)
50
+
51
+ ***
52
+
53
+ ### pubkey
54
+
55
+ > **pubkey**: `string`
56
+
57
+ Defined in: src/types.ts:8
58
+
59
+ #### Inherited from
60
+
61
+ [`ActionCode`](ActionCode.md).[`pubkey`](ActionCode.md#pubkey)
62
+
63
+ ***
64
+
65
+ ### revokeSignature
66
+
67
+ > **revokeSignature**: `string`
68
+
69
+ Defined in: src/types.ts:44
70
+
71
+ ***
72
+
73
+ ### signature
74
+
75
+ > **signature**: `string`
76
+
77
+ Defined in: src/types.ts:11
78
+
79
+ #### Inherited from
80
+
81
+ [`ActionCode`](ActionCode.md).[`signature`](ActionCode.md#signature)
82
+
83
+ ***
84
+
85
+ ### timestamp
86
+
87
+ > **timestamp**: `number`
88
+
89
+ Defined in: src/types.ts:9
90
+
91
+ #### Inherited from
92
+
93
+ [`ActionCode`](ActionCode.md).[`timestamp`](ActionCode.md#timestamp)
@@ -1,12 +1,12 @@
1
- [**@actioncodes/protocol-v2**](../../README.md)
1
+ [**@actioncodes/protocol**](../../README.md)
2
2
 
3
3
  ***
4
4
 
5
- [@actioncodes/protocol-v2](../../modules.md) / [types](../README.md) / CanonicalMessageParts
5
+ [@actioncodes/protocol](../../modules.md) / [types](../README.md) / CanonicalMessageParts
6
6
 
7
7
  # Interface: CanonicalMessageParts
8
8
 
9
- Defined in: src/types.ts:12
9
+ Defined in: src/types.ts:14
10
10
 
11
11
  ## Properties
12
12
 
@@ -14,15 +14,7 @@ Defined in: src/types.ts:12
14
14
 
15
15
  > **pubkey**: `string`
16
16
 
17
- Defined in: src/types.ts:13
18
-
19
- ***
20
-
21
- ### secret?
22
-
23
- > `optional` **secret**: `string`
24
-
25
- Defined in: src/types.ts:16
17
+ Defined in: src/types.ts:15
26
18
 
27
19
  ***
28
20
 
@@ -30,4 +22,4 @@ Defined in: src/types.ts:16
30
22
 
31
23
  > **windowStart**: `number`
32
24
 
33
- Defined in: src/types.ts:14
25
+ Defined in: src/types.ts:16
@@ -0,0 +1,33 @@
1
+ [**@actioncodes/protocol**](../../README.md)
2
+
3
+ ***
4
+
5
+ [@actioncodes/protocol](../../modules.md) / [types](../README.md) / CanonicalRevokeMessageParts
6
+
7
+ # Interface: CanonicalRevokeMessageParts
8
+
9
+ Defined in: src/types.ts:19
10
+
11
+ ## Properties
12
+
13
+ ### codeHash
14
+
15
+ > **codeHash**: `string`
16
+
17
+ Defined in: src/types.ts:21
18
+
19
+ ***
20
+
21
+ ### pubkey
22
+
23
+ > **pubkey**: `string`
24
+
25
+ Defined in: src/types.ts:20
26
+
27
+ ***
28
+
29
+ ### windowStart
30
+
31
+ > **windowStart**: `number`
32
+
33
+ Defined in: src/types.ts:22
@@ -1,12 +1,12 @@
1
- [**@actioncodes/protocol-v2**](../../README.md)
1
+ [**@actioncodes/protocol**](../../README.md)
2
2
 
3
3
  ***
4
4
 
5
- [@actioncodes/protocol-v2](../../modules.md) / [types](../README.md) / CodeGenerationConfig
5
+ [@actioncodes/protocol](../../modules.md) / [types](../README.md) / CodeGenerationConfig
6
6
 
7
7
  # Interface: CodeGenerationConfig
8
8
 
9
- Defined in: src/types.ts:19
9
+ Defined in: src/types.ts:25
10
10
 
11
11
  ## Properties
12
12
 
@@ -14,7 +14,7 @@ Defined in: src/types.ts:19
14
14
 
15
15
  > `optional` **clockSkewMs**: `number`
16
16
 
17
- Defined in: src/types.ts:22
17
+ Defined in: src/types.ts:28
18
18
 
19
19
  ***
20
20
 
@@ -22,7 +22,7 @@ Defined in: src/types.ts:22
22
22
 
23
23
  > **codeLength**: `number`
24
24
 
25
- Defined in: src/types.ts:20
25
+ Defined in: src/types.ts:26
26
26
 
27
27
  ***
28
28
 
@@ -30,4 +30,4 @@ Defined in: src/types.ts:20
30
30
 
31
31
  > **ttlMs**: `number`
32
32
 
33
- Defined in: src/types.ts:21
33
+ Defined in: src/types.ts:27
@@ -0,0 +1,97 @@
1
+ [**@actioncodes/protocol**](../../README.md)
2
+
3
+ ***
4
+
5
+ [@actioncodes/protocol](../../modules.md) / [types](../README.md) / DelegatedActionCode
6
+
7
+ # Interface: DelegatedActionCode
8
+
9
+ Defined in: src/types.ts:39
10
+
11
+ ## Extends
12
+
13
+ - [`ActionCode`](ActionCode.md)
14
+
15
+ ## Extended by
16
+
17
+ - [`DelegatedActionCodeRevoke`](DelegatedActionCodeRevoke.md)
18
+
19
+ ## Properties
20
+
21
+ ### chain
22
+
23
+ > **chain**: `"solana"`
24
+
25
+ Defined in: src/types.ts:6
26
+
27
+ #### Inherited from
28
+
29
+ [`ActionCode`](ActionCode.md).[`chain`](ActionCode.md#chain)
30
+
31
+ ***
32
+
33
+ ### code
34
+
35
+ > **code**: `string`
36
+
37
+ Defined in: src/types.ts:7
38
+
39
+ #### Inherited from
40
+
41
+ [`ActionCode`](ActionCode.md).[`code`](ActionCode.md#code)
42
+
43
+ ***
44
+
45
+ ### delegationProof
46
+
47
+ > **delegationProof**: [`DelegationProof`](DelegationProof.md)
48
+
49
+ Defined in: src/types.ts:40
50
+
51
+ ***
52
+
53
+ ### expiresAt
54
+
55
+ > **expiresAt**: `number`
56
+
57
+ Defined in: src/types.ts:10
58
+
59
+ #### Inherited from
60
+
61
+ [`ActionCode`](ActionCode.md).[`expiresAt`](ActionCode.md#expiresat)
62
+
63
+ ***
64
+
65
+ ### pubkey
66
+
67
+ > **pubkey**: `string`
68
+
69
+ Defined in: src/types.ts:8
70
+
71
+ #### Inherited from
72
+
73
+ [`ActionCode`](ActionCode.md).[`pubkey`](ActionCode.md#pubkey)
74
+
75
+ ***
76
+
77
+ ### signature
78
+
79
+ > **signature**: `string`
80
+
81
+ Defined in: src/types.ts:11
82
+
83
+ #### Inherited from
84
+
85
+ [`ActionCode`](ActionCode.md).[`signature`](ActionCode.md#signature)
86
+
87
+ ***
88
+
89
+ ### timestamp
90
+
91
+ > **timestamp**: `number`
92
+
93
+ Defined in: src/types.ts:9
94
+
95
+ #### Inherited from
96
+
97
+ [`ActionCode`](ActionCode.md).[`timestamp`](ActionCode.md#timestamp)
@@ -0,0 +1,105 @@
1
+ [**@actioncodes/protocol**](../../README.md)
2
+
3
+ ***
4
+
5
+ [@actioncodes/protocol](../../modules.md) / [types](../README.md) / DelegatedActionCodeRevoke
6
+
7
+ # Interface: DelegatedActionCodeRevoke
8
+
9
+ Defined in: src/types.ts:47
10
+
11
+ ## Extends
12
+
13
+ - [`DelegatedActionCode`](DelegatedActionCode.md)
14
+
15
+ ## Properties
16
+
17
+ ### chain
18
+
19
+ > **chain**: `"solana"`
20
+
21
+ Defined in: src/types.ts:6
22
+
23
+ #### Inherited from
24
+
25
+ [`DelegatedActionCode`](DelegatedActionCode.md).[`chain`](DelegatedActionCode.md#chain)
26
+
27
+ ***
28
+
29
+ ### code
30
+
31
+ > **code**: `string`
32
+
33
+ Defined in: src/types.ts:7
34
+
35
+ #### Inherited from
36
+
37
+ [`DelegatedActionCode`](DelegatedActionCode.md).[`code`](DelegatedActionCode.md#code)
38
+
39
+ ***
40
+
41
+ ### delegationProof
42
+
43
+ > **delegationProof**: [`DelegationProof`](DelegationProof.md)
44
+
45
+ Defined in: src/types.ts:40
46
+
47
+ #### Inherited from
48
+
49
+ [`DelegatedActionCode`](DelegatedActionCode.md).[`delegationProof`](DelegatedActionCode.md#delegationproof)
50
+
51
+ ***
52
+
53
+ ### expiresAt
54
+
55
+ > **expiresAt**: `number`
56
+
57
+ Defined in: src/types.ts:10
58
+
59
+ #### Inherited from
60
+
61
+ [`DelegatedActionCode`](DelegatedActionCode.md).[`expiresAt`](DelegatedActionCode.md#expiresat)
62
+
63
+ ***
64
+
65
+ ### pubkey
66
+
67
+ > **pubkey**: `string`
68
+
69
+ Defined in: src/types.ts:8
70
+
71
+ #### Inherited from
72
+
73
+ [`DelegatedActionCode`](DelegatedActionCode.md).[`pubkey`](DelegatedActionCode.md#pubkey)
74
+
75
+ ***
76
+
77
+ ### revokeSignature
78
+
79
+ > **revokeSignature**: `string`
80
+
81
+ Defined in: src/types.ts:48
82
+
83
+ ***
84
+
85
+ ### signature
86
+
87
+ > **signature**: `string`
88
+
89
+ Defined in: src/types.ts:11
90
+
91
+ #### Inherited from
92
+
93
+ [`DelegatedActionCode`](DelegatedActionCode.md).[`signature`](DelegatedActionCode.md#signature)
94
+
95
+ ***
96
+
97
+ ### timestamp
98
+
99
+ > **timestamp**: `number`
100
+
101
+ Defined in: src/types.ts:9
102
+
103
+ #### Inherited from
104
+
105
+ [`DelegatedActionCode`](DelegatedActionCode.md).[`timestamp`](DelegatedActionCode.md#timestamp)
@@ -0,0 +1,49 @@
1
+ [**@actioncodes/protocol**](../../README.md)
2
+
3
+ ***
4
+
5
+ [@actioncodes/protocol](../../modules.md) / [types](../README.md) / DelegationProof
6
+
7
+ # Interface: DelegationProof
8
+
9
+ Defined in: src/types.ts:31
10
+
11
+ ## Properties
12
+
13
+ ### chain
14
+
15
+ > **chain**: `string`
16
+
17
+ Defined in: src/types.ts:35
18
+
19
+ ***
20
+
21
+ ### delegatedPubkey
22
+
23
+ > **delegatedPubkey**: `string`
24
+
25
+ Defined in: src/types.ts:33
26
+
27
+ ***
28
+
29
+ ### expiresAt
30
+
31
+ > **expiresAt**: `number`
32
+
33
+ Defined in: src/types.ts:34
34
+
35
+ ***
36
+
37
+ ### signature
38
+
39
+ > **signature**: `string`
40
+
41
+ Defined in: src/types.ts:36
42
+
43
+ ***
44
+
45
+ ### walletPubkey
46
+
47
+ > **walletPubkey**: `string`
48
+
49
+ Defined in: src/types.ts:32
@@ -0,0 +1,11 @@
1
+ [**@actioncodes/protocol**](../../README.md)
2
+
3
+ ***
4
+
5
+ [@actioncodes/protocol](../../modules.md) / [types](../README.md) / Chain
6
+
7
+ # Type Alias: Chain
8
+
9
+ > **Chain** = keyof *typeof* [`SUPPORTED_CHAINS`](../../constants/variables/SUPPORTED_CHAINS.md)
10
+
11
+ Defined in: src/types.ts:3
@@ -1,8 +1,8 @@
1
- [**@actioncodes/protocol-v2**](../../README.md)
1
+ [**@actioncodes/protocol**](../../README.md)
2
2
 
3
3
  ***
4
4
 
5
- [@actioncodes/protocol-v2](../../modules.md) / utils/canonical
5
+ [@actioncodes/protocol](../../modules.md) / utils/canonical
6
6
 
7
7
  # utils/canonical
8
8
 
@@ -10,7 +10,11 @@
10
10
 
11
11
  - [CANONICAL\_MESSAGE\_PREFIX](variables/CANONICAL_MESSAGE_PREFIX.md)
12
12
  - [CANONICAL\_MESSAGE\_VERSION](variables/CANONICAL_MESSAGE_VERSION.md)
13
+ - [CANONICAL\_REVOKE\_MESSAGE\_PREFIX](variables/CANONICAL_REVOKE_MESSAGE_PREFIX.md)
13
14
 
14
15
  ## Functions
15
16
 
17
+ - [getCanonicalMessageParts](functions/getCanonicalMessageParts.md)
16
18
  - [serializeCanonical](functions/serializeCanonical.md)
19
+ - [serializeCanonicalRevoke](functions/serializeCanonicalRevoke.md)
20
+ - [serializeDelegationProof](functions/serializeDelegationProof.md)
@@ -0,0 +1,21 @@
1
+ [**@actioncodes/protocol**](../../../README.md)
2
+
3
+ ***
4
+
5
+ [@actioncodes/protocol](../../../modules.md) / [utils/canonical](../README.md) / getCanonicalMessageParts
6
+
7
+ # Function: getCanonicalMessageParts()
8
+
9
+ > **getCanonicalMessageParts**(`pubkey`): `Uint8Array`
10
+
11
+ Defined in: src/utils/canonical.ts:100
12
+
13
+ ## Parameters
14
+
15
+ ### pubkey
16
+
17
+ `string`
18
+
19
+ ## Returns
20
+
21
+ `Uint8Array`
@@ -1,14 +1,14 @@
1
- [**@actioncodes/protocol-v2**](../../../README.md)
1
+ [**@actioncodes/protocol**](../../../README.md)
2
2
 
3
3
  ***
4
4
 
5
- [@actioncodes/protocol-v2](../../../modules.md) / [utils/canonical](../README.md) / serializeCanonical
5
+ [@actioncodes/protocol](../../../modules.md) / [utils/canonical](../README.md) / serializeCanonical
6
6
 
7
7
  # Function: serializeCanonical()
8
8
 
9
9
  > **serializeCanonical**(`parts`): `Uint8Array`
10
10
 
11
- Defined in: src/utils/canonical.ts:6
11
+ Defined in: src/utils/canonical.ts:12
12
12
 
13
13
  ## Parameters
14
14
 
@@ -0,0 +1,21 @@
1
+ [**@actioncodes/protocol**](../../../README.md)
2
+
3
+ ***
4
+
5
+ [@actioncodes/protocol](../../../modules.md) / [utils/canonical](../README.md) / serializeCanonicalRevoke
6
+
7
+ # Function: serializeCanonicalRevoke()
8
+
9
+ > **serializeCanonicalRevoke**(`parts`): `Uint8Array`
10
+
11
+ Defined in: src/utils/canonical.ts:50
12
+
13
+ ## Parameters
14
+
15
+ ### parts
16
+
17
+ [`CanonicalRevokeMessageParts`](../../../types/interfaces/CanonicalRevokeMessageParts.md)
18
+
19
+ ## Returns
20
+
21
+ `Uint8Array`
@@ -0,0 +1,21 @@
1
+ [**@actioncodes/protocol**](../../../README.md)
2
+
3
+ ***
4
+
5
+ [@actioncodes/protocol](../../../modules.md) / [utils/canonical](../README.md) / serializeDelegationProof
6
+
7
+ # Function: serializeDelegationProof()
8
+
9
+ > **serializeDelegationProof**(`proof`): `Uint8Array`
10
+
11
+ Defined in: src/utils/canonical.ts:104
12
+
13
+ ## Parameters
14
+
15
+ ### proof
16
+
17
+ `Omit`\<[`DelegationProof`](../../../types/interfaces/DelegationProof.md), `"signature"`\>
18
+
19
+ ## Returns
20
+
21
+ `Uint8Array`
@@ -1,11 +1,11 @@
1
- [**@actioncodes/protocol-v2**](../../../README.md)
1
+ [**@actioncodes/protocol**](../../../README.md)
2
2
 
3
3
  ***
4
4
 
5
- [@actioncodes/protocol-v2](../../../modules.md) / [utils/canonical](../README.md) / CANONICAL\_MESSAGE\_PREFIX
5
+ [@actioncodes/protocol](../../../modules.md) / [utils/canonical](../README.md) / CANONICAL\_MESSAGE\_PREFIX
6
6
 
7
7
  # Variable: CANONICAL\_MESSAGE\_PREFIX
8
8
 
9
9
  > `const` **CANONICAL\_MESSAGE\_PREFIX**: `"actioncodes"` = `"actioncodes"`
10
10
 
11
- Defined in: src/utils/canonical.ts:4
11
+ Defined in: src/utils/canonical.ts:9
@@ -1,11 +1,11 @@
1
- [**@actioncodes/protocol-v2**](../../../README.md)
1
+ [**@actioncodes/protocol**](../../../README.md)
2
2
 
3
3
  ***
4
4
 
5
- [@actioncodes/protocol-v2](../../../modules.md) / [utils/canonical](../README.md) / CANONICAL\_MESSAGE\_VERSION
5
+ [@actioncodes/protocol](../../../modules.md) / [utils/canonical](../README.md) / CANONICAL\_MESSAGE\_VERSION
6
6
 
7
7
  # Variable: CANONICAL\_MESSAGE\_VERSION
8
8
 
9
9
  > `const` **CANONICAL\_MESSAGE\_VERSION**: `1` = `1`
10
10
 
11
- Defined in: src/utils/canonical.ts:3
11
+ Defined in: src/utils/canonical.ts:8