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/guides/deployment.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ This means you can reconstruct a contract's address at any time, on any machine,
35
35
36
36
Some constructor arguments are straightforward constants (block heights, timelocks). Others require preparation before deployment:
37
37
38
-
-**Token IDs from other categories** — in complex systems with multiple token categories, contracts often reference each other's token IDs as constructor arguments. Note that token IDs must be byte-reversed when passed as constructor arguments, because the Bitcoin Cash VM uses little-endian byte order internally while token IDs are displayed in big-endian (the same applies to txids).
38
+
-**Token IDs from other categories** — in complex systems with multiple token categories, contracts often reference each other's token IDs as constructor arguments. Note that token IDs must be byte-reversed when passed as constructor arguments, because the Bitcoin Cash VM uses little-endian byte order internally while token IDs are displayed in big-endian (the same applies to transaction IDs).
39
39
-**Locking bytecodes from other contracts** — in multi-contract systems, one contract may reference another by locking bytecode. This creates a dependency chain: you must instantiate the referenced contract first, extract its locking bytecode, and pass it as a constructor argument to the dependent contract.
40
40
-**Public keys** — for contracts that validate signed messages (e.g. from an oracle provider), you need the signer's public key. For owner authentication, you need to derive the public key hash from a keypair ahead of time.
41
41
@@ -77,7 +77,7 @@ Once you have the vout0 UTXO, its txid (the future token ID) is already known be
77
77
78
78
### Setup Wallet
79
79
80
-
To create vout0 UTXOs and broadcast the genesis transaction, you need a funded wallet. This is typically a standard P2PKH wallet derived from a WIF private key or an HD seedphrase, with enough BCH to fund all contract outputs (each needs at least dust amount, typically 1000 sats).
80
+
To create vout0 UTXOs and broadcast the genesis transaction, you need a funded wallet. This is typically a standard P2PKH wallet derived from a WIF private key or an HD seed phrase, with enough BCH to fund all contract outputs (each needs at least dust amount, typically 1000 sats).
81
81
82
82
The setup wallet may already have UTXOs at vout 0, but usually you need to prepare them. You can do this by sending BCH from the setup wallet back to itself as the sole output of a transaction. Since it's the only output, it will be at index 0.
83
83
@@ -122,7 +122,7 @@ The genesis transaction creates the CashToken category and distributes the initi
122
122
123
123
-**Fungible tokens** — the initial token supply distributed to contract addresses
124
124
-**NFTs with minting capability** — for contracts that need to create new NFTs during operation
125
-
-**NFTs with mutable capability** — for contracts that store updateable state in the NFT commitment
125
+
-**NFTs with mutable capability** — for contracts that store updatable state in the NFT commitment
126
126
-**NFTs with no capability (immutable)** — for contracts that carry fixed identifying data
127
127
128
128
:::info
@@ -163,7 +163,7 @@ Use `@bitauth/libauth` to encode values into commitment bytes. This ensures valu
0 commit comments