You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/compiler/script-limits.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,16 +13,16 @@ Some of the limits below are hard BCH consensus rules, others are standardness r
13
13
14
14
### Maximum contract size (P2SH)
15
15
16
-
The Bitcoin Cash limits contract bytecode for P2SH outputs is **10,000 bytes** by the BCH consensus rules. Technically this limit is the 'maximum unlocking bytecode length' because for P2SH outputs the full script is provided in the **unlocking bytecode**.
16
+
The limit on Bitcoin Cash for contract bytecode for P2SH outputs is **10,000 bytes** by the BCH consensus rules. Technically this limit is the 'maximum unlocking bytecode length' because for P2SH outputs the full script is provided in the **unlocking bytecode**.
17
17
18
18
### Maximum contract size (P2S)
19
19
20
-
The Bitcoin Cash limits contract bytecode for P2S outputs is **201 bytes** by the BCH consensus rules. Technically this limit is the 'maximum locking bytecode length' because for P2S outputs the script is provided directly in the **locking bytecode**.
20
+
The limit on Bitcoin Cash for contract bytecode for P2S outputs is **201 bytes** by the BCH consensus rules. Technically this limit is the 'maximum locking bytecode length' because for P2S outputs the script is provided directly in the **locking bytecode**.
21
21
22
22
23
23
### NFT commitment length limit
24
24
25
-
NFT commitments can store up to 128 bytes of data as local state. This 128-bytes limit on commitment length is of practical importance for contract authors, as workarounds are needed to keep more data in local state.
25
+
NFT commitments can store up to **128 bytes** of data as local state. This 128-bytes limit on commitment length is of practical importance for contract authors, as workarounds are needed to keep more data in local state.
26
26
27
27
If your local state grows larger than the allowed maximum, one option is to hash the full state and store only the hash in the commitment data. Later, when using the local state, the full state must be provided and validated against the stored state hash.
28
28
@@ -71,12 +71,12 @@ function calculateDust(outputSize: number): number {
71
71
}
72
72
```
73
73
74
-
Before CashTokens `546`bytes was often used as good default value, however with tokenData outputs have become larger in size.
75
-
For ease of development, it is standard practice to use 1,000 satoshis as dust to outputs.
74
+
Before CashTokens `546`sats was often used as dust default value, however with tokenData outputs have become larger in size, which affects the dust value calculation.
75
+
For ease of development, it is standard practice to use `1,000` satoshis as dust to outputs.
76
76
77
77
:::note
78
-
The standard practice of 1,000 satoshis as dust amount for outputs is only considering`P2PKH`, `P2SH20` and `P2SH32` output types.
79
-
For other custom locking bytecode outputs a higher dust limits may be required, you can [find more info here][info-dust-limit]
78
+
The standard practice of 1,000 satoshis as dust amount for outputs is for the`P2PKH`, `P2SH20` and `P2SH32` output types.
79
+
For custom locking bytecode outputs a higher dust limits may be required, you can [find more info here][info-dust-limit].
0 commit comments