Skip to content

Commit 3e310a3

Browse files
ShahanaFarooquirustyrussell
authored andcommitted
doc: commando-listrunes & commando-blacklist
1 parent af2c1f1 commit 3e310a3

File tree

5 files changed

+100
-2
lines changed

5 files changed

+100
-2
lines changed

doc/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ MANPAGES := doc/lightning-cli.1 \
2323
doc/lightning-close.7 \
2424
doc/lightning-connect.7 \
2525
doc/lightning-commando.7 \
26+
doc/lightning-commando-blacklist.7 \
27+
doc/lightning-commando-listrunes.7 \
2628
doc/lightning-commando-rune.7 \
2729
doc/lightning-createonion.7 \
2830
doc/lightning-createinvoice.7 \

doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ Core Lightning Documentation
4444
lightning-checkmessage <lightning-checkmessage.7.md>
4545
lightning-cli <lightning-cli.1.md>
4646
lightning-close <lightning-close.7.md>
47+
lightning-commando-blacklist <lightning-commando-blacklist.7.md>
48+
lightning-commando-listrunes <lightning-commando-listrunes.7.md>
4749
lightning-commando-rune <lightning-commando-rune.7.md>
4850
lightning-commando <lightning-commando.7.md>
4951
lightning-connect <lightning-connect.7.md>

doc/lightning-commando-blacklist.7.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
lightning-commando-blacklist -- Command to prevent a rune from working
2+
======================================================================
3+
4+
SYNOPSIS
5+
--------
6+
7+
**commando-blacklist** [*start* [*end*]]
8+
9+
DESCRIPTION
10+
-----------
11+
12+
The **commando-blacklist** RPC command allows you to effectively revoke the rune you have created (and any runes derived from that rune with additional restictions). Attempting to use these runes will be resulted in a `Blacklisted rune` error message.
13+
14+
All runes created by commando have a unique sequential id within them and can be blacklisted in ranges for efficiency. The command always returns the blacklisted ranges on success. If no parameters are specified, no changes have been made. If start specified without end, that single rune is blacklisted. If end is also specified, every rune from start till end inclusive is blacklisted.
15+
16+
RETURN VALUE
17+
------------
18+
19+
[comment]: # (GENERATE-FROM-SCHEMA-START)
20+
On success, an object containing **blacklist** is returned. It is an array of objects, where each object contains:
21+
22+
- **start** (u64): Unique id of first rune in this blacklist range
23+
- **end** (u64): Unique id of last rune in this blacklist range
24+
25+
[comment]: # (GENERATE-FROM-SCHEMA-END)
26+
27+
AUTHOR
28+
------
29+
30+
Shahana Farooqui <<sfarooqui@blockstream.com>> is mainly responsible.
31+
32+
SEE ALSO
33+
--------
34+
35+
lightning-commando-listrunes(7)
36+
37+
RESOURCES
38+
---------
39+
40+
Main web site: <https://github.com/ElementsProject/lightning>
41+
42+
[comment]: # ( SHA256STAMP:a165eb0086559c67fd2992bd736450fc5cb60d5607b94b095782e5c43b945e66)

doc/lightning-commando-listrunes.7.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
lightning-commando-listrunes -- Command to list previously generated runes
2+
==========================================================================
3+
4+
SYNOPSIS
5+
--------
6+
7+
**commando-listrunes** [*rune*]
8+
9+
DESCRIPTION
10+
-----------
11+
12+
The **commando-listrunes** RPC command either lists runes that we stored as we generate them (see lightning-commando-rune(7)) or decodes the rune given on the command line.
13+
14+
NOTE: Runes generated prior to v23.05 were not stored, so will not appear in this list.
15+
16+
RETURN VALUE
17+
------------
18+
19+
[comment]: # (GENERATE-FROM-SCHEMA-START)
20+
On success, an object containing **runes** is returned. It is an array of objects, where each object contains:
21+
22+
- **rune** (string): Base64 encoded rune
23+
- **unique\_id** (string): Unique id assigned when the rune was generated; this is always a u64 for commando runes
24+
- **restrictions** (array of objects): The restrictions on what commands this rune can authorize:
25+
- **alternatives** (array of objects):
26+
- **fieldname** (string): The field this restriction applies to; see commando-rune(7)
27+
- **value** (string): The value accepted for this field
28+
- **condition** (string): The way to compare fieldname and value
29+
- **english** (string): English readable description of this alternative
30+
- **restrictions\_as\_english** (string): English readable description of the restrictions array above
31+
- **stored** (boolean, optional): This is false if the rune does not appear in our datastore (only possible when `rune` is specified) (always *false*)
32+
- **blacklisted** (boolean, optional): The rune has been blacklisted; see commando-blacklist(7) (always *true*)
33+
- **our\_rune** (boolean, optional): This is not a rune for this node (only possible when `rune` is specified) (always *false*)
34+
35+
[comment]: # (GENERATE-FROM-SCHEMA-END)
36+
37+
AUTHOR
38+
------
39+
40+
Shahana Farooqui <<sfarooqui@blockstream.com>> is mainly responsible.
41+
42+
SEE ALSO
43+
--------
44+
45+
lightning-commando-rune(7), lightning-commando-blacklist(7)
46+
47+
RESOURCES
48+
---------
49+
50+
Main web site: <https://github.com/ElementsProject/lightning>
51+
52+
[comment]: # ( SHA256STAMP:dd70c3640c0ffcc7e15fb5dc0fbaa7c28a1abcd6bacb46f9b16d94a4b2ec74d0)

doc/lightning-commando-rune.7.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ The **commando-rune** RPC command creates a base64 string called a
1414
contains a unique id (a number starting at 0), and can have
1515
restrictions inside it. Nobody can remove restrictions from a rune: if
1616
you try, the rune will be rejected. There is no limit on how many
17-
runes you can issue: the node doesn't store them, but simply decodes
18-
and checks them as they are received.
17+
runes you can issue; the node simply decodes
18+
and checks them as they are received (we do store them for lightning-commando-listrunes(7) however).
1919

2020
If *rune* is supplied, the restrictions are simple appended to that
2121
*rune* (it doesn't need to be a rune belonging to this node). If no

0 commit comments

Comments
 (0)