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
{{ message }}
Repository navigation
Commit 309fafc
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/operate/stacking-stx/generate-signer-signature.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,9 @@ description: >-
10
10
Updated for Stacks 4.x and PoX-5.
11
11
{% endhint %}
12
12
13
-
PoX-5 uses a one-time **signer-key grant**. You generate one grant per signer-manager contract and submit it once. Every staking call routed through that manager then relies on it until you revoke it. There is nothing to generate per transaction, per cycle, or per staker.
13
+
PoX-5 uses a one-time **signer-key grant**. You generate one grant per signer-manager contract and submit it once. Every staking call routed through that manager then relies on it until you revoke it. There is nothing to generate per transactionor per cycle.
14
14
15
-
The grant ties three things together: your signer node, the signer-manager contract that stakers stake to, and the pox-5 contract. Without an active grant, `stake` and every related call against your manager fails with `ERR_SIGNER_KEY_GRANT_NOT_FOUND` (u17).
15
+
The grant is what connects your signer node, the signer-manager contract that stakers stake to, and the pox-5 contract. Without an active grant, `stake` and every related call against your manager fails with `ERR_SIGNER_KEY_GRANT_NOT_FOUND` (u17).
16
16
17
17
### Generate the grant
18
18
@@ -51,7 +51,7 @@ The [register-self page](https://stx.fan/signer/04-register-self.html) takes a c
51
51
52
52
### What the grant contains
53
53
54
-
The signed message carries two application fields and nothing else:
***`signer-manager`** is the contract principal the key is bound to. Every staker who later stakes through that manager relies on this one grant.
62
62
***`auth-id`** is a replay guard. The tuple `(signer-key, signer-manager, auth-id)` can be consumed exactly once. Reusing it fails with `ERR_SIGNER_KEY_GRANT_USED` (u12). Pick a fresh value to issue a new grant.
63
63
64
-
There is no `max-amount`, `period`, `reward-cycle`, or `pox-addr` field. The grant is not scoped to a single call.
64
+
Those two fields are the whole scope. A grant authorises a signer-manager and stands until you revoke it.
65
65
66
66
### One grant covers every entrypoint
67
67
@@ -83,9 +83,9 @@ It must be sent directly by the Stacks principal derived from the signer key. No
83
83
84
84
Revoking is not a kill switch. It stops the manager accepting new stake. Existing positions are left intact and wind down as their locks expire.
85
85
86
-
### Doing it with the SDK
86
+
### Using @stacks/bitcoin-staking
87
87
88
-
`@stacks/bitcoin-staking` exposes the same flow for tooling:
Three things changed. The command was renamed from `generate-stacking-signature` to `generate-staking-signature`. Five scoping flags collapsed into a single `--signer-manager`. And the result is reusable, so you run it once per manager rather than once per transaction.
122
+
The command was renamed from `generate-stacking-signature` to `generate-staking-signature`. Five scoping flags collapsed into a single `--signer-manager`. The result is reusable, so you run it once per manager rather than once per transaction.
123
123
124
-
The old per-function signature table no longer applies. There are no `--method`, `--max-amount`, `--period`, `--reward-cycle`, or `--pox-address` flags, because a grant authorises a signer-manager rather than a specific call.
124
+
There are no `--method`, `--max-amount`, `--period`, `--reward-cycle`, or `--pox-address` flags, because a grant authorises a signer-manager rather than a specific call.
0 commit comments