Skip to content

Commit 11d677d

Browse files
kenrogersgitbook-bot
authored andcommitted
GITBOOK-232: Update auth id value length
1 parent 7e35935 commit 11d677d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

guides-and-tutorials/stack-stx/operate-a-pool.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ The CLI command is:
466466
stacks-signer generate-stacking-signature \
467467
--method stack-stx \
468468
--max-amount 1000000000000 \
469-
--auth-id 195591226970828652622091037492597751808 \
469+
--auth-id 12345 \
470470
--period 1 \
471471
--reward-cycle 100 \
472472
--pox-address bc1... \
@@ -488,7 +488,7 @@ python3 -c 'import secrets; print(secrets.randbits(128))'
488488
Once the `generate-stacking-signature` command is run, the CLI will output a JSON:
489489

490490
```json
491-
{"authId":"1234","maxAmount":"1234","method":"stack-stx","period":1,"poxAddress":"bc1...","rewardCycle":100,"signerKey":"aaaaaaaa","signerSignature":"bbbbbbbbbbb"}
491+
{"authId":"12345","maxAmount":"1234","method":"stack-stx","period":1,"poxAddress":"bc1...","rewardCycle":100,"signerKey":"aaaaaaaa","signerSignature":"bbbbbbbbbbb"}
492492
```
493493

494494
You will use the JSON when calling Stacking transactions from your pool operator address as outlined above. Remember that this may be different than your signer address.

guides-and-tutorials/stack-stx/stacking-flow.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ You may want to review this contract to familiarize yourself with it.
292292
1. `signer-key`: the public key that corresponds to the `stacks_private_key` your signer is using
293293
2. `signer-signature`: a signature that demonstrates that you actually controls your `signer-key`. Because signer keys need to be unique, this is also a safety check to ensure that other Stackers can’t use someone else’s public key
294294
3. `max-amount`: The maximum amount of ustx (1 stx = 1,000,000 ustx) that can be locked in the transaction that uses this signature. For example, if calling `stack-increase`, then this parameter dictates the maximum amount of ustx that can be used to add more locked STX
295-
4. `auth-id`: a random integer that prevents re-use of a particular signature, similar to how nonces are used with transactions
295+
4. `auth-id`: a random integer that prevents re-use of a particular signature, similar to how nonces are used with transactions. Must be less than 10 characters
296296

297297
Signer signatures are signatures created using a particular signer key. They demonstrate that the controller of that signer key is allowing a Stacker to use their signing key. The signer signature’s message hash is created using the following data:
298298

@@ -327,7 +327,8 @@ The CLI command is:
327327
stacks-signer generate-stacking-signature \
328328
--method stack-stx \
329329
--max-amount 1000000000000 \
330-
--auth-id 195591226970828652622091037492597751808 \
330+
# auth-id should be a random string less than 10 characters
331+
--auth-id 12345 \
331332
--period 1 \
332333
--reward-cycle 100 \
333334
--pox-address bc1... \
@@ -349,7 +350,7 @@ python3 -c 'import secrets; print(secrets.randbits(128))'
349350
Once the `generate-stacking-signature` command is run, the CLI will output a JSON:
350351

351352
```json
352-
{"authId":"1234","maxAmount":"1234","method":"stack-stx","period":1,"poxAddress":"bc1...","rewardCycle":100,"signerKey":"aaaaaaaa","signerSignature":"bbbbbbbbbbb"}
353+
{"authId":"1234","maxAmount":"12345","method":"stack-stx","period":1,"poxAddress":"bc1...","rewardCycle":100,"signerKey":"aaaaaaaa","signerSignature":"bbbbbbbbbbb"}
353354
```
354355

355356
You will use the JSON when calling Stacking transactions from your pool operator address as outlined above. Remember that this may be different than your signer address.

0 commit comments

Comments
 (0)