get seed endpoint

This commit is contained in:
boufni95 2024-08-09 20:20:21 +02:00
parent 2badf5f468
commit 91c330a8bb
16 changed files with 4812 additions and 4631 deletions

View file

@ -130,6 +130,13 @@ service LightningPub {
option (nostr) = true;
}
rpc GetSeed(structs.Empty) returns (structs.LndSeed) {
option (auth_type) = "Admin";
option (http_method) = "get";
option (http_route) = "/api/admin/seed";
option (nostr) = true;
}
rpc GetUsageMetrics(structs.Empty) returns (structs.UsageMetrics) {
option (auth_type) = "Metrics";
option (http_method) = "post";

View file

@ -6,6 +6,9 @@ option go_package = "github.com/shocknet/lightning.pub";
message Empty {}
message LndSeed {
repeated string seed = 1;
}
message EncryptionExchangeRequest {
string publicKey = 1;