mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-28 16:58:03 +01:00
parent
082cf33f88
commit
f49c3af192
7 changed files with 832 additions and 2380 deletions
|
@ -41,6 +41,7 @@ from . import walletunlocker_pb2 as walletunlocker__pb2
|
|||
|
||||
Make sure the first lines (ignore comments) of the `walletunlocker_pb2.py` look like the following for python3 compatibility:
|
||||
```
|
||||
from google.protobuf.internal import builder as _builder
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import message as _message
|
||||
|
|
|
@ -567,9 +567,42 @@ service Lightning {
|
|||
/* lncli: `subscribecustom`
|
||||
SubscribeCustomMessages subscribes to a stream of incoming custom peer
|
||||
messages.
|
||||
|
||||
To include messages with type outside of the custom range (>= 32768) lnd
|
||||
needs to be compiled with the `dev` build tag, and the message type to
|
||||
override should be specified in lnd's experimental protocol configuration.
|
||||
*/
|
||||
rpc SubscribeCustomMessages (SubscribeCustomMessagesRequest)
|
||||
returns (stream CustomMessage);
|
||||
|
||||
/* lncli: `listaliases`
|
||||
ListAliases returns the set of all aliases that have ever existed with
|
||||
their confirmed SCID (if it exists) and/or the base SCID (in the case of
|
||||
zero conf).
|
||||
*/
|
||||
rpc ListAliases (ListAliasesRequest) returns (ListAliasesResponse);
|
||||
|
||||
/*
|
||||
LookupHtlcResolution retrieves a final htlc resolution from the database.
|
||||
If the htlc has no final resolution yet, a NotFound grpc status code is
|
||||
returned.
|
||||
*/
|
||||
rpc LookupHtlcResolution (LookupHtlcResolutionRequest)
|
||||
returns (LookupHtlcResolutionResponse);
|
||||
}
|
||||
|
||||
message LookupHtlcResolutionRequest {
|
||||
uint64 chan_id = 1;
|
||||
|
||||
uint64 htlc_index = 2;
|
||||
}
|
||||
|
||||
message LookupHtlcResolutionResponse {
|
||||
// Settled is true is the htlc was settled. If false, the htlc was failed.
|
||||
bool settled = 1;
|
||||
|
||||
// Offchain indicates whether the htlc was resolved off-chain or on-chain.
|
||||
bool offchain = 2;
|
||||
}
|
||||
|
||||
message SubscribeCustomMessagesRequest {
|
||||
|
@ -591,6 +624,9 @@ message SendCustomMessageRequest {
|
|||
bytes peer = 1;
|
||||
|
||||
// Message type. This value needs to be in the custom range (>= 32768).
|
||||
// To send a type < custom range, lnd needs to be compiled with the `dev`
|
||||
// build tag, and the message type to override should be specified in lnd's
|
||||
// experimental protocol configuration.
|
||||
uint32 type = 2;
|
||||
|
||||
// Raw message data.
|
||||
|
@ -630,6 +666,7 @@ enum OutputScriptType {
|
|||
SCRIPT_TYPE_NULLDATA = 6;
|
||||
SCRIPT_TYPE_NON_STANDARD = 7;
|
||||
SCRIPT_TYPE_WITNESS_UNKNOWN = 8;
|
||||
SCRIPT_TYPE_WITNESS_V1_TAPROOT = 9;
|
||||
}
|
||||
|
||||
message OutputDetail {
|
||||
|
@ -919,6 +956,14 @@ message ChannelAcceptRequest {
|
|||
|
||||
// The commitment type the initiator wishes to use for the proposed channel.
|
||||
CommitmentType commitment_type = 14;
|
||||
|
||||
// Whether the initiator wants to open a zero-conf channel via the channel
|
||||
// type.
|
||||
bool wants_zero_conf = 15;
|
||||
|
||||
// Whether the initiator wants to use the scid-alias channel type. This is
|
||||
// separate from the feature bit.
|
||||
bool wants_scid_alias = 16;
|
||||
}
|
||||
|
||||
message ChannelAcceptResponse {
|
||||
|
@ -979,6 +1024,13 @@ message ChannelAcceptResponse {
|
|||
The number of confirmations we require before we consider the channel open.
|
||||
*/
|
||||
uint32 min_accept_depth = 10;
|
||||
|
||||
/*
|
||||
Whether the responder wants this to be a zero-conf channel. This will fail
|
||||
if either side does not have the scid-alias feature bit set. The minimum
|
||||
depth field must be zero if this is true.
|
||||
*/
|
||||
bool zero_conf = 11;
|
||||
}
|
||||
|
||||
message ChannelPoint {
|
||||
|
@ -1475,6 +1527,24 @@ message Channel {
|
|||
|
||||
// List constraints for the remote node.
|
||||
ChannelConstraints remote_constraints = 30;
|
||||
|
||||
/*
|
||||
This lists out the set of alias short channel ids that exist for a channel.
|
||||
This may be empty.
|
||||
*/
|
||||
repeated uint64 alias_scids = 31;
|
||||
|
||||
// Whether or not this is a zero-conf channel.
|
||||
bool zero_conf = 32;
|
||||
|
||||
// This is the confirmed / on-chain zero-conf SCID.
|
||||
uint64 zero_conf_confirmed_scid = 33;
|
||||
|
||||
// The configured alias name of our peer.
|
||||
string peer_alias = 34;
|
||||
|
||||
// This is the peer SCID alias.
|
||||
uint64 peer_scid_alias = 35 [jstype = JS_STRING];
|
||||
}
|
||||
|
||||
message ListChannelsRequest {
|
||||
|
@ -1488,12 +1558,33 @@ message ListChannelsRequest {
|
|||
empty, all channels will be returned.
|
||||
*/
|
||||
bytes peer = 5;
|
||||
|
||||
// Informs the server if the peer alias lookup per channel should be
|
||||
// enabled. It is turned off by default in order to avoid degradation of
|
||||
// performance for existing clients.
|
||||
bool peer_alias_lookup = 6;
|
||||
}
|
||||
message ListChannelsResponse {
|
||||
// The list of active channels
|
||||
repeated Channel channels = 11;
|
||||
}
|
||||
|
||||
message AliasMap {
|
||||
/*
|
||||
For non-zero-conf channels, this is the confirmed SCID. Otherwise, this is
|
||||
the first assigned "base" alias.
|
||||
*/
|
||||
uint64 base_scid = 1;
|
||||
|
||||
// The set of all aliases stored for the base SCID.
|
||||
repeated uint64 aliases = 2;
|
||||
}
|
||||
message ListAliasesRequest {
|
||||
}
|
||||
message ListAliasesResponse {
|
||||
repeated AliasMap alias_maps = 1;
|
||||
}
|
||||
|
||||
enum Initiator {
|
||||
INITIATOR_UNKNOWN = 0;
|
||||
INITIATOR_LOCAL = 1;
|
||||
|
@ -1558,6 +1649,15 @@ message ChannelCloseSummary {
|
|||
Initiator close_initiator = 12;
|
||||
|
||||
repeated Resolution resolutions = 13;
|
||||
|
||||
/*
|
||||
This lists out the set of alias short channel ids that existed for the
|
||||
closed channel. This may be empty.
|
||||
*/
|
||||
repeated uint64 alias_scids = 14;
|
||||
|
||||
// The confirmed SCID for a zero-conf channel.
|
||||
uint64 zero_conf_confirmed_scid = 15 [jstype = JS_STRING];
|
||||
}
|
||||
|
||||
enum ResolutionType {
|
||||
|
@ -1831,6 +1931,9 @@ message GetInfoResponse {
|
|||
Indicates whether the HTLC interceptor API is in always-on mode.
|
||||
*/
|
||||
bool require_htlc_interceptor = 21;
|
||||
|
||||
// Indicates whether final htlc resolutions are stored on disk.
|
||||
bool store_final_htlc_resolutions = 22;
|
||||
}
|
||||
|
||||
message GetRecoveryInfoRequest {
|
||||
|
@ -1903,6 +2006,11 @@ message CloseChannelRequest {
|
|||
// A manual fee rate set in sat/vbyte that should be used when crafting the
|
||||
// closure transaction.
|
||||
uint64 sat_per_vbyte = 6;
|
||||
|
||||
// The maximum fee rate the closer is willing to pay.
|
||||
//
|
||||
// NOTE: This field is only respected if we're the initiator of the channel.
|
||||
uint64 max_fee_per_vbyte = 7;
|
||||
}
|
||||
|
||||
message CloseStatusUpdate {
|
||||
|
@ -2114,6 +2222,58 @@ message OpenChannelRequest {
|
|||
the remote peer supports explicit channel negotiation.
|
||||
*/
|
||||
CommitmentType commitment_type = 18;
|
||||
|
||||
/*
|
||||
If this is true, then a zero-conf channel open will be attempted.
|
||||
*/
|
||||
bool zero_conf = 19;
|
||||
|
||||
/*
|
||||
If this is true, then an option-scid-alias channel-type open will be
|
||||
attempted.
|
||||
*/
|
||||
bool scid_alias = 20;
|
||||
|
||||
/*
|
||||
The base fee charged regardless of the number of milli-satoshis sent.
|
||||
*/
|
||||
uint64 base_fee = 21;
|
||||
|
||||
/*
|
||||
The fee rate in ppm (parts per million) that will be charged in
|
||||
proportion of the value of each forwarded HTLC.
|
||||
*/
|
||||
uint64 fee_rate = 22;
|
||||
|
||||
/*
|
||||
If use_base_fee is true the open channel announcement will update the
|
||||
channel base fee with the value specified in base_fee. In the case of
|
||||
a base_fee of 0 use_base_fee is needed downstream to distinguish whether
|
||||
to use the default base fee value specified in the config or 0.
|
||||
*/
|
||||
bool use_base_fee = 23;
|
||||
|
||||
/*
|
||||
If use_fee_rate is true the open channel announcement will update the
|
||||
channel fee rate with the value specified in fee_rate. In the case of
|
||||
a fee_rate of 0 use_fee_rate is needed downstream to distinguish whether
|
||||
to use the default fee rate value specified in the config or 0.
|
||||
*/
|
||||
bool use_fee_rate = 24;
|
||||
|
||||
/*
|
||||
The number of satoshis we require the remote peer to reserve. This value,
|
||||
if specified, must be above the dust limit and below 20% of the channel
|
||||
capacity.
|
||||
*/
|
||||
uint64 remote_chan_reserve_sat = 25;
|
||||
|
||||
/*
|
||||
If set, then lnd will attempt to commit all the coins under control of the
|
||||
internal wallet to open the channel, and the LocalFundingAmount field must
|
||||
be zero and is ignored.
|
||||
*/
|
||||
bool fund_max = 26;
|
||||
}
|
||||
message OpenStatusUpdate {
|
||||
oneof update {
|
||||
|
@ -2488,9 +2648,17 @@ message PendingChannelsResponse {
|
|||
|
||||
repeated PendingHTLC pending_htlcs = 8;
|
||||
|
||||
/*
|
||||
There are three resolution states for the anchor:
|
||||
limbo, lost and recovered. Derive the current state
|
||||
from the limbo and recovered balances.
|
||||
*/
|
||||
enum AnchorState {
|
||||
// The recovered_balance is zero and limbo_balance is non-zero.
|
||||
LIMBO = 0;
|
||||
// The recovered_balance is non-zero.
|
||||
RECOVERED = 1;
|
||||
// A state that is neither LIMBO nor RECOVERED.
|
||||
LOST = 2;
|
||||
}
|
||||
|
||||
|
@ -2936,6 +3104,9 @@ message LightningNode {
|
|||
repeated NodeAddress addresses = 4;
|
||||
string color = 5;
|
||||
map<uint32, Feature> features = 6;
|
||||
|
||||
// Custom node announcement tlv records.
|
||||
map<uint64, bytes> custom_records = 7;
|
||||
}
|
||||
|
||||
message NodeAddress {
|
||||
|
@ -2951,6 +3122,9 @@ message RoutingPolicy {
|
|||
bool disabled = 5;
|
||||
uint64 max_htlc_msat = 6;
|
||||
uint32 last_update = 7;
|
||||
|
||||
// Custom channel update tlv records.
|
||||
map<uint64, bytes> custom_records = 8;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -2978,6 +3152,9 @@ message ChannelEdge {
|
|||
|
||||
RoutingPolicy node1_policy = 7;
|
||||
RoutingPolicy node2_policy = 8;
|
||||
|
||||
// Custom channel announcement tlv records.
|
||||
map<uint64, bytes> custom_records = 9;
|
||||
}
|
||||
|
||||
message ChannelGraphRequest {
|
||||
|
@ -3209,17 +3386,23 @@ message Invoice {
|
|||
*/
|
||||
int64 value_msat = 23;
|
||||
|
||||
// Whether this invoice has been fulfilled
|
||||
/*
|
||||
Whether this invoice has been fulfilled.
|
||||
|
||||
The field is deprecated. Use the state field instead (compare to SETTLED).
|
||||
*/
|
||||
bool settled = 6 [deprecated = true];
|
||||
|
||||
/*
|
||||
When this invoice was created.
|
||||
Measured in seconds since the unix epoch.
|
||||
Note: Output only, don't specify for creating an invoice.
|
||||
*/
|
||||
int64 creation_date = 7;
|
||||
|
||||
/*
|
||||
When this invoice was settled.
|
||||
Measured in seconds since the unix epoch.
|
||||
Note: Output only, don't specify for creating an invoice.
|
||||
*/
|
||||
int64 settle_date = 8;
|
||||
|
@ -3240,7 +3423,7 @@ message Invoice {
|
|||
*/
|
||||
bytes description_hash = 10;
|
||||
|
||||
// Payment request expiry time in seconds. Default is 3600 (1 hour).
|
||||
// Payment request expiry time in seconds. Default is 86400 (24 hours).
|
||||
int64 expiry = 11;
|
||||
|
||||
// Fallback on-chain address.
|
||||
|
@ -3256,6 +3439,8 @@ message Invoice {
|
|||
repeated RouteHint route_hints = 14;
|
||||
|
||||
// Whether this invoice should include routing hints for private channels.
|
||||
// Note: When enabled, if value and value_msat are zero, a large number of
|
||||
// hints with these channels can be included, which might not be desirable.
|
||||
bool private = 15;
|
||||
|
||||
/*
|
||||
|
@ -3484,7 +3669,16 @@ message ListInvoiceRequest {
|
|||
specified index offset. This can be used to paginate backwards.
|
||||
*/
|
||||
bool reversed = 6;
|
||||
|
||||
// If set, returns all invoices with a creation date greater than or equal
|
||||
// to it. Measured in seconds since the unix epoch.
|
||||
uint64 creation_date_start = 7;
|
||||
|
||||
// If set, returns all invoices with a creation date less than or equal to
|
||||
// it. Measured in seconds since the unix epoch.
|
||||
uint64 creation_date_end = 8;
|
||||
}
|
||||
|
||||
message ListInvoiceResponse {
|
||||
/*
|
||||
A list of invoices from the time slice of the time series specified in the
|
||||
|
@ -3683,6 +3877,14 @@ message ListPaymentsRequest {
|
|||
of payments, as all of them have to be iterated through to be counted.
|
||||
*/
|
||||
bool count_total_payments = 5;
|
||||
|
||||
// If set, returns all invoices with a creation date greater than or equal
|
||||
// to it. Measured in seconds since the unix epoch.
|
||||
uint64 creation_date_start = 6;
|
||||
|
||||
// If set, returns all invoices with a creation date less than or equal to
|
||||
// it. Measured in seconds since the unix epoch.
|
||||
uint64 creation_date_end = 7;
|
||||
}
|
||||
|
||||
message ListPaymentsResponse {
|
||||
|
@ -3927,6 +4129,10 @@ message ForwardingHistoryRequest {
|
|||
|
||||
// The max number of events to return in the response to this query.
|
||||
uint32 num_max_events = 4;
|
||||
|
||||
// Informs the server if the peer alias should be looked up for each
|
||||
// forwarding event.
|
||||
bool peer_alias_lookup = 5;
|
||||
}
|
||||
message ForwardingEvent {
|
||||
// Timestamp is the time (unix epoch offset) that this circuit was
|
||||
|
@ -3966,6 +4172,12 @@ message ForwardingEvent {
|
|||
// circuit was completed.
|
||||
uint64 timestamp_ns = 11;
|
||||
|
||||
// The peer alias of the incoming channel.
|
||||
string peer_alias_in = 12;
|
||||
|
||||
// The peer alias of the outgoing channel.
|
||||
string peer_alias_out = 13;
|
||||
|
||||
// TODO(roasbeef): add settlement latency?
|
||||
// * use FPE on the chan id?
|
||||
// * also list failures?
|
||||
|
@ -4361,6 +4573,14 @@ message RPCMiddlewareRequest {
|
|||
the same type, or replaced by an error message.
|
||||
*/
|
||||
RPCMessage response = 6;
|
||||
|
||||
/*
|
||||
This is used to indicate to the client that the server has successfully
|
||||
registered the interceptor. This is only used in the very first message
|
||||
that the server sends to the client after the client sends the server
|
||||
the middleware registration message.
|
||||
*/
|
||||
bool reg_complete = 8;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -4398,7 +4618,8 @@ message RPCMessage {
|
|||
|
||||
/*
|
||||
The full canonical gRPC name of the message type (in the format
|
||||
<rpcpackage>.TypeName, for example lnrpc.GetInfoRequest).
|
||||
<rpcpackage>.TypeName, for example lnrpc.GetInfoRequest). In case of an
|
||||
error being returned from lnd, this simply contains the string "error".
|
||||
*/
|
||||
string type_name = 3;
|
||||
|
||||
|
@ -4407,6 +4628,13 @@ message RPCMessage {
|
|||
format.
|
||||
*/
|
||||
bytes serialized = 4;
|
||||
|
||||
/*
|
||||
Indicates that the response from lnd was an error, not a gRPC response. If
|
||||
this is set to true then the type_name contains the string "error" and
|
||||
serialized contains the error string.
|
||||
*/
|
||||
bool is_error = 5;
|
||||
}
|
||||
|
||||
message RPCMiddlewareResponse {
|
||||
|
@ -4483,18 +4711,16 @@ message InterceptFeedback {
|
|||
string error = 1;
|
||||
|
||||
/*
|
||||
A boolean indicating that the gRPC response should be replaced/overwritten.
|
||||
As its name suggests, this can only be used as a feedback to an intercepted
|
||||
response RPC message and is ignored for feedback on any other message. This
|
||||
boolean is needed because in protobuf an empty message is serialized as a
|
||||
0-length or nil byte slice and we wouldn't be able to distinguish between
|
||||
A boolean indicating that the gRPC message should be replaced/overwritten.
|
||||
This boolean is needed because in protobuf an empty message is serialized as
|
||||
a 0-length or nil byte slice and we wouldn't be able to distinguish between
|
||||
an empty replacement message and the "don't replace anything" case.
|
||||
*/
|
||||
bool replace_response = 2;
|
||||
|
||||
/*
|
||||
If the replace_response field is set to true, this field must contain the
|
||||
binary serialized gRPC response message in the protobuf format.
|
||||
binary serialized gRPC message in the protobuf format.
|
||||
*/
|
||||
bytes replacement_serialized = 3;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -5,7 +5,6 @@ import grpc
|
|||
|
||||
from . import lightning_pb2 as lightning__pb2
|
||||
|
||||
|
||||
class LightningStub(object):
|
||||
"""
|
||||
Comments in this file will be directly parsed into the API
|
||||
|
@ -358,6 +357,16 @@ class LightningStub(object):
|
|||
request_serializer=lightning__pb2.SubscribeCustomMessagesRequest.SerializeToString,
|
||||
response_deserializer=lightning__pb2.CustomMessage.FromString,
|
||||
)
|
||||
self.ListAliases = channel.unary_unary(
|
||||
'/lnrpc.Lightning/ListAliases',
|
||||
request_serializer=lightning__pb2.ListAliasesRequest.SerializeToString,
|
||||
response_deserializer=lightning__pb2.ListAliasesResponse.FromString,
|
||||
)
|
||||
self.LookupHtlcResolution = channel.unary_unary(
|
||||
'/lnrpc.Lightning/LookupHtlcResolution',
|
||||
request_serializer=lightning__pb2.LookupHtlcResolutionRequest.SerializeToString,
|
||||
response_deserializer=lightning__pb2.LookupHtlcResolutionResponse.FromString,
|
||||
)
|
||||
|
||||
|
||||
class LightningServicer(object):
|
||||
|
@ -1093,6 +1102,30 @@ class LightningServicer(object):
|
|||
"""lncli: `subscribecustom`
|
||||
SubscribeCustomMessages subscribes to a stream of incoming custom peer
|
||||
messages.
|
||||
|
||||
To include messages with type outside of the custom range (>= 32768) lnd
|
||||
needs to be compiled with the `dev` build tag, and the message type to
|
||||
override should be specified in lnd's experimental protocol configuration.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def ListAliases(self, request, context):
|
||||
"""lncli: `listaliases`
|
||||
ListAliases returns the set of all aliases that have ever existed with
|
||||
their confirmed SCID (if it exists) and/or the base SCID (in the case of
|
||||
zero conf).
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def LookupHtlcResolution(self, request, context):
|
||||
"""
|
||||
LookupHtlcResolution retrieves a final htlc resolution from the database.
|
||||
If the htlc has no final resolution yet, a NotFound grpc status code is
|
||||
returned.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
|
@ -1426,6 +1459,16 @@ def add_LightningServicer_to_server(servicer, server):
|
|||
request_deserializer=lightning__pb2.SubscribeCustomMessagesRequest.FromString,
|
||||
response_serializer=lightning__pb2.CustomMessage.SerializeToString,
|
||||
),
|
||||
'ListAliases': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.ListAliases,
|
||||
request_deserializer=lightning__pb2.ListAliasesRequest.FromString,
|
||||
response_serializer=lightning__pb2.ListAliasesResponse.SerializeToString,
|
||||
),
|
||||
'LookupHtlcResolution': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.LookupHtlcResolution,
|
||||
request_deserializer=lightning__pb2.LookupHtlcResolutionRequest.FromString,
|
||||
response_serializer=lightning__pb2.LookupHtlcResolutionResponse.SerializeToString,
|
||||
),
|
||||
}
|
||||
generic_handler = grpc.method_handlers_generic_handler(
|
||||
'lnrpc.Lightning', rpc_method_handlers)
|
||||
|
@ -2558,3 +2601,37 @@ class Lightning(object):
|
|||
lightning__pb2.CustomMessage.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def ListAliases(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/lnrpc.Lightning/ListAliases',
|
||||
lightning__pb2.ListAliasesRequest.SerializeToString,
|
||||
lightning__pb2.ListAliasesResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def LookupHtlcResolution(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/lnrpc.Lightning/LookupHtlcResolution',
|
||||
lightning__pb2.LookupHtlcResolutionRequest.SerializeToString,
|
||||
lightning__pb2.LookupHtlcResolutionResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
|
|
@ -185,6 +185,13 @@ message InitWalletRequest {
|
|||
corresponding private keys and can serve signing RPC requests.
|
||||
*/
|
||||
WatchOnly watch_only = 9;
|
||||
|
||||
/*
|
||||
macaroon_root_key is an optional 32 byte macaroon root key that can be
|
||||
provided when initializing the wallet rather than letting lnd generate one
|
||||
on its own.
|
||||
*/
|
||||
bytes macaroon_root_key = 10;
|
||||
}
|
||||
message InitWalletResponse {
|
||||
/*
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: walletunlocker.proto
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf.internal import builder as _builder
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import message as _message
|
||||
|
@ -15,91 +16,10 @@ _sym_db = _symbol_database.Default()
|
|||
from . import lightning_pb2 as lightning__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14walletunlocker.proto\x12\x05lnrpc\x1a\x0flightning.proto\"A\n\x0eGenSeedRequest\x12\x19\n\x11\x61\x65zeed_passphrase\x18\x01 \x01(\x0c\x12\x14\n\x0cseed_entropy\x18\x02 \x01(\x0c\"H\n\x0fGenSeedResponse\x12\x1c\n\x14\x63ipher_seed_mnemonic\x18\x01 \x03(\t\x12\x17\n\x0f\x65nciphered_seed\x18\x02 \x01(\x0c\"\xbd\x02\n\x11InitWalletRequest\x12\x17\n\x0fwallet_password\x18\x01 \x01(\x0c\x12\x1c\n\x14\x63ipher_seed_mnemonic\x18\x02 \x03(\t\x12\x19\n\x11\x61\x65zeed_passphrase\x18\x03 \x01(\x0c\x12\x17\n\x0frecovery_window\x18\x04 \x01(\x05\x12\x32\n\x0f\x63hannel_backups\x18\x05 \x01(\x0b\x32\x19.lnrpc.ChanBackupSnapshot\x12\x16\n\x0estateless_init\x18\x06 \x01(\x08\x12\x1b\n\x13\x65xtended_master_key\x18\x07 \x01(\t\x12.\n&extended_master_key_birthday_timestamp\x18\x08 \x01(\x04\x12$\n\nwatch_only\x18\t \x01(\x0b\x32\x10.lnrpc.WatchOnly\",\n\x12InitWalletResponse\x12\x16\n\x0e\x61\x64min_macaroon\x18\x01 \x01(\x0c\"}\n\tWatchOnly\x12%\n\x1dmaster_key_birthday_timestamp\x18\x01 \x01(\x04\x12\x1e\n\x16master_key_fingerprint\x18\x02 \x01(\x0c\x12)\n\x08\x61\x63\x63ounts\x18\x03 \x03(\x0b\x32\x17.lnrpc.WatchOnlyAccount\"U\n\x10WatchOnlyAccount\x12\x0f\n\x07purpose\x18\x01 \x01(\r\x12\x11\n\tcoin_type\x18\x02 \x01(\r\x12\x0f\n\x07\x61\x63\x63ount\x18\x03 \x01(\r\x12\x0c\n\x04xpub\x18\x04 \x01(\t\"\x93\x01\n\x13UnlockWalletRequest\x12\x17\n\x0fwallet_password\x18\x01 \x01(\x0c\x12\x17\n\x0frecovery_window\x18\x02 \x01(\x05\x12\x32\n\x0f\x63hannel_backups\x18\x03 \x01(\x0b\x32\x19.lnrpc.ChanBackupSnapshot\x12\x16\n\x0estateless_init\x18\x04 \x01(\x08\"\x16\n\x14UnlockWalletResponse\"~\n\x15\x43hangePasswordRequest\x12\x18\n\x10\x63urrent_password\x18\x01 \x01(\x0c\x12\x14\n\x0cnew_password\x18\x02 \x01(\x0c\x12\x16\n\x0estateless_init\x18\x03 \x01(\x08\x12\x1d\n\x15new_macaroon_root_key\x18\x04 \x01(\x08\"0\n\x16\x43hangePasswordResponse\x12\x16\n\x0e\x61\x64min_macaroon\x18\x01 \x01(\x0c\x32\xa5\x02\n\x0eWalletUnlocker\x12\x38\n\x07GenSeed\x12\x15.lnrpc.GenSeedRequest\x1a\x16.lnrpc.GenSeedResponse\x12\x41\n\nInitWallet\x12\x18.lnrpc.InitWalletRequest\x1a\x19.lnrpc.InitWalletResponse\x12G\n\x0cUnlockWallet\x12\x1a.lnrpc.UnlockWalletRequest\x1a\x1b.lnrpc.UnlockWalletResponse\x12M\n\x0e\x43hangePassword\x12\x1c.lnrpc.ChangePasswordRequest\x1a\x1d.lnrpc.ChangePasswordResponseB\'Z%github.com/lightningnetwork/lnd/lnrpcb\x06proto3')
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14walletunlocker.proto\x12\x05lnrpc\x1a\x0flightning.proto\"A\n\x0eGenSeedRequest\x12\x19\n\x11\x61\x65zeed_passphrase\x18\x01 \x01(\x0c\x12\x14\n\x0cseed_entropy\x18\x02 \x01(\x0c\"H\n\x0fGenSeedResponse\x12\x1c\n\x14\x63ipher_seed_mnemonic\x18\x01 \x03(\t\x12\x17\n\x0f\x65nciphered_seed\x18\x02 \x01(\x0c\"\xd8\x02\n\x11InitWalletRequest\x12\x17\n\x0fwallet_password\x18\x01 \x01(\x0c\x12\x1c\n\x14\x63ipher_seed_mnemonic\x18\x02 \x03(\t\x12\x19\n\x11\x61\x65zeed_passphrase\x18\x03 \x01(\x0c\x12\x17\n\x0frecovery_window\x18\x04 \x01(\x05\x12\x32\n\x0f\x63hannel_backups\x18\x05 \x01(\x0b\x32\x19.lnrpc.ChanBackupSnapshot\x12\x16\n\x0estateless_init\x18\x06 \x01(\x08\x12\x1b\n\x13\x65xtended_master_key\x18\x07 \x01(\t\x12.\n&extended_master_key_birthday_timestamp\x18\x08 \x01(\x04\x12$\n\nwatch_only\x18\t \x01(\x0b\x32\x10.lnrpc.WatchOnly\x12\x19\n\x11macaroon_root_key\x18\n \x01(\x0c\",\n\x12InitWalletResponse\x12\x16\n\x0e\x61\x64min_macaroon\x18\x01 \x01(\x0c\"}\n\tWatchOnly\x12%\n\x1dmaster_key_birthday_timestamp\x18\x01 \x01(\x04\x12\x1e\n\x16master_key_fingerprint\x18\x02 \x01(\x0c\x12)\n\x08\x61\x63\x63ounts\x18\x03 \x03(\x0b\x32\x17.lnrpc.WatchOnlyAccount\"U\n\x10WatchOnlyAccount\x12\x0f\n\x07purpose\x18\x01 \x01(\r\x12\x11\n\tcoin_type\x18\x02 \x01(\r\x12\x0f\n\x07\x61\x63\x63ount\x18\x03 \x01(\r\x12\x0c\n\x04xpub\x18\x04 \x01(\t\"\x93\x01\n\x13UnlockWalletRequest\x12\x17\n\x0fwallet_password\x18\x01 \x01(\x0c\x12\x17\n\x0frecovery_window\x18\x02 \x01(\x05\x12\x32\n\x0f\x63hannel_backups\x18\x03 \x01(\x0b\x32\x19.lnrpc.ChanBackupSnapshot\x12\x16\n\x0estateless_init\x18\x04 \x01(\x08\"\x16\n\x14UnlockWalletResponse\"~\n\x15\x43hangePasswordRequest\x12\x18\n\x10\x63urrent_password\x18\x01 \x01(\x0c\x12\x14\n\x0cnew_password\x18\x02 \x01(\x0c\x12\x16\n\x0estateless_init\x18\x03 \x01(\x08\x12\x1d\n\x15new_macaroon_root_key\x18\x04 \x01(\x08\"0\n\x16\x43hangePasswordResponse\x12\x16\n\x0e\x61\x64min_macaroon\x18\x01 \x01(\x0c\x32\xa5\x02\n\x0eWalletUnlocker\x12\x38\n\x07GenSeed\x12\x15.lnrpc.GenSeedRequest\x1a\x16.lnrpc.GenSeedResponse\x12\x41\n\nInitWallet\x12\x18.lnrpc.InitWalletRequest\x1a\x19.lnrpc.InitWalletResponse\x12G\n\x0cUnlockWallet\x12\x1a.lnrpc.UnlockWalletRequest\x1a\x1b.lnrpc.UnlockWalletResponse\x12M\n\x0e\x43hangePassword\x12\x1c.lnrpc.ChangePasswordRequest\x1a\x1d.lnrpc.ChangePasswordResponseB\'Z%github.com/lightningnetwork/lnd/lnrpcb\x06proto3')
|
||||
|
||||
|
||||
|
||||
_GENSEEDREQUEST = DESCRIPTOR.message_types_by_name['GenSeedRequest']
|
||||
_GENSEEDRESPONSE = DESCRIPTOR.message_types_by_name['GenSeedResponse']
|
||||
_INITWALLETREQUEST = DESCRIPTOR.message_types_by_name['InitWalletRequest']
|
||||
_INITWALLETRESPONSE = DESCRIPTOR.message_types_by_name['InitWalletResponse']
|
||||
_WATCHONLY = DESCRIPTOR.message_types_by_name['WatchOnly']
|
||||
_WATCHONLYACCOUNT = DESCRIPTOR.message_types_by_name['WatchOnlyAccount']
|
||||
_UNLOCKWALLETREQUEST = DESCRIPTOR.message_types_by_name['UnlockWalletRequest']
|
||||
_UNLOCKWALLETRESPONSE = DESCRIPTOR.message_types_by_name['UnlockWalletResponse']
|
||||
_CHANGEPASSWORDREQUEST = DESCRIPTOR.message_types_by_name['ChangePasswordRequest']
|
||||
_CHANGEPASSWORDRESPONSE = DESCRIPTOR.message_types_by_name['ChangePasswordResponse']
|
||||
GenSeedRequest = _reflection.GeneratedProtocolMessageType('GenSeedRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _GENSEEDREQUEST,
|
||||
'__module__' : 'walletunlocker_pb2'
|
||||
# @@protoc_insertion_point(class_scope:lnrpc.GenSeedRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(GenSeedRequest)
|
||||
|
||||
GenSeedResponse = _reflection.GeneratedProtocolMessageType('GenSeedResponse', (_message.Message,), {
|
||||
'DESCRIPTOR' : _GENSEEDRESPONSE,
|
||||
'__module__' : 'walletunlocker_pb2'
|
||||
# @@protoc_insertion_point(class_scope:lnrpc.GenSeedResponse)
|
||||
})
|
||||
_sym_db.RegisterMessage(GenSeedResponse)
|
||||
|
||||
InitWalletRequest = _reflection.GeneratedProtocolMessageType('InitWalletRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _INITWALLETREQUEST,
|
||||
'__module__' : 'walletunlocker_pb2'
|
||||
# @@protoc_insertion_point(class_scope:lnrpc.InitWalletRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(InitWalletRequest)
|
||||
|
||||
InitWalletResponse = _reflection.GeneratedProtocolMessageType('InitWalletResponse', (_message.Message,), {
|
||||
'DESCRIPTOR' : _INITWALLETRESPONSE,
|
||||
'__module__' : 'walletunlocker_pb2'
|
||||
# @@protoc_insertion_point(class_scope:lnrpc.InitWalletResponse)
|
||||
})
|
||||
_sym_db.RegisterMessage(InitWalletResponse)
|
||||
|
||||
WatchOnly = _reflection.GeneratedProtocolMessageType('WatchOnly', (_message.Message,), {
|
||||
'DESCRIPTOR' : _WATCHONLY,
|
||||
'__module__' : 'walletunlocker_pb2'
|
||||
# @@protoc_insertion_point(class_scope:lnrpc.WatchOnly)
|
||||
})
|
||||
_sym_db.RegisterMessage(WatchOnly)
|
||||
|
||||
WatchOnlyAccount = _reflection.GeneratedProtocolMessageType('WatchOnlyAccount', (_message.Message,), {
|
||||
'DESCRIPTOR' : _WATCHONLYACCOUNT,
|
||||
'__module__' : 'walletunlocker_pb2'
|
||||
# @@protoc_insertion_point(class_scope:lnrpc.WatchOnlyAccount)
|
||||
})
|
||||
_sym_db.RegisterMessage(WatchOnlyAccount)
|
||||
|
||||
UnlockWalletRequest = _reflection.GeneratedProtocolMessageType('UnlockWalletRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _UNLOCKWALLETREQUEST,
|
||||
'__module__' : 'walletunlocker_pb2'
|
||||
# @@protoc_insertion_point(class_scope:lnrpc.UnlockWalletRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(UnlockWalletRequest)
|
||||
|
||||
UnlockWalletResponse = _reflection.GeneratedProtocolMessageType('UnlockWalletResponse', (_message.Message,), {
|
||||
'DESCRIPTOR' : _UNLOCKWALLETRESPONSE,
|
||||
'__module__' : 'walletunlocker_pb2'
|
||||
# @@protoc_insertion_point(class_scope:lnrpc.UnlockWalletResponse)
|
||||
})
|
||||
_sym_db.RegisterMessage(UnlockWalletResponse)
|
||||
|
||||
ChangePasswordRequest = _reflection.GeneratedProtocolMessageType('ChangePasswordRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _CHANGEPASSWORDREQUEST,
|
||||
'__module__' : 'walletunlocker_pb2'
|
||||
# @@protoc_insertion_point(class_scope:lnrpc.ChangePasswordRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(ChangePasswordRequest)
|
||||
|
||||
ChangePasswordResponse = _reflection.GeneratedProtocolMessageType('ChangePasswordResponse', (_message.Message,), {
|
||||
'DESCRIPTOR' : _CHANGEPASSWORDRESPONSE,
|
||||
'__module__' : 'walletunlocker_pb2'
|
||||
# @@protoc_insertion_point(class_scope:lnrpc.ChangePasswordResponse)
|
||||
})
|
||||
_sym_db.RegisterMessage(ChangePasswordResponse)
|
||||
|
||||
_WALLETUNLOCKER = DESCRIPTOR.services_by_name['WalletUnlocker']
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
||||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'walletunlocker_pb2', globals())
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
|
||||
DESCRIPTOR._options = None
|
||||
|
@ -109,21 +29,21 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|||
_GENSEEDRESPONSE._serialized_start=115
|
||||
_GENSEEDRESPONSE._serialized_end=187
|
||||
_INITWALLETREQUEST._serialized_start=190
|
||||
_INITWALLETREQUEST._serialized_end=507
|
||||
_INITWALLETRESPONSE._serialized_start=509
|
||||
_INITWALLETRESPONSE._serialized_end=553
|
||||
_WATCHONLY._serialized_start=555
|
||||
_WATCHONLY._serialized_end=680
|
||||
_WATCHONLYACCOUNT._serialized_start=682
|
||||
_WATCHONLYACCOUNT._serialized_end=767
|
||||
_UNLOCKWALLETREQUEST._serialized_start=770
|
||||
_UNLOCKWALLETREQUEST._serialized_end=917
|
||||
_UNLOCKWALLETRESPONSE._serialized_start=919
|
||||
_UNLOCKWALLETRESPONSE._serialized_end=941
|
||||
_CHANGEPASSWORDREQUEST._serialized_start=943
|
||||
_CHANGEPASSWORDREQUEST._serialized_end=1069
|
||||
_CHANGEPASSWORDRESPONSE._serialized_start=1071
|
||||
_CHANGEPASSWORDRESPONSE._serialized_end=1119
|
||||
_WALLETUNLOCKER._serialized_start=1122
|
||||
_WALLETUNLOCKER._serialized_end=1415
|
||||
_INITWALLETREQUEST._serialized_end=534
|
||||
_INITWALLETRESPONSE._serialized_start=536
|
||||
_INITWALLETRESPONSE._serialized_end=580
|
||||
_WATCHONLY._serialized_start=582
|
||||
_WATCHONLY._serialized_end=707
|
||||
_WATCHONLYACCOUNT._serialized_start=709
|
||||
_WATCHONLYACCOUNT._serialized_end=794
|
||||
_UNLOCKWALLETREQUEST._serialized_start=797
|
||||
_UNLOCKWALLETREQUEST._serialized_end=944
|
||||
_UNLOCKWALLETRESPONSE._serialized_start=946
|
||||
_UNLOCKWALLETRESPONSE._serialized_end=968
|
||||
_CHANGEPASSWORDREQUEST._serialized_start=970
|
||||
_CHANGEPASSWORDREQUEST._serialized_end=1096
|
||||
_CHANGEPASSWORDRESPONSE._serialized_start=1098
|
||||
_CHANGEPASSWORDRESPONSE._serialized_end=1146
|
||||
_WALLETUNLOCKER._serialized_start=1149
|
||||
_WALLETUNLOCKER._serialized_end=1442
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
|
|
|
@ -5,7 +5,6 @@ import grpc
|
|||
|
||||
from . import walletunlocker_pb2 as walletunlocker__pb2
|
||||
|
||||
|
||||
class WalletUnlockerStub(object):
|
||||
"""
|
||||
Comments in this file will be directly parsed into the API
|
||||
|
|
Loading…
Add table
Reference in a new issue