Docs: update delegating_stake
# Delegating your stake
-
## how to create the delegation certificate
-Stake is concentrated in accounts, and you will need your account key to
+Stake is concentrated in accounts, and you will need your account public key to
delegate its associated stake.
You will need your:
@@ -12,23 +11,9 @@ You will need your:
* the Stake Pool ID: an hexadecimal string identifying the stake pool you want
to delegate your stake to.
+```sh
+jcli certificate new stake-delegation ACCOUNT_PUBLIC_KEY STAKE_POOL_ID > stake_delegation.cert
```
-$ jcli certificate new stake-delegation STAKE_POOL_ID ACCOUNT_PUBLIC_KEY > stake_delegation.cert
-```
-
-## how to sign your delegation certificate
-
-We need to make sure that the owner of the account is authorizing this
-delegation to happens, and for that we need a cryptographic signature.
-
-We will need the account secret key to create a signature
-
-```
-$ cat stake_delegation.cert | jcli certificate sign account_key.prv | tee stake_delegation.cert
-cert1q8rv4ccl54k99rtnm39...zr0
-```
-
-The output can now be added in the `transaction` and submitted to a node.
## submitting to a node
@@ -41,9 +26,11 @@ For example:
...
jcli transaction add-certificate $(cat stake_delegation.cert) --staging tx
-
jcli transaction finalize CHANGE_ADDRESS --fee-constant 5 --fee-coefficient 2 --fee-certificate 2 --staging tx
+...
+jcli transaction seal --staging tx
+jcli transaction auth --key account_key.prv --staging tx
...
```
@@ -51,3 +38,20 @@ jcli transaction finalize CHANGE_ADDRESS --fee-constant 5 --fee-coefficient 2 --
The `--fee-certificate` flag indicates the cost of adding a certificate, used for computing the fees, it can be omitted if it is zero.
See [here](../jcli/transaction.md) for more documentation on transaction creation.
+
+## how to sign your delegation certificate
+
+This procedure is needed only for certificates that are to be included
+in the `genesis config` file.
+
+We need to make sure that the owner of the account is authorizing this
+delegation to happens, and for that we need a cryptographic signature.
+
+We will need the account secret key to create a signature
+
+```sh
+cat stake_delegation.cert | jcli certificate sign account_key.prv | tee stake_delegation.signedcert
+signedcert1q9uxkxptz3zx7akmugk...7764rq
+```
+
+The output can now be added in the `genesis config` file
