-
Notifications
You must be signed in to change notification settings - Fork 81
/
proxy.proto
52 lines (41 loc) · 1.25 KB
/
proxy.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
syntax = "proto3";
package litrpc;
option go_package = "github.com/lightninglabs/lightning-terminal/litrpc";
service Proxy {
/* litcli: `getinfo`
GetInfo returns general information concerning the LiTd node.
*/
rpc GetInfo (GetInfoRequest) returns (GetInfoResponse);
/* litcli: `stop`
StopDaemon will send a shutdown request to the interrupt handler,
triggering a graceful shutdown of the daemon.
*/
rpc StopDaemon (StopDaemonRequest) returns (StopDaemonResponse);
/* litcli: `bakesupermacaroon`
BakeSuperMacaroon bakes a new macaroon that includes permissions for
all the active daemons that LiT is connected to.
*/
rpc BakeSuperMacaroon (BakeSuperMacaroonRequest)
returns (BakeSuperMacaroonResponse);
}
message BakeSuperMacaroonRequest {
/*
The root key ID suffix is the 4-byte suffix of the root key ID that will
be used to create the macaroon.
*/
uint32 root_key_id_suffix = 1;
}
message BakeSuperMacaroonResponse {
// The hex encoded macaroon.
string macaroon = 1;
}
message StopDaemonRequest {
}
message StopDaemonResponse {
}
message GetInfoRequest {
}
message GetInfoResponse {
// The version of the LiTd software that the node is running.
string version = 1;
}