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: doc/jcli/transaction.md
+27-3Lines changed: 27 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -189,14 +189,32 @@ status: finalizing
189
189
190
190
### Make witness
191
191
192
-
For signing the transaction, you need the private key associated with the input address (the one that's in the utxos) and the hash of the genesis block of the network you are connected to.
192
+
For signing the transaction, you need:
193
+
194
+
- the hash of the genesis block of the network you are connected to.
195
+
- the private key associated with the input address (the one that's in the utxos).
196
+
- the hash of the transaction, that can be retrieved in two ways:
197
+
1. `sign_data_hash` value from `jcli transaction info --staging tx` or
The genesis' hash is needed for ensuring that the transaction cannot be re-used in another blockchain and for security concerns on offline transaction signing, as we are signing the transaction for the specific blockchain started by this block0 hash.
195
201
202
+
First we need to get the hash of the transaction we are going to sign.
203
+
204
+
```sh
205
+
jcli transaction data-for-witness --staging tx
206
+
```
207
+
208
+
You should see something like this (the value may be different since it depends on the input/output data)
0 commit comments