mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 01:43:16 +01:00
lnrpc: replace /// and /** with // and /*
This commit is contained in:
parent
0800386138
commit
71c58c2c04
@ -54,7 +54,7 @@ func (m *StatusRequest) XXX_DiscardUnknown() {
|
||||
var xxx_messageInfo_StatusRequest proto.InternalMessageInfo
|
||||
|
||||
type StatusResponse struct {
|
||||
/// Indicates whether the autopilot is active or not.
|
||||
// Indicates whether the autopilot is active or not.
|
||||
Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
@ -94,7 +94,7 @@ func (m *StatusResponse) GetActive() bool {
|
||||
}
|
||||
|
||||
type ModifyStatusRequest struct {
|
||||
/// Whether the autopilot agent should be enabled or not.
|
||||
// Whether the autopilot agent should be enabled or not.
|
||||
Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
@ -166,7 +166,7 @@ var xxx_messageInfo_ModifyStatusResponse proto.InternalMessageInfo
|
||||
|
||||
type QueryScoresRequest struct {
|
||||
Pubkeys []string `protobuf:"bytes,1,rep,name=pubkeys,proto3" json:"pubkeys,omitempty"`
|
||||
/// If set, we will ignore the local channel state when calculating scores.
|
||||
// If set, we will ignore the local channel state when calculating scores.
|
||||
IgnoreLocalState bool `protobuf:"varint,2,opt,name=ignore_local_state,json=ignoreLocalState,proto3" json:"ignore_local_state,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
@ -299,9 +299,9 @@ func (m *QueryScoresResponse_HeuristicResult) GetScores() map[string]float64 {
|
||||
}
|
||||
|
||||
type SetScoresRequest struct {
|
||||
/// The name of the heuristic to provide scores to.
|
||||
// The name of the heuristic to provide scores to.
|
||||
Heuristic string `protobuf:"bytes,1,opt,name=heuristic,proto3" json:"heuristic,omitempty"`
|
||||
//*
|
||||
//
|
||||
//A map from hex-encoded public keys to scores. Scores must be in the range
|
||||
//[0.0, 1.0].
|
||||
Scores map[string]float64 `protobuf:"bytes,2,rep,name=scores,proto3" json:"scores,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"fixed64,2,opt,name=value,proto3"`
|
||||
@ -442,19 +442,19 @@ const _ = grpc.SupportPackageIsVersion4
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type AutopilotClient interface {
|
||||
//*
|
||||
//
|
||||
//Status returns whether the daemon's autopilot agent is active.
|
||||
Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error)
|
||||
//*
|
||||
//
|
||||
//ModifyStatus is used to modify the status of the autopilot agent, like
|
||||
//enabling or disabling it.
|
||||
ModifyStatus(ctx context.Context, in *ModifyStatusRequest, opts ...grpc.CallOption) (*ModifyStatusResponse, error)
|
||||
//*
|
||||
//
|
||||
//QueryScores queries all available autopilot heuristics, in addition to any
|
||||
//active combination of these heruristics, for the scores they would give to
|
||||
//the given nodes.
|
||||
QueryScores(ctx context.Context, in *QueryScoresRequest, opts ...grpc.CallOption) (*QueryScoresResponse, error)
|
||||
//*
|
||||
//
|
||||
//SetScores attempts to set the scores used by the running autopilot agent,
|
||||
//if the external scoring heuristic is enabled.
|
||||
SetScores(ctx context.Context, in *SetScoresRequest, opts ...grpc.CallOption) (*SetScoresResponse, error)
|
||||
@ -506,19 +506,19 @@ func (c *autopilotClient) SetScores(ctx context.Context, in *SetScoresRequest, o
|
||||
|
||||
// AutopilotServer is the server API for Autopilot service.
|
||||
type AutopilotServer interface {
|
||||
//*
|
||||
//
|
||||
//Status returns whether the daemon's autopilot agent is active.
|
||||
Status(context.Context, *StatusRequest) (*StatusResponse, error)
|
||||
//*
|
||||
//
|
||||
//ModifyStatus is used to modify the status of the autopilot agent, like
|
||||
//enabling or disabling it.
|
||||
ModifyStatus(context.Context, *ModifyStatusRequest) (*ModifyStatusResponse, error)
|
||||
//*
|
||||
//
|
||||
//QueryScores queries all available autopilot heuristics, in addition to any
|
||||
//active combination of these heruristics, for the scores they would give to
|
||||
//the given nodes.
|
||||
QueryScores(context.Context, *QueryScoresRequest) (*QueryScoresResponse, error)
|
||||
//*
|
||||
//
|
||||
//SetScores attempts to set the scores used by the running autopilot agent,
|
||||
//if the external scoring heuristic is enabled.
|
||||
SetScores(context.Context, *SetScoresRequest) (*SetScoresResponse, error)
|
||||
|
@ -8,25 +8,25 @@ option go_package = "github.com/lightningnetwork/lnd/lnrpc/autopilotrpc";
|
||||
// state of the daemon's autopilot agent, and also supply it with information
|
||||
// that can be used when deciding where to open channels.
|
||||
service Autopilot {
|
||||
/**
|
||||
/*
|
||||
Status returns whether the daemon's autopilot agent is active.
|
||||
*/
|
||||
rpc Status (StatusRequest) returns (StatusResponse);
|
||||
|
||||
/**
|
||||
/*
|
||||
ModifyStatus is used to modify the status of the autopilot agent, like
|
||||
enabling or disabling it.
|
||||
*/
|
||||
rpc ModifyStatus (ModifyStatusRequest) returns (ModifyStatusResponse);
|
||||
|
||||
/**
|
||||
/*
|
||||
QueryScores queries all available autopilot heuristics, in addition to any
|
||||
active combination of these heruristics, for the scores they would give to
|
||||
the given nodes.
|
||||
*/
|
||||
rpc QueryScores (QueryScoresRequest) returns (QueryScoresResponse);
|
||||
|
||||
/**
|
||||
/*
|
||||
SetScores attempts to set the scores used by the running autopilot agent,
|
||||
if the external scoring heuristic is enabled.
|
||||
*/
|
||||
@ -37,12 +37,12 @@ message StatusRequest {
|
||||
}
|
||||
|
||||
message StatusResponse {
|
||||
/// Indicates whether the autopilot is active or not.
|
||||
// Indicates whether the autopilot is active or not.
|
||||
bool active = 1;
|
||||
}
|
||||
|
||||
message ModifyStatusRequest {
|
||||
/// Whether the autopilot agent should be enabled or not.
|
||||
// Whether the autopilot agent should be enabled or not.
|
||||
bool enable = 1;
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ message ModifyStatusResponse {
|
||||
message QueryScoresRequest {
|
||||
repeated string pubkeys = 1;
|
||||
|
||||
/// If set, we will ignore the local channel state when calculating scores.
|
||||
// If set, we will ignore the local channel state when calculating scores.
|
||||
bool ignore_local_state = 2;
|
||||
}
|
||||
|
||||
@ -66,10 +66,10 @@ message QueryScoresResponse {
|
||||
}
|
||||
|
||||
message SetScoresRequest {
|
||||
/// The name of the heuristic to provide scores to.
|
||||
// The name of the heuristic to provide scores to.
|
||||
string heuristic = 1;
|
||||
|
||||
/**
|
||||
/*
|
||||
A map from hex-encoded public keys to scores. Scores must be in the range
|
||||
[0.0, 1.0].
|
||||
*/
|
||||
|
@ -25,7 +25,7 @@ var _ = math.Inf
|
||||
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
type CancelInvoiceMsg struct {
|
||||
/// Hash corresponding to the (hold) invoice to cancel.
|
||||
// Hash corresponding to the (hold) invoice to cancel.
|
||||
PaymentHash []byte `protobuf:"bytes,1,opt,name=payment_hash,json=paymentHash,proto3" json:"payment_hash,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
@ -96,40 +96,40 @@ func (m *CancelInvoiceResp) XXX_DiscardUnknown() {
|
||||
var xxx_messageInfo_CancelInvoiceResp proto.InternalMessageInfo
|
||||
|
||||
type AddHoldInvoiceRequest struct {
|
||||
//*
|
||||
//
|
||||
//An optional memo to attach along with the invoice. Used for record keeping
|
||||
//purposes for the invoice's creator, and will also be set in the description
|
||||
//field of the encoded payment request if the description_hash field is not
|
||||
//being used.
|
||||
Memo string `protobuf:"bytes,1,opt,name=memo,proto3" json:"memo,omitempty"`
|
||||
/// The hash of the preimage
|
||||
// The hash of the preimage
|
||||
Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
|
||||
//*
|
||||
//
|
||||
//The value of this invoice in satoshis
|
||||
//
|
||||
//The fields value and value_msat are mutually exclusive.
|
||||
Value int64 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"`
|
||||
//*
|
||||
//
|
||||
//The value of this invoice in millisatoshis
|
||||
//
|
||||
//The fields value and value_msat are mutually exclusive.
|
||||
ValueMsat int64 `protobuf:"varint,10,opt,name=value_msat,json=valueMsat,proto3" json:"value_msat,omitempty"`
|
||||
//*
|
||||
//
|
||||
//Hash (SHA-256) of a description of the payment. Used if the description of
|
||||
//payment (memo) is too long to naturally fit within the description field
|
||||
//of an encoded payment request.
|
||||
DescriptionHash []byte `protobuf:"bytes,4,opt,name=description_hash,json=descriptionHash,proto3" json:"description_hash,omitempty"`
|
||||
/// Payment request expiry time in seconds. Default is 3600 (1 hour).
|
||||
// Payment request expiry time in seconds. Default is 3600 (1 hour).
|
||||
Expiry int64 `protobuf:"varint,5,opt,name=expiry,proto3" json:"expiry,omitempty"`
|
||||
/// Fallback on-chain address.
|
||||
// Fallback on-chain address.
|
||||
FallbackAddr string `protobuf:"bytes,6,opt,name=fallback_addr,json=fallbackAddr,proto3" json:"fallback_addr,omitempty"`
|
||||
/// Delta to use for the time-lock of the CLTV extended to the final hop.
|
||||
// Delta to use for the time-lock of the CLTV extended to the final hop.
|
||||
CltvExpiry uint64 `protobuf:"varint,7,opt,name=cltv_expiry,json=cltvExpiry,proto3" json:"cltv_expiry,omitempty"`
|
||||
//*
|
||||
//
|
||||
//Route hints that can each be individually used to assist in reaching the
|
||||
//invoice's destination.
|
||||
RouteHints []*lnrpc.RouteHint `protobuf:"bytes,8,rep,name=route_hints,json=routeHints,proto3" json:"route_hints,omitempty"`
|
||||
/// Whether this invoice should include routing hints for private channels.
|
||||
// Whether this invoice should include routing hints for private channels.
|
||||
Private bool `protobuf:"varint,9,opt,name=private,proto3" json:"private,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
@ -232,7 +232,7 @@ func (m *AddHoldInvoiceRequest) GetPrivate() bool {
|
||||
}
|
||||
|
||||
type AddHoldInvoiceResp struct {
|
||||
//*
|
||||
//
|
||||
//A bare-bones invoice for a payment within the Lightning Network. With the
|
||||
//details of the invoice, the sender has all the data necessary to send a
|
||||
//payment to the recipient.
|
||||
@ -275,8 +275,8 @@ func (m *AddHoldInvoiceResp) GetPaymentRequest() string {
|
||||
}
|
||||
|
||||
type SettleInvoiceMsg struct {
|
||||
/// Externally discovered pre-image that should be used to settle the hold
|
||||
/// invoice.
|
||||
// Externally discovered pre-image that should be used to settle the hold
|
||||
// invoice.
|
||||
Preimage []byte `protobuf:"bytes,1,opt,name=preimage,proto3" json:"preimage,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
@ -347,7 +347,7 @@ func (m *SettleInvoiceResp) XXX_DiscardUnknown() {
|
||||
var xxx_messageInfo_SettleInvoiceResp proto.InternalMessageInfo
|
||||
|
||||
type SubscribeSingleInvoiceRequest struct {
|
||||
/// Hash corresponding to the (hold) invoice to subscribe to.
|
||||
// Hash corresponding to the (hold) invoice to subscribe to.
|
||||
RHash []byte `protobuf:"bytes,2,opt,name=r_hash,json=rHash,proto3" json:"r_hash,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
@ -448,21 +448,21 @@ const _ = grpc.SupportPackageIsVersion4
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type InvoicesClient interface {
|
||||
//*
|
||||
//
|
||||
//SubscribeSingleInvoice returns a uni-directional stream (server -> client)
|
||||
//to notify the client of state transitions of the specified invoice.
|
||||
//Initially the current invoice state is always sent out.
|
||||
SubscribeSingleInvoice(ctx context.Context, in *SubscribeSingleInvoiceRequest, opts ...grpc.CallOption) (Invoices_SubscribeSingleInvoiceClient, error)
|
||||
//*
|
||||
//
|
||||
//CancelInvoice cancels a currently open invoice. If the invoice is already
|
||||
//canceled, this call will succeed. If the invoice is already settled, it will
|
||||
//fail.
|
||||
CancelInvoice(ctx context.Context, in *CancelInvoiceMsg, opts ...grpc.CallOption) (*CancelInvoiceResp, error)
|
||||
//*
|
||||
//
|
||||
//AddHoldInvoice creates a hold invoice. It ties the invoice to the hash
|
||||
//supplied in the request.
|
||||
AddHoldInvoice(ctx context.Context, in *AddHoldInvoiceRequest, opts ...grpc.CallOption) (*AddHoldInvoiceResp, error)
|
||||
//*
|
||||
//
|
||||
//SettleInvoice settles an accepted invoice. If the invoice is already
|
||||
//settled, this call will succeed.
|
||||
SettleInvoice(ctx context.Context, in *SettleInvoiceMsg, opts ...grpc.CallOption) (*SettleInvoiceResp, error)
|
||||
@ -537,21 +537,21 @@ func (c *invoicesClient) SettleInvoice(ctx context.Context, in *SettleInvoiceMsg
|
||||
|
||||
// InvoicesServer is the server API for Invoices service.
|
||||
type InvoicesServer interface {
|
||||
//*
|
||||
//
|
||||
//SubscribeSingleInvoice returns a uni-directional stream (server -> client)
|
||||
//to notify the client of state transitions of the specified invoice.
|
||||
//Initially the current invoice state is always sent out.
|
||||
SubscribeSingleInvoice(*SubscribeSingleInvoiceRequest, Invoices_SubscribeSingleInvoiceServer) error
|
||||
//*
|
||||
//
|
||||
//CancelInvoice cancels a currently open invoice. If the invoice is already
|
||||
//canceled, this call will succeed. If the invoice is already settled, it will
|
||||
//fail.
|
||||
CancelInvoice(context.Context, *CancelInvoiceMsg) (*CancelInvoiceResp, error)
|
||||
//*
|
||||
//
|
||||
//AddHoldInvoice creates a hold invoice. It ties the invoice to the hash
|
||||
//supplied in the request.
|
||||
AddHoldInvoice(context.Context, *AddHoldInvoiceRequest) (*AddHoldInvoiceResp, error)
|
||||
//*
|
||||
//
|
||||
//SettleInvoice settles an accepted invoice. If the invoice is already
|
||||
//settled, this call will succeed.
|
||||
SettleInvoice(context.Context, *SettleInvoiceMsg) (*SettleInvoiceResp, error)
|
||||
|
@ -10,7 +10,7 @@ option go_package = "github.com/lightningnetwork/lnd/lnrpc/invoicesrpc";
|
||||
// Invoices is a service that can be used to create, accept, settle and cancel
|
||||
// invoices.
|
||||
service Invoices {
|
||||
/**
|
||||
/*
|
||||
SubscribeSingleInvoice returns a uni-directional stream (server -> client)
|
||||
to notify the client of state transitions of the specified invoice.
|
||||
Initially the current invoice state is always sent out.
|
||||
@ -18,20 +18,20 @@ service Invoices {
|
||||
rpc SubscribeSingleInvoice (SubscribeSingleInvoiceRequest)
|
||||
returns (stream lnrpc.Invoice);
|
||||
|
||||
/**
|
||||
/*
|
||||
CancelInvoice cancels a currently open invoice. If the invoice is already
|
||||
canceled, this call will succeed. If the invoice is already settled, it will
|
||||
fail.
|
||||
*/
|
||||
rpc CancelInvoice (CancelInvoiceMsg) returns (CancelInvoiceResp);
|
||||
|
||||
/**
|
||||
/*
|
||||
AddHoldInvoice creates a hold invoice. It ties the invoice to the hash
|
||||
supplied in the request.
|
||||
*/
|
||||
rpc AddHoldInvoice (AddHoldInvoiceRequest) returns (AddHoldInvoiceResp);
|
||||
|
||||
/**
|
||||
/*
|
||||
SettleInvoice settles an accepted invoice. If the invoice is already
|
||||
settled, this call will succeed.
|
||||
*/
|
||||
@ -39,14 +39,14 @@ service Invoices {
|
||||
}
|
||||
|
||||
message CancelInvoiceMsg {
|
||||
/// Hash corresponding to the (hold) invoice to cancel.
|
||||
// Hash corresponding to the (hold) invoice to cancel.
|
||||
bytes payment_hash = 1;
|
||||
}
|
||||
message CancelInvoiceResp {
|
||||
}
|
||||
|
||||
message AddHoldInvoiceRequest {
|
||||
/**
|
||||
/*
|
||||
An optional memo to attach along with the invoice. Used for record keeping
|
||||
purposes for the invoice's creator, and will also be set in the description
|
||||
field of the encoded payment request if the description_hash field is not
|
||||
@ -54,51 +54,51 @@ message AddHoldInvoiceRequest {
|
||||
*/
|
||||
string memo = 1;
|
||||
|
||||
/// The hash of the preimage
|
||||
// The hash of the preimage
|
||||
bytes hash = 2;
|
||||
|
||||
/**
|
||||
/*
|
||||
The value of this invoice in satoshis
|
||||
|
||||
The fields value and value_msat are mutually exclusive.
|
||||
*/
|
||||
int64 value = 3;
|
||||
|
||||
/**
|
||||
/*
|
||||
The value of this invoice in millisatoshis
|
||||
|
||||
The fields value and value_msat are mutually exclusive.
|
||||
*/
|
||||
int64 value_msat = 10;
|
||||
|
||||
/**
|
||||
/*
|
||||
Hash (SHA-256) of a description of the payment. Used if the description of
|
||||
payment (memo) is too long to naturally fit within the description field
|
||||
of an encoded payment request.
|
||||
*/
|
||||
bytes description_hash = 4;
|
||||
|
||||
/// Payment request expiry time in seconds. Default is 3600 (1 hour).
|
||||
// Payment request expiry time in seconds. Default is 3600 (1 hour).
|
||||
int64 expiry = 5;
|
||||
|
||||
/// Fallback on-chain address.
|
||||
// Fallback on-chain address.
|
||||
string fallback_addr = 6;
|
||||
|
||||
/// Delta to use for the time-lock of the CLTV extended to the final hop.
|
||||
// Delta to use for the time-lock of the CLTV extended to the final hop.
|
||||
uint64 cltv_expiry = 7;
|
||||
|
||||
/**
|
||||
/*
|
||||
Route hints that can each be individually used to assist in reaching the
|
||||
invoice's destination.
|
||||
*/
|
||||
repeated lnrpc.RouteHint route_hints = 8;
|
||||
|
||||
/// Whether this invoice should include routing hints for private channels.
|
||||
// Whether this invoice should include routing hints for private channels.
|
||||
bool private = 9;
|
||||
}
|
||||
|
||||
message AddHoldInvoiceResp {
|
||||
/**
|
||||
/*
|
||||
A bare-bones invoice for a payment within the Lightning Network. With the
|
||||
details of the invoice, the sender has all the data necessary to send a
|
||||
payment to the recipient.
|
||||
@ -107,8 +107,8 @@ message AddHoldInvoiceResp {
|
||||
}
|
||||
|
||||
message SettleInvoiceMsg {
|
||||
/// Externally discovered pre-image that should be used to settle the hold
|
||||
/// invoice.
|
||||
// Externally discovered pre-image that should be used to settle the hold
|
||||
// invoice.
|
||||
bytes preimage = 1;
|
||||
}
|
||||
|
||||
@ -118,6 +118,6 @@ message SettleInvoiceResp {
|
||||
message SubscribeSingleInvoiceRequest {
|
||||
reserved 1;
|
||||
|
||||
/// Hash corresponding to the (hold) invoice to subscribe to.
|
||||
// Hash corresponding to the (hold) invoice to subscribe to.
|
||||
bytes r_hash = 2;
|
||||
}
|
||||
|
@ -22,9 +22,9 @@ var _ = math.Inf
|
||||
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
type VersionResponse struct {
|
||||
/// The version information for lncli.
|
||||
// The version information for lncli.
|
||||
Lncli *verrpc.Version `protobuf:"bytes,1,opt,name=lncli,proto3" json:"lncli,omitempty"`
|
||||
/// The version information for lnd.
|
||||
// The version information for lnd.
|
||||
Lnd *verrpc.Version `protobuf:"bytes,2,opt,name=lnd,proto3" json:"lnd,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
|
@ -7,9 +7,9 @@ package lnclipb;
|
||||
option go_package = "github.com/lightningnetwork/lnd/lnrpc/lnclipb";
|
||||
|
||||
message VersionResponse {
|
||||
/// The version information for lncli.
|
||||
// The version information for lncli.
|
||||
verrpc.Version lncli = 1;
|
||||
|
||||
/// The version information for lnd.
|
||||
// The version information for lnd.
|
||||
verrpc.Version lnd = 2;
|
||||
};
|
||||
|
@ -114,27 +114,27 @@ func (FailureDetail) EnumDescriptor() ([]byte, []int) {
|
||||
type PaymentState int32
|
||||
|
||||
const (
|
||||
//*
|
||||
//
|
||||
//Payment is still in flight.
|
||||
PaymentState_IN_FLIGHT PaymentState = 0
|
||||
//*
|
||||
//
|
||||
//Payment completed successfully.
|
||||
PaymentState_SUCCEEDED PaymentState = 1
|
||||
//*
|
||||
//
|
||||
//There are more routes to try, but the payment timeout was exceeded.
|
||||
PaymentState_FAILED_TIMEOUT PaymentState = 2
|
||||
//*
|
||||
//
|
||||
//All possible routes were tried and failed permanently. Or were no
|
||||
//routes to the destination at all.
|
||||
PaymentState_FAILED_NO_ROUTE PaymentState = 3
|
||||
//*
|
||||
//
|
||||
//A non-recoverable error has occured.
|
||||
PaymentState_FAILED_ERROR PaymentState = 4
|
||||
//*
|
||||
//
|
||||
//Payment details incorrect (unknown hash, invalid amt or
|
||||
//invalid final cltv delta)
|
||||
PaymentState_FAILED_INCORRECT_PAYMENT_DETAILS PaymentState = 5
|
||||
//*
|
||||
//
|
||||
//Insufficient local balance.
|
||||
PaymentState_FAILED_INSUFFICIENT_BALANCE PaymentState = 6
|
||||
)
|
||||
@ -199,38 +199,38 @@ func (HtlcEvent_EventType) EnumDescriptor() ([]byte, []int) {
|
||||
}
|
||||
|
||||
type SendPaymentRequest struct {
|
||||
/// The identity pubkey of the payment recipient
|
||||
// The identity pubkey of the payment recipient
|
||||
Dest []byte `protobuf:"bytes,1,opt,name=dest,proto3" json:"dest,omitempty"`
|
||||
//*
|
||||
//
|
||||
//Number of satoshis to send.
|
||||
//
|
||||
//The fields amt and amt_msat are mutually exclusive.
|
||||
Amt int64 `protobuf:"varint,2,opt,name=amt,proto3" json:"amt,omitempty"`
|
||||
//*
|
||||
//
|
||||
//Number of millisatoshis to send.
|
||||
//
|
||||
//The fields amt and amt_msat are mutually exclusive.
|
||||
AmtMsat int64 `protobuf:"varint,12,opt,name=amt_msat,json=amtMsat,proto3" json:"amt_msat,omitempty"`
|
||||
/// The hash to use within the payment's HTLC
|
||||
// The hash to use within the payment's HTLC
|
||||
PaymentHash []byte `protobuf:"bytes,3,opt,name=payment_hash,json=paymentHash,proto3" json:"payment_hash,omitempty"`
|
||||
//*
|
||||
//
|
||||
//The CLTV delta from the current height that should be used to set the
|
||||
//timelock for the final hop.
|
||||
FinalCltvDelta int32 `protobuf:"varint,4,opt,name=final_cltv_delta,json=finalCltvDelta,proto3" json:"final_cltv_delta,omitempty"`
|
||||
//*
|
||||
//
|
||||
//A bare-bones invoice for a payment within the Lightning Network. With the
|
||||
//details of the invoice, the sender has all the data necessary to send a
|
||||
//payment to the recipient. The amount in the payment request may be zero. In
|
||||
//that case it is required to set the amt field as well. If no payment request
|
||||
//is specified, the following fields are required: dest, amt and payment_hash.
|
||||
PaymentRequest string `protobuf:"bytes,5,opt,name=payment_request,json=paymentRequest,proto3" json:"payment_request,omitempty"`
|
||||
//*
|
||||
//
|
||||
//An upper limit on the amount of time we should spend when attempting to
|
||||
//fulfill the payment. This is expressed in seconds. If we cannot make a
|
||||
//successful payment within this time frame, an error will be returned.
|
||||
//This field must be non-zero.
|
||||
TimeoutSeconds int32 `protobuf:"varint,6,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"`
|
||||
//*
|
||||
//
|
||||
//The maximum number of satoshis that will be paid as a fee of the payment.
|
||||
//If this field is left to the default value of 0, only zero-fee routes will
|
||||
//be considered. This usually means single hop routes connecting directly to
|
||||
@ -238,7 +238,7 @@ type SendPaymentRequest struct {
|
||||
//
|
||||
//The fields fee_limit_sat and fee_limit_msat are mutually exclusive.
|
||||
FeeLimitSat int64 `protobuf:"varint,7,opt,name=fee_limit_sat,json=feeLimitSat,proto3" json:"fee_limit_sat,omitempty"`
|
||||
//*
|
||||
//
|
||||
//The maximum number of millisatoshis that will be paid as a fee of the
|
||||
//payment. If this field is left to the default value of 0, only zero-fee
|
||||
//routes will be considered. This usually means single hop routes connecting
|
||||
@ -247,42 +247,42 @@ type SendPaymentRequest struct {
|
||||
//
|
||||
//The fields fee_limit_sat and fee_limit_msat are mutually exclusive.
|
||||
FeeLimitMsat int64 `protobuf:"varint,13,opt,name=fee_limit_msat,json=feeLimitMsat,proto3" json:"fee_limit_msat,omitempty"`
|
||||
//*
|
||||
//
|
||||
//The channel id of the channel that must be taken to the first hop. If zero,
|
||||
//any channel may be used.
|
||||
OutgoingChanId uint64 `protobuf:"varint,8,opt,name=outgoing_chan_id,json=outgoingChanId,proto3" json:"outgoing_chan_id,omitempty"`
|
||||
//*
|
||||
//
|
||||
//The pubkey of the last hop of the route. If empty, any hop may be used.
|
||||
LastHopPubkey []byte `protobuf:"bytes,14,opt,name=last_hop_pubkey,json=lastHopPubkey,proto3" json:"last_hop_pubkey,omitempty"`
|
||||
//*
|
||||
//
|
||||
//An optional maximum total time lock for the route. This should not exceed
|
||||
//lnd's `--max-cltv-expiry` setting. If zero, then the value of
|
||||
//`--max-cltv-expiry` is enforced.
|
||||
CltvLimit int32 `protobuf:"varint,9,opt,name=cltv_limit,json=cltvLimit,proto3" json:"cltv_limit,omitempty"`
|
||||
//*
|
||||
//
|
||||
//Optional route hints to reach the destination through private channels.
|
||||
RouteHints []*lnrpc.RouteHint `protobuf:"bytes,10,rep,name=route_hints,json=routeHints,proto3" json:"route_hints,omitempty"`
|
||||
//*
|
||||
//
|
||||
//An optional field that can be used to pass an arbitrary set of TLV records
|
||||
//to a peer which understands the new records. This can be used to pass
|
||||
//application specific data during the payment attempt. Record types are
|
||||
//required to be in the custom range >= 65536. When using REST, the values
|
||||
//must be encoded as base64.
|
||||
DestCustomRecords map[uint64][]byte `protobuf:"bytes,11,rep,name=dest_custom_records,json=destCustomRecords,proto3" json:"dest_custom_records,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
/// If set, circular payments to self are permitted.
|
||||
// If set, circular payments to self are permitted.
|
||||
AllowSelfPayment bool `protobuf:"varint,15,opt,name=allow_self_payment,json=allowSelfPayment,proto3" json:"allow_self_payment,omitempty"`
|
||||
//*
|
||||
//
|
||||
//Features assumed to be supported by the final node. All transitive feature
|
||||
//dependencies must also be set properly. For a given feature bit pair, either
|
||||
//optional or remote may be set, but not both. If this field is nil or empty,
|
||||
//the router will try to load destination features from the graph as a
|
||||
//fallback.
|
||||
DestFeatures []lnrpc.FeatureBit `protobuf:"varint,16,rep,packed,name=dest_features,json=destFeatures,proto3,enum=lnrpc.FeatureBit" json:"dest_features,omitempty"`
|
||||
//*
|
||||
//
|
||||
//The maximum number of partial payments that may be use to complete the full
|
||||
//amount.
|
||||
MaxParts uint32 `protobuf:"varint,17,opt,name=max_parts,json=maxParts,proto3" json:"max_parts,omitempty"`
|
||||
//*
|
||||
//
|
||||
//If set, only the final payment update is streamed back. Intermediate updates
|
||||
//that show which htlcs are still in flight are suppressed.
|
||||
NoInflightUpdates bool `protobuf:"varint,18,opt,name=no_inflight_updates,json=noInflightUpdates,proto3" json:"no_inflight_updates,omitempty"`
|
||||
@ -443,9 +443,9 @@ func (m *SendPaymentRequest) GetNoInflightUpdates() bool {
|
||||
}
|
||||
|
||||
type TrackPaymentRequest struct {
|
||||
/// The hash of the payment to look up.
|
||||
// The hash of the payment to look up.
|
||||
PaymentHash []byte `protobuf:"bytes,1,opt,name=payment_hash,json=paymentHash,proto3" json:"payment_hash,omitempty"`
|
||||
//*
|
||||
//
|
||||
//If set, only the final payment update is streamed back. Intermediate updates
|
||||
//that show which htlcs are still in flight are suppressed.
|
||||
NoInflightUpdates bool `protobuf:"varint,2,opt,name=no_inflight_updates,json=noInflightUpdates,proto3" json:"no_inflight_updates,omitempty"`
|
||||
@ -494,10 +494,10 @@ func (m *TrackPaymentRequest) GetNoInflightUpdates() bool {
|
||||
}
|
||||
|
||||
type RouteFeeRequest struct {
|
||||
//*
|
||||
//
|
||||
//The destination once wishes to obtain a routing fee quote to.
|
||||
Dest []byte `protobuf:"bytes,1,opt,name=dest,proto3" json:"dest,omitempty"`
|
||||
//*
|
||||
//
|
||||
//The amount one wishes to send to the target destination.
|
||||
AmtSat int64 `protobuf:"varint,2,opt,name=amt_sat,json=amtSat,proto3" json:"amt_sat,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
@ -545,11 +545,11 @@ func (m *RouteFeeRequest) GetAmtSat() int64 {
|
||||
}
|
||||
|
||||
type RouteFeeResponse struct {
|
||||
//*
|
||||
//
|
||||
//A lower bound of the estimated fee to the target destination within the
|
||||
//network, expressed in milli-satoshis.
|
||||
RoutingFeeMsat int64 `protobuf:"varint,1,opt,name=routing_fee_msat,json=routingFeeMsat,proto3" json:"routing_fee_msat,omitempty"`
|
||||
//*
|
||||
//
|
||||
//An estimate of the worst case time delay that can occur. Note that callers
|
||||
//will still need to factor in the final CLTV delta of the last hop into this
|
||||
//value.
|
||||
@ -599,9 +599,9 @@ func (m *RouteFeeResponse) GetTimeLockDelay() int64 {
|
||||
}
|
||||
|
||||
type SendToRouteRequest struct {
|
||||
/// The payment hash to use for the HTLC.
|
||||
// The payment hash to use for the HTLC.
|
||||
PaymentHash []byte `protobuf:"bytes,1,opt,name=payment_hash,json=paymentHash,proto3" json:"payment_hash,omitempty"`
|
||||
/// Route that should be used to attempt to complete the payment.
|
||||
// Route that should be used to attempt to complete the payment.
|
||||
Route *lnrpc.Route `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
@ -648,9 +648,9 @@ func (m *SendToRouteRequest) GetRoute() *lnrpc.Route {
|
||||
}
|
||||
|
||||
type SendToRouteResponse struct {
|
||||
/// The preimage obtained by making the payment.
|
||||
// The preimage obtained by making the payment.
|
||||
Preimage []byte `protobuf:"bytes,1,opt,name=preimage,proto3" json:"preimage,omitempty"`
|
||||
/// The failure message in case the payment failed.
|
||||
// The failure message in case the payment failed.
|
||||
Failure *lnrpc.Failure `protobuf:"bytes,2,opt,name=failure,proto3" json:"failure,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
@ -789,9 +789,9 @@ func (m *QueryMissionControlRequest) XXX_DiscardUnknown() {
|
||||
|
||||
var xxx_messageInfo_QueryMissionControlRequest proto.InternalMessageInfo
|
||||
|
||||
/// QueryMissionControlResponse contains mission control state.
|
||||
// QueryMissionControlResponse contains mission control state.
|
||||
type QueryMissionControlResponse struct {
|
||||
/// Node pair-level mission control state.
|
||||
// Node pair-level mission control state.
|
||||
Pairs []*PairHistory `protobuf:"bytes,2,rep,name=pairs,proto3" json:"pairs,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
@ -830,11 +830,11 @@ func (m *QueryMissionControlResponse) GetPairs() []*PairHistory {
|
||||
return nil
|
||||
}
|
||||
|
||||
/// PairHistory contains the mission control state for a particular node pair.
|
||||
// PairHistory contains the mission control state for a particular node pair.
|
||||
type PairHistory struct {
|
||||
/// The source node pubkey of the pair.
|
||||
// The source node pubkey of the pair.
|
||||
NodeFrom []byte `protobuf:"bytes,1,opt,name=node_from,json=nodeFrom,proto3" json:"node_from,omitempty"`
|
||||
/// The destination node pubkey of the pair.
|
||||
// The destination node pubkey of the pair.
|
||||
NodeTo []byte `protobuf:"bytes,2,opt,name=node_to,json=nodeTo,proto3" json:"node_to,omitempty"`
|
||||
History *PairData `protobuf:"bytes,7,opt,name=history,proto3" json:"history,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
@ -889,21 +889,21 @@ func (m *PairHistory) GetHistory() *PairData {
|
||||
}
|
||||
|
||||
type PairData struct {
|
||||
/// Time of last failure.
|
||||
// Time of last failure.
|
||||
FailTime int64 `protobuf:"varint,1,opt,name=fail_time,json=failTime,proto3" json:"fail_time,omitempty"`
|
||||
//*
|
||||
//
|
||||
//Lowest amount that failed to forward rounded to whole sats. This may be
|
||||
//set to zero if the failure is independent of amount.
|
||||
FailAmtSat int64 `protobuf:"varint,2,opt,name=fail_amt_sat,json=failAmtSat,proto3" json:"fail_amt_sat,omitempty"`
|
||||
//*
|
||||
//
|
||||
//Lowest amount that failed to forward in millisats. This may be
|
||||
//set to zero if the failure is independent of amount.
|
||||
FailAmtMsat int64 `protobuf:"varint,4,opt,name=fail_amt_msat,json=failAmtMsat,proto3" json:"fail_amt_msat,omitempty"`
|
||||
/// Time of last success.
|
||||
// Time of last success.
|
||||
SuccessTime int64 `protobuf:"varint,5,opt,name=success_time,json=successTime,proto3" json:"success_time,omitempty"`
|
||||
/// Highest amount that we could successfully forward rounded to whole sats.
|
||||
// Highest amount that we could successfully forward rounded to whole sats.
|
||||
SuccessAmtSat int64 `protobuf:"varint,6,opt,name=success_amt_sat,json=successAmtSat,proto3" json:"success_amt_sat,omitempty"`
|
||||
/// Highest amount that we could successfully forward in millisats.
|
||||
// Highest amount that we could successfully forward in millisats.
|
||||
SuccessAmtMsat int64 `protobuf:"varint,7,opt,name=success_amt_msat,json=successAmtMsat,proto3" json:"success_amt_msat,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
@ -978,11 +978,11 @@ func (m *PairData) GetSuccessAmtMsat() int64 {
|
||||
}
|
||||
|
||||
type QueryProbabilityRequest struct {
|
||||
/// The source node pubkey of the pair.
|
||||
// The source node pubkey of the pair.
|
||||
FromNode []byte `protobuf:"bytes,1,opt,name=from_node,json=fromNode,proto3" json:"from_node,omitempty"`
|
||||
/// The destination node pubkey of the pair.
|
||||
// The destination node pubkey of the pair.
|
||||
ToNode []byte `protobuf:"bytes,2,opt,name=to_node,json=toNode,proto3" json:"to_node,omitempty"`
|
||||
/// The amount for which to calculate a probability.
|
||||
// The amount for which to calculate a probability.
|
||||
AmtMsat int64 `protobuf:"varint,3,opt,name=amt_msat,json=amtMsat,proto3" json:"amt_msat,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
@ -1036,9 +1036,9 @@ func (m *QueryProbabilityRequest) GetAmtMsat() int64 {
|
||||
}
|
||||
|
||||
type QueryProbabilityResponse struct {
|
||||
/// The success probability for the requested pair.
|
||||
// The success probability for the requested pair.
|
||||
Probability float64 `protobuf:"fixed64,1,opt,name=probability,proto3" json:"probability,omitempty"`
|
||||
/// The historical data for the requested pair.
|
||||
// The historical data for the requested pair.
|
||||
History *PairData `protobuf:"bytes,2,opt,name=history,proto3" json:"history,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
@ -1085,19 +1085,19 @@ func (m *QueryProbabilityResponse) GetHistory() *PairData {
|
||||
}
|
||||
|
||||
type BuildRouteRequest struct {
|
||||
//*
|
||||
//
|
||||
//The amount to send expressed in msat. If set to zero, the minimum routable
|
||||
//amount is used.
|
||||
AmtMsat int64 `protobuf:"varint,1,opt,name=amt_msat,json=amtMsat,proto3" json:"amt_msat,omitempty"`
|
||||
//*
|
||||
//
|
||||
//CLTV delta from the current height that should be used for the timelock
|
||||
//of the final hop
|
||||
FinalCltvDelta int32 `protobuf:"varint,2,opt,name=final_cltv_delta,json=finalCltvDelta,proto3" json:"final_cltv_delta,omitempty"`
|
||||
//*
|
||||
//
|
||||
//The channel id of the channel that must be taken to the first hop. If zero,
|
||||
//any channel may be used.
|
||||
OutgoingChanId uint64 `protobuf:"varint,3,opt,name=outgoing_chan_id,json=outgoingChanId,proto3" json:"outgoing_chan_id,omitempty"`
|
||||
//*
|
||||
//
|
||||
//A list of hops that defines the route. This does not include the source hop
|
||||
//pubkey.
|
||||
HopPubkeys [][]byte `protobuf:"bytes,4,rep,name=hop_pubkeys,json=hopPubkeys,proto3" json:"hop_pubkeys,omitempty"`
|
||||
@ -1160,7 +1160,7 @@ func (m *BuildRouteRequest) GetHopPubkeys() [][]byte {
|
||||
}
|
||||
|
||||
type BuildRouteResponse struct {
|
||||
//*
|
||||
//
|
||||
//Fully specified route that can be used to execute the payment.
|
||||
Route *lnrpc.Route `protobuf:"bytes,1,opt,name=route,proto3" json:"route,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
@ -1231,7 +1231,7 @@ func (m *SubscribeHtlcEventsRequest) XXX_DiscardUnknown() {
|
||||
|
||||
var xxx_messageInfo_SubscribeHtlcEventsRequest proto.InternalMessageInfo
|
||||
|
||||
//*
|
||||
//
|
||||
//HtlcEvent contains the htlc event that was processed. These are served on a
|
||||
//best-effort basis; events are not persisted, delivery is not guaranteed
|
||||
//(in the event of a crash in the switch, forward events may be lost) and
|
||||
@ -1239,26 +1239,26 @@ var xxx_messageInfo_SubscribeHtlcEventsRequest proto.InternalMessageInfo
|
||||
//should be de-duplicated by the htlc's unique combination of incoming and
|
||||
//outgoing channel id and htlc id. [EXPERIMENTAL]
|
||||
type HtlcEvent struct {
|
||||
//*
|
||||
//
|
||||
//The short channel id that the incoming htlc arrived at our node on. This
|
||||
//value is zero for sends.
|
||||
IncomingChannelId uint64 `protobuf:"varint,1,opt,name=incoming_channel_id,json=incomingChannelId,proto3" json:"incoming_channel_id,omitempty"`
|
||||
//*
|
||||
//
|
||||
//The short channel id that the outgoing htlc left our node on. This value
|
||||
//is zero for receives.
|
||||
OutgoingChannelId uint64 `protobuf:"varint,2,opt,name=outgoing_channel_id,json=outgoingChannelId,proto3" json:"outgoing_channel_id,omitempty"`
|
||||
//*
|
||||
//
|
||||
//Incoming id is the index of the incoming htlc in the incoming channel.
|
||||
//This value is zero for sends.
|
||||
IncomingHtlcId uint64 `protobuf:"varint,3,opt,name=incoming_htlc_id,json=incomingHtlcId,proto3" json:"incoming_htlc_id,omitempty"`
|
||||
//*
|
||||
//
|
||||
//Outgoing id is the index of the outgoing htlc in the outgoing channel.
|
||||
//This value is zero for receives.
|
||||
OutgoingHtlcId uint64 `protobuf:"varint,4,opt,name=outgoing_htlc_id,json=outgoingHtlcId,proto3" json:"outgoing_htlc_id,omitempty"`
|
||||
//*
|
||||
//
|
||||
//The time in unix nanoseconds that the event occurred.
|
||||
TimestampNs uint64 `protobuf:"varint,5,opt,name=timestamp_ns,json=timestampNs,proto3" json:"timestamp_ns,omitempty"`
|
||||
//*
|
||||
//
|
||||
//The event type indicates whether the htlc was part of a send, receive or
|
||||
//forward.
|
||||
EventType HtlcEvent_EventType `protobuf:"varint,6,opt,name=event_type,json=eventType,proto3,enum=routerrpc.HtlcEvent_EventType" json:"event_type,omitempty"`
|
||||
@ -1587,7 +1587,7 @@ type LinkFailEvent struct {
|
||||
Info *HtlcInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
|
||||
// FailureCode is the BOLT error code for the failure.
|
||||
WireFailure lnrpc.Failure_FailureCode `protobuf:"varint,2,opt,name=wire_failure,json=wireFailure,proto3,enum=lnrpc.Failure_FailureCode" json:"wire_failure,omitempty"`
|
||||
//*
|
||||
//
|
||||
//FailureDetail provides additional information about the reason for the
|
||||
//failure. This detail enriches the information provided by the wire message
|
||||
//and may be 'no detail' if the wire message requires no additional metadata.
|
||||
@ -1653,12 +1653,12 @@ func (m *LinkFailEvent) GetFailureString() string {
|
||||
}
|
||||
|
||||
type PaymentStatus struct {
|
||||
/// Current state the payment is in.
|
||||
// Current state the payment is in.
|
||||
State PaymentState `protobuf:"varint,1,opt,name=state,proto3,enum=routerrpc.PaymentState" json:"state,omitempty"`
|
||||
//*
|
||||
//
|
||||
//The pre-image of the payment when state is SUCCEEDED.
|
||||
Preimage []byte `protobuf:"bytes,2,opt,name=preimage,proto3" json:"preimage,omitempty"`
|
||||
//*
|
||||
//
|
||||
//The HTLCs made in attempt to settle the payment [EXPERIMENTAL].
|
||||
Htlcs []*lnrpc.HTLCAttempt `protobuf:"bytes,4,rep,name=htlcs,proto3" json:"htlcs,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
@ -1902,51 +1902,51 @@ const _ = grpc.SupportPackageIsVersion4
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type RouterClient interface {
|
||||
//*
|
||||
//
|
||||
//SendPaymentV2 attempts to route a payment described by the passed
|
||||
//PaymentRequest to the final destination. The call returns a stream of
|
||||
//payment updates.
|
||||
SendPaymentV2(ctx context.Context, in *SendPaymentRequest, opts ...grpc.CallOption) (Router_SendPaymentV2Client, error)
|
||||
//*
|
||||
//
|
||||
//TrackPaymentV2 returns an update stream for the payment identified by the
|
||||
//payment hash.
|
||||
TrackPaymentV2(ctx context.Context, in *TrackPaymentRequest, opts ...grpc.CallOption) (Router_TrackPaymentV2Client, error)
|
||||
//*
|
||||
//
|
||||
//EstimateRouteFee allows callers to obtain a lower bound w.r.t how much it
|
||||
//may cost to send an HTLC to the target end destination.
|
||||
EstimateRouteFee(ctx context.Context, in *RouteFeeRequest, opts ...grpc.CallOption) (*RouteFeeResponse, error)
|
||||
//*
|
||||
//
|
||||
//SendToRoute attempts to make a payment via the specified route. This method
|
||||
//differs from SendPayment in that it allows users to specify a full route
|
||||
//manually. This can be used for things like rebalancing, and atomic swaps.
|
||||
SendToRoute(ctx context.Context, in *SendToRouteRequest, opts ...grpc.CallOption) (*SendToRouteResponse, error)
|
||||
//*
|
||||
//
|
||||
//ResetMissionControl clears all mission control state and starts with a clean
|
||||
//slate.
|
||||
ResetMissionControl(ctx context.Context, in *ResetMissionControlRequest, opts ...grpc.CallOption) (*ResetMissionControlResponse, error)
|
||||
//*
|
||||
//
|
||||
//QueryMissionControl exposes the internal mission control state to callers.
|
||||
//It is a development feature.
|
||||
QueryMissionControl(ctx context.Context, in *QueryMissionControlRequest, opts ...grpc.CallOption) (*QueryMissionControlResponse, error)
|
||||
//*
|
||||
//
|
||||
//QueryProbability returns the current success probability estimate for a
|
||||
//given node pair and amount.
|
||||
QueryProbability(ctx context.Context, in *QueryProbabilityRequest, opts ...grpc.CallOption) (*QueryProbabilityResponse, error)
|
||||
//*
|
||||
//
|
||||
//BuildRoute builds a fully specified route based on a list of hop public
|
||||
//keys. It retrieves the relevant channel policies from the graph in order to
|
||||
//calculate the correct fees and time locks.
|
||||
BuildRoute(ctx context.Context, in *BuildRouteRequest, opts ...grpc.CallOption) (*BuildRouteResponse, error)
|
||||
//*
|
||||
//
|
||||
//SubscribeHtlcEvents creates a uni-directional stream from the server to
|
||||
//the client which delivers a stream of htlc events.
|
||||
SubscribeHtlcEvents(ctx context.Context, in *SubscribeHtlcEventsRequest, opts ...grpc.CallOption) (Router_SubscribeHtlcEventsClient, error)
|
||||
//*
|
||||
//
|
||||
//Deprecated, use SendPaymentV2. SendPayment attempts to route a payment
|
||||
//described by the passed PaymentRequest to the final destination. The call
|
||||
//returns a stream of payment status updates.
|
||||
SendPayment(ctx context.Context, in *SendPaymentRequest, opts ...grpc.CallOption) (Router_SendPaymentClient, error)
|
||||
//*
|
||||
//
|
||||
//Deprecated, use TrackPaymentV2. TrackPayment returns an update stream for
|
||||
//the payment identified by the payment hash.
|
||||
TrackPayment(ctx context.Context, in *TrackPaymentRequest, opts ...grpc.CallOption) (Router_TrackPaymentClient, error)
|
||||
@ -2178,51 +2178,51 @@ func (x *routerTrackPaymentClient) Recv() (*PaymentStatus, error) {
|
||||
|
||||
// RouterServer is the server API for Router service.
|
||||
type RouterServer interface {
|
||||
//*
|
||||
//
|
||||
//SendPaymentV2 attempts to route a payment described by the passed
|
||||
//PaymentRequest to the final destination. The call returns a stream of
|
||||
//payment updates.
|
||||
SendPaymentV2(*SendPaymentRequest, Router_SendPaymentV2Server) error
|
||||
//*
|
||||
//
|
||||
//TrackPaymentV2 returns an update stream for the payment identified by the
|
||||
//payment hash.
|
||||
TrackPaymentV2(*TrackPaymentRequest, Router_TrackPaymentV2Server) error
|
||||
//*
|
||||
//
|
||||
//EstimateRouteFee allows callers to obtain a lower bound w.r.t how much it
|
||||
//may cost to send an HTLC to the target end destination.
|
||||
EstimateRouteFee(context.Context, *RouteFeeRequest) (*RouteFeeResponse, error)
|
||||
//*
|
||||
//
|
||||
//SendToRoute attempts to make a payment via the specified route. This method
|
||||
//differs from SendPayment in that it allows users to specify a full route
|
||||
//manually. This can be used for things like rebalancing, and atomic swaps.
|
||||
SendToRoute(context.Context, *SendToRouteRequest) (*SendToRouteResponse, error)
|
||||
//*
|
||||
//
|
||||
//ResetMissionControl clears all mission control state and starts with a clean
|
||||
//slate.
|
||||
ResetMissionControl(context.Context, *ResetMissionControlRequest) (*ResetMissionControlResponse, error)
|
||||
//*
|
||||
//
|
||||
//QueryMissionControl exposes the internal mission control state to callers.
|
||||
//It is a development feature.
|
||||
QueryMissionControl(context.Context, *QueryMissionControlRequest) (*QueryMissionControlResponse, error)
|
||||
//*
|
||||
//
|
||||
//QueryProbability returns the current success probability estimate for a
|
||||
//given node pair and amount.
|
||||
QueryProbability(context.Context, *QueryProbabilityRequest) (*QueryProbabilityResponse, error)
|
||||
//*
|
||||
//
|
||||
//BuildRoute builds a fully specified route based on a list of hop public
|
||||
//keys. It retrieves the relevant channel policies from the graph in order to
|
||||
//calculate the correct fees and time locks.
|
||||
BuildRoute(context.Context, *BuildRouteRequest) (*BuildRouteResponse, error)
|
||||
//*
|
||||
//
|
||||
//SubscribeHtlcEvents creates a uni-directional stream from the server to
|
||||
//the client which delivers a stream of htlc events.
|
||||
SubscribeHtlcEvents(*SubscribeHtlcEventsRequest, Router_SubscribeHtlcEventsServer) error
|
||||
//*
|
||||
//
|
||||
//Deprecated, use SendPaymentV2. SendPayment attempts to route a payment
|
||||
//described by the passed PaymentRequest to the final destination. The call
|
||||
//returns a stream of payment status updates.
|
||||
SendPayment(*SendPaymentRequest, Router_SendPaymentServer) error
|
||||
//*
|
||||
//
|
||||
//Deprecated, use TrackPaymentV2. TrackPayment returns an update stream for
|
||||
//the payment identified by the payment hash.
|
||||
TrackPayment(*TrackPaymentRequest, Router_TrackPaymentServer) error
|
||||
|
@ -9,68 +9,68 @@ option go_package = "github.com/lightningnetwork/lnd/lnrpc/routerrpc";
|
||||
// Router is a service that offers advanced interaction with the router
|
||||
// subsystem of the daemon.
|
||||
service Router {
|
||||
/**
|
||||
/*
|
||||
SendPaymentV2 attempts to route a payment described by the passed
|
||||
PaymentRequest to the final destination. The call returns a stream of
|
||||
payment updates.
|
||||
*/
|
||||
rpc SendPaymentV2 (SendPaymentRequest) returns (stream lnrpc.Payment);
|
||||
|
||||
/**
|
||||
/*
|
||||
TrackPaymentV2 returns an update stream for the payment identified by the
|
||||
payment hash.
|
||||
*/
|
||||
rpc TrackPaymentV2 (TrackPaymentRequest) returns (stream lnrpc.Payment);
|
||||
|
||||
/**
|
||||
/*
|
||||
EstimateRouteFee allows callers to obtain a lower bound w.r.t how much it
|
||||
may cost to send an HTLC to the target end destination.
|
||||
*/
|
||||
rpc EstimateRouteFee (RouteFeeRequest) returns (RouteFeeResponse);
|
||||
|
||||
/**
|
||||
/*
|
||||
SendToRoute attempts to make a payment via the specified route. This method
|
||||
differs from SendPayment in that it allows users to specify a full route
|
||||
manually. This can be used for things like rebalancing, and atomic swaps.
|
||||
*/
|
||||
rpc SendToRoute (SendToRouteRequest) returns (SendToRouteResponse);
|
||||
|
||||
/**
|
||||
/*
|
||||
ResetMissionControl clears all mission control state and starts with a clean
|
||||
slate.
|
||||
*/
|
||||
rpc ResetMissionControl (ResetMissionControlRequest)
|
||||
returns (ResetMissionControlResponse);
|
||||
|
||||
/**
|
||||
/*
|
||||
QueryMissionControl exposes the internal mission control state to callers.
|
||||
It is a development feature.
|
||||
*/
|
||||
rpc QueryMissionControl (QueryMissionControlRequest)
|
||||
returns (QueryMissionControlResponse);
|
||||
|
||||
/**
|
||||
/*
|
||||
QueryProbability returns the current success probability estimate for a
|
||||
given node pair and amount.
|
||||
*/
|
||||
rpc QueryProbability (QueryProbabilityRequest)
|
||||
returns (QueryProbabilityResponse);
|
||||
|
||||
/**
|
||||
/*
|
||||
BuildRoute builds a fully specified route based on a list of hop public
|
||||
keys. It retrieves the relevant channel policies from the graph in order to
|
||||
calculate the correct fees and time locks.
|
||||
*/
|
||||
rpc BuildRoute (BuildRouteRequest) returns (BuildRouteResponse);
|
||||
|
||||
/**
|
||||
/*
|
||||
SubscribeHtlcEvents creates a uni-directional stream from the server to
|
||||
the client which delivers a stream of htlc events.
|
||||
*/
|
||||
rpc SubscribeHtlcEvents (SubscribeHtlcEventsRequest)
|
||||
returns (stream HtlcEvent);
|
||||
|
||||
/**
|
||||
/*
|
||||
Deprecated, use SendPaymentV2. SendPayment attempts to route a payment
|
||||
described by the passed PaymentRequest to the final destination. The call
|
||||
returns a stream of payment status updates.
|
||||
@ -79,7 +79,7 @@ service Router {
|
||||
option deprecated = true;
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
Deprecated, use TrackPaymentV2. TrackPayment returns an update stream for
|
||||
the payment identified by the payment hash.
|
||||
*/
|
||||
@ -89,33 +89,33 @@ service Router {
|
||||
}
|
||||
|
||||
message SendPaymentRequest {
|
||||
/// The identity pubkey of the payment recipient
|
||||
// The identity pubkey of the payment recipient
|
||||
bytes dest = 1;
|
||||
|
||||
/**
|
||||
/*
|
||||
Number of satoshis to send.
|
||||
|
||||
The fields amt and amt_msat are mutually exclusive.
|
||||
*/
|
||||
int64 amt = 2;
|
||||
|
||||
/**
|
||||
/*
|
||||
Number of millisatoshis to send.
|
||||
|
||||
The fields amt and amt_msat are mutually exclusive.
|
||||
*/
|
||||
int64 amt_msat = 12;
|
||||
|
||||
/// The hash to use within the payment's HTLC
|
||||
// The hash to use within the payment's HTLC
|
||||
bytes payment_hash = 3;
|
||||
|
||||
/**
|
||||
/*
|
||||
The CLTV delta from the current height that should be used to set the
|
||||
timelock for the final hop.
|
||||
*/
|
||||
int32 final_cltv_delta = 4;
|
||||
|
||||
/**
|
||||
/*
|
||||
A bare-bones invoice for a payment within the Lightning Network. With the
|
||||
details of the invoice, the sender has all the data necessary to send a
|
||||
payment to the recipient. The amount in the payment request may be zero. In
|
||||
@ -124,7 +124,7 @@ message SendPaymentRequest {
|
||||
*/
|
||||
string payment_request = 5;
|
||||
|
||||
/**
|
||||
/*
|
||||
An upper limit on the amount of time we should spend when attempting to
|
||||
fulfill the payment. This is expressed in seconds. If we cannot make a
|
||||
successful payment within this time frame, an error will be returned.
|
||||
@ -132,7 +132,7 @@ message SendPaymentRequest {
|
||||
*/
|
||||
int32 timeout_seconds = 6;
|
||||
|
||||
/**
|
||||
/*
|
||||
The maximum number of satoshis that will be paid as a fee of the payment.
|
||||
If this field is left to the default value of 0, only zero-fee routes will
|
||||
be considered. This usually means single hop routes connecting directly to
|
||||
@ -142,7 +142,7 @@ message SendPaymentRequest {
|
||||
*/
|
||||
int64 fee_limit_sat = 7;
|
||||
|
||||
/**
|
||||
/*
|
||||
The maximum number of millisatoshis that will be paid as a fee of the
|
||||
payment. If this field is left to the default value of 0, only zero-fee
|
||||
routes will be considered. This usually means single hop routes connecting
|
||||
@ -153,30 +153,30 @@ message SendPaymentRequest {
|
||||
*/
|
||||
int64 fee_limit_msat = 13;
|
||||
|
||||
/**
|
||||
/*
|
||||
The channel id of the channel that must be taken to the first hop. If zero,
|
||||
any channel may be used.
|
||||
*/
|
||||
uint64 outgoing_chan_id = 8 [jstype = JS_STRING];
|
||||
|
||||
/**
|
||||
/*
|
||||
The pubkey of the last hop of the route. If empty, any hop may be used.
|
||||
*/
|
||||
bytes last_hop_pubkey = 14;
|
||||
|
||||
/**
|
||||
/*
|
||||
An optional maximum total time lock for the route. This should not exceed
|
||||
lnd's `--max-cltv-expiry` setting. If zero, then the value of
|
||||
`--max-cltv-expiry` is enforced.
|
||||
*/
|
||||
int32 cltv_limit = 9;
|
||||
|
||||
/**
|
||||
/*
|
||||
Optional route hints to reach the destination through private channels.
|
||||
*/
|
||||
repeated lnrpc.RouteHint route_hints = 10;
|
||||
|
||||
/**
|
||||
/*
|
||||
An optional field that can be used to pass an arbitrary set of TLV records
|
||||
to a peer which understands the new records. This can be used to pass
|
||||
application specific data during the payment attempt. Record types are
|
||||
@ -185,10 +185,10 @@ message SendPaymentRequest {
|
||||
*/
|
||||
map<uint64, bytes> dest_custom_records = 11;
|
||||
|
||||
/// If set, circular payments to self are permitted.
|
||||
// If set, circular payments to self are permitted.
|
||||
bool allow_self_payment = 15;
|
||||
|
||||
/**
|
||||
/*
|
||||
Features assumed to be supported by the final node. All transitive feature
|
||||
dependencies must also be set properly. For a given feature bit pair, either
|
||||
optional or remote may be set, but not both. If this field is nil or empty,
|
||||
@ -197,13 +197,13 @@ message SendPaymentRequest {
|
||||
*/
|
||||
repeated lnrpc.FeatureBit dest_features = 16;
|
||||
|
||||
/**
|
||||
/*
|
||||
The maximum number of partial payments that may be use to complete the full
|
||||
amount.
|
||||
*/
|
||||
uint32 max_parts = 17;
|
||||
|
||||
/**
|
||||
/*
|
||||
If set, only the final payment update is streamed back. Intermediate updates
|
||||
that show which htlcs are still in flight are suppressed.
|
||||
*/
|
||||
@ -211,10 +211,10 @@ message SendPaymentRequest {
|
||||
}
|
||||
|
||||
message TrackPaymentRequest {
|
||||
/// The hash of the payment to look up.
|
||||
// The hash of the payment to look up.
|
||||
bytes payment_hash = 1;
|
||||
|
||||
/**
|
||||
/*
|
||||
If set, only the final payment update is streamed back. Intermediate updates
|
||||
that show which htlcs are still in flight are suppressed.
|
||||
*/
|
||||
@ -222,25 +222,25 @@ message TrackPaymentRequest {
|
||||
}
|
||||
|
||||
message RouteFeeRequest {
|
||||
/**
|
||||
/*
|
||||
The destination once wishes to obtain a routing fee quote to.
|
||||
*/
|
||||
bytes dest = 1;
|
||||
|
||||
/**
|
||||
/*
|
||||
The amount one wishes to send to the target destination.
|
||||
*/
|
||||
int64 amt_sat = 2;
|
||||
}
|
||||
|
||||
message RouteFeeResponse {
|
||||
/**
|
||||
/*
|
||||
A lower bound of the estimated fee to the target destination within the
|
||||
network, expressed in milli-satoshis.
|
||||
*/
|
||||
int64 routing_fee_msat = 1;
|
||||
|
||||
/**
|
||||
/*
|
||||
An estimate of the worst case time delay that can occur. Note that callers
|
||||
will still need to factor in the final CLTV delta of the last hop into this
|
||||
value.
|
||||
@ -249,18 +249,18 @@ message RouteFeeResponse {
|
||||
}
|
||||
|
||||
message SendToRouteRequest {
|
||||
/// The payment hash to use for the HTLC.
|
||||
// The payment hash to use for the HTLC.
|
||||
bytes payment_hash = 1;
|
||||
|
||||
/// Route that should be used to attempt to complete the payment.
|
||||
// Route that should be used to attempt to complete the payment.
|
||||
lnrpc.Route route = 2;
|
||||
}
|
||||
|
||||
message SendToRouteResponse {
|
||||
/// The preimage obtained by making the payment.
|
||||
// The preimage obtained by making the payment.
|
||||
bytes preimage = 1;
|
||||
|
||||
/// The failure message in case the payment failed.
|
||||
// The failure message in case the payment failed.
|
||||
lnrpc.Failure failure = 2;
|
||||
}
|
||||
|
||||
@ -273,20 +273,20 @@ message ResetMissionControlResponse {
|
||||
message QueryMissionControlRequest {
|
||||
}
|
||||
|
||||
/// QueryMissionControlResponse contains mission control state.
|
||||
// QueryMissionControlResponse contains mission control state.
|
||||
message QueryMissionControlResponse {
|
||||
reserved 1;
|
||||
|
||||
/// Node pair-level mission control state.
|
||||
// Node pair-level mission control state.
|
||||
repeated PairHistory pairs = 2;
|
||||
}
|
||||
|
||||
/// PairHistory contains the mission control state for a particular node pair.
|
||||
// PairHistory contains the mission control state for a particular node pair.
|
||||
message PairHistory {
|
||||
/// The source node pubkey of the pair.
|
||||
// The source node pubkey of the pair.
|
||||
bytes node_from = 1;
|
||||
|
||||
/// The destination node pubkey of the pair.
|
||||
// The destination node pubkey of the pair.
|
||||
bytes node_to = 2;
|
||||
|
||||
reserved 3, 4, 5, 6;
|
||||
@ -295,16 +295,16 @@ message PairHistory {
|
||||
}
|
||||
|
||||
message PairData {
|
||||
/// Time of last failure.
|
||||
// Time of last failure.
|
||||
int64 fail_time = 1;
|
||||
|
||||
/**
|
||||
/*
|
||||
Lowest amount that failed to forward rounded to whole sats. This may be
|
||||
set to zero if the failure is independent of amount.
|
||||
*/
|
||||
int64 fail_amt_sat = 2;
|
||||
|
||||
/**
|
||||
/*
|
||||
Lowest amount that failed to forward in millisats. This may be
|
||||
set to zero if the failure is independent of amount.
|
||||
*/
|
||||
@ -312,55 +312,55 @@ message PairData {
|
||||
|
||||
reserved 3;
|
||||
|
||||
/// Time of last success.
|
||||
// Time of last success.
|
||||
int64 success_time = 5;
|
||||
|
||||
/// Highest amount that we could successfully forward rounded to whole sats.
|
||||
// Highest amount that we could successfully forward rounded to whole sats.
|
||||
int64 success_amt_sat = 6;
|
||||
|
||||
/// Highest amount that we could successfully forward in millisats.
|
||||
// Highest amount that we could successfully forward in millisats.
|
||||
int64 success_amt_msat = 7;
|
||||
}
|
||||
|
||||
message QueryProbabilityRequest {
|
||||
/// The source node pubkey of the pair.
|
||||
// The source node pubkey of the pair.
|
||||
bytes from_node = 1;
|
||||
|
||||
/// The destination node pubkey of the pair.
|
||||
// The destination node pubkey of the pair.
|
||||
bytes to_node = 2;
|
||||
|
||||
/// The amount for which to calculate a probability.
|
||||
// The amount for which to calculate a probability.
|
||||
int64 amt_msat = 3;
|
||||
}
|
||||
|
||||
message QueryProbabilityResponse {
|
||||
/// The success probability for the requested pair.
|
||||
// The success probability for the requested pair.
|
||||
double probability = 1;
|
||||
|
||||
/// The historical data for the requested pair.
|
||||
// The historical data for the requested pair.
|
||||
PairData history = 2;
|
||||
}
|
||||
|
||||
message BuildRouteRequest {
|
||||
/**
|
||||
/*
|
||||
The amount to send expressed in msat. If set to zero, the minimum routable
|
||||
amount is used.
|
||||
*/
|
||||
int64 amt_msat = 1;
|
||||
|
||||
/**
|
||||
/*
|
||||
CLTV delta from the current height that should be used for the timelock
|
||||
of the final hop
|
||||
*/
|
||||
int32 final_cltv_delta = 2;
|
||||
|
||||
/**
|
||||
/*
|
||||
The channel id of the channel that must be taken to the first hop. If zero,
|
||||
any channel may be used.
|
||||
*/
|
||||
uint64 outgoing_chan_id = 3 [jstype = JS_STRING];
|
||||
|
||||
/**
|
||||
/*
|
||||
A list of hops that defines the route. This does not include the source hop
|
||||
pubkey.
|
||||
*/
|
||||
@ -368,7 +368,7 @@ message BuildRouteRequest {
|
||||
}
|
||||
|
||||
message BuildRouteResponse {
|
||||
/**
|
||||
/*
|
||||
Fully specified route that can be used to execute the payment.
|
||||
*/
|
||||
lnrpc.Route route = 1;
|
||||
@ -377,7 +377,7 @@ message BuildRouteResponse {
|
||||
message SubscribeHtlcEventsRequest {
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
HtlcEvent contains the htlc event that was processed. These are served on a
|
||||
best-effort basis; events are not persisted, delivery is not guaranteed
|
||||
(in the event of a crash in the switch, forward events may be lost) and
|
||||
@ -386,31 +386,31 @@ should be de-duplicated by the htlc's unique combination of incoming and
|
||||
outgoing channel id and htlc id. [EXPERIMENTAL]
|
||||
*/
|
||||
message HtlcEvent {
|
||||
/**
|
||||
/*
|
||||
The short channel id that the incoming htlc arrived at our node on. This
|
||||
value is zero for sends.
|
||||
*/
|
||||
uint64 incoming_channel_id = 1;
|
||||
|
||||
/**
|
||||
/*
|
||||
The short channel id that the outgoing htlc left our node on. This value
|
||||
is zero for receives.
|
||||
*/
|
||||
uint64 outgoing_channel_id = 2;
|
||||
|
||||
/**
|
||||
/*
|
||||
Incoming id is the index of the incoming htlc in the incoming channel.
|
||||
This value is zero for sends.
|
||||
*/
|
||||
uint64 incoming_htlc_id = 3;
|
||||
|
||||
/**
|
||||
/*
|
||||
Outgoing id is the index of the outgoing htlc in the outgoing channel.
|
||||
This value is zero for receives.
|
||||
*/
|
||||
uint64 outgoing_htlc_id = 4;
|
||||
|
||||
/**
|
||||
/*
|
||||
The time in unix nanoseconds that the event occurred.
|
||||
*/
|
||||
uint64 timestamp_ns = 5;
|
||||
@ -422,7 +422,7 @@ message HtlcEvent {
|
||||
FORWARD = 3;
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
The event type indicates whether the htlc was part of a send, receive or
|
||||
forward.
|
||||
*/
|
||||
@ -468,7 +468,7 @@ message LinkFailEvent {
|
||||
// FailureCode is the BOLT error code for the failure.
|
||||
lnrpc.Failure.FailureCode wire_failure = 2;
|
||||
|
||||
/**
|
||||
/*
|
||||
FailureDetail provides additional information about the reason for the
|
||||
failure. This detail enriches the information provided by the wire message
|
||||
and may be 'no detail' if the wire message requires no additional metadata.
|
||||
@ -506,56 +506,56 @@ enum FailureDetail {
|
||||
}
|
||||
|
||||
enum PaymentState {
|
||||
/**
|
||||
/*
|
||||
Payment is still in flight.
|
||||
*/
|
||||
IN_FLIGHT = 0;
|
||||
|
||||
/**
|
||||
/*
|
||||
Payment completed successfully.
|
||||
*/
|
||||
SUCCEEDED = 1;
|
||||
|
||||
/**
|
||||
/*
|
||||
There are more routes to try, but the payment timeout was exceeded.
|
||||
*/
|
||||
FAILED_TIMEOUT = 2;
|
||||
|
||||
/**
|
||||
/*
|
||||
All possible routes were tried and failed permanently. Or were no
|
||||
routes to the destination at all.
|
||||
*/
|
||||
FAILED_NO_ROUTE = 3;
|
||||
|
||||
/**
|
||||
/*
|
||||
A non-recoverable error has occured.
|
||||
*/
|
||||
FAILED_ERROR = 4;
|
||||
|
||||
/**
|
||||
/*
|
||||
Payment details incorrect (unknown hash, invalid amt or
|
||||
invalid final cltv delta)
|
||||
*/
|
||||
FAILED_INCORRECT_PAYMENT_DETAILS = 5;
|
||||
|
||||
/**
|
||||
/*
|
||||
Insufficient local balance.
|
||||
*/
|
||||
FAILED_INSUFFICIENT_BALANCE = 6;
|
||||
}
|
||||
|
||||
message PaymentStatus {
|
||||
/// Current state the payment is in.
|
||||
// Current state the payment is in.
|
||||
PaymentState state = 1;
|
||||
|
||||
/**
|
||||
/*
|
||||
The pre-image of the payment when state is SUCCEEDED.
|
||||
*/
|
||||
bytes preimage = 2;
|
||||
|
||||
reserved 3;
|
||||
|
||||
/**
|
||||
/*
|
||||
The HTLCs made in attempt to settle the payment [EXPERIMENTAL].
|
||||
*/
|
||||
repeated lnrpc.HTLCAttempt htlcs = 4;
|
||||
|
1194
lnrpc/rpc.pb.go
1194
lnrpc/rpc.pb.go
File diff suppressed because it is too large
Load Diff
1128
lnrpc/rpc.proto
1128
lnrpc/rpc.proto
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -23,9 +23,9 @@ var _ = math.Inf
|
||||
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
type KeyLocator struct {
|
||||
/// The family of key being identified.
|
||||
// The family of key being identified.
|
||||
KeyFamily int32 `protobuf:"varint,1,opt,name=key_family,json=keyFamily,proto3" json:"key_family,omitempty"`
|
||||
/// The precise index of the key being identified.
|
||||
// The precise index of the key being identified.
|
||||
KeyIndex int32 `protobuf:"varint,2,opt,name=key_index,json=keyIndex,proto3" json:"key_index,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
@ -72,11 +72,11 @@ func (m *KeyLocator) GetKeyIndex() int32 {
|
||||
}
|
||||
|
||||
type KeyDescriptor struct {
|
||||
//*
|
||||
//
|
||||
//The raw bytes of the key being identified. Either this or the KeyLocator
|
||||
//must be specified.
|
||||
RawKeyBytes []byte `protobuf:"bytes,1,opt,name=raw_key_bytes,json=rawKeyBytes,proto3" json:"raw_key_bytes,omitempty"`
|
||||
//*
|
||||
//
|
||||
//The key locator that identifies which key to use for signing. Either this
|
||||
//or the raw bytes of the target key must be specified.
|
||||
KeyLoc *KeyLocator `protobuf:"bytes,2,opt,name=key_loc,json=keyLoc,proto3" json:"key_loc,omitempty"`
|
||||
@ -125,9 +125,9 @@ func (m *KeyDescriptor) GetKeyLoc() *KeyLocator {
|
||||
}
|
||||
|
||||
type TxOut struct {
|
||||
/// The value of the output being spent.
|
||||
// The value of the output being spent.
|
||||
Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
|
||||
/// The script of the output being spent.
|
||||
// The script of the output being spent.
|
||||
PkScript []byte `protobuf:"bytes,2,opt,name=pk_script,json=pkScript,proto3" json:"pk_script,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
@ -174,19 +174,19 @@ func (m *TxOut) GetPkScript() []byte {
|
||||
}
|
||||
|
||||
type SignDescriptor struct {
|
||||
//*
|
||||
//
|
||||
//A descriptor that precisely describes *which* key to use for signing. This
|
||||
//may provide the raw public key directly, or require the Signer to re-derive
|
||||
//the key according to the populated derivation path.
|
||||
KeyDesc *KeyDescriptor `protobuf:"bytes,1,opt,name=key_desc,json=keyDesc,proto3" json:"key_desc,omitempty"`
|
||||
//*
|
||||
//
|
||||
//A scalar value that will be added to the private key corresponding to the
|
||||
//above public key to obtain the private key to be used to sign this input.
|
||||
//This value is typically derived via the following computation:
|
||||
//
|
||||
// derivedKey = privkey + sha256(perCommitmentPoint || pubKey) mod N
|
||||
SingleTweak []byte `protobuf:"bytes,2,opt,name=single_tweak,json=singleTweak,proto3" json:"single_tweak,omitempty"`
|
||||
//*
|
||||
//
|
||||
//A private key that will be used in combination with its corresponding
|
||||
//private key to derive the private key that is to be used to sign the target
|
||||
//input. Within the Lightning protocol, this value is typically the
|
||||
@ -197,19 +197,19 @@ type SignDescriptor struct {
|
||||
// k = (privKey*sha256(pubKey || tweakPub) +
|
||||
//tweakPriv*sha256(tweakPub || pubKey)) mod N
|
||||
DoubleTweak []byte `protobuf:"bytes,3,opt,name=double_tweak,json=doubleTweak,proto3" json:"double_tweak,omitempty"`
|
||||
//*
|
||||
//
|
||||
//The full script required to properly redeem the output. This field will
|
||||
//only be populated if a p2wsh or a p2sh output is being signed.
|
||||
WitnessScript []byte `protobuf:"bytes,4,opt,name=witness_script,json=witnessScript,proto3" json:"witness_script,omitempty"`
|
||||
//*
|
||||
//
|
||||
//A description of the output being spent. The value and script MUST be
|
||||
//provided.
|
||||
Output *TxOut `protobuf:"bytes,5,opt,name=output,proto3" json:"output,omitempty"`
|
||||
//*
|
||||
//
|
||||
//The target sighash type that should be used when generating the final
|
||||
//sighash, and signature.
|
||||
Sighash uint32 `protobuf:"varint,7,opt,name=sighash,proto3" json:"sighash,omitempty"`
|
||||
//*
|
||||
//
|
||||
//The target input within the transaction that should be signed.
|
||||
InputIndex int32 `protobuf:"varint,8,opt,name=input_index,json=inputIndex,proto3" json:"input_index,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
@ -292,9 +292,9 @@ func (m *SignDescriptor) GetInputIndex() int32 {
|
||||
}
|
||||
|
||||
type SignReq struct {
|
||||
/// The raw bytes of the transaction to be signed.
|
||||
// The raw bytes of the transaction to be signed.
|
||||
RawTxBytes []byte `protobuf:"bytes,1,opt,name=raw_tx_bytes,json=rawTxBytes,proto3" json:"raw_tx_bytes,omitempty"`
|
||||
/// A set of sign descriptors, for each input to be signed.
|
||||
// A set of sign descriptors, for each input to be signed.
|
||||
SignDescs []*SignDescriptor `protobuf:"bytes,2,rep,name=sign_descs,json=signDescs,proto3" json:"sign_descs,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
@ -341,7 +341,7 @@ func (m *SignReq) GetSignDescs() []*SignDescriptor {
|
||||
}
|
||||
|
||||
type SignResp struct {
|
||||
//*
|
||||
//
|
||||
//A set of signatures realized in a fixed 64-byte format ordered in ascending
|
||||
//input order.
|
||||
RawSigs [][]byte `protobuf:"bytes,1,rep,name=raw_sigs,json=rawSigs,proto3" json:"raw_sigs,omitempty"`
|
||||
@ -383,9 +383,9 @@ func (m *SignResp) GetRawSigs() [][]byte {
|
||||
}
|
||||
|
||||
type InputScript struct {
|
||||
/// The serializes witness stack for the specified input.
|
||||
// The serializes witness stack for the specified input.
|
||||
Witness [][]byte `protobuf:"bytes,1,rep,name=witness,proto3" json:"witness,omitempty"`
|
||||
//**
|
||||
//*
|
||||
//The optional sig script for the specified witness that will only be set if
|
||||
//the input specified is a nested p2sh witness program.
|
||||
SigScript []byte `protobuf:"bytes,2,opt,name=sig_script,json=sigScript,proto3" json:"sig_script,omitempty"`
|
||||
@ -434,7 +434,7 @@ func (m *InputScript) GetSigScript() []byte {
|
||||
}
|
||||
|
||||
type InputScriptResp struct {
|
||||
/// The set of fully valid input scripts requested.
|
||||
// The set of fully valid input scripts requested.
|
||||
InputScripts []*InputScript `protobuf:"bytes,1,rep,name=input_scripts,json=inputScripts,proto3" json:"input_scripts,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
@ -474,9 +474,9 @@ func (m *InputScriptResp) GetInputScripts() []*InputScript {
|
||||
}
|
||||
|
||||
type SignMessageReq struct {
|
||||
/// The message to be signed.
|
||||
// The message to be signed.
|
||||
Msg []byte `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
|
||||
/// The key locator that identifies which key to use for signing.
|
||||
// The key locator that identifies which key to use for signing.
|
||||
KeyLoc *KeyLocator `protobuf:"bytes,2,opt,name=key_loc,json=keyLoc,proto3" json:"key_loc,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
@ -523,7 +523,7 @@ func (m *SignMessageReq) GetKeyLoc() *KeyLocator {
|
||||
}
|
||||
|
||||
type SignMessageResp struct {
|
||||
//*
|
||||
//
|
||||
//The signature for the given message in the fixed-size LN wire format.
|
||||
Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
@ -564,13 +564,13 @@ func (m *SignMessageResp) GetSignature() []byte {
|
||||
}
|
||||
|
||||
type VerifyMessageReq struct {
|
||||
/// The message over which the signature is to be verified.
|
||||
// The message over which the signature is to be verified.
|
||||
Msg []byte `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
|
||||
//*
|
||||
//
|
||||
//The fixed-size LN wire encoded signature to be verified over the given
|
||||
//message.
|
||||
Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
|
||||
/// The public key the signature has to be valid for.
|
||||
// The public key the signature has to be valid for.
|
||||
Pubkey []byte `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
@ -624,7 +624,7 @@ func (m *VerifyMessageReq) GetPubkey() []byte {
|
||||
}
|
||||
|
||||
type VerifyMessageResp struct {
|
||||
/// Whether the signature was valid over the given message.
|
||||
// Whether the signature was valid over the given message.
|
||||
Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
@ -666,7 +666,7 @@ func (m *VerifyMessageResp) GetValid() bool {
|
||||
type SharedKeyRequest struct {
|
||||
// The ephemeral public key to use for the DH key derivation.
|
||||
EphemeralPubkey []byte `protobuf:"bytes,1,opt,name=ephemeral_pubkey,json=ephemeralPubkey,proto3" json:"ephemeral_pubkey,omitempty"`
|
||||
//*
|
||||
//
|
||||
//The optional key locator of the local key that should be used. If this
|
||||
//parameter is not set then the node's identity private key will be used.
|
||||
KeyLoc *KeyLocator `protobuf:"bytes,2,opt,name=key_loc,json=keyLoc,proto3" json:"key_loc,omitempty"`
|
||||
@ -837,7 +837,7 @@ const _ = grpc.SupportPackageIsVersion4
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type SignerClient interface {
|
||||
//*
|
||||
//
|
||||
//SignOutputRaw is a method that can be used to generated a signature for a
|
||||
//set of inputs/outputs to a transaction. Each request specifies details
|
||||
//concerning how the outputs should be signed, which keys they should be
|
||||
@ -847,7 +847,7 @@ type SignerClient interface {
|
||||
//If we are unable to sign using the specified keys, then an error will be
|
||||
//returned.
|
||||
SignOutputRaw(ctx context.Context, in *SignReq, opts ...grpc.CallOption) (*SignResp, error)
|
||||
//*
|
||||
//
|
||||
//ComputeInputScript generates a complete InputIndex for the passed
|
||||
//transaction with the signature as defined within the passed SignDescriptor.
|
||||
//This method should be capable of generating the proper input script for
|
||||
@ -859,14 +859,14 @@ type SignerClient interface {
|
||||
//in the TxOut field, the value in that same field, and finally the input
|
||||
//index.
|
||||
ComputeInputScript(ctx context.Context, in *SignReq, opts ...grpc.CallOption) (*InputScriptResp, error)
|
||||
//*
|
||||
//
|
||||
//SignMessage signs a message with the key specified in the key locator. The
|
||||
//returned signature is fixed-size LN wire format encoded.
|
||||
//
|
||||
//The main difference to SignMessage in the main RPC is that a specific key is
|
||||
//used to sign the message instead of the node identity private key.
|
||||
SignMessage(ctx context.Context, in *SignMessageReq, opts ...grpc.CallOption) (*SignMessageResp, error)
|
||||
//*
|
||||
//
|
||||
//VerifyMessage verifies a signature over a message using the public key
|
||||
//provided. The signature must be fixed-size LN wire format encoded.
|
||||
//
|
||||
@ -939,7 +939,7 @@ func (c *signerClient) DeriveSharedKey(ctx context.Context, in *SharedKeyRequest
|
||||
|
||||
// SignerServer is the server API for Signer service.
|
||||
type SignerServer interface {
|
||||
//*
|
||||
//
|
||||
//SignOutputRaw is a method that can be used to generated a signature for a
|
||||
//set of inputs/outputs to a transaction. Each request specifies details
|
||||
//concerning how the outputs should be signed, which keys they should be
|
||||
@ -949,7 +949,7 @@ type SignerServer interface {
|
||||
//If we are unable to sign using the specified keys, then an error will be
|
||||
//returned.
|
||||
SignOutputRaw(context.Context, *SignReq) (*SignResp, error)
|
||||
//*
|
||||
//
|
||||
//ComputeInputScript generates a complete InputIndex for the passed
|
||||
//transaction with the signature as defined within the passed SignDescriptor.
|
||||
//This method should be capable of generating the proper input script for
|
||||
@ -961,14 +961,14 @@ type SignerServer interface {
|
||||
//in the TxOut field, the value in that same field, and finally the input
|
||||
//index.
|
||||
ComputeInputScript(context.Context, *SignReq) (*InputScriptResp, error)
|
||||
//*
|
||||
//
|
||||
//SignMessage signs a message with the key specified in the key locator. The
|
||||
//returned signature is fixed-size LN wire format encoded.
|
||||
//
|
||||
//The main difference to SignMessage in the main RPC is that a specific key is
|
||||
//used to sign the message instead of the node identity private key.
|
||||
SignMessage(context.Context, *SignMessageReq) (*SignMessageResp, error)
|
||||
//*
|
||||
//
|
||||
//VerifyMessage verifies a signature over a message using the public key
|
||||
//provided. The signature must be fixed-size LN wire format encoded.
|
||||
//
|
||||
|
@ -7,7 +7,7 @@ option go_package = "github.com/lightningnetwork/lnd/lnrpc/signrpc";
|
||||
// Signer is a service that gives access to the signing functionality of the
|
||||
// daemon's wallet.
|
||||
service Signer {
|
||||
/**
|
||||
/*
|
||||
SignOutputRaw is a method that can be used to generated a signature for a
|
||||
set of inputs/outputs to a transaction. Each request specifies details
|
||||
concerning how the outputs should be signed, which keys they should be
|
||||
@ -19,7 +19,7 @@ service Signer {
|
||||
*/
|
||||
rpc SignOutputRaw (SignReq) returns (SignResp);
|
||||
|
||||
/**
|
||||
/*
|
||||
ComputeInputScript generates a complete InputIndex for the passed
|
||||
transaction with the signature as defined within the passed SignDescriptor.
|
||||
This method should be capable of generating the proper input script for
|
||||
@ -33,7 +33,7 @@ service Signer {
|
||||
*/
|
||||
rpc ComputeInputScript (SignReq) returns (InputScriptResp);
|
||||
|
||||
/**
|
||||
/*
|
||||
SignMessage signs a message with the key specified in the key locator. The
|
||||
returned signature is fixed-size LN wire format encoded.
|
||||
|
||||
@ -42,7 +42,7 @@ service Signer {
|
||||
*/
|
||||
rpc SignMessage (SignMessageReq) returns (SignMessageResp);
|
||||
|
||||
/**
|
||||
/*
|
||||
VerifyMessage verifies a signature over a message using the public key
|
||||
provided. The signature must be fixed-size LN wire format encoded.
|
||||
|
||||
@ -64,21 +64,21 @@ service Signer {
|
||||
}
|
||||
|
||||
message KeyLocator {
|
||||
/// The family of key being identified.
|
||||
// The family of key being identified.
|
||||
int32 key_family = 1;
|
||||
|
||||
/// The precise index of the key being identified.
|
||||
// The precise index of the key being identified.
|
||||
int32 key_index = 2;
|
||||
}
|
||||
|
||||
message KeyDescriptor {
|
||||
/**
|
||||
/*
|
||||
The raw bytes of the key being identified. Either this or the KeyLocator
|
||||
must be specified.
|
||||
*/
|
||||
bytes raw_key_bytes = 1;
|
||||
|
||||
/**
|
||||
/*
|
||||
The key locator that identifies which key to use for signing. Either this
|
||||
or the raw bytes of the target key must be specified.
|
||||
*/
|
||||
@ -86,22 +86,22 @@ message KeyDescriptor {
|
||||
}
|
||||
|
||||
message TxOut {
|
||||
/// The value of the output being spent.
|
||||
// The value of the output being spent.
|
||||
int64 value = 1;
|
||||
|
||||
/// The script of the output being spent.
|
||||
// The script of the output being spent.
|
||||
bytes pk_script = 2;
|
||||
}
|
||||
|
||||
message SignDescriptor {
|
||||
/**
|
||||
/*
|
||||
A descriptor that precisely describes *which* key to use for signing. This
|
||||
may provide the raw public key directly, or require the Signer to re-derive
|
||||
the key according to the populated derivation path.
|
||||
*/
|
||||
KeyDescriptor key_desc = 1;
|
||||
|
||||
/**
|
||||
/*
|
||||
A scalar value that will be added to the private key corresponding to the
|
||||
above public key to obtain the private key to be used to sign this input.
|
||||
This value is typically derived via the following computation:
|
||||
@ -110,7 +110,7 @@ message SignDescriptor {
|
||||
*/
|
||||
bytes single_tweak = 2;
|
||||
|
||||
/**
|
||||
/*
|
||||
A private key that will be used in combination with its corresponding
|
||||
private key to derive the private key that is to be used to sign the target
|
||||
input. Within the Lightning protocol, this value is typically the
|
||||
@ -123,40 +123,40 @@ message SignDescriptor {
|
||||
*/
|
||||
bytes double_tweak = 3;
|
||||
|
||||
/**
|
||||
/*
|
||||
The full script required to properly redeem the output. This field will
|
||||
only be populated if a p2wsh or a p2sh output is being signed.
|
||||
*/
|
||||
bytes witness_script = 4;
|
||||
|
||||
/**
|
||||
/*
|
||||
A description of the output being spent. The value and script MUST be
|
||||
provided.
|
||||
*/
|
||||
TxOut output = 5;
|
||||
|
||||
/**
|
||||
/*
|
||||
The target sighash type that should be used when generating the final
|
||||
sighash, and signature.
|
||||
*/
|
||||
uint32 sighash = 7;
|
||||
|
||||
/**
|
||||
/*
|
||||
The target input within the transaction that should be signed.
|
||||
*/
|
||||
int32 input_index = 8;
|
||||
}
|
||||
|
||||
message SignReq {
|
||||
/// The raw bytes of the transaction to be signed.
|
||||
// The raw bytes of the transaction to be signed.
|
||||
bytes raw_tx_bytes = 1;
|
||||
|
||||
/// A set of sign descriptors, for each input to be signed.
|
||||
// A set of sign descriptors, for each input to be signed.
|
||||
repeated SignDescriptor sign_descs = 2;
|
||||
}
|
||||
|
||||
message SignResp {
|
||||
/**
|
||||
/*
|
||||
A set of signatures realized in a fixed 64-byte format ordered in ascending
|
||||
input order.
|
||||
*/
|
||||
@ -164,10 +164,10 @@ message SignResp {
|
||||
}
|
||||
|
||||
message InputScript {
|
||||
/// The serializes witness stack for the specified input.
|
||||
// The serializes witness stack for the specified input.
|
||||
repeated bytes witness = 1;
|
||||
|
||||
/***
|
||||
/**
|
||||
The optional sig script for the specified witness that will only be set if
|
||||
the input specified is a nested p2sh witness program.
|
||||
*/
|
||||
@ -175,39 +175,39 @@ message InputScript {
|
||||
}
|
||||
|
||||
message InputScriptResp {
|
||||
/// The set of fully valid input scripts requested.
|
||||
// The set of fully valid input scripts requested.
|
||||
repeated InputScript input_scripts = 1;
|
||||
}
|
||||
|
||||
message SignMessageReq {
|
||||
/// The message to be signed.
|
||||
// The message to be signed.
|
||||
bytes msg = 1;
|
||||
|
||||
/// The key locator that identifies which key to use for signing.
|
||||
// The key locator that identifies which key to use for signing.
|
||||
KeyLocator key_loc = 2;
|
||||
}
|
||||
message SignMessageResp {
|
||||
/**
|
||||
/*
|
||||
The signature for the given message in the fixed-size LN wire format.
|
||||
*/
|
||||
bytes signature = 1;
|
||||
}
|
||||
|
||||
message VerifyMessageReq {
|
||||
/// The message over which the signature is to be verified.
|
||||
// The message over which the signature is to be verified.
|
||||
bytes msg = 1;
|
||||
|
||||
/**
|
||||
/*
|
||||
The fixed-size LN wire encoded signature to be verified over the given
|
||||
message.
|
||||
*/
|
||||
bytes signature = 2;
|
||||
|
||||
/// The public key the signature has to be valid for.
|
||||
// The public key the signature has to be valid for.
|
||||
bytes pubkey = 3;
|
||||
}
|
||||
message VerifyMessageResp {
|
||||
/// Whether the signature was valid over the given message.
|
||||
// Whether the signature was valid over the given message.
|
||||
bool valid = 1;
|
||||
}
|
||||
|
||||
@ -215,7 +215,7 @@ message SharedKeyRequest {
|
||||
// The ephemeral public key to use for the DH key derivation.
|
||||
bytes ephemeral_pubkey = 1;
|
||||
|
||||
/**
|
||||
/*
|
||||
The optional key locator of the local key that should be used. If this
|
||||
parameter is not set then the node's identity private key will be used.
|
||||
*/
|
||||
|
@ -54,23 +54,23 @@ func (m *VersionRequest) XXX_DiscardUnknown() {
|
||||
var xxx_messageInfo_VersionRequest proto.InternalMessageInfo
|
||||
|
||||
type Version struct {
|
||||
/// A verbose description of the daemon's commit.
|
||||
// A verbose description of the daemon's commit.
|
||||
Commit string `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"`
|
||||
/// The SHA1 commit hash that the daemon is compiled with.
|
||||
// The SHA1 commit hash that the daemon is compiled with.
|
||||
CommitHash string `protobuf:"bytes,2,opt,name=commit_hash,json=commitHash,proto3" json:"commit_hash,omitempty"`
|
||||
/// The semantic version.
|
||||
// The semantic version.
|
||||
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
|
||||
/// The major application version.
|
||||
// The major application version.
|
||||
AppMajor uint32 `protobuf:"varint,4,opt,name=app_major,json=appMajor,proto3" json:"app_major,omitempty"`
|
||||
/// The minor application version.
|
||||
// The minor application version.
|
||||
AppMinor uint32 `protobuf:"varint,5,opt,name=app_minor,json=appMinor,proto3" json:"app_minor,omitempty"`
|
||||
/// The application patch number.
|
||||
// The application patch number.
|
||||
AppPatch uint32 `protobuf:"varint,6,opt,name=app_patch,json=appPatch,proto3" json:"app_patch,omitempty"`
|
||||
/// The application pre-release modifier, possibly empty.
|
||||
// The application pre-release modifier, possibly empty.
|
||||
AppPreRelease string `protobuf:"bytes,7,opt,name=app_pre_release,json=appPreRelease,proto3" json:"app_pre_release,omitempty"`
|
||||
/// The list of build tags that were supplied during compilation.
|
||||
// The list of build tags that were supplied during compilation.
|
||||
BuildTags []string `protobuf:"bytes,8,rep,name=build_tags,json=buildTags,proto3" json:"build_tags,omitempty"`
|
||||
/// The version of go that compiled the executable.
|
||||
// The version of go that compiled the executable.
|
||||
GoVersion string `protobuf:"bytes,9,opt,name=go_version,json=goVersion,proto3" json:"go_version,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
@ -207,6 +207,9 @@ const _ = grpc.SupportPackageIsVersion4
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type VersionerClient interface {
|
||||
// lncli: `version`
|
||||
//GetVersion returns the current version and build information of the running
|
||||
//daemon.
|
||||
GetVersion(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*Version, error)
|
||||
}
|
||||
|
||||
@ -229,6 +232,9 @@ func (c *versionerClient) GetVersion(ctx context.Context, in *VersionRequest, op
|
||||
|
||||
// VersionerServer is the server API for Versioner service.
|
||||
type VersionerServer interface {
|
||||
// lncli: `version`
|
||||
//GetVersion returns the current version and build information of the running
|
||||
//daemon.
|
||||
GetVersion(context.Context, *VersionRequest) (*Version, error)
|
||||
}
|
||||
|
||||
|
@ -18,30 +18,30 @@ message VersionRequest {
|
||||
}
|
||||
|
||||
message Version {
|
||||
/// A verbose description of the daemon's commit.
|
||||
// A verbose description of the daemon's commit.
|
||||
string commit = 1;
|
||||
|
||||
/// The SHA1 commit hash that the daemon is compiled with.
|
||||
// The SHA1 commit hash that the daemon is compiled with.
|
||||
string commit_hash = 2;
|
||||
|
||||
/// The semantic version.
|
||||
// The semantic version.
|
||||
string version = 3;
|
||||
|
||||
/// The major application version.
|
||||
// The major application version.
|
||||
uint32 app_major = 4;
|
||||
|
||||
/// The minor application version.
|
||||
// The minor application version.
|
||||
uint32 app_minor = 5;
|
||||
|
||||
/// The application patch number.
|
||||
// The application patch number.
|
||||
uint32 app_patch = 6;
|
||||
|
||||
/// The application pre-release modifier, possibly empty.
|
||||
// The application pre-release modifier, possibly empty.
|
||||
string app_pre_release = 7;
|
||||
|
||||
/// The list of build tags that were supplied during compilation.
|
||||
// The list of build tags that were supplied during compilation.
|
||||
repeated string build_tags = 8;
|
||||
|
||||
/// The version of go that compiled the executable.
|
||||
// The version of go that compiled the executable.
|
||||
string go_version = 9;
|
||||
}
|
||||
|
@ -133,12 +133,12 @@ func (WitnessType) EnumDescriptor() ([]byte, []int) {
|
||||
}
|
||||
|
||||
type KeyReq struct {
|
||||
//*
|
||||
//
|
||||
//Is the key finger print of the root pubkey that this request is targeting.
|
||||
//This allows the WalletKit to possibly serve out keys for multiple HD chains
|
||||
//via public derivation.
|
||||
KeyFingerPrint int32 `protobuf:"varint,1,opt,name=key_finger_print,json=keyFingerPrint,proto3" json:"key_finger_print,omitempty"`
|
||||
//*
|
||||
//
|
||||
//The target key family to derive a key from. In other contexts, this is
|
||||
//known as the "account".
|
||||
KeyFamily int32 `protobuf:"varint,2,opt,name=key_family,json=keyFamily,proto3" json:"key_family,omitempty"`
|
||||
@ -218,7 +218,7 @@ func (m *AddrRequest) XXX_DiscardUnknown() {
|
||||
var xxx_messageInfo_AddrRequest proto.InternalMessageInfo
|
||||
|
||||
type AddrResponse struct {
|
||||
//*
|
||||
//
|
||||
//The address encoded using a bech32 format.
|
||||
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
@ -259,7 +259,7 @@ func (m *AddrResponse) GetAddr() string {
|
||||
}
|
||||
|
||||
type Transaction struct {
|
||||
//*
|
||||
//
|
||||
//The raw serialized transaction.
|
||||
TxHex []byte `protobuf:"bytes,1,opt,name=tx_hex,json=txHex,proto3" json:"tx_hex,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
@ -300,7 +300,7 @@ func (m *Transaction) GetTxHex() []byte {
|
||||
}
|
||||
|
||||
type PublishResponse struct {
|
||||
//*
|
||||
//
|
||||
//If blank, then no error occurred and the transaction was successfully
|
||||
//published. If not the empty string, then a string representation of the
|
||||
//broadcast error.
|
||||
@ -345,11 +345,11 @@ func (m *PublishResponse) GetPublishError() string {
|
||||
}
|
||||
|
||||
type SendOutputsRequest struct {
|
||||
//*
|
||||
//
|
||||
//The number of satoshis per kilo weight that should be used when crafting
|
||||
//this transaction.
|
||||
SatPerKw int64 `protobuf:"varint,1,opt,name=sat_per_kw,json=satPerKw,proto3" json:"sat_per_kw,omitempty"`
|
||||
//*
|
||||
//
|
||||
//A slice of the outputs that should be created in the transaction produced.
|
||||
Outputs []*signrpc.TxOut `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
@ -397,7 +397,7 @@ func (m *SendOutputsRequest) GetOutputs() []*signrpc.TxOut {
|
||||
}
|
||||
|
||||
type SendOutputsResponse struct {
|
||||
//*
|
||||
//
|
||||
//The serialized transaction sent out on the network.
|
||||
RawTx []byte `protobuf:"bytes,1,opt,name=raw_tx,json=rawTx,proto3" json:"raw_tx,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
@ -438,7 +438,7 @@ func (m *SendOutputsResponse) GetRawTx() []byte {
|
||||
}
|
||||
|
||||
type EstimateFeeRequest struct {
|
||||
//*
|
||||
//
|
||||
//The number of confirmations to shoot for when estimating the fee.
|
||||
ConfTarget int32 `protobuf:"varint,1,opt,name=conf_target,json=confTarget,proto3" json:"conf_target,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
@ -479,7 +479,7 @@ func (m *EstimateFeeRequest) GetConfTarget() int32 {
|
||||
}
|
||||
|
||||
type EstimateFeeResponse struct {
|
||||
//*
|
||||
//
|
||||
//The amount of satoshis per kw that should be used in order to reach the
|
||||
//confirmation target in the request.
|
||||
SatPerKw int64 `protobuf:"varint,1,opt,name=sat_per_kw,json=satPerKw,proto3" json:"sat_per_kw,omitempty"`
|
||||
@ -542,7 +542,7 @@ type PendingSweep struct {
|
||||
RequestedConfTarget uint32 `protobuf:"varint,8,opt,name=requested_conf_target,json=requestedConfTarget,proto3" json:"requested_conf_target,omitempty"`
|
||||
// The requested fee rate, expressed in sat/byte, for this output.
|
||||
RequestedSatPerByte uint32 `protobuf:"varint,9,opt,name=requested_sat_per_byte,json=requestedSatPerByte,proto3" json:"requested_sat_per_byte,omitempty"`
|
||||
//*
|
||||
//
|
||||
//Whether this input must be force-swept. This means that it is swept even
|
||||
//if it has a negative yield.
|
||||
Force bool `protobuf:"varint,7,opt,name=force,proto3" json:"force,omitempty"`
|
||||
@ -720,7 +720,7 @@ type BumpFeeRequest struct {
|
||||
//The fee rate, expressed in sat/byte, that should be used to spend the input
|
||||
//with.
|
||||
SatPerByte uint32 `protobuf:"varint,3,opt,name=sat_per_byte,json=satPerByte,proto3" json:"sat_per_byte,omitempty"`
|
||||
//*
|
||||
//
|
||||
//Whether this input must be force-swept. This means that it is swept even
|
||||
//if it has a negative yield.
|
||||
Force bool `protobuf:"varint,4,opt,name=force,proto3" json:"force,omitempty"`
|
||||
@ -1002,12 +1002,12 @@ func init() {
|
||||
func init() { proto.RegisterFile("walletrpc/walletkit.proto", fileDescriptor_6cc6942ac78249e5) }
|
||||
|
||||
var fileDescriptor_6cc6942ac78249e5 = []byte{
|
||||
// 1180 bytes of a gzipped FileDescriptorProto
|
||||
// 1178 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0x6d, 0x6f, 0xe2, 0x46,
|
||||
0x10, 0x3e, 0x42, 0x42, 0x60, 0x78, 0x09, 0x59, 0xf2, 0xe2, 0xe3, 0x72, 0x0d, 0x75, 0xdf, 0xa2,
|
||||
0xf6, 0x8e, 0xa8, 0x39, 0xb5, 0xea, 0xb5, 0x52, 0xd5, 0x04, 0x1c, 0x11, 0x41, 0x70, 0x6a, 0xfb,
|
||||
0x2e, 0xba, 0xaa, 0xd2, 0xca, 0xe0, 0x0d, 0xb1, 0x02, 0xb6, 0x6f, 0xbd, 0x1c, 0xf0, 0xad, 0xdf,
|
||||
0xfa, 0x0f, 0x2a, 0xdd, 0xbf, 0xad, 0xbc, 0x7e, 0x61, 0x0d, 0xcd, 0x49, 0xfd, 0x14, 0x76, 0x9e,
|
||||
0x2e, 0xba, 0xaa, 0xd2, 0xca, 0xe0, 0x0d, 0xb1, 0x02, 0xb6, 0x6f, 0xbd, 0x1c, 0xf0, 0xad, 0x5f,
|
||||
0xfa, 0x17, 0x2a, 0xdd, 0xbf, 0xad, 0xbc, 0x7e, 0x61, 0x0d, 0xcd, 0x49, 0xfd, 0x14, 0x76, 0x9e,
|
||||
0x67, 0x9e, 0x9d, 0x9d, 0x19, 0xcf, 0x04, 0x9e, 0xce, 0xcc, 0xf1, 0x98, 0x30, 0xea, 0x0d, 0x4f,
|
||||
0xc3, 0x5f, 0x0f, 0x36, 0x6b, 0x7a, 0xd4, 0x65, 0x2e, 0x2a, 0x24, 0x50, 0xbd, 0x40, 0xbd, 0x61,
|
||||
0x68, 0xad, 0xef, 0xf9, 0xf6, 0xc8, 0x09, 0xe8, 0xc1, 0x5f, 0x42, 0x43, 0xab, 0xfc, 0x3b, 0xe4,
|
||||
@ -1072,11 +1072,11 @@ var fileDescriptor_6cc6942ac78249e5 = []byte{
|
||||
0xf5, 0x0d, 0x5d, 0xff, 0xec, 0x31, 0x78, 0xa9, 0x26, 0x2c, 0xc5, 0x94, 0xda, 0xfa, 0x8e, 0x4d,
|
||||
0xa9, 0xfd, 0xd7, 0x2e, 0xd5, 0xa0, 0x9c, 0x9a, 0xbc, 0xe8, 0xf8, 0x91, 0xc9, 0x9a, 0xc4, 0xd7,
|
||||
0x78, 0x9c, 0x10, 0x69, 0xfe, 0x06, 0xdb, 0xd1, 0x6c, 0x43, 0x4f, 0x05, 0x72, 0x7a, 0x0e, 0xa7,
|
||||
0x32, 0xb6, 0x32, 0x0a, 0x51, 0x17, 0x60, 0x39, 0x54, 0xd0, 0xd1, 0x23, 0xb3, 0x26, 0xd4, 0x79,
|
||||
0xfe, 0xc9, 0x49, 0x24, 0x3f, 0xb9, 0xf8, 0xfe, 0x8f, 0xd3, 0x91, 0xcd, 0xee, 0xa7, 0x83, 0xe6,
|
||||
0xd0, 0x9d, 0x9c, 0x8e, 0x83, 0x3d, 0xe8, 0xd8, 0xce, 0xc8, 0x21, 0x6c, 0xe6, 0xd2, 0x87, 0xd3,
|
||||
0xb1, 0x63, 0x9d, 0xf2, 0xa9, 0x78, 0x9a, 0xe8, 0x0c, 0x72, 0xfc, 0xdf, 0xc4, 0x57, 0xff, 0x06,
|
||||
0x00, 0x00, 0xff, 0xff, 0xe6, 0xc9, 0x1c, 0x56, 0x6f, 0x0a, 0x00, 0x00,
|
||||
0x32, 0xb6, 0x32, 0x0a, 0xd1, 0x15, 0xc0, 0x72, 0xa8, 0xa0, 0xa3, 0x47, 0x66, 0x4d, 0xa8, 0xf3,
|
||||
0xfc, 0x93, 0x93, 0xe8, 0xe2, 0xfb, 0x3f, 0x4e, 0x47, 0x36, 0xbb, 0x9f, 0x0e, 0x9a, 0x43, 0x77,
|
||||
0x72, 0x3a, 0x0e, 0xb6, 0xa0, 0x63, 0x3b, 0x23, 0x87, 0xb0, 0x99, 0x4b, 0x1f, 0x4e, 0xc7, 0x8e,
|
||||
0x75, 0xca, 0x67, 0xe2, 0x69, 0xa2, 0x32, 0xc8, 0xf1, 0x7f, 0x12, 0x5f, 0xfd, 0x1b, 0x00, 0x00,
|
||||
0xff, 0xff, 0x88, 0x6c, 0x32, 0x8c, 0x6d, 0x0a, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
@ -1091,30 +1091,30 @@ const _ = grpc.SupportPackageIsVersion4
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type WalletKitClient interface {
|
||||
//*
|
||||
//
|
||||
//DeriveNextKey attempts to derive the *next* key within the key family
|
||||
//(account in BIP43) specified. This method should return the next external
|
||||
//child within this branch.
|
||||
DeriveNextKey(ctx context.Context, in *KeyReq, opts ...grpc.CallOption) (*signrpc.KeyDescriptor, error)
|
||||
//*
|
||||
//
|
||||
//DeriveKey attempts to derive an arbitrary key specified by the passed
|
||||
//KeyLocator.
|
||||
DeriveKey(ctx context.Context, in *signrpc.KeyLocator, opts ...grpc.CallOption) (*signrpc.KeyDescriptor, error)
|
||||
//*
|
||||
//
|
||||
//NextAddr returns the next unused address within the wallet.
|
||||
NextAddr(ctx context.Context, in *AddrRequest, opts ...grpc.CallOption) (*AddrResponse, error)
|
||||
//*
|
||||
//
|
||||
//PublishTransaction attempts to publish the passed transaction to the
|
||||
//network. Once this returns without an error, the wallet will continually
|
||||
//attempt to re-broadcast the transaction on start up, until it enters the
|
||||
//chain.
|
||||
PublishTransaction(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*PublishResponse, error)
|
||||
//*
|
||||
//
|
||||
//SendOutputs is similar to the existing sendmany call in Bitcoind, and
|
||||
//allows the caller to create a transaction that sends to several outputs at
|
||||
//once. This is ideal when wanting to batch create a set of transactions.
|
||||
SendOutputs(ctx context.Context, in *SendOutputsRequest, opts ...grpc.CallOption) (*SendOutputsResponse, error)
|
||||
//*
|
||||
//
|
||||
//EstimateFee attempts to query the internal fee estimator of the wallet to
|
||||
//determine the fee (in sat/kw) to attach to a transaction in order to
|
||||
//achieve the confirmation target.
|
||||
@ -1254,30 +1254,30 @@ func (c *walletKitClient) ListSweeps(ctx context.Context, in *ListSweepsRequest,
|
||||
|
||||
// WalletKitServer is the server API for WalletKit service.
|
||||
type WalletKitServer interface {
|
||||
//*
|
||||
//
|
||||
//DeriveNextKey attempts to derive the *next* key within the key family
|
||||
//(account in BIP43) specified. This method should return the next external
|
||||
//child within this branch.
|
||||
DeriveNextKey(context.Context, *KeyReq) (*signrpc.KeyDescriptor, error)
|
||||
//*
|
||||
//
|
||||
//DeriveKey attempts to derive an arbitrary key specified by the passed
|
||||
//KeyLocator.
|
||||
DeriveKey(context.Context, *signrpc.KeyLocator) (*signrpc.KeyDescriptor, error)
|
||||
//*
|
||||
//
|
||||
//NextAddr returns the next unused address within the wallet.
|
||||
NextAddr(context.Context, *AddrRequest) (*AddrResponse, error)
|
||||
//*
|
||||
//
|
||||
//PublishTransaction attempts to publish the passed transaction to the
|
||||
//network. Once this returns without an error, the wallet will continually
|
||||
//attempt to re-broadcast the transaction on start up, until it enters the
|
||||
//chain.
|
||||
PublishTransaction(context.Context, *Transaction) (*PublishResponse, error)
|
||||
//*
|
||||
//
|
||||
//SendOutputs is similar to the existing sendmany call in Bitcoind, and
|
||||
//allows the caller to create a transaction that sends to several outputs at
|
||||
//once. This is ideal when wanting to batch create a set of transactions.
|
||||
SendOutputs(context.Context, *SendOutputsRequest) (*SendOutputsResponse, error)
|
||||
//*
|
||||
//
|
||||
//EstimateFee attempts to query the internal fee estimator of the wallet to
|
||||
//determine the fee (in sat/kw) to attach to a transaction in order to
|
||||
//achieve the confirmation target.
|
||||
|
@ -10,25 +10,25 @@ option go_package = "github.com/lightningnetwork/lnd/lnrpc/walletrpc";
|
||||
// WalletKit is a service that gives access to the core functionalities of the
|
||||
// daemon's wallet.
|
||||
service WalletKit {
|
||||
/**
|
||||
/*
|
||||
DeriveNextKey attempts to derive the *next* key within the key family
|
||||
(account in BIP43) specified. This method should return the next external
|
||||
child within this branch.
|
||||
*/
|
||||
rpc DeriveNextKey (KeyReq) returns (signrpc.KeyDescriptor);
|
||||
|
||||
/**
|
||||
/*
|
||||
DeriveKey attempts to derive an arbitrary key specified by the passed
|
||||
KeyLocator.
|
||||
*/
|
||||
rpc DeriveKey (signrpc.KeyLocator) returns (signrpc.KeyDescriptor);
|
||||
|
||||
/**
|
||||
/*
|
||||
NextAddr returns the next unused address within the wallet.
|
||||
*/
|
||||
rpc NextAddr (AddrRequest) returns (AddrResponse);
|
||||
|
||||
/**
|
||||
/*
|
||||
PublishTransaction attempts to publish the passed transaction to the
|
||||
network. Once this returns without an error, the wallet will continually
|
||||
attempt to re-broadcast the transaction on start up, until it enters the
|
||||
@ -36,14 +36,14 @@ service WalletKit {
|
||||
*/
|
||||
rpc PublishTransaction (Transaction) returns (PublishResponse);
|
||||
|
||||
/**
|
||||
/*
|
||||
SendOutputs is similar to the existing sendmany call in Bitcoind, and
|
||||
allows the caller to create a transaction that sends to several outputs at
|
||||
once. This is ideal when wanting to batch create a set of transactions.
|
||||
*/
|
||||
rpc SendOutputs (SendOutputsRequest) returns (SendOutputsResponse);
|
||||
|
||||
/**
|
||||
/*
|
||||
EstimateFee attempts to query the internal fee estimator of the wallet to
|
||||
determine the fee (in sat/kw) to attach to a transaction in order to
|
||||
achieve the confirmation target.
|
||||
@ -100,14 +100,14 @@ service WalletKit {
|
||||
}
|
||||
|
||||
message KeyReq {
|
||||
/**
|
||||
/*
|
||||
Is the key finger print of the root pubkey that this request is targeting.
|
||||
This allows the WalletKit to possibly serve out keys for multiple HD chains
|
||||
via public derivation.
|
||||
*/
|
||||
int32 key_finger_print = 1;
|
||||
|
||||
/**
|
||||
/*
|
||||
The target key family to derive a key from. In other contexts, this is
|
||||
known as the "account".
|
||||
*/
|
||||
@ -118,20 +118,20 @@ message AddrRequest {
|
||||
// No fields, as we always give out a p2wkh address.
|
||||
}
|
||||
message AddrResponse {
|
||||
/**
|
||||
/*
|
||||
The address encoded using a bech32 format.
|
||||
*/
|
||||
string addr = 1;
|
||||
}
|
||||
|
||||
message Transaction {
|
||||
/**
|
||||
/*
|
||||
The raw serialized transaction.
|
||||
*/
|
||||
bytes tx_hex = 1;
|
||||
}
|
||||
message PublishResponse {
|
||||
/**
|
||||
/*
|
||||
If blank, then no error occurred and the transaction was successfully
|
||||
published. If not the empty string, then a string representation of the
|
||||
broadcast error.
|
||||
@ -142,32 +142,32 @@ message PublishResponse {
|
||||
}
|
||||
|
||||
message SendOutputsRequest {
|
||||
/**
|
||||
/*
|
||||
The number of satoshis per kilo weight that should be used when crafting
|
||||
this transaction.
|
||||
*/
|
||||
int64 sat_per_kw = 1;
|
||||
|
||||
/**
|
||||
/*
|
||||
A slice of the outputs that should be created in the transaction produced.
|
||||
*/
|
||||
repeated signrpc.TxOut outputs = 2;
|
||||
}
|
||||
message SendOutputsResponse {
|
||||
/**
|
||||
/*
|
||||
The serialized transaction sent out on the network.
|
||||
*/
|
||||
bytes raw_tx = 1;
|
||||
}
|
||||
|
||||
message EstimateFeeRequest {
|
||||
/**
|
||||
/*
|
||||
The number of confirmations to shoot for when estimating the fee.
|
||||
*/
|
||||
int32 conf_target = 1;
|
||||
}
|
||||
message EstimateFeeResponse {
|
||||
/**
|
||||
/*
|
||||
The amount of satoshis per kw that should be used in order to reach the
|
||||
confirmation target in the request.
|
||||
*/
|
||||
@ -296,7 +296,7 @@ message PendingSweep {
|
||||
// The requested fee rate, expressed in sat/byte, for this output.
|
||||
uint32 requested_sat_per_byte = 9;
|
||||
|
||||
/**
|
||||
/*
|
||||
Whether this input must be force-swept. This means that it is swept even
|
||||
if it has a negative yield.
|
||||
*/
|
||||
@ -326,7 +326,7 @@ message BumpFeeRequest {
|
||||
*/
|
||||
uint32 sat_per_byte = 3;
|
||||
|
||||
/**
|
||||
/*
|
||||
Whether this input must be force-swept. This means that it is swept even
|
||||
if it has a negative yield.
|
||||
*/
|
||||
|
@ -24,12 +24,12 @@ var _ = math.Inf
|
||||
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
type GenSeedRequest struct {
|
||||
//*
|
||||
//
|
||||
//aezeed_passphrase is an optional user provided passphrase that will be used
|
||||
//to encrypt the generated aezeed cipher seed. When using REST, this field
|
||||
//must be encoded as base64.
|
||||
AezeedPassphrase []byte `protobuf:"bytes,1,opt,name=aezeed_passphrase,json=aezeedPassphrase,proto3" json:"aezeed_passphrase,omitempty"`
|
||||
//*
|
||||
//
|
||||
//seed_entropy is an optional 16-bytes generated via CSPRNG. If not
|
||||
//specified, then a fresh set of randomness will be used to create the seed.
|
||||
//When using REST, this field must be encoded as base64.
|
||||
@ -79,14 +79,14 @@ func (m *GenSeedRequest) GetSeedEntropy() []byte {
|
||||
}
|
||||
|
||||
type GenSeedResponse struct {
|
||||
//*
|
||||
//
|
||||
//cipher_seed_mnemonic is a 24-word mnemonic that encodes a prior aezeed
|
||||
//cipher seed obtained by the user. This field is optional, as if not
|
||||
//provided, then the daemon will generate a new cipher seed for the user.
|
||||
//Otherwise, then the daemon will attempt to recover the wallet state linked
|
||||
//to this cipher seed.
|
||||
CipherSeedMnemonic []string `protobuf:"bytes,1,rep,name=cipher_seed_mnemonic,json=cipherSeedMnemonic,proto3" json:"cipher_seed_mnemonic,omitempty"`
|
||||
//*
|
||||
//
|
||||
//enciphered_seed are the raw aezeed cipher seed bytes. This is the raw
|
||||
//cipher text before run through our mnemonic encoding scheme.
|
||||
EncipheredSeed []byte `protobuf:"bytes,2,opt,name=enciphered_seed,json=encipheredSeed,proto3" json:"enciphered_seed,omitempty"`
|
||||
@ -135,30 +135,30 @@ func (m *GenSeedResponse) GetEncipheredSeed() []byte {
|
||||
}
|
||||
|
||||
type InitWalletRequest struct {
|
||||
//*
|
||||
//
|
||||
//wallet_password is the passphrase that should be used to encrypt the
|
||||
//wallet. This MUST be at least 8 chars in length. After creation, this
|
||||
//password is required to unlock the daemon. When using REST, this field
|
||||
//must be encoded as base64.
|
||||
WalletPassword []byte `protobuf:"bytes,1,opt,name=wallet_password,json=walletPassword,proto3" json:"wallet_password,omitempty"`
|
||||
//*
|
||||
//
|
||||
//cipher_seed_mnemonic is a 24-word mnemonic that encodes a prior aezeed
|
||||
//cipher seed obtained by the user. This may have been generated by the
|
||||
//GenSeed method, or be an existing seed.
|
||||
CipherSeedMnemonic []string `protobuf:"bytes,2,rep,name=cipher_seed_mnemonic,json=cipherSeedMnemonic,proto3" json:"cipher_seed_mnemonic,omitempty"`
|
||||
//*
|
||||
//
|
||||
//aezeed_passphrase is an optional user provided passphrase that will be used
|
||||
//to encrypt the generated aezeed cipher seed. When using REST, this field
|
||||
//must be encoded as base64.
|
||||
AezeedPassphrase []byte `protobuf:"bytes,3,opt,name=aezeed_passphrase,json=aezeedPassphrase,proto3" json:"aezeed_passphrase,omitempty"`
|
||||
//*
|
||||
//
|
||||
//recovery_window is an optional argument specifying the address lookahead
|
||||
//when restoring a wallet seed. The recovery window applies to each
|
||||
//individual branch of the BIP44 derivation paths. Supplying a recovery
|
||||
//window of zero indicates that no addresses should be recovered, such after
|
||||
//the first initialization of the wallet.
|
||||
RecoveryWindow int32 `protobuf:"varint,4,opt,name=recovery_window,json=recoveryWindow,proto3" json:"recovery_window,omitempty"`
|
||||
//*
|
||||
//
|
||||
//channel_backups is an optional argument that allows clients to recover the
|
||||
//settled funds within a set of channels. This should be populated if the
|
||||
//user was unable to close out all channels and sweep funds before partial or
|
||||
@ -263,19 +263,19 @@ func (m *InitWalletResponse) XXX_DiscardUnknown() {
|
||||
var xxx_messageInfo_InitWalletResponse proto.InternalMessageInfo
|
||||
|
||||
type UnlockWalletRequest struct {
|
||||
//*
|
||||
//
|
||||
//wallet_password should be the current valid passphrase for the daemon. This
|
||||
//will be required to decrypt on-disk material that the daemon requires to
|
||||
//function properly. When using REST, this field must be encoded as base64.
|
||||
WalletPassword []byte `protobuf:"bytes,1,opt,name=wallet_password,json=walletPassword,proto3" json:"wallet_password,omitempty"`
|
||||
//*
|
||||
//
|
||||
//recovery_window is an optional argument specifying the address lookahead
|
||||
//when restoring a wallet seed. The recovery window applies to each
|
||||
//individual branch of the BIP44 derivation paths. Supplying a recovery
|
||||
//window of zero indicates that no addresses should be recovered, such after
|
||||
//the first initialization of the wallet.
|
||||
RecoveryWindow int32 `protobuf:"varint,2,opt,name=recovery_window,json=recoveryWindow,proto3" json:"recovery_window,omitempty"`
|
||||
//*
|
||||
//
|
||||
//channel_backups is an optional argument that allows clients to recover the
|
||||
//settled funds within a set of channels. This should be populated if the
|
||||
//user was unable to close out all channels and sweep funds before partial or
|
||||
@ -366,11 +366,11 @@ func (m *UnlockWalletResponse) XXX_DiscardUnknown() {
|
||||
var xxx_messageInfo_UnlockWalletResponse proto.InternalMessageInfo
|
||||
|
||||
type ChangePasswordRequest struct {
|
||||
//*
|
||||
//
|
||||
//current_password should be the current valid passphrase used to unlock the
|
||||
//daemon. When using REST, this field must be encoded as base64.
|
||||
CurrentPassword []byte `protobuf:"bytes,1,opt,name=current_password,json=currentPassword,proto3" json:"current_password,omitempty"`
|
||||
//*
|
||||
//
|
||||
//new_password should be the new passphrase that will be needed to unlock the
|
||||
//daemon. When using REST, this field must be encoded as base64.
|
||||
NewPassword []byte `protobuf:"bytes,2,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"`
|
||||
@ -516,7 +516,7 @@ const _ = grpc.SupportPackageIsVersion4
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type WalletUnlockerClient interface {
|
||||
//*
|
||||
//
|
||||
//GenSeed is the first method that should be used to instantiate a new lnd
|
||||
//instance. This method allows a caller to generate a new aezeed cipher seed
|
||||
//given an optional passphrase. If provided, the passphrase will be necessary
|
||||
@ -526,7 +526,7 @@ type WalletUnlockerClient interface {
|
||||
//method should be used to commit the newly generated seed, and create the
|
||||
//wallet.
|
||||
GenSeed(ctx context.Context, in *GenSeedRequest, opts ...grpc.CallOption) (*GenSeedResponse, error)
|
||||
//*
|
||||
//
|
||||
//InitWallet is used when lnd is starting up for the first time to fully
|
||||
//initialize the daemon and its internal wallet. At the very least a wallet
|
||||
//password must be provided. This will be used to encrypt sensitive material
|
||||
@ -540,11 +540,11 @@ type WalletUnlockerClient interface {
|
||||
//seed, then present it to the user. Once it has been verified by the user,
|
||||
//the seed can be fed into this RPC in order to commit the new wallet.
|
||||
InitWallet(ctx context.Context, in *InitWalletRequest, opts ...grpc.CallOption) (*InitWalletResponse, error)
|
||||
//* lncli: `unlock`
|
||||
// lncli: `unlock`
|
||||
//UnlockWallet is used at startup of lnd to provide a password to unlock
|
||||
//the wallet database.
|
||||
UnlockWallet(ctx context.Context, in *UnlockWalletRequest, opts ...grpc.CallOption) (*UnlockWalletResponse, error)
|
||||
//* lncli: `changepassword`
|
||||
// lncli: `changepassword`
|
||||
//ChangePassword changes the password of the encrypted wallet. This will
|
||||
//automatically unlock the wallet database if successful.
|
||||
ChangePassword(ctx context.Context, in *ChangePasswordRequest, opts ...grpc.CallOption) (*ChangePasswordResponse, error)
|
||||
@ -596,7 +596,7 @@ func (c *walletUnlockerClient) ChangePassword(ctx context.Context, in *ChangePas
|
||||
|
||||
// WalletUnlockerServer is the server API for WalletUnlocker service.
|
||||
type WalletUnlockerServer interface {
|
||||
//*
|
||||
//
|
||||
//GenSeed is the first method that should be used to instantiate a new lnd
|
||||
//instance. This method allows a caller to generate a new aezeed cipher seed
|
||||
//given an optional passphrase. If provided, the passphrase will be necessary
|
||||
@ -606,7 +606,7 @@ type WalletUnlockerServer interface {
|
||||
//method should be used to commit the newly generated seed, and create the
|
||||
//wallet.
|
||||
GenSeed(context.Context, *GenSeedRequest) (*GenSeedResponse, error)
|
||||
//*
|
||||
//
|
||||
//InitWallet is used when lnd is starting up for the first time to fully
|
||||
//initialize the daemon and its internal wallet. At the very least a wallet
|
||||
//password must be provided. This will be used to encrypt sensitive material
|
||||
@ -620,11 +620,11 @@ type WalletUnlockerServer interface {
|
||||
//seed, then present it to the user. Once it has been verified by the user,
|
||||
//the seed can be fed into this RPC in order to commit the new wallet.
|
||||
InitWallet(context.Context, *InitWalletRequest) (*InitWalletResponse, error)
|
||||
//* lncli: `unlock`
|
||||
// lncli: `unlock`
|
||||
//UnlockWallet is used at startup of lnd to provide a password to unlock
|
||||
//the wallet database.
|
||||
UnlockWallet(context.Context, *UnlockWalletRequest) (*UnlockWalletResponse, error)
|
||||
//* lncli: `changepassword`
|
||||
// lncli: `changepassword`
|
||||
//ChangePassword changes the password of the encrypted wallet. This will
|
||||
//automatically unlock the wallet database if successful.
|
||||
ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordResponse, error)
|
||||
|
@ -7,15 +7,11 @@ package lnrpc;
|
||||
|
||||
option go_package = "github.com/lightningnetwork/lnd/lnrpc";
|
||||
|
||||
/**
|
||||
/*
|
||||
* Comments in this file will be directly parsed into the API
|
||||
* Documentation as descriptions of the associated method, message, or field.
|
||||
* These descriptions should go right above the definition of the object, and
|
||||
* can be in either block or /// comment format.
|
||||
*
|
||||
* One edge case exists where a // comment followed by a /// comment in the
|
||||
* next line will cause the description not to show up in the documentation. In
|
||||
* that instance, simply separate the two comments with a blank line.
|
||||
* can be in either block or // comment format.
|
||||
*
|
||||
* An RPC method can be matched to an lncli command by placing a line in the
|
||||
* beginning of the description in exactly the following format:
|
||||
@ -32,7 +28,7 @@ option go_package = "github.com/lightningnetwork/lnd/lnrpc";
|
||||
// WalletUnlocker is a service that is used to set up a wallet password for
|
||||
// lnd at first startup, and unlock a previously set up wallet.
|
||||
service WalletUnlocker {
|
||||
/**
|
||||
/*
|
||||
GenSeed is the first method that should be used to instantiate a new lnd
|
||||
instance. This method allows a caller to generate a new aezeed cipher seed
|
||||
given an optional passphrase. If provided, the passphrase will be necessary
|
||||
@ -48,7 +44,7 @@ service WalletUnlocker {
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
InitWallet is used when lnd is starting up for the first time to fully
|
||||
initialize the daemon and its internal wallet. At the very least a wallet
|
||||
password must be provided. This will be used to encrypt sensitive material
|
||||
@ -69,7 +65,7 @@ service WalletUnlocker {
|
||||
};
|
||||
}
|
||||
|
||||
/** lncli: `unlock`
|
||||
/* lncli: `unlock`
|
||||
UnlockWallet is used at startup of lnd to provide a password to unlock
|
||||
the wallet database.
|
||||
*/
|
||||
@ -80,7 +76,7 @@ service WalletUnlocker {
|
||||
};
|
||||
}
|
||||
|
||||
/** lncli: `changepassword`
|
||||
/* lncli: `changepassword`
|
||||
ChangePassword changes the password of the encrypted wallet. This will
|
||||
automatically unlock the wallet database if successful.
|
||||
*/
|
||||
@ -94,14 +90,14 @@ service WalletUnlocker {
|
||||
}
|
||||
|
||||
message GenSeedRequest {
|
||||
/**
|
||||
/*
|
||||
aezeed_passphrase is an optional user provided passphrase that will be used
|
||||
to encrypt the generated aezeed cipher seed. When using REST, this field
|
||||
must be encoded as base64.
|
||||
*/
|
||||
bytes aezeed_passphrase = 1;
|
||||
|
||||
/**
|
||||
/*
|
||||
seed_entropy is an optional 16-bytes generated via CSPRNG. If not
|
||||
specified, then a fresh set of randomness will be used to create the seed.
|
||||
When using REST, this field must be encoded as base64.
|
||||
@ -109,7 +105,7 @@ message GenSeedRequest {
|
||||
bytes seed_entropy = 2;
|
||||
}
|
||||
message GenSeedResponse {
|
||||
/**
|
||||
/*
|
||||
cipher_seed_mnemonic is a 24-word mnemonic that encodes a prior aezeed
|
||||
cipher seed obtained by the user. This field is optional, as if not
|
||||
provided, then the daemon will generate a new cipher seed for the user.
|
||||
@ -118,7 +114,7 @@ message GenSeedResponse {
|
||||
*/
|
||||
repeated string cipher_seed_mnemonic = 1;
|
||||
|
||||
/**
|
||||
/*
|
||||
enciphered_seed are the raw aezeed cipher seed bytes. This is the raw
|
||||
cipher text before run through our mnemonic encoding scheme.
|
||||
*/
|
||||
@ -126,7 +122,7 @@ message GenSeedResponse {
|
||||
}
|
||||
|
||||
message InitWalletRequest {
|
||||
/**
|
||||
/*
|
||||
wallet_password is the passphrase that should be used to encrypt the
|
||||
wallet. This MUST be at least 8 chars in length. After creation, this
|
||||
password is required to unlock the daemon. When using REST, this field
|
||||
@ -134,21 +130,21 @@ message InitWalletRequest {
|
||||
*/
|
||||
bytes wallet_password = 1;
|
||||
|
||||
/**
|
||||
/*
|
||||
cipher_seed_mnemonic is a 24-word mnemonic that encodes a prior aezeed
|
||||
cipher seed obtained by the user. This may have been generated by the
|
||||
GenSeed method, or be an existing seed.
|
||||
*/
|
||||
repeated string cipher_seed_mnemonic = 2;
|
||||
|
||||
/**
|
||||
/*
|
||||
aezeed_passphrase is an optional user provided passphrase that will be used
|
||||
to encrypt the generated aezeed cipher seed. When using REST, this field
|
||||
must be encoded as base64.
|
||||
*/
|
||||
bytes aezeed_passphrase = 3;
|
||||
|
||||
/**
|
||||
/*
|
||||
recovery_window is an optional argument specifying the address lookahead
|
||||
when restoring a wallet seed. The recovery window applies to each
|
||||
individual branch of the BIP44 derivation paths. Supplying a recovery
|
||||
@ -157,7 +153,7 @@ message InitWalletRequest {
|
||||
*/
|
||||
int32 recovery_window = 4;
|
||||
|
||||
/**
|
||||
/*
|
||||
channel_backups is an optional argument that allows clients to recover the
|
||||
settled funds within a set of channels. This should be populated if the
|
||||
user was unable to close out all channels and sweep funds before partial or
|
||||
@ -171,14 +167,14 @@ message InitWalletResponse {
|
||||
}
|
||||
|
||||
message UnlockWalletRequest {
|
||||
/**
|
||||
/*
|
||||
wallet_password should be the current valid passphrase for the daemon. This
|
||||
will be required to decrypt on-disk material that the daemon requires to
|
||||
function properly. When using REST, this field must be encoded as base64.
|
||||
*/
|
||||
bytes wallet_password = 1;
|
||||
|
||||
/**
|
||||
/*
|
||||
recovery_window is an optional argument specifying the address lookahead
|
||||
when restoring a wallet seed. The recovery window applies to each
|
||||
individual branch of the BIP44 derivation paths. Supplying a recovery
|
||||
@ -187,7 +183,7 @@ message UnlockWalletRequest {
|
||||
*/
|
||||
int32 recovery_window = 2;
|
||||
|
||||
/**
|
||||
/*
|
||||
channel_backups is an optional argument that allows clients to recover the
|
||||
settled funds within a set of channels. This should be populated if the
|
||||
user was unable to close out all channels and sweep funds before partial or
|
||||
@ -201,13 +197,13 @@ message UnlockWalletResponse {
|
||||
}
|
||||
|
||||
message ChangePasswordRequest {
|
||||
/**
|
||||
/*
|
||||
current_password should be the current valid passphrase used to unlock the
|
||||
daemon. When using REST, this field must be encoded as base64.
|
||||
*/
|
||||
bytes current_password = 1;
|
||||
|
||||
/**
|
||||
/*
|
||||
new_password should be the new passphrase that will be needed to unlock the
|
||||
daemon. When using REST, this field must be encoded as base64.
|
||||
*/
|
||||
|
@ -17,7 +17,7 @@
|
||||
"paths": {
|
||||
"/v1/changepassword": {
|
||||
"post": {
|
||||
"summary": "* lncli: `changepassword`\nChangePassword changes the password of the encrypted wallet. This will\nautomatically unlock the wallet database if successful.",
|
||||
"summary": "lncli: `changepassword`\nChangePassword changes the password of the encrypted wallet. This will\nautomatically unlock the wallet database if successful.",
|
||||
"operationId": "ChangePassword",
|
||||
"responses": {
|
||||
"200": {
|
||||
@ -44,7 +44,7 @@
|
||||
},
|
||||
"/v1/genseed": {
|
||||
"get": {
|
||||
"summary": "*\nGenSeed is the first method that should be used to instantiate a new lnd\ninstance. This method allows a caller to generate a new aezeed cipher seed\ngiven an optional passphrase. If provided, the passphrase will be necessary\nto decrypt the cipherseed to expose the internal wallet seed.",
|
||||
"summary": "GenSeed is the first method that should be used to instantiate a new lnd\ninstance. This method allows a caller to generate a new aezeed cipher seed\ngiven an optional passphrase. If provided, the passphrase will be necessary\nto decrypt the cipherseed to expose the internal wallet seed.",
|
||||
"description": "Once the cipherseed is obtained and verified by the user, the InitWallet\nmethod should be used to commit the newly generated seed, and create the\nwallet.",
|
||||
"operationId": "GenSeed",
|
||||
"responses": {
|
||||
@ -58,7 +58,7 @@
|
||||
"parameters": [
|
||||
{
|
||||
"name": "aezeed_passphrase",
|
||||
"description": "*\naezeed_passphrase is an optional user provided passphrase that will be used\nto encrypt the generated aezeed cipher seed. When using REST, this field\nmust be encoded as base64.",
|
||||
"description": "aezeed_passphrase is an optional user provided passphrase that will be used\nto encrypt the generated aezeed cipher seed. When using REST, this field\nmust be encoded as base64.",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
@ -66,7 +66,7 @@
|
||||
},
|
||||
{
|
||||
"name": "seed_entropy",
|
||||
"description": "*\nseed_entropy is an optional 16-bytes generated via CSPRNG. If not\nspecified, then a fresh set of randomness will be used to create the seed.\nWhen using REST, this field must be encoded as base64.",
|
||||
"description": "seed_entropy is an optional 16-bytes generated via CSPRNG. If not\nspecified, then a fresh set of randomness will be used to create the seed.\nWhen using REST, this field must be encoded as base64.",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
@ -80,7 +80,7 @@
|
||||
},
|
||||
"/v1/initwallet": {
|
||||
"post": {
|
||||
"summary": "*\nInitWallet is used when lnd is starting up for the first time to fully\ninitialize the daemon and its internal wallet. At the very least a wallet\npassword must be provided. This will be used to encrypt sensitive material\non disk.",
|
||||
"summary": "InitWallet is used when lnd is starting up for the first time to fully\ninitialize the daemon and its internal wallet. At the very least a wallet\npassword must be provided. This will be used to encrypt sensitive material\non disk.",
|
||||
"description": "In the case of a recovery scenario, the user can also specify their aezeed\nmnemonic and passphrase. If set, then the daemon will use this prior state\nto initialize its internal wallet.\n\nAlternatively, this can be used along with the GenSeed RPC to obtain a\nseed, then present it to the user. Once it has been verified by the user,\nthe seed can be fed into this RPC in order to commit the new wallet.",
|
||||
"operationId": "InitWallet",
|
||||
"responses": {
|
||||
@ -108,7 +108,7 @@
|
||||
},
|
||||
"/v1/unlockwallet": {
|
||||
"post": {
|
||||
"summary": "* lncli: `unlock`\nUnlockWallet is used at startup of lnd to provide a password to unlock\nthe wallet database.",
|
||||
"summary": "lncli: `unlock`\nUnlockWallet is used at startup of lnd to provide a password to unlock\nthe wallet database.",
|
||||
"operationId": "UnlockWallet",
|
||||
"responses": {
|
||||
"200": {
|
||||
@ -140,11 +140,11 @@
|
||||
"properties": {
|
||||
"single_chan_backups": {
|
||||
"$ref": "#/definitions/lnrpcChannelBackups",
|
||||
"description": "*\nThe set of new channels that have been added since the last channel backup\nsnapshot was requested."
|
||||
"description": "The set of new channels that have been added since the last channel backup\nsnapshot was requested."
|
||||
},
|
||||
"multi_chan_backup": {
|
||||
"$ref": "#/definitions/lnrpcMultiChanBackup",
|
||||
"description": "*\nA multi-channel backup that covers all open channels currently known to\nlnd."
|
||||
"description": "A multi-channel backup that covers all open channels currently known to\nlnd."
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -154,12 +154,12 @@
|
||||
"current_password": {
|
||||
"type": "string",
|
||||
"format": "byte",
|
||||
"description": "*\ncurrent_password should be the current valid passphrase used to unlock the\ndaemon. When using REST, this field must be encoded as base64."
|
||||
"description": "current_password should be the current valid passphrase used to unlock the\ndaemon. When using REST, this field must be encoded as base64."
|
||||
},
|
||||
"new_password": {
|
||||
"type": "string",
|
||||
"format": "byte",
|
||||
"description": "*\nnew_password should be the new passphrase that will be needed to unlock the\ndaemon. When using REST, this field must be encoded as base64."
|
||||
"description": "new_password should be the new passphrase that will be needed to unlock the\ndaemon. When using REST, this field must be encoded as base64."
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -171,12 +171,12 @@
|
||||
"properties": {
|
||||
"chan_point": {
|
||||
"$ref": "#/definitions/lnrpcChannelPoint",
|
||||
"description": "*\nIdentifies the channel that this backup belongs to."
|
||||
"description": "Identifies the channel that this backup belongs to."
|
||||
},
|
||||
"chan_backup": {
|
||||
"type": "string",
|
||||
"format": "byte",
|
||||
"description": "*\nIs an encrypted single-chan backup. this can be passed to\nRestoreChannelBackups, or the WalletUnlocker Init and Unlock methods in\norder to trigger the recovery protocol. When using REST, this field must be\nencoded as base64."
|
||||
"description": "Is an encrypted single-chan backup. this can be passed to\nRestoreChannelBackups, or the WalletUnlocker Init and Unlock methods in\norder to trigger the recovery protocol. When using REST, this field must be\nencoded as base64."
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -188,7 +188,7 @@
|
||||
"items": {
|
||||
"$ref": "#/definitions/lnrpcChannelBackup"
|
||||
},
|
||||
"description": "*\nA set of single-chan static channel backups."
|
||||
"description": "A set of single-chan static channel backups."
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -198,16 +198,16 @@
|
||||
"funding_txid_bytes": {
|
||||
"type": "string",
|
||||
"format": "byte",
|
||||
"description": "*\nTxid of the funding transaction. When using REST, this field must be\nencoded as base64."
|
||||
"description": "Txid of the funding transaction. When using REST, this field must be\nencoded as base64."
|
||||
},
|
||||
"funding_txid_str": {
|
||||
"type": "string",
|
||||
"description": "*\nHex-encoded string representing the byte-reversed hash of the funding\ntransaction."
|
||||
"description": "Hex-encoded string representing the byte-reversed hash of the funding\ntransaction."
|
||||
},
|
||||
"output_index": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"title": "/ The index of the output of the funding transaction"
|
||||
"title": "The index of the output of the funding transaction"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -219,12 +219,12 @@
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "*\ncipher_seed_mnemonic is a 24-word mnemonic that encodes a prior aezeed\ncipher seed obtained by the user. This field is optional, as if not\nprovided, then the daemon will generate a new cipher seed for the user.\nOtherwise, then the daemon will attempt to recover the wallet state linked\nto this cipher seed."
|
||||
"description": "cipher_seed_mnemonic is a 24-word mnemonic that encodes a prior aezeed\ncipher seed obtained by the user. This field is optional, as if not\nprovided, then the daemon will generate a new cipher seed for the user.\nOtherwise, then the daemon will attempt to recover the wallet state linked\nto this cipher seed."
|
||||
},
|
||||
"enciphered_seed": {
|
||||
"type": "string",
|
||||
"format": "byte",
|
||||
"description": "*\nenciphered_seed are the raw aezeed cipher seed bytes. This is the raw\ncipher text before run through our mnemonic encoding scheme."
|
||||
"description": "enciphered_seed are the raw aezeed cipher seed bytes. This is the raw\ncipher text before run through our mnemonic encoding scheme."
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -234,28 +234,28 @@
|
||||
"wallet_password": {
|
||||
"type": "string",
|
||||
"format": "byte",
|
||||
"description": "*\nwallet_password is the passphrase that should be used to encrypt the\nwallet. This MUST be at least 8 chars in length. After creation, this\npassword is required to unlock the daemon. When using REST, this field\nmust be encoded as base64."
|
||||
"description": "wallet_password is the passphrase that should be used to encrypt the\nwallet. This MUST be at least 8 chars in length. After creation, this\npassword is required to unlock the daemon. When using REST, this field\nmust be encoded as base64."
|
||||
},
|
||||
"cipher_seed_mnemonic": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "*\ncipher_seed_mnemonic is a 24-word mnemonic that encodes a prior aezeed\ncipher seed obtained by the user. This may have been generated by the\nGenSeed method, or be an existing seed."
|
||||
"description": "cipher_seed_mnemonic is a 24-word mnemonic that encodes a prior aezeed\ncipher seed obtained by the user. This may have been generated by the\nGenSeed method, or be an existing seed."
|
||||
},
|
||||
"aezeed_passphrase": {
|
||||
"type": "string",
|
||||
"format": "byte",
|
||||
"description": "*\naezeed_passphrase is an optional user provided passphrase that will be used\nto encrypt the generated aezeed cipher seed. When using REST, this field\nmust be encoded as base64."
|
||||
"description": "aezeed_passphrase is an optional user provided passphrase that will be used\nto encrypt the generated aezeed cipher seed. When using REST, this field\nmust be encoded as base64."
|
||||
},
|
||||
"recovery_window": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"description": "*\nrecovery_window is an optional argument specifying the address lookahead\nwhen restoring a wallet seed. The recovery window applies to each\nindividual branch of the BIP44 derivation paths. Supplying a recovery\nwindow of zero indicates that no addresses should be recovered, such after\nthe first initialization of the wallet."
|
||||
"description": "recovery_window is an optional argument specifying the address lookahead\nwhen restoring a wallet seed. The recovery window applies to each\nindividual branch of the BIP44 derivation paths. Supplying a recovery\nwindow of zero indicates that no addresses should be recovered, such after\nthe first initialization of the wallet."
|
||||
},
|
||||
"channel_backups": {
|
||||
"$ref": "#/definitions/lnrpcChanBackupSnapshot",
|
||||
"description": "*\nchannel_backups is an optional argument that allows clients to recover the\nsettled funds within a set of channels. This should be populated if the\nuser was unable to close out all channels and sweep funds before partial or\ntotal data loss occurred. If specified, then after on-chain recovery of\nfunds, lnd begin to carry out the data loss recovery protocol in order to\nrecover the funds in each channel from a remote force closed transaction."
|
||||
"description": "channel_backups is an optional argument that allows clients to recover the\nsettled funds within a set of channels. This should be populated if the\nuser was unable to close out all channels and sweep funds before partial or\ntotal data loss occurred. If specified, then after on-chain recovery of\nfunds, lnd begin to carry out the data loss recovery protocol in order to\nrecover the funds in each channel from a remote force closed transaction."
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -270,12 +270,12 @@
|
||||
"items": {
|
||||
"$ref": "#/definitions/lnrpcChannelPoint"
|
||||
},
|
||||
"description": "*\nIs the set of all channels that are included in this multi-channel backup."
|
||||
"description": "Is the set of all channels that are included in this multi-channel backup."
|
||||
},
|
||||
"multi_chan_backup": {
|
||||
"type": "string",
|
||||
"format": "byte",
|
||||
"description": "*\nA single encrypted blob containing all the static channel backups of the\nchannel listed above. This can be stored as a single file or blob, and\nsafely be replaced with any prior/future versions. When using REST, this\nfield must be encoded as base64."
|
||||
"description": "A single encrypted blob containing all the static channel backups of the\nchannel listed above. This can be stored as a single file or blob, and\nsafely be replaced with any prior/future versions. When using REST, this\nfield must be encoded as base64."
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -285,16 +285,16 @@
|
||||
"wallet_password": {
|
||||
"type": "string",
|
||||
"format": "byte",
|
||||
"description": "*\nwallet_password should be the current valid passphrase for the daemon. This\nwill be required to decrypt on-disk material that the daemon requires to\nfunction properly. When using REST, this field must be encoded as base64."
|
||||
"description": "wallet_password should be the current valid passphrase for the daemon. This\nwill be required to decrypt on-disk material that the daemon requires to\nfunction properly. When using REST, this field must be encoded as base64."
|
||||
},
|
||||
"recovery_window": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"description": "*\nrecovery_window is an optional argument specifying the address lookahead\nwhen restoring a wallet seed. The recovery window applies to each\nindividual branch of the BIP44 derivation paths. Supplying a recovery\nwindow of zero indicates that no addresses should be recovered, such after\nthe first initialization of the wallet."
|
||||
"description": "recovery_window is an optional argument specifying the address lookahead\nwhen restoring a wallet seed. The recovery window applies to each\nindividual branch of the BIP44 derivation paths. Supplying a recovery\nwindow of zero indicates that no addresses should be recovered, such after\nthe first initialization of the wallet."
|
||||
},
|
||||
"channel_backups": {
|
||||
"$ref": "#/definitions/lnrpcChanBackupSnapshot",
|
||||
"description": "*\nchannel_backups is an optional argument that allows clients to recover the\nsettled funds within a set of channels. This should be populated if the\nuser was unable to close out all channels and sweep funds before partial or\ntotal data loss occurred. If specified, then after on-chain recovery of\nfunds, lnd begin to carry out the data loss recovery protocol in order to\nrecover the funds in each channel from a remote force closed transaction."
|
||||
"description": "channel_backups is an optional argument that allows clients to recover the\nsettled funds within a set of channels. This should be populated if the\nuser was unable to close out all channels and sweep funds before partial or\ntotal data loss occurred. If specified, then after on-chain recovery of\nfunds, lnd begin to carry out the data loss recovery protocol in order to\nrecover the funds in each channel from a remote force closed transaction."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -54,11 +54,11 @@ func (m *GetInfoRequest) XXX_DiscardUnknown() {
|
||||
var xxx_messageInfo_GetInfoRequest proto.InternalMessageInfo
|
||||
|
||||
type GetInfoResponse struct {
|
||||
/// The public key of the watchtower.
|
||||
// The public key of the watchtower.
|
||||
Pubkey []byte `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
|
||||
/// The listening addresses of the watchtower.
|
||||
// The listening addresses of the watchtower.
|
||||
Listeners []string `protobuf:"bytes,2,rep,name=listeners,proto3" json:"listeners,omitempty"`
|
||||
/// The URIs of the watchtower.
|
||||
// The URIs of the watchtower.
|
||||
Uris []string `protobuf:"bytes,3,rep,name=uris,proto3" json:"uris,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
@ -148,7 +148,7 @@ const _ = grpc.SupportPackageIsVersion4
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type WatchtowerClient interface {
|
||||
//* lncli: tower info
|
||||
// lncli: tower info
|
||||
//GetInfo returns general information concerning the companion watchtower
|
||||
//including its public key and URIs where the server is currently
|
||||
//listening for clients.
|
||||
@ -174,7 +174,7 @@ func (c *watchtowerClient) GetInfo(ctx context.Context, in *GetInfoRequest, opts
|
||||
|
||||
// WatchtowerServer is the server API for Watchtower service.
|
||||
type WatchtowerServer interface {
|
||||
//* lncli: tower info
|
||||
// lncli: tower info
|
||||
//GetInfo returns general information concerning the companion watchtower
|
||||
//including its public key and URIs where the server is currently
|
||||
//listening for clients.
|
||||
|
@ -7,7 +7,7 @@ option go_package = "github.com/lightningnetwork/lnd/lnrpc/watchtowerrpc";
|
||||
// Watchtower is a service that grants access to the watchtower server
|
||||
// functionality of the daemon.
|
||||
service Watchtower {
|
||||
/** lncli: tower info
|
||||
/* lncli: tower info
|
||||
GetInfo returns general information concerning the companion watchtower
|
||||
including its public key and URIs where the server is currently
|
||||
listening for clients.
|
||||
@ -19,12 +19,12 @@ message GetInfoRequest {
|
||||
}
|
||||
|
||||
message GetInfoResponse {
|
||||
/// The public key of the watchtower.
|
||||
// The public key of the watchtower.
|
||||
bytes pubkey = 1;
|
||||
|
||||
/// The listening addresses of the watchtower.
|
||||
// The listening addresses of the watchtower.
|
||||
repeated string listeners = 2;
|
||||
|
||||
/// The URIs of the watchtower.
|
||||
// The URIs of the watchtower.
|
||||
repeated string uris = 3;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user