Merge pull request #3082 from joostjager/upgrade-gen-go

lnrpc: upgrade to protobuf v1.3.1
This commit is contained in:
Olaoluwa Osuntokun 2019-05-22 21:10:26 -07:00 committed by GitHub
commit 063ecedf3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 3035 additions and 3461 deletions

2
go.mod

@ -13,7 +13,7 @@ require (
github.com/coreos/bbolt v1.3.2 github.com/coreos/bbolt v1.3.2
github.com/davecgh/go-spew v1.1.1 github.com/davecgh/go-spew v1.1.1
github.com/go-errors/errors v1.0.1 github.com/go-errors/errors v1.0.1
github.com/golang/protobuf v1.2.0 github.com/golang/protobuf v1.3.1
github.com/grpc-ecosystem/grpc-gateway v0.0.0-20170724004829-f2862b476edc github.com/grpc-ecosystem/grpc-gateway v0.0.0-20170724004829-f2862b476edc
github.com/jackpal/gateway v1.0.5 github.com/jackpal/gateway v1.0.5
github.com/jackpal/go-nat-pmp v0.0.0-20170405195558-28a68d0c24ad github.com/jackpal/go-nat-pmp v0.0.0-20170405195558-28a68d0c24ad

2
go.sum

@ -66,6 +66,8 @@ github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfb
github.com/golang/protobuf v0.0.0-20180821051752-b27b920f9e71/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v0.0.0-20180821051752-b27b920f9e71/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.3.1 h1:YF8+flBXS5eO826T4nzqPrxfhQThhXl0YzfuUPu4SBg=
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/grpc-ecosystem/grpc-gateway v0.0.0-20170724004829-f2862b476edc h1:3NXdOHZ1YlN6SGP3FPbn4k73O2MeEp065abehRwGFxI= github.com/grpc-ecosystem/grpc-gateway v0.0.0-20170724004829-f2862b476edc h1:3NXdOHZ1YlN6SGP3FPbn4k73O2MeEp065abehRwGFxI=
github.com/grpc-ecosystem/grpc-gateway v0.0.0-20170724004829-f2862b476edc/go.mod h1:RSKVYQBd5MCa4OVpNdGskqpgL2+G+NZTnrVHpWWfpdw= github.com/grpc-ecosystem/grpc-gateway v0.0.0-20170724004829-f2862b476edc/go.mod h1:RSKVYQBd5MCa4OVpNdGskqpgL2+G+NZTnrVHpWWfpdw=
github.com/hpcloud/tail v1.0.0 h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI= github.com/hpcloud/tail v1.0.0 h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI=

@ -149,11 +149,11 @@ $ unzip protoc-3.4.0-osx-x86_64.zip -d protoc
$ export PATH=$PWD/protoc/bin:$PATH $ export PATH=$PWD/protoc/bin:$PATH
``` ```
2. Install `golang/protobuf` at commit `aa810b61a9c79d51363740d207bb46cf8e620ed5` (v1.2.0). 2. Install `golang/protobuf` at commit `b5d812f8a3706043e23a9cd5babf2e5423744d30` (v1.3.1).
```bash ```bash
$ git clone https://github.com/golang/protobuf $GOPATH/src/github.com/golang/protobuf $ git clone https://github.com/golang/protobuf $GOPATH/src/github.com/golang/protobuf
$ cd $GOPATH/src/github.com/golang/protobuf $ cd $GOPATH/src/github.com/golang/protobuf
$ git reset --hard aa810b61a9c79d51363740d207bb46cf8e620ed5 $ git reset --hard v1.3.1
$ make $ make
``` ```

@ -1,15 +1,14 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: autopilotrpc/autopilot.proto // source: autopilotrpc/autopilot.proto
package autopilotrpc // import "github.com/lightningnetwork/lnd/lnrpc/autopilotrpc" package autopilotrpc
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import ( import (
context "golang.org/x/net/context" context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc" grpc "google.golang.org/grpc"
math "math"
) )
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
@ -21,7 +20,7 @@ var _ = math.Inf
// is compatible with the proto package it is being compiled against. // is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the // A compilation error at this line likely means your copy of the
// proto package needs to be updated. // proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type StatusRequest struct { type StatusRequest struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
@ -33,16 +32,17 @@ func (m *StatusRequest) Reset() { *m = StatusRequest{} }
func (m *StatusRequest) String() string { return proto.CompactTextString(m) } func (m *StatusRequest) String() string { return proto.CompactTextString(m) }
func (*StatusRequest) ProtoMessage() {} func (*StatusRequest) ProtoMessage() {}
func (*StatusRequest) Descriptor() ([]byte, []int) { func (*StatusRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_autopilot_1f7ac28ef56bb20c, []int{0} return fileDescriptor_e0b9dc347a92e084, []int{0}
} }
func (m *StatusRequest) XXX_Unmarshal(b []byte) error { func (m *StatusRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StatusRequest.Unmarshal(m, b) return xxx_messageInfo_StatusRequest.Unmarshal(m, b)
} }
func (m *StatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *StatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StatusRequest.Marshal(b, m, deterministic) return xxx_messageInfo_StatusRequest.Marshal(b, m, deterministic)
} }
func (dst *StatusRequest) XXX_Merge(src proto.Message) { func (m *StatusRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_StatusRequest.Merge(dst, src) xxx_messageInfo_StatusRequest.Merge(m, src)
} }
func (m *StatusRequest) XXX_Size() int { func (m *StatusRequest) XXX_Size() int {
return xxx_messageInfo_StatusRequest.Size(m) return xxx_messageInfo_StatusRequest.Size(m)
@ -54,7 +54,7 @@ func (m *StatusRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_StatusRequest proto.InternalMessageInfo var xxx_messageInfo_StatusRequest proto.InternalMessageInfo
type StatusResponse struct { 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"` Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -65,16 +65,17 @@ func (m *StatusResponse) Reset() { *m = StatusResponse{} }
func (m *StatusResponse) String() string { return proto.CompactTextString(m) } func (m *StatusResponse) String() string { return proto.CompactTextString(m) }
func (*StatusResponse) ProtoMessage() {} func (*StatusResponse) ProtoMessage() {}
func (*StatusResponse) Descriptor() ([]byte, []int) { func (*StatusResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_autopilot_1f7ac28ef56bb20c, []int{1} return fileDescriptor_e0b9dc347a92e084, []int{1}
} }
func (m *StatusResponse) XXX_Unmarshal(b []byte) error { func (m *StatusResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StatusResponse.Unmarshal(m, b) return xxx_messageInfo_StatusResponse.Unmarshal(m, b)
} }
func (m *StatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *StatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StatusResponse.Marshal(b, m, deterministic) return xxx_messageInfo_StatusResponse.Marshal(b, m, deterministic)
} }
func (dst *StatusResponse) XXX_Merge(src proto.Message) { func (m *StatusResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_StatusResponse.Merge(dst, src) xxx_messageInfo_StatusResponse.Merge(m, src)
} }
func (m *StatusResponse) XXX_Size() int { func (m *StatusResponse) XXX_Size() int {
return xxx_messageInfo_StatusResponse.Size(m) return xxx_messageInfo_StatusResponse.Size(m)
@ -93,7 +94,7 @@ func (m *StatusResponse) GetActive() bool {
} }
type ModifyStatusRequest struct { 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"` Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -104,16 +105,17 @@ func (m *ModifyStatusRequest) Reset() { *m = ModifyStatusRequest{} }
func (m *ModifyStatusRequest) String() string { return proto.CompactTextString(m) } func (m *ModifyStatusRequest) String() string { return proto.CompactTextString(m) }
func (*ModifyStatusRequest) ProtoMessage() {} func (*ModifyStatusRequest) ProtoMessage() {}
func (*ModifyStatusRequest) Descriptor() ([]byte, []int) { func (*ModifyStatusRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_autopilot_1f7ac28ef56bb20c, []int{2} return fileDescriptor_e0b9dc347a92e084, []int{2}
} }
func (m *ModifyStatusRequest) XXX_Unmarshal(b []byte) error { func (m *ModifyStatusRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ModifyStatusRequest.Unmarshal(m, b) return xxx_messageInfo_ModifyStatusRequest.Unmarshal(m, b)
} }
func (m *ModifyStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ModifyStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ModifyStatusRequest.Marshal(b, m, deterministic) return xxx_messageInfo_ModifyStatusRequest.Marshal(b, m, deterministic)
} }
func (dst *ModifyStatusRequest) XXX_Merge(src proto.Message) { func (m *ModifyStatusRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ModifyStatusRequest.Merge(dst, src) xxx_messageInfo_ModifyStatusRequest.Merge(m, src)
} }
func (m *ModifyStatusRequest) XXX_Size() int { func (m *ModifyStatusRequest) XXX_Size() int {
return xxx_messageInfo_ModifyStatusRequest.Size(m) return xxx_messageInfo_ModifyStatusRequest.Size(m)
@ -141,16 +143,17 @@ func (m *ModifyStatusResponse) Reset() { *m = ModifyStatusResponse{} }
func (m *ModifyStatusResponse) String() string { return proto.CompactTextString(m) } func (m *ModifyStatusResponse) String() string { return proto.CompactTextString(m) }
func (*ModifyStatusResponse) ProtoMessage() {} func (*ModifyStatusResponse) ProtoMessage() {}
func (*ModifyStatusResponse) Descriptor() ([]byte, []int) { func (*ModifyStatusResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_autopilot_1f7ac28ef56bb20c, []int{3} return fileDescriptor_e0b9dc347a92e084, []int{3}
} }
func (m *ModifyStatusResponse) XXX_Unmarshal(b []byte) error { func (m *ModifyStatusResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ModifyStatusResponse.Unmarshal(m, b) return xxx_messageInfo_ModifyStatusResponse.Unmarshal(m, b)
} }
func (m *ModifyStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ModifyStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ModifyStatusResponse.Marshal(b, m, deterministic) return xxx_messageInfo_ModifyStatusResponse.Marshal(b, m, deterministic)
} }
func (dst *ModifyStatusResponse) XXX_Merge(src proto.Message) { func (m *ModifyStatusResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ModifyStatusResponse.Merge(dst, src) xxx_messageInfo_ModifyStatusResponse.Merge(m, src)
} }
func (m *ModifyStatusResponse) XXX_Size() int { func (m *ModifyStatusResponse) XXX_Size() int {
return xxx_messageInfo_ModifyStatusResponse.Size(m) return xxx_messageInfo_ModifyStatusResponse.Size(m)
@ -163,7 +166,7 @@ var xxx_messageInfo_ModifyStatusResponse proto.InternalMessageInfo
type QueryScoresRequest struct { type QueryScoresRequest struct {
Pubkeys []string `protobuf:"bytes,1,rep,name=pubkeys,proto3" json:"pubkeys,omitempty"` 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=no_state,proto3" json:"ignore_local_state,omitempty"` IgnoreLocalState bool `protobuf:"varint,2,opt,name=ignore_local_state,json=no_state,proto3" json:"ignore_local_state,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -174,16 +177,17 @@ func (m *QueryScoresRequest) Reset() { *m = QueryScoresRequest{} }
func (m *QueryScoresRequest) String() string { return proto.CompactTextString(m) } func (m *QueryScoresRequest) String() string { return proto.CompactTextString(m) }
func (*QueryScoresRequest) ProtoMessage() {} func (*QueryScoresRequest) ProtoMessage() {}
func (*QueryScoresRequest) Descriptor() ([]byte, []int) { func (*QueryScoresRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_autopilot_1f7ac28ef56bb20c, []int{4} return fileDescriptor_e0b9dc347a92e084, []int{4}
} }
func (m *QueryScoresRequest) XXX_Unmarshal(b []byte) error { func (m *QueryScoresRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_QueryScoresRequest.Unmarshal(m, b) return xxx_messageInfo_QueryScoresRequest.Unmarshal(m, b)
} }
func (m *QueryScoresRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *QueryScoresRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_QueryScoresRequest.Marshal(b, m, deterministic) return xxx_messageInfo_QueryScoresRequest.Marshal(b, m, deterministic)
} }
func (dst *QueryScoresRequest) XXX_Merge(src proto.Message) { func (m *QueryScoresRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryScoresRequest.Merge(dst, src) xxx_messageInfo_QueryScoresRequest.Merge(m, src)
} }
func (m *QueryScoresRequest) XXX_Size() int { func (m *QueryScoresRequest) XXX_Size() int {
return xxx_messageInfo_QueryScoresRequest.Size(m) return xxx_messageInfo_QueryScoresRequest.Size(m)
@ -219,16 +223,17 @@ func (m *QueryScoresResponse) Reset() { *m = QueryScoresResponse{} }
func (m *QueryScoresResponse) String() string { return proto.CompactTextString(m) } func (m *QueryScoresResponse) String() string { return proto.CompactTextString(m) }
func (*QueryScoresResponse) ProtoMessage() {} func (*QueryScoresResponse) ProtoMessage() {}
func (*QueryScoresResponse) Descriptor() ([]byte, []int) { func (*QueryScoresResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_autopilot_1f7ac28ef56bb20c, []int{5} return fileDescriptor_e0b9dc347a92e084, []int{5}
} }
func (m *QueryScoresResponse) XXX_Unmarshal(b []byte) error { func (m *QueryScoresResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_QueryScoresResponse.Unmarshal(m, b) return xxx_messageInfo_QueryScoresResponse.Unmarshal(m, b)
} }
func (m *QueryScoresResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *QueryScoresResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_QueryScoresResponse.Marshal(b, m, deterministic) return xxx_messageInfo_QueryScoresResponse.Marshal(b, m, deterministic)
} }
func (dst *QueryScoresResponse) XXX_Merge(src proto.Message) { func (m *QueryScoresResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryScoresResponse.Merge(dst, src) xxx_messageInfo_QueryScoresResponse.Merge(m, src)
} }
func (m *QueryScoresResponse) XXX_Size() int { func (m *QueryScoresResponse) XXX_Size() int {
return xxx_messageInfo_QueryScoresResponse.Size(m) return xxx_messageInfo_QueryScoresResponse.Size(m)
@ -258,16 +263,17 @@ func (m *QueryScoresResponse_HeuristicResult) Reset() { *m = QueryScores
func (m *QueryScoresResponse_HeuristicResult) String() string { return proto.CompactTextString(m) } func (m *QueryScoresResponse_HeuristicResult) String() string { return proto.CompactTextString(m) }
func (*QueryScoresResponse_HeuristicResult) ProtoMessage() {} func (*QueryScoresResponse_HeuristicResult) ProtoMessage() {}
func (*QueryScoresResponse_HeuristicResult) Descriptor() ([]byte, []int) { func (*QueryScoresResponse_HeuristicResult) Descriptor() ([]byte, []int) {
return fileDescriptor_autopilot_1f7ac28ef56bb20c, []int{5, 0} return fileDescriptor_e0b9dc347a92e084, []int{5, 0}
} }
func (m *QueryScoresResponse_HeuristicResult) XXX_Unmarshal(b []byte) error { func (m *QueryScoresResponse_HeuristicResult) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_QueryScoresResponse_HeuristicResult.Unmarshal(m, b) return xxx_messageInfo_QueryScoresResponse_HeuristicResult.Unmarshal(m, b)
} }
func (m *QueryScoresResponse_HeuristicResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *QueryScoresResponse_HeuristicResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_QueryScoresResponse_HeuristicResult.Marshal(b, m, deterministic) return xxx_messageInfo_QueryScoresResponse_HeuristicResult.Marshal(b, m, deterministic)
} }
func (dst *QueryScoresResponse_HeuristicResult) XXX_Merge(src proto.Message) { func (m *QueryScoresResponse_HeuristicResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryScoresResponse_HeuristicResult.Merge(dst, src) xxx_messageInfo_QueryScoresResponse_HeuristicResult.Merge(m, src)
} }
func (m *QueryScoresResponse_HeuristicResult) XXX_Size() int { func (m *QueryScoresResponse_HeuristicResult) XXX_Size() int {
return xxx_messageInfo_QueryScoresResponse_HeuristicResult.Size(m) return xxx_messageInfo_QueryScoresResponse_HeuristicResult.Size(m)
@ -293,11 +299,11 @@ func (m *QueryScoresResponse_HeuristicResult) GetScores() map[string]float64 {
} }
type SetScoresRequest struct { 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"` 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 //A map from hex-encoded public keys to scores. Scores must be in the range
// [0.0, 1.0]. //[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"` 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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -308,16 +314,17 @@ func (m *SetScoresRequest) Reset() { *m = SetScoresRequest{} }
func (m *SetScoresRequest) String() string { return proto.CompactTextString(m) } func (m *SetScoresRequest) String() string { return proto.CompactTextString(m) }
func (*SetScoresRequest) ProtoMessage() {} func (*SetScoresRequest) ProtoMessage() {}
func (*SetScoresRequest) Descriptor() ([]byte, []int) { func (*SetScoresRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_autopilot_1f7ac28ef56bb20c, []int{6} return fileDescriptor_e0b9dc347a92e084, []int{6}
} }
func (m *SetScoresRequest) XXX_Unmarshal(b []byte) error { func (m *SetScoresRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SetScoresRequest.Unmarshal(m, b) return xxx_messageInfo_SetScoresRequest.Unmarshal(m, b)
} }
func (m *SetScoresRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *SetScoresRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SetScoresRequest.Marshal(b, m, deterministic) return xxx_messageInfo_SetScoresRequest.Marshal(b, m, deterministic)
} }
func (dst *SetScoresRequest) XXX_Merge(src proto.Message) { func (m *SetScoresRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SetScoresRequest.Merge(dst, src) xxx_messageInfo_SetScoresRequest.Merge(m, src)
} }
func (m *SetScoresRequest) XXX_Size() int { func (m *SetScoresRequest) XXX_Size() int {
return xxx_messageInfo_SetScoresRequest.Size(m) return xxx_messageInfo_SetScoresRequest.Size(m)
@ -352,16 +359,17 @@ func (m *SetScoresResponse) Reset() { *m = SetScoresResponse{} }
func (m *SetScoresResponse) String() string { return proto.CompactTextString(m) } func (m *SetScoresResponse) String() string { return proto.CompactTextString(m) }
func (*SetScoresResponse) ProtoMessage() {} func (*SetScoresResponse) ProtoMessage() {}
func (*SetScoresResponse) Descriptor() ([]byte, []int) { func (*SetScoresResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_autopilot_1f7ac28ef56bb20c, []int{7} return fileDescriptor_e0b9dc347a92e084, []int{7}
} }
func (m *SetScoresResponse) XXX_Unmarshal(b []byte) error { func (m *SetScoresResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SetScoresResponse.Unmarshal(m, b) return xxx_messageInfo_SetScoresResponse.Unmarshal(m, b)
} }
func (m *SetScoresResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *SetScoresResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SetScoresResponse.Marshal(b, m, deterministic) return xxx_messageInfo_SetScoresResponse.Marshal(b, m, deterministic)
} }
func (dst *SetScoresResponse) XXX_Merge(src proto.Message) { func (m *SetScoresResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SetScoresResponse.Merge(dst, src) xxx_messageInfo_SetScoresResponse.Merge(m, src)
} }
func (m *SetScoresResponse) XXX_Size() int { func (m *SetScoresResponse) XXX_Size() int {
return xxx_messageInfo_SetScoresResponse.Size(m) return xxx_messageInfo_SetScoresResponse.Size(m)
@ -386,6 +394,41 @@ func init() {
proto.RegisterType((*SetScoresResponse)(nil), "autopilotrpc.SetScoresResponse") proto.RegisterType((*SetScoresResponse)(nil), "autopilotrpc.SetScoresResponse")
} }
func init() { proto.RegisterFile("autopilotrpc/autopilot.proto", fileDescriptor_e0b9dc347a92e084) }
var fileDescriptor_e0b9dc347a92e084 = []byte{
// 463 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0xcf, 0x6f, 0xd3, 0x30,
0x14, 0xc7, 0x95, 0x4c, 0x74, 0xcb, 0xeb, 0x60, 0xc3, 0x9d, 0xa6, 0x28, 0x54, 0xd0, 0x45, 0x1c,
0x2a, 0x24, 0x52, 0x51, 0x38, 0x00, 0x12, 0x07, 0x86, 0x90, 0x90, 0x80, 0x03, 0x2e, 0xbb, 0x70,
0x99, 0xd2, 0xcc, 0xb4, 0x56, 0x8d, 0x1d, 0xec, 0xe7, 0xa1, 0xfc, 0x43, 0x5c, 0xf9, 0x1b, 0x38,
0xf2, 0x5f, 0xa1, 0xc5, 0x49, 0x49, 0xaa, 0x12, 0x84, 0xb4, 0x5b, 0xde, 0x8f, 0x7c, 0x9e, 0xdf,
0xd7, 0x5f, 0x19, 0x86, 0xa9, 0x45, 0x95, 0x73, 0xa1, 0x50, 0xe7, 0xd9, 0x64, 0x1d, 0x24, 0xb9,
0x56, 0xa8,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
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
var _ context.Context var _ context.Context
var _ grpc.ClientConn var _ grpc.ClientConn
@ -398,21 +441,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. // 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 { type AutopilotClient interface {
// * //*
// Status returns whether the daemon's autopilot agent is active. //Status returns whether the daemon's autopilot agent is active.
Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error)
// * //*
// ModifyStatus is used to modify the status of the autopilot agent, like //ModifyStatus is used to modify the status of the autopilot agent, like
// enabling or disabling it. //enabling or disabling it.
ModifyStatus(ctx context.Context, in *ModifyStatusRequest, opts ...grpc.CallOption) (*ModifyStatusResponse, error) ModifyStatus(ctx context.Context, in *ModifyStatusRequest, opts ...grpc.CallOption) (*ModifyStatusResponse, error)
// * //*
// QueryScores queries all available autopilot heuristics, in addition to any //QueryScores queries all available autopilot heuristics, in addition to any
// active combination of these heruristics, for the scores they would give to //active combination of these heruristics, for the scores they would give to
// the given nodes. //the given nodes.
QueryScores(ctx context.Context, in *QueryScoresRequest, opts ...grpc.CallOption) (*QueryScoresResponse, error) QueryScores(ctx context.Context, in *QueryScoresRequest, opts ...grpc.CallOption) (*QueryScoresResponse, error)
// * //*
// SetScores attempts to set the scores used by the running autopilot agent, //SetScores attempts to set the scores used by the running autopilot agent,
// if the external scoring heuristic is enabled. //if the external scoring heuristic is enabled.
SetScores(ctx context.Context, in *SetScoresRequest, opts ...grpc.CallOption) (*SetScoresResponse, error) SetScores(ctx context.Context, in *SetScoresRequest, opts ...grpc.CallOption) (*SetScoresResponse, error)
} }
@ -462,21 +505,21 @@ func (c *autopilotClient) SetScores(ctx context.Context, in *SetScoresRequest, o
// AutopilotServer is the server API for Autopilot service. // AutopilotServer is the server API for Autopilot service.
type AutopilotServer interface { type AutopilotServer interface {
// * //*
// Status returns whether the daemon's autopilot agent is active. //Status returns whether the daemon's autopilot agent is active.
Status(context.Context, *StatusRequest) (*StatusResponse, error) Status(context.Context, *StatusRequest) (*StatusResponse, error)
// * //*
// ModifyStatus is used to modify the status of the autopilot agent, like //ModifyStatus is used to modify the status of the autopilot agent, like
// enabling or disabling it. //enabling or disabling it.
ModifyStatus(context.Context, *ModifyStatusRequest) (*ModifyStatusResponse, error) ModifyStatus(context.Context, *ModifyStatusRequest) (*ModifyStatusResponse, error)
// * //*
// QueryScores queries all available autopilot heuristics, in addition to any //QueryScores queries all available autopilot heuristics, in addition to any
// active combination of these heruristics, for the scores they would give to //active combination of these heruristics, for the scores they would give to
// the given nodes. //the given nodes.
QueryScores(context.Context, *QueryScoresRequest) (*QueryScoresResponse, error) QueryScores(context.Context, *QueryScoresRequest) (*QueryScoresResponse, error)
// * //*
// SetScores attempts to set the scores used by the running autopilot agent, //SetScores attempts to set the scores used by the running autopilot agent,
// if the external scoring heuristic is enabled. //if the external scoring heuristic is enabled.
SetScores(context.Context, *SetScoresRequest) (*SetScoresResponse, error) SetScores(context.Context, *SetScoresRequest) (*SetScoresResponse, error)
} }
@ -580,40 +623,3 @@ var _Autopilot_serviceDesc = grpc.ServiceDesc{
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "autopilotrpc/autopilot.proto", Metadata: "autopilotrpc/autopilot.proto",
} }
func init() {
proto.RegisterFile("autopilotrpc/autopilot.proto", fileDescriptor_autopilot_1f7ac28ef56bb20c)
}
var fileDescriptor_autopilot_1f7ac28ef56bb20c = []byte{
// 463 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0xcf, 0x6f, 0xd3, 0x30,
0x14,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0xbf,
0x71, 0xcd, 0x64, 0xd4, 0xe1, 0x00, 0x07, 0x3d, 0xf9, 0xa7, 0x47, 0xc8, 0x3b, 0x08, 0xd6, 0x92,
0x90, 0xbb, 0xdd, 0xd7, 0x11, 0xdd, 0xfb, 0x6b, 0xdd, 0xd1, 0x4e, 0x9f, 0x7c, 0x9a, 0x2e, 0x38,
0x2e, 0xed, 0x3c, 0xc9, 0xd4, 0x97, 0x89, 0xe0, 0x8b, 0x25, 0x4a, 0x2e, 0x17, 0x92, 0xe1, 0x37,
0xa5, 0x57, 0x13, 0x21, 0x2f, 0x26, 0x42, 0xb6, 0x9e, 0x16, 0x9d, 0x67, 0xf3, 0x5e, 0xf9, 0xbc,
0x3c, 0xfe, 0x1d, 0x00, 0x00, 0xff, 0xff, 0xb1, 0x4e, 0x74, 0x27, 0x7e, 0x04, 0x00, 0x00,
}

@ -3,13 +3,12 @@
package chainrpc package chainrpc
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import ( import (
context "golang.org/x/net/context" context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc" grpc "google.golang.org/grpc"
math "math"
) )
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
@ -21,28 +20,28 @@ var _ = math.Inf
// is compatible with the proto package it is being compiled against. // is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the // A compilation error at this line likely means your copy of the
// proto package needs to be updated. // proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type ConfRequest struct { type ConfRequest struct {
// //
// The transaction hash for which we should request a confirmation notification //The transaction hash for which we should request a confirmation notification
// for. If set to a hash of all zeros, then the confirmation notification will //for. If set to a hash of all zeros, then the confirmation notification will
// be requested for the script instead. //be requested for the script instead.
Txid []byte `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"` Txid []byte `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"`
// //
// An output script within a transaction with the hash above which will be used //An output script within a transaction with the hash above which will be used
// by light clients to match block filters. If the transaction hash is set to a //by light clients to match block filters. If the transaction hash is set to a
// hash of all zeros, then a confirmation notification will be requested for //hash of all zeros, then a confirmation notification will be requested for
// this script instead. //this script instead.
Script []byte `protobuf:"bytes,2,opt,name=script,proto3" json:"script,omitempty"` Script []byte `protobuf:"bytes,2,opt,name=script,proto3" json:"script,omitempty"`
// //
// The number of desired confirmations the transaction/output script should //The number of desired confirmations the transaction/output script should
// reach before dispatching a confirmation notification. //reach before dispatching a confirmation notification.
NumConfs uint32 `protobuf:"varint,3,opt,name=num_confs,json=numConfs,proto3" json:"num_confs,omitempty"` NumConfs uint32 `protobuf:"varint,3,opt,name=num_confs,json=numConfs,proto3" json:"num_confs,omitempty"`
// //
// The earliest height in the chain for which the transaction/output script //The earliest height in the chain for which the transaction/output script
// could have been included in a block. This should in most cases be set to the //could have been included in a block. This should in most cases be set to the
// broadcast height of the transaction/output script. //broadcast height of the transaction/output script.
HeightHint uint32 `protobuf:"varint,4,opt,name=height_hint,json=heightHint,proto3" json:"height_hint,omitempty"` HeightHint uint32 `protobuf:"varint,4,opt,name=height_hint,json=heightHint,proto3" json:"height_hint,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -53,16 +52,17 @@ func (m *ConfRequest) Reset() { *m = ConfRequest{} }
func (m *ConfRequest) String() string { return proto.CompactTextString(m) } func (m *ConfRequest) String() string { return proto.CompactTextString(m) }
func (*ConfRequest) ProtoMessage() {} func (*ConfRequest) ProtoMessage() {}
func (*ConfRequest) Descriptor() ([]byte, []int) { func (*ConfRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_chainnotifier_7f5a7ad17988064c, []int{0} return fileDescriptor_b10e6f8a1c9d2638, []int{0}
} }
func (m *ConfRequest) XXX_Unmarshal(b []byte) error { func (m *ConfRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConfRequest.Unmarshal(m, b) return xxx_messageInfo_ConfRequest.Unmarshal(m, b)
} }
func (m *ConfRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ConfRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConfRequest.Marshal(b, m, deterministic) return xxx_messageInfo_ConfRequest.Marshal(b, m, deterministic)
} }
func (dst *ConfRequest) XXX_Merge(src proto.Message) { func (m *ConfRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConfRequest.Merge(dst, src) xxx_messageInfo_ConfRequest.Merge(m, src)
} }
func (m *ConfRequest) XXX_Size() int { func (m *ConfRequest) XXX_Size() int {
return xxx_messageInfo_ConfRequest.Size(m) return xxx_messageInfo_ConfRequest.Size(m)
@ -119,16 +119,17 @@ func (m *ConfDetails) Reset() { *m = ConfDetails{} }
func (m *ConfDetails) String() string { return proto.CompactTextString(m) } func (m *ConfDetails) String() string { return proto.CompactTextString(m) }
func (*ConfDetails) ProtoMessage() {} func (*ConfDetails) ProtoMessage() {}
func (*ConfDetails) Descriptor() ([]byte, []int) { func (*ConfDetails) Descriptor() ([]byte, []int) {
return fileDescriptor_chainnotifier_7f5a7ad17988064c, []int{1} return fileDescriptor_b10e6f8a1c9d2638, []int{1}
} }
func (m *ConfDetails) XXX_Unmarshal(b []byte) error { func (m *ConfDetails) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConfDetails.Unmarshal(m, b) return xxx_messageInfo_ConfDetails.Unmarshal(m, b)
} }
func (m *ConfDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ConfDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConfDetails.Marshal(b, m, deterministic) return xxx_messageInfo_ConfDetails.Marshal(b, m, deterministic)
} }
func (dst *ConfDetails) XXX_Merge(src proto.Message) { func (m *ConfDetails) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConfDetails.Merge(dst, src) xxx_messageInfo_ConfDetails.Merge(m, src)
} }
func (m *ConfDetails) XXX_Size() int { func (m *ConfDetails) XXX_Size() int {
return xxx_messageInfo_ConfDetails.Size(m) return xxx_messageInfo_ConfDetails.Size(m)
@ -177,16 +178,17 @@ func (m *Reorg) Reset() { *m = Reorg{} }
func (m *Reorg) String() string { return proto.CompactTextString(m) } func (m *Reorg) String() string { return proto.CompactTextString(m) }
func (*Reorg) ProtoMessage() {} func (*Reorg) ProtoMessage() {}
func (*Reorg) Descriptor() ([]byte, []int) { func (*Reorg) Descriptor() ([]byte, []int) {
return fileDescriptor_chainnotifier_7f5a7ad17988064c, []int{2} return fileDescriptor_b10e6f8a1c9d2638, []int{2}
} }
func (m *Reorg) XXX_Unmarshal(b []byte) error { func (m *Reorg) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Reorg.Unmarshal(m, b) return xxx_messageInfo_Reorg.Unmarshal(m, b)
} }
func (m *Reorg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *Reorg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Reorg.Marshal(b, m, deterministic) return xxx_messageInfo_Reorg.Marshal(b, m, deterministic)
} }
func (dst *Reorg) XXX_Merge(src proto.Message) { func (m *Reorg) XXX_Merge(src proto.Message) {
xxx_messageInfo_Reorg.Merge(dst, src) xxx_messageInfo_Reorg.Merge(m, src)
} }
func (m *Reorg) XXX_Size() int { func (m *Reorg) XXX_Size() int {
return xxx_messageInfo_Reorg.Size(m) return xxx_messageInfo_Reorg.Size(m)
@ -211,16 +213,17 @@ func (m *ConfEvent) Reset() { *m = ConfEvent{} }
func (m *ConfEvent) String() string { return proto.CompactTextString(m) } func (m *ConfEvent) String() string { return proto.CompactTextString(m) }
func (*ConfEvent) ProtoMessage() {} func (*ConfEvent) ProtoMessage() {}
func (*ConfEvent) Descriptor() ([]byte, []int) { func (*ConfEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_chainnotifier_7f5a7ad17988064c, []int{3} return fileDescriptor_b10e6f8a1c9d2638, []int{3}
} }
func (m *ConfEvent) XXX_Unmarshal(b []byte) error { func (m *ConfEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConfEvent.Unmarshal(m, b) return xxx_messageInfo_ConfEvent.Unmarshal(m, b)
} }
func (m *ConfEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ConfEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConfEvent.Marshal(b, m, deterministic) return xxx_messageInfo_ConfEvent.Marshal(b, m, deterministic)
} }
func (dst *ConfEvent) XXX_Merge(src proto.Message) { func (m *ConfEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConfEvent.Merge(dst, src) xxx_messageInfo_ConfEvent.Merge(m, src)
} }
func (m *ConfEvent) XXX_Size() int { func (m *ConfEvent) XXX_Size() int {
return xxx_messageInfo_ConfEvent.Size(m) return xxx_messageInfo_ConfEvent.Size(m)
@ -268,80 +271,14 @@ func (m *ConfEvent) GetReorg() *Reorg {
return nil return nil
} }
// XXX_OneofFuncs is for the internal use of the proto package. // XXX_OneofWrappers is for the internal use of the proto package.
func (*ConfEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { func (*ConfEvent) XXX_OneofWrappers() []interface{} {
return _ConfEvent_OneofMarshaler, _ConfEvent_OneofUnmarshaler, _ConfEvent_OneofSizer, []interface{}{ return []interface{}{
(*ConfEvent_Conf)(nil), (*ConfEvent_Conf)(nil),
(*ConfEvent_Reorg)(nil), (*ConfEvent_Reorg)(nil),
} }
} }
func _ConfEvent_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*ConfEvent)
// event
switch x := m.Event.(type) {
case *ConfEvent_Conf:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Conf); err != nil {
return err
}
case *ConfEvent_Reorg:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Reorg); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("ConfEvent.Event has unexpected type %T", x)
}
return nil
}
func _ConfEvent_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*ConfEvent)
switch tag {
case 1: // event.conf
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(ConfDetails)
err := b.DecodeMessage(msg)
m.Event = &ConfEvent_Conf{msg}
return true, err
case 2: // event.reorg
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(Reorg)
err := b.DecodeMessage(msg)
m.Event = &ConfEvent_Reorg{msg}
return true, err
default:
return false, nil
}
}
func _ConfEvent_OneofSizer(msg proto.Message) (n int) {
m := msg.(*ConfEvent)
// event
switch x := m.Event.(type) {
case *ConfEvent_Conf:
s := proto.Size(x.Conf)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *ConfEvent_Reorg:
s := proto.Size(x.Reorg)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
type Outpoint struct { type Outpoint struct {
// The hash of the transaction. // The hash of the transaction.
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
@ -356,16 +293,17 @@ func (m *Outpoint) Reset() { *m = Outpoint{} }
func (m *Outpoint) String() string { return proto.CompactTextString(m) } func (m *Outpoint) String() string { return proto.CompactTextString(m) }
func (*Outpoint) ProtoMessage() {} func (*Outpoint) ProtoMessage() {}
func (*Outpoint) Descriptor() ([]byte, []int) { func (*Outpoint) Descriptor() ([]byte, []int) {
return fileDescriptor_chainnotifier_7f5a7ad17988064c, []int{4} return fileDescriptor_b10e6f8a1c9d2638, []int{4}
} }
func (m *Outpoint) XXX_Unmarshal(b []byte) error { func (m *Outpoint) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Outpoint.Unmarshal(m, b) return xxx_messageInfo_Outpoint.Unmarshal(m, b)
} }
func (m *Outpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *Outpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Outpoint.Marshal(b, m, deterministic) return xxx_messageInfo_Outpoint.Marshal(b, m, deterministic)
} }
func (dst *Outpoint) XXX_Merge(src proto.Message) { func (m *Outpoint) XXX_Merge(src proto.Message) {
xxx_messageInfo_Outpoint.Merge(dst, src) xxx_messageInfo_Outpoint.Merge(m, src)
} }
func (m *Outpoint) XXX_Size() int { func (m *Outpoint) XXX_Size() int {
return xxx_messageInfo_Outpoint.Size(m) return xxx_messageInfo_Outpoint.Size(m)
@ -392,19 +330,19 @@ func (m *Outpoint) GetIndex() uint32 {
type SpendRequest struct { type SpendRequest struct {
// //
// The outpoint for which we should request a spend notification for. If set to //The outpoint for which we should request a spend notification for. If set to
// a zero outpoint, then the spend notification will be requested for the //a zero outpoint, then the spend notification will be requested for the
// script instead. //script instead.
Outpoint *Outpoint `protobuf:"bytes,1,opt,name=outpoint,proto3" json:"outpoint,omitempty"` Outpoint *Outpoint `protobuf:"bytes,1,opt,name=outpoint,proto3" json:"outpoint,omitempty"`
// //
// The output script for the outpoint above. This will be used by light clients //The output script for the outpoint above. This will be used by light clients
// to match block filters. If the outpoint is set to a zero outpoint, then a //to match block filters. If the outpoint is set to a zero outpoint, then a
// spend notification will be requested for this script instead. //spend notification will be requested for this script instead.
Script []byte `protobuf:"bytes,2,opt,name=script,proto3" json:"script,omitempty"` Script []byte `protobuf:"bytes,2,opt,name=script,proto3" json:"script,omitempty"`
// //
// The earliest height in the chain for which the outpoint/output script could //The earliest height in the chain for which the outpoint/output script could
// have been spent. This should in most cases be set to the broadcast height of //have been spent. This should in most cases be set to the broadcast height of
// the outpoint/output script. //the outpoint/output script.
HeightHint uint32 `protobuf:"varint,3,opt,name=height_hint,json=heightHint,proto3" json:"height_hint,omitempty"` HeightHint uint32 `protobuf:"varint,3,opt,name=height_hint,json=heightHint,proto3" json:"height_hint,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -415,16 +353,17 @@ func (m *SpendRequest) Reset() { *m = SpendRequest{} }
func (m *SpendRequest) String() string { return proto.CompactTextString(m) } func (m *SpendRequest) String() string { return proto.CompactTextString(m) }
func (*SpendRequest) ProtoMessage() {} func (*SpendRequest) ProtoMessage() {}
func (*SpendRequest) Descriptor() ([]byte, []int) { func (*SpendRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_chainnotifier_7f5a7ad17988064c, []int{5} return fileDescriptor_b10e6f8a1c9d2638, []int{5}
} }
func (m *SpendRequest) XXX_Unmarshal(b []byte) error { func (m *SpendRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SpendRequest.Unmarshal(m, b) return xxx_messageInfo_SpendRequest.Unmarshal(m, b)
} }
func (m *SpendRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *SpendRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SpendRequest.Marshal(b, m, deterministic) return xxx_messageInfo_SpendRequest.Marshal(b, m, deterministic)
} }
func (dst *SpendRequest) XXX_Merge(src proto.Message) { func (m *SpendRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SpendRequest.Merge(dst, src) xxx_messageInfo_SpendRequest.Merge(m, src)
} }
func (m *SpendRequest) XXX_Size() int { func (m *SpendRequest) XXX_Size() int {
return xxx_messageInfo_SpendRequest.Size(m) return xxx_messageInfo_SpendRequest.Size(m)
@ -476,16 +415,17 @@ func (m *SpendDetails) Reset() { *m = SpendDetails{} }
func (m *SpendDetails) String() string { return proto.CompactTextString(m) } func (m *SpendDetails) String() string { return proto.CompactTextString(m) }
func (*SpendDetails) ProtoMessage() {} func (*SpendDetails) ProtoMessage() {}
func (*SpendDetails) Descriptor() ([]byte, []int) { func (*SpendDetails) Descriptor() ([]byte, []int) {
return fileDescriptor_chainnotifier_7f5a7ad17988064c, []int{6} return fileDescriptor_b10e6f8a1c9d2638, []int{6}
} }
func (m *SpendDetails) XXX_Unmarshal(b []byte) error { func (m *SpendDetails) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SpendDetails.Unmarshal(m, b) return xxx_messageInfo_SpendDetails.Unmarshal(m, b)
} }
func (m *SpendDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *SpendDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SpendDetails.Marshal(b, m, deterministic) return xxx_messageInfo_SpendDetails.Marshal(b, m, deterministic)
} }
func (dst *SpendDetails) XXX_Merge(src proto.Message) { func (m *SpendDetails) XXX_Merge(src proto.Message) {
xxx_messageInfo_SpendDetails.Merge(dst, src) xxx_messageInfo_SpendDetails.Merge(m, src)
} }
func (m *SpendDetails) XXX_Size() int { func (m *SpendDetails) XXX_Size() int {
return xxx_messageInfo_SpendDetails.Size(m) return xxx_messageInfo_SpendDetails.Size(m)
@ -545,16 +485,17 @@ func (m *SpendEvent) Reset() { *m = SpendEvent{} }
func (m *SpendEvent) String() string { return proto.CompactTextString(m) } func (m *SpendEvent) String() string { return proto.CompactTextString(m) }
func (*SpendEvent) ProtoMessage() {} func (*SpendEvent) ProtoMessage() {}
func (*SpendEvent) Descriptor() ([]byte, []int) { func (*SpendEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_chainnotifier_7f5a7ad17988064c, []int{7} return fileDescriptor_b10e6f8a1c9d2638, []int{7}
} }
func (m *SpendEvent) XXX_Unmarshal(b []byte) error { func (m *SpendEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SpendEvent.Unmarshal(m, b) return xxx_messageInfo_SpendEvent.Unmarshal(m, b)
} }
func (m *SpendEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *SpendEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SpendEvent.Marshal(b, m, deterministic) return xxx_messageInfo_SpendEvent.Marshal(b, m, deterministic)
} }
func (dst *SpendEvent) XXX_Merge(src proto.Message) { func (m *SpendEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_SpendEvent.Merge(dst, src) xxx_messageInfo_SpendEvent.Merge(m, src)
} }
func (m *SpendEvent) XXX_Size() int { func (m *SpendEvent) XXX_Size() int {
return xxx_messageInfo_SpendEvent.Size(m) return xxx_messageInfo_SpendEvent.Size(m)
@ -602,80 +543,14 @@ func (m *SpendEvent) GetReorg() *Reorg {
return nil return nil
} }
// XXX_OneofFuncs is for the internal use of the proto package. // XXX_OneofWrappers is for the internal use of the proto package.
func (*SpendEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { func (*SpendEvent) XXX_OneofWrappers() []interface{} {
return _SpendEvent_OneofMarshaler, _SpendEvent_OneofUnmarshaler, _SpendEvent_OneofSizer, []interface{}{ return []interface{}{
(*SpendEvent_Spend)(nil), (*SpendEvent_Spend)(nil),
(*SpendEvent_Reorg)(nil), (*SpendEvent_Reorg)(nil),
} }
} }
func _SpendEvent_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*SpendEvent)
// event
switch x := m.Event.(type) {
case *SpendEvent_Spend:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Spend); err != nil {
return err
}
case *SpendEvent_Reorg:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Reorg); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("SpendEvent.Event has unexpected type %T", x)
}
return nil
}
func _SpendEvent_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*SpendEvent)
switch tag {
case 1: // event.spend
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(SpendDetails)
err := b.DecodeMessage(msg)
m.Event = &SpendEvent_Spend{msg}
return true, err
case 2: // event.reorg
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(Reorg)
err := b.DecodeMessage(msg)
m.Event = &SpendEvent_Reorg{msg}
return true, err
default:
return false, nil
}
}
func _SpendEvent_OneofSizer(msg proto.Message) (n int) {
m := msg.(*SpendEvent)
// event
switch x := m.Event.(type) {
case *SpendEvent_Spend:
s := proto.Size(x.Spend)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *SpendEvent_Reorg:
s := proto.Size(x.Reorg)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
type BlockEpoch struct { type BlockEpoch struct {
// The hash of the block. // The hash of the block.
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
@ -690,16 +565,17 @@ func (m *BlockEpoch) Reset() { *m = BlockEpoch{} }
func (m *BlockEpoch) String() string { return proto.CompactTextString(m) } func (m *BlockEpoch) String() string { return proto.CompactTextString(m) }
func (*BlockEpoch) ProtoMessage() {} func (*BlockEpoch) ProtoMessage() {}
func (*BlockEpoch) Descriptor() ([]byte, []int) { func (*BlockEpoch) Descriptor() ([]byte, []int) {
return fileDescriptor_chainnotifier_7f5a7ad17988064c, []int{8} return fileDescriptor_b10e6f8a1c9d2638, []int{8}
} }
func (m *BlockEpoch) XXX_Unmarshal(b []byte) error { func (m *BlockEpoch) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BlockEpoch.Unmarshal(m, b) return xxx_messageInfo_BlockEpoch.Unmarshal(m, b)
} }
func (m *BlockEpoch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *BlockEpoch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlockEpoch.Marshal(b, m, deterministic) return xxx_messageInfo_BlockEpoch.Marshal(b, m, deterministic)
} }
func (dst *BlockEpoch) XXX_Merge(src proto.Message) { func (m *BlockEpoch) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlockEpoch.Merge(dst, src) xxx_messageInfo_BlockEpoch.Merge(m, src)
} }
func (m *BlockEpoch) XXX_Size() int { func (m *BlockEpoch) XXX_Size() int {
return xxx_messageInfo_BlockEpoch.Size(m) return xxx_messageInfo_BlockEpoch.Size(m)
@ -736,6 +612,48 @@ func init() {
proto.RegisterType((*BlockEpoch)(nil), "chainrpc.BlockEpoch") proto.RegisterType((*BlockEpoch)(nil), "chainrpc.BlockEpoch")
} }
func init() { proto.RegisterFile("chainrpc/chainnotifier.proto", fileDescriptor_b10e6f8a1c9d2638) }
var fileDescriptor_b10e6f8a1c9d2638 = []byte{
// 574 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x4f, 0x6f, 0x13, 0x3f,
0x10, 0xed, 0xb6, 0xdd, 0xfc, 0x99, 0x24, 0xbf, 0xb4, 0xfe, 0xa5, 0x51, 0x5a, 0x40, 0x94, 0x3d,
0xd0, 0x48, 0x48, 0x21, 0x0a, 0x1c, 0xb8, 0x21, 0x35, 0x14, 0x25, 0x97, 0x22, 0x6d, 0x7b, 0x5f,
0x6d, 0x37, 0x4e, 0xd6, 0xd0, 0xd8, 0x8b, 0xed, 0x90, 0xbd, 0xf2, 0x69, 0xf9, 0x12, 0x1c, 0x90,
0x67, 0xed, 0x4d, 0x1a, 0x8a, 0x84, 0xb8, 0x79, 0x66, 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 0x8d, 0x01, 0xf8, 0x38, 0xb7,
0xfb, 0x76, 0x37, 0xfb, 0x6e, 0x3f, 0x91, 0x31, 0x1d, 0x61, 0xff, 0x90, 0x8e, 0x77, 0x00, 0x97,
0x26, 0xbc, 0x57, 0x99, 0x48, 0xd2, 0x47, 0xf3, 0xd1, 0x85, 0x8a, 0x55, 0x5c, 0x04, 0xc4, 0x56,
0xa3, 0x1f, 0x1e, 0xb4, 0xc6, 0x86, 0xfe, 0xda, 0xfe, 0xd6, 0xc9, 0x14, 0x4e, 0x43, 0xba, 0x60,
0x4a, 0x53, 0x69, 0xa2, 0xcb, 0xe4, 0x32, 0xd6, 0x4c, 0x70, 0x75, 0xad, 0xe7, 0x9c, 0xec, 0xe4,
0xda, 0xe6, 0xea, 0xec, 0xff, 0x87, 0x6d, 0x5c, 0x7b, 0xe8, 0x91, 0x31, 0x1c, 0x3b, 0x2a, 0xdc,
0x14, 0x29, 0x76, 0xd7, 0x77, 0x1c, 0x9d, 0x9d, 0xbe, 0x23, 0xf9, 0x08, 0x5d, 0x47, 0xb2, 0xd9,
0x11, 0x99, 0xb6, 0xbe, 0xd8, 0x4c, 0xce, 0x1e, 0xed, 0x0e, 0xbd, 0xbb, 0x0a, 0xfe, 0x89, 0xbd,
0xf9, 0x15, 0x00, 0x00, 0xff, 0xff, 0x65, 0xe6, 0xc2, 0xe4, 0xe4, 0x04, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
var _ context.Context var _ context.Context
var _ grpc.ClientConn var _ grpc.ClientConn
@ -749,32 +667,32 @@ 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. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ChainNotifierClient interface { type ChainNotifierClient interface {
// //
// RegisterConfirmationsNtfn is a synchronous response-streaming RPC that //RegisterConfirmationsNtfn is a synchronous response-streaming RPC that
// registers an intent for a client to be notified once a confirmation request //registers an intent for a client to be notified once a confirmation request
// has reached its required number of confirmations on-chain. //has reached its required number of confirmations on-chain.
// //
// A client can specify whether the confirmation request should be for a //A client can specify whether the confirmation request should be for a
// particular transaction by its hash or for an output script by specifying a //particular transaction by its hash or for an output script by specifying a
// zero hash. //zero hash.
RegisterConfirmationsNtfn(ctx context.Context, in *ConfRequest, opts ...grpc.CallOption) (ChainNotifier_RegisterConfirmationsNtfnClient, error) RegisterConfirmationsNtfn(ctx context.Context, in *ConfRequest, opts ...grpc.CallOption) (ChainNotifier_RegisterConfirmationsNtfnClient, error)
// //
// RegisterSpendNtfn is a synchronous response-streaming RPC that registers an //RegisterSpendNtfn is a synchronous response-streaming RPC that registers an
// intent for a client to be notification once a spend request has been spent //intent for a client to be notification once a spend request has been spent
// by a transaction that has confirmed on-chain. //by a transaction that has confirmed on-chain.
// //
// A client can specify whether the spend request should be for a particular //A client can specify whether the spend request should be for a particular
// outpoint or for an output script by specifying a zero outpoint. //outpoint or for an output script by specifying a zero outpoint.
RegisterSpendNtfn(ctx context.Context, in *SpendRequest, opts ...grpc.CallOption) (ChainNotifier_RegisterSpendNtfnClient, error) RegisterSpendNtfn(ctx context.Context, in *SpendRequest, opts ...grpc.CallOption) (ChainNotifier_RegisterSpendNtfnClient, error)
// //
// RegisterBlockEpochNtfn is a synchronous response-streaming RPC that //RegisterBlockEpochNtfn is a synchronous response-streaming RPC that
// registers an intent for a client to be notified of blocks in the chain. The //registers an intent for a client to be notified of blocks in the chain. The
// stream will return a hash and height tuple of a block for each new/stale //stream will return a hash and height tuple of a block for each new/stale
// block in the chain. It is the client's responsibility to determine whether //block in the chain. It is the client's responsibility to determine whether
// the tuple returned is for a new or stale block in the chain. //the tuple returned is for a new or stale block in the chain.
// //
// A client can also request a historical backlog of blocks from a particular //A client can also request a historical backlog of blocks from a particular
// point. This allows clients to be idempotent by ensuring that they do not //point. This allows clients to be idempotent by ensuring that they do not
// missing processing a single block within the chain. //missing processing a single block within the chain.
RegisterBlockEpochNtfn(ctx context.Context, in *BlockEpoch, opts ...grpc.CallOption) (ChainNotifier_RegisterBlockEpochNtfnClient, error) RegisterBlockEpochNtfn(ctx context.Context, in *BlockEpoch, opts ...grpc.CallOption) (ChainNotifier_RegisterBlockEpochNtfnClient, error)
} }
@ -885,32 +803,32 @@ func (x *chainNotifierRegisterBlockEpochNtfnClient) Recv() (*BlockEpoch, error)
// ChainNotifierServer is the server API for ChainNotifier service. // ChainNotifierServer is the server API for ChainNotifier service.
type ChainNotifierServer interface { type ChainNotifierServer interface {
// //
// RegisterConfirmationsNtfn is a synchronous response-streaming RPC that //RegisterConfirmationsNtfn is a synchronous response-streaming RPC that
// registers an intent for a client to be notified once a confirmation request //registers an intent for a client to be notified once a confirmation request
// has reached its required number of confirmations on-chain. //has reached its required number of confirmations on-chain.
// //
// A client can specify whether the confirmation request should be for a //A client can specify whether the confirmation request should be for a
// particular transaction by its hash or for an output script by specifying a //particular transaction by its hash or for an output script by specifying a
// zero hash. //zero hash.
RegisterConfirmationsNtfn(*ConfRequest, ChainNotifier_RegisterConfirmationsNtfnServer) error RegisterConfirmationsNtfn(*ConfRequest, ChainNotifier_RegisterConfirmationsNtfnServer) error
// //
// RegisterSpendNtfn is a synchronous response-streaming RPC that registers an //RegisterSpendNtfn is a synchronous response-streaming RPC that registers an
// intent for a client to be notification once a spend request has been spent //intent for a client to be notification once a spend request has been spent
// by a transaction that has confirmed on-chain. //by a transaction that has confirmed on-chain.
// //
// A client can specify whether the spend request should be for a particular //A client can specify whether the spend request should be for a particular
// outpoint or for an output script by specifying a zero outpoint. //outpoint or for an output script by specifying a zero outpoint.
RegisterSpendNtfn(*SpendRequest, ChainNotifier_RegisterSpendNtfnServer) error RegisterSpendNtfn(*SpendRequest, ChainNotifier_RegisterSpendNtfnServer) error
// //
// RegisterBlockEpochNtfn is a synchronous response-streaming RPC that //RegisterBlockEpochNtfn is a synchronous response-streaming RPC that
// registers an intent for a client to be notified of blocks in the chain. The //registers an intent for a client to be notified of blocks in the chain. The
// stream will return a hash and height tuple of a block for each new/stale //stream will return a hash and height tuple of a block for each new/stale
// block in the chain. It is the client's responsibility to determine whether //block in the chain. It is the client's responsibility to determine whether
// the tuple returned is for a new or stale block in the chain. //the tuple returned is for a new or stale block in the chain.
// //
// A client can also request a historical backlog of blocks from a particular //A client can also request a historical backlog of blocks from a particular
// point. This allows clients to be idempotent by ensuring that they do not //point. This allows clients to be idempotent by ensuring that they do not
// missing processing a single block within the chain. //missing processing a single block within the chain.
RegisterBlockEpochNtfn(*BlockEpoch, ChainNotifier_RegisterBlockEpochNtfnServer) error RegisterBlockEpochNtfn(*BlockEpoch, ChainNotifier_RegisterBlockEpochNtfnServer) error
} }
@ -1004,47 +922,3 @@ var _ChainNotifier_serviceDesc = grpc.ServiceDesc{
}, },
Metadata: "chainrpc/chainnotifier.proto", Metadata: "chainrpc/chainnotifier.proto",
} }
func init() {
proto.RegisterFile("chainrpc/chainnotifier.proto", fileDescriptor_chainnotifier_7f5a7ad17988064c)
}
var fileDescriptor_chainnotifier_7f5a7ad17988064c = []byte{
// 574 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x4f, 0x6f, 0x13, 0x3f,
0x10, 0xed, 0xb6, 0xdd, 0xfc, 0x99, 0x24, 0xbf, 0xb4, 0xfe, 0xa5, 0x51, 0x5a, 0x40, 0x94, 0x3d,
0xd0, 0x48, 0x48, 0x21, 0x0a, 0x1c, 0xb8, 0x21, 0x35, 0x14, 0x25, 0x97, 0x22, 0x6d, 0x7b, 0x5f,
0x6d, 0x37, 0x4e, 0xd6, 0xd0, 0xd8, 0x8b, 0xed, 0x90, 0xbd, 0xf2, 0x69, 0xf9, 0x12, 0x1c, 0x90,
0x67, 0xed, 0x4d, 0x1a, 0x8a, 0x84, 0xb8, 0x79, 0x66,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, 0x8d, 0x01, 0xf8, 0x38, 0xb7,
0xfb, 0x76, 0x37, 0xfb, 0x6e, 0x3f, 0x91, 0x31, 0x1d, 0x61, 0xff, 0x90, 0x8e, 0x77, 0x00, 0x97,
0x26, 0xbc, 0x57, 0x99, 0x48, 0xd2, 0x47, 0xf3, 0xd1, 0x85, 0x8a, 0x55, 0x5c, 0x04, 0xc4, 0x56,
0xa3, 0x1f, 0x1e, 0xb4, 0xc6, 0x86, 0xfe, 0xda, 0xfe, 0xd6, 0xc9, 0x14, 0x4e, 0x43, 0xba, 0x60,
0x4a, 0x53, 0x69, 0xa2, 0xcb, 0xe4, 0x32, 0xd6, 0x4c, 0x70, 0x75, 0xad, 0xe7, 0x9c, 0xec, 0xe4,
0xda, 0xe6, 0xea, 0xec, 0xff, 0x87, 0x6d, 0x5c, 0x7b, 0xe8, 0x91, 0x31, 0x1c, 0x3b, 0x2a, 0xdc,
0x14, 0x29, 0x76, 0xd7, 0x77, 0x1c, 0x9d, 0x9d, 0xbe, 0x23, 0xf9, 0x08, 0x5d, 0x47, 0xb2, 0xd9,
0x11, 0x99, 0xb6, 0xbe, 0xd8, 0x4c, 0xce, 0x1e, 0xed, 0x0e, 0xbd, 0xbb, 0x0a, 0xfe, 0x89, 0xbd,
0xf9, 0x15, 0x00, 0x00, 0xff, 0xff, 0x65, 0xe6, 0xc2, 0xe4, 0xe4, 0x04, 0x00, 0x00,
}

@ -1,17 +1,16 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: invoicesrpc/invoices.proto // source: invoicesrpc/invoices.proto
package invoicesrpc // import "github.com/lightningnetwork/lnd/lnrpc/invoicesrpc" package invoicesrpc
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import lnrpc "github.com/lightningnetwork/lnd/lnrpc"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import ( import (
context "golang.org/x/net/context" context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
lnrpc "github.com/lightningnetwork/lnd/lnrpc"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc" grpc "google.golang.org/grpc"
math "math"
) )
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
@ -23,10 +22,10 @@ var _ = math.Inf
// is compatible with the proto package it is being compiled against. // is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the // A compilation error at this line likely means your copy of the
// proto package needs to be updated. // proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type CancelInvoiceMsg struct { 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"` PaymentHash []byte `protobuf:"bytes,1,opt,name=payment_hash,json=paymentHash,proto3" json:"payment_hash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -37,16 +36,17 @@ func (m *CancelInvoiceMsg) Reset() { *m = CancelInvoiceMsg{} }
func (m *CancelInvoiceMsg) String() string { return proto.CompactTextString(m) } func (m *CancelInvoiceMsg) String() string { return proto.CompactTextString(m) }
func (*CancelInvoiceMsg) ProtoMessage() {} func (*CancelInvoiceMsg) ProtoMessage() {}
func (*CancelInvoiceMsg) Descriptor() ([]byte, []int) { func (*CancelInvoiceMsg) Descriptor() ([]byte, []int) {
return fileDescriptor_invoices_bb85468a9582e4cb, []int{0} return fileDescriptor_090ab9c4958b987d, []int{0}
} }
func (m *CancelInvoiceMsg) XXX_Unmarshal(b []byte) error { func (m *CancelInvoiceMsg) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CancelInvoiceMsg.Unmarshal(m, b) return xxx_messageInfo_CancelInvoiceMsg.Unmarshal(m, b)
} }
func (m *CancelInvoiceMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CancelInvoiceMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CancelInvoiceMsg.Marshal(b, m, deterministic) return xxx_messageInfo_CancelInvoiceMsg.Marshal(b, m, deterministic)
} }
func (dst *CancelInvoiceMsg) XXX_Merge(src proto.Message) { func (m *CancelInvoiceMsg) XXX_Merge(src proto.Message) {
xxx_messageInfo_CancelInvoiceMsg.Merge(dst, src) xxx_messageInfo_CancelInvoiceMsg.Merge(m, src)
} }
func (m *CancelInvoiceMsg) XXX_Size() int { func (m *CancelInvoiceMsg) XXX_Size() int {
return xxx_messageInfo_CancelInvoiceMsg.Size(m) return xxx_messageInfo_CancelInvoiceMsg.Size(m)
@ -74,16 +74,17 @@ func (m *CancelInvoiceResp) Reset() { *m = CancelInvoiceResp{} }
func (m *CancelInvoiceResp) String() string { return proto.CompactTextString(m) } func (m *CancelInvoiceResp) String() string { return proto.CompactTextString(m) }
func (*CancelInvoiceResp) ProtoMessage() {} func (*CancelInvoiceResp) ProtoMessage() {}
func (*CancelInvoiceResp) Descriptor() ([]byte, []int) { func (*CancelInvoiceResp) Descriptor() ([]byte, []int) {
return fileDescriptor_invoices_bb85468a9582e4cb, []int{1} return fileDescriptor_090ab9c4958b987d, []int{1}
} }
func (m *CancelInvoiceResp) XXX_Unmarshal(b []byte) error { func (m *CancelInvoiceResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CancelInvoiceResp.Unmarshal(m, b) return xxx_messageInfo_CancelInvoiceResp.Unmarshal(m, b)
} }
func (m *CancelInvoiceResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CancelInvoiceResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CancelInvoiceResp.Marshal(b, m, deterministic) return xxx_messageInfo_CancelInvoiceResp.Marshal(b, m, deterministic)
} }
func (dst *CancelInvoiceResp) XXX_Merge(src proto.Message) { func (m *CancelInvoiceResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_CancelInvoiceResp.Merge(dst, src) xxx_messageInfo_CancelInvoiceResp.Merge(m, src)
} }
func (m *CancelInvoiceResp) XXX_Size() int { func (m *CancelInvoiceResp) XXX_Size() int {
return xxx_messageInfo_CancelInvoiceResp.Size(m) return xxx_messageInfo_CancelInvoiceResp.Size(m)
@ -95,32 +96,32 @@ func (m *CancelInvoiceResp) XXX_DiscardUnknown() {
var xxx_messageInfo_CancelInvoiceResp proto.InternalMessageInfo var xxx_messageInfo_CancelInvoiceResp proto.InternalMessageInfo
type AddHoldInvoiceRequest struct { type AddHoldInvoiceRequest struct {
// * //*
// An optional memo to attach along with the invoice. Used for record keeping //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 //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 //field of the encoded payment request if the description_hash field is not
// being used. //being used.
Memo string `protobuf:"bytes,1,opt,name=memo,proto3" json:"memo,omitempty"` 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"` Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
// / The value of this invoice in satoshis /// The value of this invoice in satoshis
Value int64 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"` Value int64 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"`
// * //*
// Hash (SHA-256) of a description of the payment. Used if the description of //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 //payment (memo) is too long to naturally fit within the description field
// of an encoded payment request. //of an encoded payment request.
DescriptionHash []byte `protobuf:"bytes,4,opt,name=description_hash,proto3" json:"description_hash,omitempty"` DescriptionHash []byte `protobuf:"bytes,4,opt,name=description_hash,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"` 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,proto3" json:"fallback_addr,omitempty"` FallbackAddr string `protobuf:"bytes,6,opt,name=fallback_addr,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,proto3" json:"cltv_expiry,omitempty"` CltvExpiry uint64 `protobuf:"varint,7,opt,name=cltv_expiry,proto3" json:"cltv_expiry,omitempty"`
// * //*
// Route hints that can each be individually used to assist in reaching the //Route hints that can each be individually used to assist in reaching the
// invoice's destination. //invoice's destination.
RouteHints []*lnrpc.RouteHint `protobuf:"bytes,8,rep,name=route_hints,proto3" json:"route_hints,omitempty"` RouteHints []*lnrpc.RouteHint `protobuf:"bytes,8,rep,name=route_hints,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"` Private bool `protobuf:"varint,9,opt,name=private,proto3" json:"private,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -131,16 +132,17 @@ func (m *AddHoldInvoiceRequest) Reset() { *m = AddHoldInvoiceRequest{} }
func (m *AddHoldInvoiceRequest) String() string { return proto.CompactTextString(m) } func (m *AddHoldInvoiceRequest) String() string { return proto.CompactTextString(m) }
func (*AddHoldInvoiceRequest) ProtoMessage() {} func (*AddHoldInvoiceRequest) ProtoMessage() {}
func (*AddHoldInvoiceRequest) Descriptor() ([]byte, []int) { func (*AddHoldInvoiceRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_invoices_bb85468a9582e4cb, []int{2} return fileDescriptor_090ab9c4958b987d, []int{2}
} }
func (m *AddHoldInvoiceRequest) XXX_Unmarshal(b []byte) error { func (m *AddHoldInvoiceRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AddHoldInvoiceRequest.Unmarshal(m, b) return xxx_messageInfo_AddHoldInvoiceRequest.Unmarshal(m, b)
} }
func (m *AddHoldInvoiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *AddHoldInvoiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AddHoldInvoiceRequest.Marshal(b, m, deterministic) return xxx_messageInfo_AddHoldInvoiceRequest.Marshal(b, m, deterministic)
} }
func (dst *AddHoldInvoiceRequest) XXX_Merge(src proto.Message) { func (m *AddHoldInvoiceRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_AddHoldInvoiceRequest.Merge(dst, src) xxx_messageInfo_AddHoldInvoiceRequest.Merge(m, src)
} }
func (m *AddHoldInvoiceRequest) XXX_Size() int { func (m *AddHoldInvoiceRequest) XXX_Size() int {
return xxx_messageInfo_AddHoldInvoiceRequest.Size(m) return xxx_messageInfo_AddHoldInvoiceRequest.Size(m)
@ -215,10 +217,10 @@ func (m *AddHoldInvoiceRequest) GetPrivate() bool {
} }
type AddHoldInvoiceResp struct { type AddHoldInvoiceResp struct {
// * //*
// A bare-bones invoice for a payment within the Lightning Network. With the //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 //details of the invoice, the sender has all the data necessary to send a
// payment to the recipient. //payment to the recipient.
PaymentRequest string `protobuf:"bytes,1,opt,name=payment_request,proto3" json:"payment_request,omitempty"` PaymentRequest string `protobuf:"bytes,1,opt,name=payment_request,proto3" json:"payment_request,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -229,16 +231,17 @@ func (m *AddHoldInvoiceResp) Reset() { *m = AddHoldInvoiceResp{} }
func (m *AddHoldInvoiceResp) String() string { return proto.CompactTextString(m) } func (m *AddHoldInvoiceResp) String() string { return proto.CompactTextString(m) }
func (*AddHoldInvoiceResp) ProtoMessage() {} func (*AddHoldInvoiceResp) ProtoMessage() {}
func (*AddHoldInvoiceResp) Descriptor() ([]byte, []int) { func (*AddHoldInvoiceResp) Descriptor() ([]byte, []int) {
return fileDescriptor_invoices_bb85468a9582e4cb, []int{3} return fileDescriptor_090ab9c4958b987d, []int{3}
} }
func (m *AddHoldInvoiceResp) XXX_Unmarshal(b []byte) error { func (m *AddHoldInvoiceResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AddHoldInvoiceResp.Unmarshal(m, b) return xxx_messageInfo_AddHoldInvoiceResp.Unmarshal(m, b)
} }
func (m *AddHoldInvoiceResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *AddHoldInvoiceResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AddHoldInvoiceResp.Marshal(b, m, deterministic) return xxx_messageInfo_AddHoldInvoiceResp.Marshal(b, m, deterministic)
} }
func (dst *AddHoldInvoiceResp) XXX_Merge(src proto.Message) { func (m *AddHoldInvoiceResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_AddHoldInvoiceResp.Merge(dst, src) xxx_messageInfo_AddHoldInvoiceResp.Merge(m, src)
} }
func (m *AddHoldInvoiceResp) XXX_Size() int { func (m *AddHoldInvoiceResp) XXX_Size() int {
return xxx_messageInfo_AddHoldInvoiceResp.Size(m) return xxx_messageInfo_AddHoldInvoiceResp.Size(m)
@ -257,7 +260,7 @@ func (m *AddHoldInvoiceResp) GetPaymentRequest() string {
} }
type SettleInvoiceMsg struct { 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"` Preimage []byte `protobuf:"bytes,1,opt,name=preimage,proto3" json:"preimage,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -268,16 +271,17 @@ func (m *SettleInvoiceMsg) Reset() { *m = SettleInvoiceMsg{} }
func (m *SettleInvoiceMsg) String() string { return proto.CompactTextString(m) } func (m *SettleInvoiceMsg) String() string { return proto.CompactTextString(m) }
func (*SettleInvoiceMsg) ProtoMessage() {} func (*SettleInvoiceMsg) ProtoMessage() {}
func (*SettleInvoiceMsg) Descriptor() ([]byte, []int) { func (*SettleInvoiceMsg) Descriptor() ([]byte, []int) {
return fileDescriptor_invoices_bb85468a9582e4cb, []int{4} return fileDescriptor_090ab9c4958b987d, []int{4}
} }
func (m *SettleInvoiceMsg) XXX_Unmarshal(b []byte) error { func (m *SettleInvoiceMsg) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SettleInvoiceMsg.Unmarshal(m, b) return xxx_messageInfo_SettleInvoiceMsg.Unmarshal(m, b)
} }
func (m *SettleInvoiceMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *SettleInvoiceMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SettleInvoiceMsg.Marshal(b, m, deterministic) return xxx_messageInfo_SettleInvoiceMsg.Marshal(b, m, deterministic)
} }
func (dst *SettleInvoiceMsg) XXX_Merge(src proto.Message) { func (m *SettleInvoiceMsg) XXX_Merge(src proto.Message) {
xxx_messageInfo_SettleInvoiceMsg.Merge(dst, src) xxx_messageInfo_SettleInvoiceMsg.Merge(m, src)
} }
func (m *SettleInvoiceMsg) XXX_Size() int { func (m *SettleInvoiceMsg) XXX_Size() int {
return xxx_messageInfo_SettleInvoiceMsg.Size(m) return xxx_messageInfo_SettleInvoiceMsg.Size(m)
@ -305,16 +309,17 @@ func (m *SettleInvoiceResp) Reset() { *m = SettleInvoiceResp{} }
func (m *SettleInvoiceResp) String() string { return proto.CompactTextString(m) } func (m *SettleInvoiceResp) String() string { return proto.CompactTextString(m) }
func (*SettleInvoiceResp) ProtoMessage() {} func (*SettleInvoiceResp) ProtoMessage() {}
func (*SettleInvoiceResp) Descriptor() ([]byte, []int) { func (*SettleInvoiceResp) Descriptor() ([]byte, []int) {
return fileDescriptor_invoices_bb85468a9582e4cb, []int{5} return fileDescriptor_090ab9c4958b987d, []int{5}
} }
func (m *SettleInvoiceResp) XXX_Unmarshal(b []byte) error { func (m *SettleInvoiceResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SettleInvoiceResp.Unmarshal(m, b) return xxx_messageInfo_SettleInvoiceResp.Unmarshal(m, b)
} }
func (m *SettleInvoiceResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *SettleInvoiceResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SettleInvoiceResp.Marshal(b, m, deterministic) return xxx_messageInfo_SettleInvoiceResp.Marshal(b, m, deterministic)
} }
func (dst *SettleInvoiceResp) XXX_Merge(src proto.Message) { func (m *SettleInvoiceResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_SettleInvoiceResp.Merge(dst, src) xxx_messageInfo_SettleInvoiceResp.Merge(m, src)
} }
func (m *SettleInvoiceResp) XXX_Size() int { func (m *SettleInvoiceResp) XXX_Size() int {
return xxx_messageInfo_SettleInvoiceResp.Size(m) return xxx_messageInfo_SettleInvoiceResp.Size(m)
@ -326,7 +331,7 @@ func (m *SettleInvoiceResp) XXX_DiscardUnknown() {
var xxx_messageInfo_SettleInvoiceResp proto.InternalMessageInfo var xxx_messageInfo_SettleInvoiceResp proto.InternalMessageInfo
type SubscribeSingleInvoiceRequest struct { 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,proto3" json:"r_hash,omitempty"` RHash []byte `protobuf:"bytes,2,opt,name=r_hash,proto3" json:"r_hash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -337,16 +342,17 @@ func (m *SubscribeSingleInvoiceRequest) Reset() { *m = SubscribeSingleIn
func (m *SubscribeSingleInvoiceRequest) String() string { return proto.CompactTextString(m) } func (m *SubscribeSingleInvoiceRequest) String() string { return proto.CompactTextString(m) }
func (*SubscribeSingleInvoiceRequest) ProtoMessage() {} func (*SubscribeSingleInvoiceRequest) ProtoMessage() {}
func (*SubscribeSingleInvoiceRequest) Descriptor() ([]byte, []int) { func (*SubscribeSingleInvoiceRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_invoices_bb85468a9582e4cb, []int{6} return fileDescriptor_090ab9c4958b987d, []int{6}
} }
func (m *SubscribeSingleInvoiceRequest) XXX_Unmarshal(b []byte) error { func (m *SubscribeSingleInvoiceRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SubscribeSingleInvoiceRequest.Unmarshal(m, b) return xxx_messageInfo_SubscribeSingleInvoiceRequest.Unmarshal(m, b)
} }
func (m *SubscribeSingleInvoiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *SubscribeSingleInvoiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SubscribeSingleInvoiceRequest.Marshal(b, m, deterministic) return xxx_messageInfo_SubscribeSingleInvoiceRequest.Marshal(b, m, deterministic)
} }
func (dst *SubscribeSingleInvoiceRequest) XXX_Merge(src proto.Message) { func (m *SubscribeSingleInvoiceRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SubscribeSingleInvoiceRequest.Merge(dst, src) xxx_messageInfo_SubscribeSingleInvoiceRequest.Merge(m, src)
} }
func (m *SubscribeSingleInvoiceRequest) XXX_Size() int { func (m *SubscribeSingleInvoiceRequest) XXX_Size() int {
return xxx_messageInfo_SubscribeSingleInvoiceRequest.Size(m) return xxx_messageInfo_SubscribeSingleInvoiceRequest.Size(m)
@ -374,6 +380,44 @@ func init() {
proto.RegisterType((*SubscribeSingleInvoiceRequest)(nil), "invoicesrpc.SubscribeSingleInvoiceRequest") proto.RegisterType((*SubscribeSingleInvoiceRequest)(nil), "invoicesrpc.SubscribeSingleInvoiceRequest")
} }
func init() { proto.RegisterFile("invoicesrpc/invoices.proto", fileDescriptor_090ab9c4958b987d) }
var fileDescriptor_090ab9c4958b987d = []byte{
// 509 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x53, 0x41, 0x6f, 0xd3, 0x4c,
0x10, 0x95, 0x93, 0x34, 0x4d, 0x26, 0x6d, 0xbf, 0x7c, 0x0b, 0x44, 0x96, 0x45, 0xc1, 0x58, 0x1c,
0xac, 0x1e, 0x6c, 0x48, 0xc5, 0x11, 0x24, 0xe0, 0x12, 0x90, 0xe0, 0xe0, 0x08, 0x0e, 0x5c, 0xa2,
0x8d, 0xbd, 0xd8, 0xab, 0x6e, 0x76, 0x97, 0xdd, 0x75, 0xa0, 0xbf, 0x8a, 0xdf, 0xc3, 0xbf, 0x41,
0x5e, 0x3b, 0x95, 0xed, 0x96, 0xde, 0x66, 0xde, 0xcc, 0x3c, 0x8f, 0xdf, 0x9b, 0x05, 0x8f, 0xf2,
0xbd, 0xa0, 0x29, 0xd1, 0x4a, 0xa6, 0xf1, 0x21, 0x8e, 0xa4, 0x12, 0x46, 0xa0, 0x59, 0xab, 0xe6,
0x3d, 0xce, 0x85, 0xc8, 0x19, 0x89, 0xb1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, 0x8c, 0xe6, 0x85, 0xe1, 0x94, 0xe7, 0x9c, 0x98, 0x9f,
0x42, 0x5d, 0xc5, 0x8c, 0x67, 0xb1, 0x55, 0x2a, 0x6e, 0xd1, 0x6c, 0xc7, 0xf6, 0x65, 0x5f, 0xfe,
0x0d, 0x00, 0x00, 0xff, 0xff, 0xf7, 0x5f, 0xe2, 0x9a, 0x2d, 0x04, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
var _ context.Context var _ context.Context
var _ grpc.ClientConn var _ grpc.ClientConn
@ -386,23 +430,23 @@ 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. // 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 { type InvoicesClient interface {
// * //*
// SubscribeSingleInvoice returns a uni-directional stream (server -> client) //SubscribeSingleInvoice returns a uni-directional stream (server -> client)
// to notify the client of state transitions of the specified invoice. //to notify the client of state transitions of the specified invoice.
// Initially the current invoice state is always sent out. //Initially the current invoice state is always sent out.
SubscribeSingleInvoice(ctx context.Context, in *SubscribeSingleInvoiceRequest, opts ...grpc.CallOption) (Invoices_SubscribeSingleInvoiceClient, error) SubscribeSingleInvoice(ctx context.Context, in *SubscribeSingleInvoiceRequest, opts ...grpc.CallOption) (Invoices_SubscribeSingleInvoiceClient, error)
// * //*
// CancelInvoice cancels a currently open invoice. If the invoice is already //CancelInvoice cancels a currently open invoice. If the invoice is already
// canceled, this call will succeed. If the invoice is already settled, it will //canceled, this call will succeed. If the invoice is already settled, it will
// fail. //fail.
CancelInvoice(ctx context.Context, in *CancelInvoiceMsg, opts ...grpc.CallOption) (*CancelInvoiceResp, error) CancelInvoice(ctx context.Context, in *CancelInvoiceMsg, opts ...grpc.CallOption) (*CancelInvoiceResp, error)
// * //*
// AddHoldInvoice creates a hold invoice. It ties the invoice to the hash //AddHoldInvoice creates a hold invoice. It ties the invoice to the hash
// supplied in the request. //supplied in the request.
AddHoldInvoice(ctx context.Context, in *AddHoldInvoiceRequest, opts ...grpc.CallOption) (*AddHoldInvoiceResp, error) AddHoldInvoice(ctx context.Context, in *AddHoldInvoiceRequest, opts ...grpc.CallOption) (*AddHoldInvoiceResp, error)
// * //*
// SettleInvoice settles an accepted invoice. If the invoice is already //SettleInvoice settles an accepted invoice. If the invoice is already
// settled, this call will succeed. //settled, this call will succeed.
SettleInvoice(ctx context.Context, in *SettleInvoiceMsg, opts ...grpc.CallOption) (*SettleInvoiceResp, error) SettleInvoice(ctx context.Context, in *SettleInvoiceMsg, opts ...grpc.CallOption) (*SettleInvoiceResp, error)
} }
@ -475,23 +519,23 @@ func (c *invoicesClient) SettleInvoice(ctx context.Context, in *SettleInvoiceMsg
// InvoicesServer is the server API for Invoices service. // InvoicesServer is the server API for Invoices service.
type InvoicesServer interface { type InvoicesServer interface {
// * //*
// SubscribeSingleInvoice returns a uni-directional stream (server -> client) //SubscribeSingleInvoice returns a uni-directional stream (server -> client)
// to notify the client of state transitions of the specified invoice. //to notify the client of state transitions of the specified invoice.
// Initially the current invoice state is always sent out. //Initially the current invoice state is always sent out.
SubscribeSingleInvoice(*SubscribeSingleInvoiceRequest, Invoices_SubscribeSingleInvoiceServer) error SubscribeSingleInvoice(*SubscribeSingleInvoiceRequest, Invoices_SubscribeSingleInvoiceServer) error
// * //*
// CancelInvoice cancels a currently open invoice. If the invoice is already //CancelInvoice cancels a currently open invoice. If the invoice is already
// canceled, this call will succeed. If the invoice is already settled, it will //canceled, this call will succeed. If the invoice is already settled, it will
// fail. //fail.
CancelInvoice(context.Context, *CancelInvoiceMsg) (*CancelInvoiceResp, error) CancelInvoice(context.Context, *CancelInvoiceMsg) (*CancelInvoiceResp, error)
// * //*
// AddHoldInvoice creates a hold invoice. It ties the invoice to the hash //AddHoldInvoice creates a hold invoice. It ties the invoice to the hash
// supplied in the request. //supplied in the request.
AddHoldInvoice(context.Context, *AddHoldInvoiceRequest) (*AddHoldInvoiceResp, error) AddHoldInvoice(context.Context, *AddHoldInvoiceRequest) (*AddHoldInvoiceResp, error)
// * //*
// SettleInvoice settles an accepted invoice. If the invoice is already //SettleInvoice settles an accepted invoice. If the invoice is already
// settled, this call will succeed. //settled, this call will succeed.
SettleInvoice(context.Context, *SettleInvoiceMsg) (*SettleInvoiceResp, error) SettleInvoice(context.Context, *SettleInvoiceMsg) (*SettleInvoiceResp, error)
} }
@ -600,43 +644,3 @@ var _Invoices_serviceDesc = grpc.ServiceDesc{
}, },
Metadata: "invoicesrpc/invoices.proto", Metadata: "invoicesrpc/invoices.proto",
} }
func init() {
proto.RegisterFile("invoicesrpc/invoices.proto", fileDescriptor_invoices_bb85468a9582e4cb)
}
var fileDescriptor_invoices_bb85468a9582e4cb = []byte{
// 509 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x53, 0x41, 0x6f, 0xd3, 0x4c,
0x10, 0x95, 0x93, 0x34, 0x4d, 0x26, 0x6d, 0xbf, 0x7c, 0x0b, 0x44, 0x96, 0x45, 0xc1, 0x58, 0x1c,
0xac, 0x1e, 0x6c, 0x48, 0xc5, 0x11, 0x24, 0xe0, 0x12, 0x90, 0xe0, 0xe0, 0x08, 0x0e, 0x5c, 0xa2,
0x8d, 0xbd, 0xd8, 0xab, 0x6e, 0x76, 0x97, 0xdd, 0x75, 0xa0, 0xbf, 0x8a, 0xdf, 0xc3, 0xbf, 0x41,
0x5e, 0x3b, 0x95, 0xed, 0x96, 0xde, 0x66, 0xde, 0xcc, 0x3c, 0x8f, 0xdf, 0x9b, 0x05, 0x8f, 0xf2,
0xbd, 0xa0, 0x29, 0xd1, 0x4a, 0xa6, 0xf1, 0x21, 0x8e, 0xa4, 0x12, 0x46, 0xa0, 0x59, 0xab, 0xe6,
0x3d, 0xce, 0x85, 0x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, 0xa9, 0xd8, 0xc5, 0x8c, 0xe6, 0x85, 0xe1, 0x94, 0xe7, 0x9c, 0x98, 0x9f,
0x42, 0x5d, 0xc5, 0x8c, 0x67, 0xb1, 0x55, 0x2a, 0x6e, 0xd1, 0x6c, 0xc7, 0xf6, 0x65, 0x5f, 0xfe,
0x0d, 0x00, 0x00, 0xff, 0xff, 0xf7, 0x5f, 0xe2, 0x9a, 0x2d, 0x04, 0x00, 0x00,
}

@ -1,16 +1,15 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: routerrpc/router.proto // source: routerrpc/router.proto
package routerrpc // import "github.com/lightningnetwork/lnd/lnrpc/routerrpc" package routerrpc
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import lnrpc "github.com/lightningnetwork/lnd/lnrpc"
import ( import (
context "golang.org/x/net/context" context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
lnrpc "github.com/lightningnetwork/lnd/lnrpc"
grpc "google.golang.org/grpc" grpc "google.golang.org/grpc"
math "math"
) )
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
@ -22,15 +21,15 @@ var _ = math.Inf
// is compatible with the proto package it is being compiled against. // is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the // A compilation error at this line likely means your copy of the
// proto package needs to be updated. // proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type Failure_FailureCode int32 type Failure_FailureCode int32
const ( const (
// * //*
// The numbers assigned in this enumeration match the failure codes as //The numbers assigned in this enumeration match the failure codes as
// defined in BOLT #4. Because protobuf 3 requires enums to start with 0, //defined in BOLT #4. Because protobuf 3 requires enums to start with 0,
// a RESERVED value is added. //a RESERVED value is added.
Failure_RESERVED Failure_FailureCode = 0 Failure_RESERVED Failure_FailureCode = 0
Failure_UNKNOWN_PAYMENT_HASH Failure_FailureCode = 1 Failure_UNKNOWN_PAYMENT_HASH Failure_FailureCode = 1
Failure_INCORRECT_PAYMENT_AMOUNT Failure_FailureCode = 2 Failure_INCORRECT_PAYMENT_AMOUNT Failure_FailureCode = 2
@ -79,6 +78,7 @@ var Failure_FailureCode_name = map[int32]string{
20: "PERMANENT_NODE_FAILURE", 20: "PERMANENT_NODE_FAILURE",
21: "PERMANENT_CHANNEL_FAILURE", 21: "PERMANENT_CHANNEL_FAILURE",
} }
var Failure_FailureCode_value = map[string]int32{ var Failure_FailureCode_value = map[string]int32{
"RESERVED": 0, "RESERVED": 0,
"UNKNOWN_PAYMENT_HASH": 1, "UNKNOWN_PAYMENT_HASH": 1,
@ -107,36 +107,37 @@ var Failure_FailureCode_value = map[string]int32{
func (x Failure_FailureCode) String() string { func (x Failure_FailureCode) String() string {
return proto.EnumName(Failure_FailureCode_name, int32(x)) return proto.EnumName(Failure_FailureCode_name, int32(x))
} }
func (Failure_FailureCode) EnumDescriptor() ([]byte, []int) { func (Failure_FailureCode) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_router_111acc30110a7cf6, []int{6, 0} return fileDescriptor_7a0613f69d37b0a5, []int{6, 0}
} }
type PaymentRequest struct { type PaymentRequest struct {
// * //*
// A serialized BOLT-11 payment request that contains all information //A serialized BOLT-11 payment request that contains all information
// required to dispatch the payment. If the pay req is invalid, or expired, //required to dispatch the payment. If the pay req is invalid, or expired,
// an error will be returned. //an error will be returned.
PayReq string `protobuf:"bytes,1,opt,name=pay_req,json=payReq,proto3" json:"pay_req,omitempty"` PayReq string `protobuf:"bytes,1,opt,name=pay_req,json=payReq,proto3" json:"pay_req,omitempty"`
// * //*
// An absolute limit on the highest fee we should pay when looking for a route //An absolute limit on the highest fee we should pay when looking for a route
// to the destination. Routes with fees higher than this will be ignored, if //to the destination. Routes with fees higher than this will be ignored, if
// there are no routes with a fee below this amount, an error will be //there are no routes with a fee below this amount, an error will be
// returned. //returned.
FeeLimitSat int64 `protobuf:"varint,2,opt,name=fee_limit_sat,json=feeLimitSat,proto3" json:"fee_limit_sat,omitempty"` FeeLimitSat int64 `protobuf:"varint,2,opt,name=fee_limit_sat,json=feeLimitSat,proto3" json:"fee_limit_sat,omitempty"`
// * //*
// An absolute limit on the cumulative CLTV value along the route for this //An absolute limit on the cumulative CLTV value along the route for this
// payment. Routes with total CLTV values higher than this will be ignored, //payment. Routes with total CLTV values higher than this will be ignored,
// if there are no routes with a CLTV value below this amount, an error will //if there are no routes with a CLTV value below this amount, an error will
// be returned. //be returned.
CltvLimit int32 `protobuf:"varint,3,opt,name=cltv_limit,json=cltvLimit,proto3" json:"cltv_limit,omitempty"` CltvLimit int32 `protobuf:"varint,3,opt,name=cltv_limit,json=cltvLimit,proto3" json:"cltv_limit,omitempty"`
// * //*
// An upper limit on the amount of time we should spend when attempting to //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 //fulfill the payment. This is expressed in seconds. If we cannot make a
// successful payment within this time frame, an error will be returned. //successful payment within this time frame, an error will be returned.
TimeoutSeconds int32 `protobuf:"varint,4,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"` TimeoutSeconds int32 `protobuf:"varint,4,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"`
// * //*
// The channel id of the channel that must be taken to the first hop. If zero, //The channel id of the channel that must be taken to the first hop. If zero,
// any channel may be used. //any channel may be used.
OutgoingChannelId int64 `protobuf:"varint,5,opt,name=outgoing_channel_id,json=outgoingChannelId,proto3" json:"outgoing_channel_id,omitempty"` OutgoingChannelId int64 `protobuf:"varint,5,opt,name=outgoing_channel_id,json=outgoingChannelId,proto3" json:"outgoing_channel_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -147,16 +148,17 @@ func (m *PaymentRequest) Reset() { *m = PaymentRequest{} }
func (m *PaymentRequest) String() string { return proto.CompactTextString(m) } func (m *PaymentRequest) String() string { return proto.CompactTextString(m) }
func (*PaymentRequest) ProtoMessage() {} func (*PaymentRequest) ProtoMessage() {}
func (*PaymentRequest) Descriptor() ([]byte, []int) { func (*PaymentRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_router_111acc30110a7cf6, []int{0} return fileDescriptor_7a0613f69d37b0a5, []int{0}
} }
func (m *PaymentRequest) XXX_Unmarshal(b []byte) error { func (m *PaymentRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PaymentRequest.Unmarshal(m, b) return xxx_messageInfo_PaymentRequest.Unmarshal(m, b)
} }
func (m *PaymentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *PaymentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PaymentRequest.Marshal(b, m, deterministic) return xxx_messageInfo_PaymentRequest.Marshal(b, m, deterministic)
} }
func (dst *PaymentRequest) XXX_Merge(src proto.Message) { func (m *PaymentRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PaymentRequest.Merge(dst, src) xxx_messageInfo_PaymentRequest.Merge(m, src)
} }
func (m *PaymentRequest) XXX_Size() int { func (m *PaymentRequest) XXX_Size() int {
return xxx_messageInfo_PaymentRequest.Size(m) return xxx_messageInfo_PaymentRequest.Size(m)
@ -203,15 +205,15 @@ func (m *PaymentRequest) GetOutgoingChannelId() int64 {
} }
type PaymentResponse struct { type PaymentResponse struct {
// * //*
// The payment hash that we paid to. Provided so callers are able to map //The payment hash that we paid to. Provided so callers are able to map
// responses (which may be streaming) back to their original requests. //responses (which may be streaming) back to their original requests.
PayHash []byte `protobuf:"bytes,1,opt,name=pay_hash,json=payHash,proto3" json:"pay_hash,omitempty"` PayHash []byte `protobuf:"bytes,1,opt,name=pay_hash,json=payHash,proto3" json:"pay_hash,omitempty"`
// * //*
// The pre-image of the payment successfully completed. //The pre-image of the payment successfully completed.
PreImage []byte `protobuf:"bytes,2,opt,name=pre_image,json=preImage,proto3" json:"pre_image,omitempty"` PreImage []byte `protobuf:"bytes,2,opt,name=pre_image,json=preImage,proto3" json:"pre_image,omitempty"`
// * //*
// If not an empty string, then a string representation of the payment error. //If not an empty string, then a string representation of the payment error.
PaymentErr string `protobuf:"bytes,3,opt,name=payment_err,json=paymentErr,proto3" json:"payment_err,omitempty"` PaymentErr string `protobuf:"bytes,3,opt,name=payment_err,json=paymentErr,proto3" json:"payment_err,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -222,16 +224,17 @@ func (m *PaymentResponse) Reset() { *m = PaymentResponse{} }
func (m *PaymentResponse) String() string { return proto.CompactTextString(m) } func (m *PaymentResponse) String() string { return proto.CompactTextString(m) }
func (*PaymentResponse) ProtoMessage() {} func (*PaymentResponse) ProtoMessage() {}
func (*PaymentResponse) Descriptor() ([]byte, []int) { func (*PaymentResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_router_111acc30110a7cf6, []int{1} return fileDescriptor_7a0613f69d37b0a5, []int{1}
} }
func (m *PaymentResponse) XXX_Unmarshal(b []byte) error { func (m *PaymentResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PaymentResponse.Unmarshal(m, b) return xxx_messageInfo_PaymentResponse.Unmarshal(m, b)
} }
func (m *PaymentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *PaymentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PaymentResponse.Marshal(b, m, deterministic) return xxx_messageInfo_PaymentResponse.Marshal(b, m, deterministic)
} }
func (dst *PaymentResponse) XXX_Merge(src proto.Message) { func (m *PaymentResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_PaymentResponse.Merge(dst, src) xxx_messageInfo_PaymentResponse.Merge(m, src)
} }
func (m *PaymentResponse) XXX_Size() int { func (m *PaymentResponse) XXX_Size() int {
return xxx_messageInfo_PaymentResponse.Size(m) return xxx_messageInfo_PaymentResponse.Size(m)
@ -264,11 +267,11 @@ func (m *PaymentResponse) GetPaymentErr() string {
} }
type RouteFeeRequest struct { type RouteFeeRequest struct {
// * //*
// The destination once wishes to obtain a routing fee quote to. //The destination once wishes to obtain a routing fee quote to.
Dest []byte `protobuf:"bytes,1,opt,name=dest,proto3" json:"dest,omitempty"` Dest []byte `protobuf:"bytes,1,opt,name=dest,proto3" json:"dest,omitempty"`
// * //*
// The amount one wishes to send to the target destination. //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"` AmtSat int64 `protobuf:"varint,2,opt,name=amt_sat,json=amtSat,proto3" json:"amt_sat,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -279,16 +282,17 @@ func (m *RouteFeeRequest) Reset() { *m = RouteFeeRequest{} }
func (m *RouteFeeRequest) String() string { return proto.CompactTextString(m) } func (m *RouteFeeRequest) String() string { return proto.CompactTextString(m) }
func (*RouteFeeRequest) ProtoMessage() {} func (*RouteFeeRequest) ProtoMessage() {}
func (*RouteFeeRequest) Descriptor() ([]byte, []int) { func (*RouteFeeRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_router_111acc30110a7cf6, []int{2} return fileDescriptor_7a0613f69d37b0a5, []int{2}
} }
func (m *RouteFeeRequest) XXX_Unmarshal(b []byte) error { func (m *RouteFeeRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RouteFeeRequest.Unmarshal(m, b) return xxx_messageInfo_RouteFeeRequest.Unmarshal(m, b)
} }
func (m *RouteFeeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *RouteFeeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RouteFeeRequest.Marshal(b, m, deterministic) return xxx_messageInfo_RouteFeeRequest.Marshal(b, m, deterministic)
} }
func (dst *RouteFeeRequest) XXX_Merge(src proto.Message) { func (m *RouteFeeRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_RouteFeeRequest.Merge(dst, src) xxx_messageInfo_RouteFeeRequest.Merge(m, src)
} }
func (m *RouteFeeRequest) XXX_Size() int { func (m *RouteFeeRequest) XXX_Size() int {
return xxx_messageInfo_RouteFeeRequest.Size(m) return xxx_messageInfo_RouteFeeRequest.Size(m)
@ -314,14 +318,14 @@ func (m *RouteFeeRequest) GetAmtSat() int64 {
} }
type RouteFeeResponse struct { type RouteFeeResponse struct {
// * //*
// A lower bound of the estimated fee to the target destination within the //A lower bound of the estimated fee to the target destination within the
// network, expressed in milli-satoshis. //network, expressed in milli-satoshis.
RoutingFeeMsat int64 `protobuf:"varint,1,opt,name=routing_fee_msat,json=routingFeeMsat,proto3" json:"routing_fee_msat,omitempty"` 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 //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 //will still need to factor in the final CLTV delta of the last hop into this
// value. //value.
TimeLockDelay int64 `protobuf:"varint,2,opt,name=time_lock_delay,json=timeLockDelay,proto3" json:"time_lock_delay,omitempty"` TimeLockDelay int64 `protobuf:"varint,2,opt,name=time_lock_delay,json=timeLockDelay,proto3" json:"time_lock_delay,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -332,16 +336,17 @@ func (m *RouteFeeResponse) Reset() { *m = RouteFeeResponse{} }
func (m *RouteFeeResponse) String() string { return proto.CompactTextString(m) } func (m *RouteFeeResponse) String() string { return proto.CompactTextString(m) }
func (*RouteFeeResponse) ProtoMessage() {} func (*RouteFeeResponse) ProtoMessage() {}
func (*RouteFeeResponse) Descriptor() ([]byte, []int) { func (*RouteFeeResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_router_111acc30110a7cf6, []int{3} return fileDescriptor_7a0613f69d37b0a5, []int{3}
} }
func (m *RouteFeeResponse) XXX_Unmarshal(b []byte) error { func (m *RouteFeeResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RouteFeeResponse.Unmarshal(m, b) return xxx_messageInfo_RouteFeeResponse.Unmarshal(m, b)
} }
func (m *RouteFeeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *RouteFeeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RouteFeeResponse.Marshal(b, m, deterministic) return xxx_messageInfo_RouteFeeResponse.Marshal(b, m, deterministic)
} }
func (dst *RouteFeeResponse) XXX_Merge(src proto.Message) { func (m *RouteFeeResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_RouteFeeResponse.Merge(dst, src) xxx_messageInfo_RouteFeeResponse.Merge(m, src)
} }
func (m *RouteFeeResponse) XXX_Size() int { func (m *RouteFeeResponse) XXX_Size() int {
return xxx_messageInfo_RouteFeeResponse.Size(m) return xxx_messageInfo_RouteFeeResponse.Size(m)
@ -367,9 +372,9 @@ func (m *RouteFeeResponse) GetTimeLockDelay() int64 {
} }
type SendToRouteRequest struct { 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"` 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"` Route *lnrpc.Route `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -380,16 +385,17 @@ func (m *SendToRouteRequest) Reset() { *m = SendToRouteRequest{} }
func (m *SendToRouteRequest) String() string { return proto.CompactTextString(m) } func (m *SendToRouteRequest) String() string { return proto.CompactTextString(m) }
func (*SendToRouteRequest) ProtoMessage() {} func (*SendToRouteRequest) ProtoMessage() {}
func (*SendToRouteRequest) Descriptor() ([]byte, []int) { func (*SendToRouteRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_router_111acc30110a7cf6, []int{4} return fileDescriptor_7a0613f69d37b0a5, []int{4}
} }
func (m *SendToRouteRequest) XXX_Unmarshal(b []byte) error { func (m *SendToRouteRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SendToRouteRequest.Unmarshal(m, b) return xxx_messageInfo_SendToRouteRequest.Unmarshal(m, b)
} }
func (m *SendToRouteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *SendToRouteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SendToRouteRequest.Marshal(b, m, deterministic) return xxx_messageInfo_SendToRouteRequest.Marshal(b, m, deterministic)
} }
func (dst *SendToRouteRequest) XXX_Merge(src proto.Message) { func (m *SendToRouteRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SendToRouteRequest.Merge(dst, src) xxx_messageInfo_SendToRouteRequest.Merge(m, src)
} }
func (m *SendToRouteRequest) XXX_Size() int { func (m *SendToRouteRequest) XXX_Size() int {
return xxx_messageInfo_SendToRouteRequest.Size(m) return xxx_messageInfo_SendToRouteRequest.Size(m)
@ -415,9 +421,9 @@ func (m *SendToRouteRequest) GetRoute() *lnrpc.Route {
} }
type SendToRouteResponse struct { 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"` 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 *Failure `protobuf:"bytes,2,opt,name=failure,proto3" json:"failure,omitempty"` Failure *Failure `protobuf:"bytes,2,opt,name=failure,proto3" json:"failure,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -428,16 +434,17 @@ func (m *SendToRouteResponse) Reset() { *m = SendToRouteResponse{} }
func (m *SendToRouteResponse) String() string { return proto.CompactTextString(m) } func (m *SendToRouteResponse) String() string { return proto.CompactTextString(m) }
func (*SendToRouteResponse) ProtoMessage() {} func (*SendToRouteResponse) ProtoMessage() {}
func (*SendToRouteResponse) Descriptor() ([]byte, []int) { func (*SendToRouteResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_router_111acc30110a7cf6, []int{5} return fileDescriptor_7a0613f69d37b0a5, []int{5}
} }
func (m *SendToRouteResponse) XXX_Unmarshal(b []byte) error { func (m *SendToRouteResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SendToRouteResponse.Unmarshal(m, b) return xxx_messageInfo_SendToRouteResponse.Unmarshal(m, b)
} }
func (m *SendToRouteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *SendToRouteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SendToRouteResponse.Marshal(b, m, deterministic) return xxx_messageInfo_SendToRouteResponse.Marshal(b, m, deterministic)
} }
func (dst *SendToRouteResponse) XXX_Merge(src proto.Message) { func (m *SendToRouteResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SendToRouteResponse.Merge(dst, src) xxx_messageInfo_SendToRouteResponse.Merge(m, src)
} }
func (m *SendToRouteResponse) XXX_Size() int { func (m *SendToRouteResponse) XXX_Size() int {
return xxx_messageInfo_SendToRouteResponse.Size(m) return xxx_messageInfo_SendToRouteResponse.Size(m)
@ -463,21 +470,21 @@ func (m *SendToRouteResponse) GetFailure() *Failure {
} }
type Failure struct { type Failure struct {
// / Failure code as defined in the Lightning spec /// Failure code as defined in the Lightning spec
Code Failure_FailureCode `protobuf:"varint,1,opt,name=code,proto3,enum=routerrpc.Failure_FailureCode" json:"code,omitempty"` Code Failure_FailureCode `protobuf:"varint,1,opt,name=code,proto3,enum=routerrpc.Failure_FailureCode" json:"code,omitempty"`
// * //*
// The node pubkey of the intermediate or final node that generated the failure //The node pubkey of the intermediate or final node that generated the failure
// message. //message.
FailureSourcePubkey []byte `protobuf:"bytes,2,opt,name=failure_source_pubkey,json=failureSourcePubkey,proto3" json:"failure_source_pubkey,omitempty"` FailureSourcePubkey []byte `protobuf:"bytes,2,opt,name=failure_source_pubkey,json=failureSourcePubkey,proto3" json:"failure_source_pubkey,omitempty"`
// / An optional channel update message. /// An optional channel update message.
ChannelUpdate *ChannelUpdate `protobuf:"bytes,3,opt,name=channel_update,json=channelUpdate,proto3" json:"channel_update,omitempty"` ChannelUpdate *ChannelUpdate `protobuf:"bytes,3,opt,name=channel_update,json=channelUpdate,proto3" json:"channel_update,omitempty"`
// / A failure type-dependent htlc value. /// A failure type-dependent htlc value.
HtlcMsat uint64 `protobuf:"varint,4,opt,name=htlc_msat,json=htlcMsat,proto3" json:"htlc_msat,omitempty"` HtlcMsat uint64 `protobuf:"varint,4,opt,name=htlc_msat,json=htlcMsat,proto3" json:"htlc_msat,omitempty"`
// / The sha256 sum of the onion payload. /// The sha256 sum of the onion payload.
OnionSha_256 []byte `protobuf:"bytes,5,opt,name=onion_sha_256,json=onionSha256,proto3" json:"onion_sha_256,omitempty"` OnionSha_256 []byte `protobuf:"bytes,5,opt,name=onion_sha_256,json=onionSha256,proto3" json:"onion_sha_256,omitempty"`
// / A failure type-dependent cltv expiry value. /// A failure type-dependent cltv expiry value.
CltvExpiry uint32 `protobuf:"varint,6,opt,name=cltv_expiry,json=cltvExpiry,proto3" json:"cltv_expiry,omitempty"` CltvExpiry uint32 `protobuf:"varint,6,opt,name=cltv_expiry,json=cltvExpiry,proto3" json:"cltv_expiry,omitempty"`
// / A failure type-dependent flags value. /// A failure type-dependent flags value.
Flags uint32 `protobuf:"varint,7,opt,name=flags,proto3" json:"flags,omitempty"` Flags uint32 `protobuf:"varint,7,opt,name=flags,proto3" json:"flags,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -488,16 +495,17 @@ func (m *Failure) Reset() { *m = Failure{} }
func (m *Failure) String() string { return proto.CompactTextString(m) } func (m *Failure) String() string { return proto.CompactTextString(m) }
func (*Failure) ProtoMessage() {} func (*Failure) ProtoMessage() {}
func (*Failure) Descriptor() ([]byte, []int) { func (*Failure) Descriptor() ([]byte, []int) {
return fileDescriptor_router_111acc30110a7cf6, []int{6} return fileDescriptor_7a0613f69d37b0a5, []int{6}
} }
func (m *Failure) XXX_Unmarshal(b []byte) error { func (m *Failure) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Failure.Unmarshal(m, b) return xxx_messageInfo_Failure.Unmarshal(m, b)
} }
func (m *Failure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *Failure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Failure.Marshal(b, m, deterministic) return xxx_messageInfo_Failure.Marshal(b, m, deterministic)
} }
func (dst *Failure) XXX_Merge(src proto.Message) { func (m *Failure) XXX_Merge(src proto.Message) {
xxx_messageInfo_Failure.Merge(dst, src) xxx_messageInfo_Failure.Merge(m, src)
} }
func (m *Failure) XXX_Size() int { func (m *Failure) XXX_Size() int {
return xxx_messageInfo_Failure.Size(m) return xxx_messageInfo_Failure.Size(m)
@ -603,16 +611,17 @@ func (m *ChannelUpdate) Reset() { *m = ChannelUpdate{} }
func (m *ChannelUpdate) String() string { return proto.CompactTextString(m) } func (m *ChannelUpdate) String() string { return proto.CompactTextString(m) }
func (*ChannelUpdate) ProtoMessage() {} func (*ChannelUpdate) ProtoMessage() {}
func (*ChannelUpdate) Descriptor() ([]byte, []int) { func (*ChannelUpdate) Descriptor() ([]byte, []int) {
return fileDescriptor_router_111acc30110a7cf6, []int{7} return fileDescriptor_7a0613f69d37b0a5, []int{7}
} }
func (m *ChannelUpdate) XXX_Unmarshal(b []byte) error { func (m *ChannelUpdate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ChannelUpdate.Unmarshal(m, b) return xxx_messageInfo_ChannelUpdate.Unmarshal(m, b)
} }
func (m *ChannelUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ChannelUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ChannelUpdate.Marshal(b, m, deterministic) return xxx_messageInfo_ChannelUpdate.Marshal(b, m, deterministic)
} }
func (dst *ChannelUpdate) XXX_Merge(src proto.Message) { func (m *ChannelUpdate) XXX_Merge(src proto.Message) {
xxx_messageInfo_ChannelUpdate.Merge(dst, src) xxx_messageInfo_ChannelUpdate.Merge(m, src)
} }
func (m *ChannelUpdate) XXX_Size() int { func (m *ChannelUpdate) XXX_Size() int {
return xxx_messageInfo_ChannelUpdate.Size(m) return xxx_messageInfo_ChannelUpdate.Size(m)
@ -687,6 +696,7 @@ func (m *ChannelUpdate) GetFeeRate() uint32 {
} }
func init() { func init() {
proto.RegisterEnum("routerrpc.Failure_FailureCode", Failure_FailureCode_name, Failure_FailureCode_value)
proto.RegisterType((*PaymentRequest)(nil), "routerrpc.PaymentRequest") proto.RegisterType((*PaymentRequest)(nil), "routerrpc.PaymentRequest")
proto.RegisterType((*PaymentResponse)(nil), "routerrpc.PaymentResponse") proto.RegisterType((*PaymentResponse)(nil), "routerrpc.PaymentResponse")
proto.RegisterType((*RouteFeeRequest)(nil), "routerrpc.RouteFeeRequest") proto.RegisterType((*RouteFeeRequest)(nil), "routerrpc.RouteFeeRequest")
@ -695,7 +705,86 @@ func init() {
proto.RegisterType((*SendToRouteResponse)(nil), "routerrpc.SendToRouteResponse") proto.RegisterType((*SendToRouteResponse)(nil), "routerrpc.SendToRouteResponse")
proto.RegisterType((*Failure)(nil), "routerrpc.Failure") proto.RegisterType((*Failure)(nil), "routerrpc.Failure")
proto.RegisterType((*ChannelUpdate)(nil), "routerrpc.ChannelUpdate") proto.RegisterType((*ChannelUpdate)(nil), "routerrpc.ChannelUpdate")
proto.RegisterEnum("routerrpc.Failure_FailureCode", Failure_FailureCode_name, Failure_FailureCode_value) }
func init() { proto.RegisterFile("routerrpc/router.proto", fileDescriptor_7a0613f69d37b0a5) }
var fileDescriptor_7a0613f69d37b0a5 = []byte{
// 1172 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x56, 0xdd, 0x72, 0x1a, 0x37,
0x14, 0x2e, 0xb1, 0xcd, 0xcf, 0x01, 0xec, 0xb5, 0x6c, 0x27, 0x98, 0xc4, 0x89, 0x43, 0x3b, 0xad,
0xa7, 0xd3, 0xb1, 0xa7, 0x74, 0x92, 0xcb, 0x76, 0x36, 0x20, 0xea, 0x9d, 0xc0, 0x2e, 0xd5, 0x82,
0x13, 0xb7, 0x17, 0x1a, 0x99, 0x95, 0x61, 0x6b, 0xf6, 0x27, 0xbb, 0xa2, 0xad, 0x5f, 0xa0, 0x0f,
0xd4, 0x77, 0xe8, 0x43, 0xf4, 0x11, 0xfa, 0x16, 0x1d, 0x49, 0xbb, 0x18, 0x6c, 0xf7, 0x8a, 0xd5,
0xf7, 0x1d, 0x7d, 0xd2, 0x39, 0x3a, 0x3f, 0xc0, 0xd3, 0x24, 0x5a, 0x08, 0x9e, 0x24, 0xf1, 0xe4,
0x4c, 0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6a, 0x0f, 0xa1, 0x7c, 0xc5, 0x52,
0x2e, 0x9b, 0x72, 0xa3, 0xac, 0xc4, 0x4a, 0x72, 0xdd, 0xe3, 0x6a, 0xbe, 0xc8, 0x56, 0x9d, 0xc8,
0x46, 0x51, 0xd1, 0xd4, 0x35, 0xe7, 0x84, 0x09, 0xde, 0xfe, 0xb7, 0x00, 0x45, 0xd5, 0x19, 0x13,
0xd4, 0x85, 0xaa, 0xec, 0x94, 0xd9, 0x70, 0x42, 0x87, 0x2b, 0xbd, 0x64, 0x7d, 0xee, 0x36, 0x9b,
0x8f, 0x51, 0x59, 0x63, 0x7d, 0x0f, 0x06, 0x4e, 0x85, 0x1f, 0xc8, 0xa6, 0x93, 0x8d, 0x0e, 0xb4,
0x6a, 0x7f, 0x6f, 0x1e, 0x35, 0x9f, 0x3f, 0xca, 0x65, 0x62, 0x7d, 0x7d, 0xa5, 0xac, 0x79, 0xa3,
0xa3, 0x15, 0xdb, 0x87, 0x13, 0xa3, 0xf9, 0xf2, 0xff, 0x68, 0xad, 0xf6, 0xee, 0xdb, 0x9f, 0xcf,
0xa6, 0xbe, 0x98, 0x2d, 0xae, 0x4e, 0x27, 0x51, 0x70, 0x36, 0xf7, 0xa7, 0x33, 0x11, 0xfa, 0xe1,
0x34, 0xe4, 0xe2, 0xf7, 0x28, 0xb9, 0x39, 0x9b, 0x87, 0xde, 0x99, 0x1a, 0x20, 0x67, 0x4b, 0x99,
0xab, 0xa2, 0xfa, 0xef, 0xf1, 0xdd, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x6d, 0x7d, 0x2a, 0xf5,
0xab, 0x08, 0x00, 0x00,
} }
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
@ -710,21 +799,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. // 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 { type RouterClient interface {
// * //*
// SendPayment attempts to route a payment described by the passed //SendPayment attempts to route a payment described by the passed
// PaymentRequest to the final destination. If we are unable to route the //PaymentRequest to the final destination. If we are unable to route the
// payment, or cannot find a route that satisfies the constraints in the //payment, or cannot find a route that satisfies the constraints in the
// PaymentRequest, then an error will be returned. Otherwise, the payment //PaymentRequest, then an error will be returned. Otherwise, the payment
// pre-image, along with the final route will be returned. //pre-image, along with the final route will be returned.
SendPayment(ctx context.Context, in *PaymentRequest, opts ...grpc.CallOption) (*PaymentResponse, error) SendPayment(ctx context.Context, in *PaymentRequest, opts ...grpc.CallOption) (*PaymentResponse, error)
// * //*
// EstimateRouteFee allows callers to obtain a lower bound w.r.t how much it //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. //may cost to send an HTLC to the target end destination.
EstimateRouteFee(ctx context.Context, in *RouteFeeRequest, opts ...grpc.CallOption) (*RouteFeeResponse, error) EstimateRouteFee(ctx context.Context, in *RouteFeeRequest, opts ...grpc.CallOption) (*RouteFeeResponse, error)
// * //*
// SendToRoute attempts to make a payment via the specified route. This method //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 //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. //manually. This can be used for things like rebalancing, and atomic swaps.
SendToRoute(ctx context.Context, in *SendToRouteRequest, opts ...grpc.CallOption) (*SendToRouteResponse, error) SendToRoute(ctx context.Context, in *SendToRouteRequest, opts ...grpc.CallOption) (*SendToRouteResponse, error)
} }
@ -765,21 +854,21 @@ func (c *routerClient) SendToRoute(ctx context.Context, in *SendToRouteRequest,
// RouterServer is the server API for Router service. // RouterServer is the server API for Router service.
type RouterServer interface { type RouterServer interface {
// * //*
// SendPayment attempts to route a payment described by the passed //SendPayment attempts to route a payment described by the passed
// PaymentRequest to the final destination. If we are unable to route the //PaymentRequest to the final destination. If we are unable to route the
// payment, or cannot find a route that satisfies the constraints in the //payment, or cannot find a route that satisfies the constraints in the
// PaymentRequest, then an error will be returned. Otherwise, the payment //PaymentRequest, then an error will be returned. Otherwise, the payment
// pre-image, along with the final route will be returned. //pre-image, along with the final route will be returned.
SendPayment(context.Context, *PaymentRequest) (*PaymentResponse, error) SendPayment(context.Context, *PaymentRequest) (*PaymentResponse, error)
// * //*
// EstimateRouteFee allows callers to obtain a lower bound w.r.t how much it //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. //may cost to send an HTLC to the target end destination.
EstimateRouteFee(context.Context, *RouteFeeRequest) (*RouteFeeResponse, error) EstimateRouteFee(context.Context, *RouteFeeRequest) (*RouteFeeResponse, error)
// * //*
// SendToRoute attempts to make a payment via the specified route. This method //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 //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. //manually. This can be used for things like rebalancing, and atomic swaps.
SendToRoute(context.Context, *SendToRouteRequest) (*SendToRouteResponse, error) SendToRoute(context.Context, *SendToRouteRequest) (*SendToRouteResponse, error)
} }
@ -861,83 +950,3 @@ var _Router_serviceDesc = grpc.ServiceDesc{
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "routerrpc/router.proto", Metadata: "routerrpc/router.proto",
} }
func init() { proto.RegisterFile("routerrpc/router.proto", fileDescriptor_router_111acc30110a7cf6) }
var fileDescriptor_router_111acc30110a7cf6 = []byte{
// 1172 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x56, 0xdd, 0x72, 0x1a, 0x37,
0x14, 0x2e, 0xb1, 0xcd, 0xcf, 0x01, 0xec, 0xb5, 0x6c, 0x27, 0x98, 0xc4, 0x89, 0x43, 0x3b, 0xad,
0xa7, 0xd3, 0xb1, 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7, 0x28, 0xb9, 0x39, 0x9b, 0x87, 0xde, 0x99, 0x1a, 0x20, 0x67, 0x4b, 0x99,
0xab, 0xa2, 0xfa, 0xef, 0xf1, 0xdd, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x6d, 0x7d, 0x2a, 0xf5,
0xab, 0x08, 0x00, 0x00,
}

File diff suppressed because it is too large Load Diff

@ -1,15 +1,14 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: signrpc/signer.proto // source: signrpc/signer.proto
package signrpc // import "github.com/lightningnetwork/lnd/lnrpc/signrpc" package signrpc
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import ( import (
context "golang.org/x/net/context" context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc" grpc "google.golang.org/grpc"
math "math"
) )
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
@ -21,12 +20,12 @@ var _ = math.Inf
// is compatible with the proto package it is being compiled against. // is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the // A compilation error at this line likely means your copy of the
// proto package needs to be updated. // proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type KeyLocator struct { 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"` 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"` KeyIndex int32 `protobuf:"varint,2,opt,name=key_index,json=keyIndex,proto3" json:"key_index,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -37,16 +36,17 @@ func (m *KeyLocator) Reset() { *m = KeyLocator{} }
func (m *KeyLocator) String() string { return proto.CompactTextString(m) } func (m *KeyLocator) String() string { return proto.CompactTextString(m) }
func (*KeyLocator) ProtoMessage() {} func (*KeyLocator) ProtoMessage() {}
func (*KeyLocator) Descriptor() ([]byte, []int) { func (*KeyLocator) Descriptor() ([]byte, []int) {
return fileDescriptor_signer_8dc402df3ea9a6a7, []int{0} return fileDescriptor_4ecd772f6c7ffacf, []int{0}
} }
func (m *KeyLocator) XXX_Unmarshal(b []byte) error { func (m *KeyLocator) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_KeyLocator.Unmarshal(m, b) return xxx_messageInfo_KeyLocator.Unmarshal(m, b)
} }
func (m *KeyLocator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *KeyLocator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_KeyLocator.Marshal(b, m, deterministic) return xxx_messageInfo_KeyLocator.Marshal(b, m, deterministic)
} }
func (dst *KeyLocator) XXX_Merge(src proto.Message) { func (m *KeyLocator) XXX_Merge(src proto.Message) {
xxx_messageInfo_KeyLocator.Merge(dst, src) xxx_messageInfo_KeyLocator.Merge(m, src)
} }
func (m *KeyLocator) XXX_Size() int { func (m *KeyLocator) XXX_Size() int {
return xxx_messageInfo_KeyLocator.Size(m) return xxx_messageInfo_KeyLocator.Size(m)
@ -72,13 +72,13 @@ func (m *KeyLocator) GetKeyIndex() int32 {
} }
type KeyDescriptor struct { type KeyDescriptor struct {
// * //*
// The raw bytes of the key being identified. Either this or the KeyLocator //The raw bytes of the key being identified. Either this or the KeyLocator
// must be specified. //must be specified.
RawKeyBytes []byte `protobuf:"bytes,1,opt,name=raw_key_bytes,json=rawKeyBytes,proto3" json:"raw_key_bytes,omitempty"` 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 //The key locator that identifies which key to use for signing. Either this
// or the raw bytes of the target key must be specified. //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"` KeyLoc *KeyLocator `protobuf:"bytes,2,opt,name=key_loc,json=keyLoc,proto3" json:"key_loc,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -89,16 +89,17 @@ func (m *KeyDescriptor) Reset() { *m = KeyDescriptor{} }
func (m *KeyDescriptor) String() string { return proto.CompactTextString(m) } func (m *KeyDescriptor) String() string { return proto.CompactTextString(m) }
func (*KeyDescriptor) ProtoMessage() {} func (*KeyDescriptor) ProtoMessage() {}
func (*KeyDescriptor) Descriptor() ([]byte, []int) { func (*KeyDescriptor) Descriptor() ([]byte, []int) {
return fileDescriptor_signer_8dc402df3ea9a6a7, []int{1} return fileDescriptor_4ecd772f6c7ffacf, []int{1}
} }
func (m *KeyDescriptor) XXX_Unmarshal(b []byte) error { func (m *KeyDescriptor) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_KeyDescriptor.Unmarshal(m, b) return xxx_messageInfo_KeyDescriptor.Unmarshal(m, b)
} }
func (m *KeyDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *KeyDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_KeyDescriptor.Marshal(b, m, deterministic) return xxx_messageInfo_KeyDescriptor.Marshal(b, m, deterministic)
} }
func (dst *KeyDescriptor) XXX_Merge(src proto.Message) { func (m *KeyDescriptor) XXX_Merge(src proto.Message) {
xxx_messageInfo_KeyDescriptor.Merge(dst, src) xxx_messageInfo_KeyDescriptor.Merge(m, src)
} }
func (m *KeyDescriptor) XXX_Size() int { func (m *KeyDescriptor) XXX_Size() int {
return xxx_messageInfo_KeyDescriptor.Size(m) return xxx_messageInfo_KeyDescriptor.Size(m)
@ -124,9 +125,9 @@ func (m *KeyDescriptor) GetKeyLoc() *KeyLocator {
} }
type TxOut struct { 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"` 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"` PkScript []byte `protobuf:"bytes,2,opt,name=pk_script,json=pkScript,proto3" json:"pk_script,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -137,16 +138,17 @@ func (m *TxOut) Reset() { *m = TxOut{} }
func (m *TxOut) String() string { return proto.CompactTextString(m) } func (m *TxOut) String() string { return proto.CompactTextString(m) }
func (*TxOut) ProtoMessage() {} func (*TxOut) ProtoMessage() {}
func (*TxOut) Descriptor() ([]byte, []int) { func (*TxOut) Descriptor() ([]byte, []int) {
return fileDescriptor_signer_8dc402df3ea9a6a7, []int{2} return fileDescriptor_4ecd772f6c7ffacf, []int{2}
} }
func (m *TxOut) XXX_Unmarshal(b []byte) error { func (m *TxOut) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TxOut.Unmarshal(m, b) return xxx_messageInfo_TxOut.Unmarshal(m, b)
} }
func (m *TxOut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *TxOut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TxOut.Marshal(b, m, deterministic) return xxx_messageInfo_TxOut.Marshal(b, m, deterministic)
} }
func (dst *TxOut) XXX_Merge(src proto.Message) { func (m *TxOut) XXX_Merge(src proto.Message) {
xxx_messageInfo_TxOut.Merge(dst, src) xxx_messageInfo_TxOut.Merge(m, src)
} }
func (m *TxOut) XXX_Size() int { func (m *TxOut) XXX_Size() int {
return xxx_messageInfo_TxOut.Size(m) return xxx_messageInfo_TxOut.Size(m)
@ -172,42 +174,42 @@ func (m *TxOut) GetPkScript() []byte {
} }
type SignDescriptor struct { type SignDescriptor struct {
// * //*
// A descriptor that precisely describes *which* key to use for signing. This //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 //may provide the raw public key directly, or require the Signer to re-derive
// the key according to the populated derivation path. //the key according to the populated derivation path.
KeyDesc *KeyDescriptor `protobuf:"bytes,1,opt,name=key_desc,json=keyDesc,proto3" json:"key_desc,omitempty"` 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 //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. //above public key to obtain the private key to be used to sign this input.
// This value is typically derived via the following computation: //This value is typically derived via the following computation:
// //
// derivedKey = privkey + sha256(perCommitmentPoint || pubKey) mod N // derivedKey = privkey + sha256(perCommitmentPoint || pubKey) mod N
SingleTweak []byte `protobuf:"bytes,2,opt,name=single_tweak,json=singleTweak,proto3" json:"single_tweak,omitempty"` 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 //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 //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 //input. Within the Lightning protocol, this value is typically the
// commitment secret from a previously revoked commitment transaction. This //commitment secret from a previously revoked commitment transaction. This
// value is in combination with two hash values, and the original private key //value is in combination with two hash values, and the original private key
// to derive the private key to be used when signing. //to derive the private key to be used when signing.
// //
// k = (privKey*sha256(pubKey || tweakPub) + // k = (privKey*sha256(pubKey || tweakPub) +
// tweakPriv*sha256(tweakPub || pubKey)) mod N //tweakPriv*sha256(tweakPub || pubKey)) mod N
DoubleTweak []byte `protobuf:"bytes,3,opt,name=double_tweak,json=doubleTweak,proto3" json:"double_tweak,omitempty"` 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 //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. //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"` 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. //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"` Output *TxOut `protobuf:"bytes,5,opt,name=output,proto3" json:"output,omitempty"`
// * //*
// The target sighash type that should be used when generating the final //The target sighash type that should be used when generating the final
// sighash, and signature. //sighash, and signature.
Sighash uint32 `protobuf:"varint,7,opt,name=sighash,proto3" json:"sighash,omitempty"` Sighash uint32 `protobuf:"varint,7,opt,name=sighash,proto3" json:"sighash,omitempty"`
// * //*
// The target input within the transaction that should be signed. //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"` InputIndex int32 `protobuf:"varint,8,opt,name=input_index,json=inputIndex,proto3" json:"input_index,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -218,16 +220,17 @@ func (m *SignDescriptor) Reset() { *m = SignDescriptor{} }
func (m *SignDescriptor) String() string { return proto.CompactTextString(m) } func (m *SignDescriptor) String() string { return proto.CompactTextString(m) }
func (*SignDescriptor) ProtoMessage() {} func (*SignDescriptor) ProtoMessage() {}
func (*SignDescriptor) Descriptor() ([]byte, []int) { func (*SignDescriptor) Descriptor() ([]byte, []int) {
return fileDescriptor_signer_8dc402df3ea9a6a7, []int{3} return fileDescriptor_4ecd772f6c7ffacf, []int{3}
} }
func (m *SignDescriptor) XXX_Unmarshal(b []byte) error { func (m *SignDescriptor) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SignDescriptor.Unmarshal(m, b) return xxx_messageInfo_SignDescriptor.Unmarshal(m, b)
} }
func (m *SignDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *SignDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SignDescriptor.Marshal(b, m, deterministic) return xxx_messageInfo_SignDescriptor.Marshal(b, m, deterministic)
} }
func (dst *SignDescriptor) XXX_Merge(src proto.Message) { func (m *SignDescriptor) XXX_Merge(src proto.Message) {
xxx_messageInfo_SignDescriptor.Merge(dst, src) xxx_messageInfo_SignDescriptor.Merge(m, src)
} }
func (m *SignDescriptor) XXX_Size() int { func (m *SignDescriptor) XXX_Size() int {
return xxx_messageInfo_SignDescriptor.Size(m) return xxx_messageInfo_SignDescriptor.Size(m)
@ -288,9 +291,9 @@ func (m *SignDescriptor) GetInputIndex() int32 {
} }
type SignReq struct { 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"` 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"` SignDescs []*SignDescriptor `protobuf:"bytes,2,rep,name=sign_descs,json=signDescs,proto3" json:"sign_descs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -301,16 +304,17 @@ func (m *SignReq) Reset() { *m = SignReq{} }
func (m *SignReq) String() string { return proto.CompactTextString(m) } func (m *SignReq) String() string { return proto.CompactTextString(m) }
func (*SignReq) ProtoMessage() {} func (*SignReq) ProtoMessage() {}
func (*SignReq) Descriptor() ([]byte, []int) { func (*SignReq) Descriptor() ([]byte, []int) {
return fileDescriptor_signer_8dc402df3ea9a6a7, []int{4} return fileDescriptor_4ecd772f6c7ffacf, []int{4}
} }
func (m *SignReq) XXX_Unmarshal(b []byte) error { func (m *SignReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SignReq.Unmarshal(m, b) return xxx_messageInfo_SignReq.Unmarshal(m, b)
} }
func (m *SignReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *SignReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SignReq.Marshal(b, m, deterministic) return xxx_messageInfo_SignReq.Marshal(b, m, deterministic)
} }
func (dst *SignReq) XXX_Merge(src proto.Message) { func (m *SignReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_SignReq.Merge(dst, src) xxx_messageInfo_SignReq.Merge(m, src)
} }
func (m *SignReq) XXX_Size() int { func (m *SignReq) XXX_Size() int {
return xxx_messageInfo_SignReq.Size(m) return xxx_messageInfo_SignReq.Size(m)
@ -336,9 +340,9 @@ func (m *SignReq) GetSignDescs() []*SignDescriptor {
} }
type SignResp struct { type SignResp struct {
// * //*
// A set of signatures realized in a fixed 64-byte format ordered in ascending //A set of signatures realized in a fixed 64-byte format ordered in ascending
// input order. //input order.
RawSigs [][]byte `protobuf:"bytes,1,rep,name=raw_sigs,json=rawSigs,proto3" json:"raw_sigs,omitempty"` RawSigs [][]byte `protobuf:"bytes,1,rep,name=raw_sigs,json=rawSigs,proto3" json:"raw_sigs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -349,16 +353,17 @@ func (m *SignResp) Reset() { *m = SignResp{} }
func (m *SignResp) String() string { return proto.CompactTextString(m) } func (m *SignResp) String() string { return proto.CompactTextString(m) }
func (*SignResp) ProtoMessage() {} func (*SignResp) ProtoMessage() {}
func (*SignResp) Descriptor() ([]byte, []int) { func (*SignResp) Descriptor() ([]byte, []int) {
return fileDescriptor_signer_8dc402df3ea9a6a7, []int{5} return fileDescriptor_4ecd772f6c7ffacf, []int{5}
} }
func (m *SignResp) XXX_Unmarshal(b []byte) error { func (m *SignResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SignResp.Unmarshal(m, b) return xxx_messageInfo_SignResp.Unmarshal(m, b)
} }
func (m *SignResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *SignResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SignResp.Marshal(b, m, deterministic) return xxx_messageInfo_SignResp.Marshal(b, m, deterministic)
} }
func (dst *SignResp) XXX_Merge(src proto.Message) { func (m *SignResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_SignResp.Merge(dst, src) xxx_messageInfo_SignResp.Merge(m, src)
} }
func (m *SignResp) XXX_Size() int { func (m *SignResp) XXX_Size() int {
return xxx_messageInfo_SignResp.Size(m) return xxx_messageInfo_SignResp.Size(m)
@ -377,11 +382,11 @@ func (m *SignResp) GetRawSigs() [][]byte {
} }
type InputScript struct { 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"` 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 optional sig script for the specified witness that will only be set if
// the input specified is a nested p2sh witness program. //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"` SigScript []byte `protobuf:"bytes,2,opt,name=sig_script,json=sigScript,proto3" json:"sig_script,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -392,16 +397,17 @@ func (m *InputScript) Reset() { *m = InputScript{} }
func (m *InputScript) String() string { return proto.CompactTextString(m) } func (m *InputScript) String() string { return proto.CompactTextString(m) }
func (*InputScript) ProtoMessage() {} func (*InputScript) ProtoMessage() {}
func (*InputScript) Descriptor() ([]byte, []int) { func (*InputScript) Descriptor() ([]byte, []int) {
return fileDescriptor_signer_8dc402df3ea9a6a7, []int{6} return fileDescriptor_4ecd772f6c7ffacf, []int{6}
} }
func (m *InputScript) XXX_Unmarshal(b []byte) error { func (m *InputScript) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InputScript.Unmarshal(m, b) return xxx_messageInfo_InputScript.Unmarshal(m, b)
} }
func (m *InputScript) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *InputScript) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InputScript.Marshal(b, m, deterministic) return xxx_messageInfo_InputScript.Marshal(b, m, deterministic)
} }
func (dst *InputScript) XXX_Merge(src proto.Message) { func (m *InputScript) XXX_Merge(src proto.Message) {
xxx_messageInfo_InputScript.Merge(dst, src) xxx_messageInfo_InputScript.Merge(m, src)
} }
func (m *InputScript) XXX_Size() int { func (m *InputScript) XXX_Size() int {
return xxx_messageInfo_InputScript.Size(m) return xxx_messageInfo_InputScript.Size(m)
@ -427,7 +433,7 @@ func (m *InputScript) GetSigScript() []byte {
} }
type InputScriptResp struct { 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"` InputScripts []*InputScript `protobuf:"bytes,1,rep,name=input_scripts,json=inputScripts,proto3" json:"input_scripts,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -438,16 +444,17 @@ func (m *InputScriptResp) Reset() { *m = InputScriptResp{} }
func (m *InputScriptResp) String() string { return proto.CompactTextString(m) } func (m *InputScriptResp) String() string { return proto.CompactTextString(m) }
func (*InputScriptResp) ProtoMessage() {} func (*InputScriptResp) ProtoMessage() {}
func (*InputScriptResp) Descriptor() ([]byte, []int) { func (*InputScriptResp) Descriptor() ([]byte, []int) {
return fileDescriptor_signer_8dc402df3ea9a6a7, []int{7} return fileDescriptor_4ecd772f6c7ffacf, []int{7}
} }
func (m *InputScriptResp) XXX_Unmarshal(b []byte) error { func (m *InputScriptResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InputScriptResp.Unmarshal(m, b) return xxx_messageInfo_InputScriptResp.Unmarshal(m, b)
} }
func (m *InputScriptResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *InputScriptResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InputScriptResp.Marshal(b, m, deterministic) return xxx_messageInfo_InputScriptResp.Marshal(b, m, deterministic)
} }
func (dst *InputScriptResp) XXX_Merge(src proto.Message) { func (m *InputScriptResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_InputScriptResp.Merge(dst, src) xxx_messageInfo_InputScriptResp.Merge(m, src)
} }
func (m *InputScriptResp) XXX_Size() int { func (m *InputScriptResp) XXX_Size() int {
return xxx_messageInfo_InputScriptResp.Size(m) return xxx_messageInfo_InputScriptResp.Size(m)
@ -476,6 +483,48 @@ func init() {
proto.RegisterType((*InputScriptResp)(nil), "signrpc.InputScriptResp") proto.RegisterType((*InputScriptResp)(nil), "signrpc.InputScriptResp")
} }
func init() { proto.RegisterFile("signrpc/signer.proto", fileDescriptor_4ecd772f6c7ffacf) }
var fileDescriptor_4ecd772f6c7ffacf = []byte{
// 562 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x53, 0x4f, 0x8f, 0xd3, 0x3e,
0x10, 0x55, 0xb7, 0xbf, 0x36, 0xdd, 0x49, 0xd2, 0x1f, 0x98, 0x0a, 0x02, 0x08, 0x51, 0x22, 0x2d,
0xea, 0x01, 0x5a, 0x51, 0x10, 0x12, 0x9c, 0xd0, 0x82, 0x56, 0xac, 0xba, 0xd2, 0x4a, 0x6e, 0x4f,
0x5c, 0xa2, 0x34, 0x35, 0xa9, 0x95, 0x34, 0xf1, 0xc6, 0x0e, 0x69, 0x6e, 0x7c, 0x07, 0xbe, 0x30,
0x1a, 0x3b, 0xfd, 0x07, 0x9c, 0x9a, 0xf7, 0x3c, 0x33, 0xef, 0x79, 0x5e, 0x0d, 0x03, 0xc9, 0xe3,
0xac, 0x10, 0xd1, 0x04, 0x7f, 0x59, 0x31, 0x16, 0x45, 0xae, 0x72, 0x62, 0x35, 0xac, 0xff, 0x15,
0x60, 0xc6, 0xea, 0x9b, 0x3c, 0x0a, 0x55, 0x5e, 0x90, 0x67, 0x00, 0x09, 0xab, 0x83, 0xef, 0xe1,
0x86, 0xa7, 0xb5, 0xd7, 0x1a, 0xb6, 0x46, 0x1d, 0x7a, 0x9e, 0xb0, 0xfa, 0x4a, 0x13, 0xe4, 0x29,
0x20, 0x08, 0x78, 0xb6, 0x62, 0x5b, 0xef, 0x4c, 0x9f, 0xf6, 0x12, 0x56, 0x5f, 0x23, 0xf6, 0x43,
0x70, 0x67, 0xac, 0xfe, 0xc2, 0x64, 0x54, 0x70, 0x81, 0xc3, 0x7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af, 0x55, 0xc6, 0xb3,
0x38, 0x63, 0xaa, 0xca, 0x8b, 0x64, 0x92, 0x66, 0xab, 0x49, 0xba, 0x7f, 0xe2, 0x85, 0x88, 0x96,
0x5d, 0xfd, 0xc8, 0xdf, 0xfe, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x80, 0x01, 0xce, 0xe1, 0xfc, 0x03,
0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
var _ context.Context var _ context.Context
var _ grpc.ClientConn var _ grpc.ClientConn
@ -488,27 +537,27 @@ 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. // 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 { type SignerClient interface {
// * //*
// SignOutputRaw is a method that can be used to generated a signature for a //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 //set of inputs/outputs to a transaction. Each request specifies details
// concerning how the outputs should be signed, which keys they should be //concerning how the outputs should be signed, which keys they should be
// signed with, and also any optional tweaks. The return value is a fixed //signed with, and also any optional tweaks. The return value is a fixed
// 64-byte signature (the same format as we use on the wire in Lightning). //64-byte signature (the same format as we use on the wire in Lightning).
// //
// If we are unable to sign using the specified keys, then an error will be //If we are unable to sign using the specified keys, then an error will be
// returned. //returned.
SignOutputRaw(ctx context.Context, in *SignReq, opts ...grpc.CallOption) (*SignResp, error) SignOutputRaw(ctx context.Context, in *SignReq, opts ...grpc.CallOption) (*SignResp, error)
// * //*
// ComputeInputScript generates a complete InputIndex for the passed //ComputeInputScript generates a complete InputIndex for the passed
// transaction with the signature as defined within the passed SignDescriptor. //transaction with the signature as defined within the passed SignDescriptor.
// This method should be capable of generating the proper input script for //This method should be capable of generating the proper input script for
// both regular p2wkh output and p2wkh outputs nested within a regular p2sh //both regular p2wkh output and p2wkh outputs nested within a regular p2sh
// output. //output.
// //
// Note that when using this method to sign inputs belonging to the wallet, //Note that when using this method to sign inputs belonging to the wallet,
// the only items of the SignDescriptor that need to be populated are pkScript //the only items of the SignDescriptor that need to be populated are pkScript
// in the TxOut field, the value in that same field, and finally the input //in the TxOut field, the value in that same field, and finally the input
// index. //index.
ComputeInputScript(ctx context.Context, in *SignReq, opts ...grpc.CallOption) (*InputScriptResp, error) ComputeInputScript(ctx context.Context, in *SignReq, opts ...grpc.CallOption) (*InputScriptResp, error)
} }
@ -540,27 +589,27 @@ func (c *signerClient) ComputeInputScript(ctx context.Context, in *SignReq, opts
// SignerServer is the server API for Signer service. // SignerServer is the server API for Signer service.
type SignerServer interface { type SignerServer interface {
// * //*
// SignOutputRaw is a method that can be used to generated a signature for a //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 //set of inputs/outputs to a transaction. Each request specifies details
// concerning how the outputs should be signed, which keys they should be //concerning how the outputs should be signed, which keys they should be
// signed with, and also any optional tweaks. The return value is a fixed //signed with, and also any optional tweaks. The return value is a fixed
// 64-byte signature (the same format as we use on the wire in Lightning). //64-byte signature (the same format as we use on the wire in Lightning).
// //
// If we are unable to sign using the specified keys, then an error will be //If we are unable to sign using the specified keys, then an error will be
// returned. //returned.
SignOutputRaw(context.Context, *SignReq) (*SignResp, error) SignOutputRaw(context.Context, *SignReq) (*SignResp, error)
// * //*
// ComputeInputScript generates a complete InputIndex for the passed //ComputeInputScript generates a complete InputIndex for the passed
// transaction with the signature as defined within the passed SignDescriptor. //transaction with the signature as defined within the passed SignDescriptor.
// This method should be capable of generating the proper input script for //This method should be capable of generating the proper input script for
// both regular p2wkh output and p2wkh outputs nested within a regular p2sh //both regular p2wkh output and p2wkh outputs nested within a regular p2sh
// output. //output.
// //
// Note that when using this method to sign inputs belonging to the wallet, //Note that when using this method to sign inputs belonging to the wallet,
// the only items of the SignDescriptor that need to be populated are pkScript //the only items of the SignDescriptor that need to be populated are pkScript
// in the TxOut field, the value in that same field, and finally the input //in the TxOut field, the value in that same field, and finally the input
// index. //index.
ComputeInputScript(context.Context, *SignReq) (*InputScriptResp, error) ComputeInputScript(context.Context, *SignReq) (*InputScriptResp, error)
} }
@ -620,45 +669,3 @@ var _Signer_serviceDesc = grpc.ServiceDesc{
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "signrpc/signer.proto", Metadata: "signrpc/signer.proto",
} }
func init() { proto.RegisterFile("signrpc/signer.proto", fileDescriptor_signer_8dc402df3ea9a6a7) }
var fileDescriptor_signer_8dc402df3ea9a6a7 = []byte{
// 562 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x53, 0x4f, 0x8f, 0xd3, 0x3e,
0x10, 0x55, 0xb7, 0xbf, 0x36, 0xdd, 0x49, 0xd2, 0x1f, 0x98, 0x0a, 0x02, 0x08, 0x51, 0x22, 0x2d,
0xea, 0x01, 0x5a, 0x51, 0x10, 0x12, 0x9c, 0xd0, 0x82, 0x56, 0xac, 0xba, 0xd2, 0x4a, 0x6e, 0x4f,
0x5c, 0xa2, 0x34, 0x35, 0xa9, 0x95, 0x34, 0xf1, 0xc6, 0x0e, 0x69, 0x6e, 0x7c, 0x07, 0xbe, 0x30,
0x1a, 0x3b, 0xfd, 0x07, 0x9c, 0x9a, 0xf7, 0x3c, 0x33, 0xef, 0x79, 0x5e, 0x0d, 0x03, 0xc9, 0xe3,
0xac, 0x10, 0xd1, 0x04, 0x7f, 0x59, 0x31, 0x16, 0x45, 0xae, 0x72, 0x62, 0x35, 0xac, 0xff, 0x15,
0x60, 0xc6, 0xea, 0x9b, 0x3c, 0x0a, 0x55, 0x5e, 0x90, 0x67, 0x00, 0x09, 0xab, 0x83, 0xef, 0xe1,
0x86, 0xa7, 0xb5, 0xd7, 0x1a, 0xb6, 0x46, 0x1d, 0x7a, 0x9e, 0xb0, 0xfa,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 0xce,
0x37, 0xa2, 0x54, 0xec, 0xf8, 0x76, 0x7f, 0xb7, 0x7a, 0xff, 0x34, 0xc3, 0xa4, 0xb8, 0x9c, 0x7c,
0x7b, 0x1d, 0x73, 0xb5, 0x2e, 0x97, 0xe3, 0x28, 0xdf, 0x4c, 0x52, 0x1e, 0xaf, 0x55, 0xc6, 0xb3,
0x38, 0x63, 0xaa, 0xca, 0x8b, 0x64, 0x92, 0x66, 0xab, 0x49, 0xba, 0x7f, 0xe2, 0x85, 0x88, 0x96,
0x5d, 0xfd, 0xc8, 0xdf, 0xfe, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x80, 0x01, 0xce, 0xe1, 0xfc, 0x03,
0x00, 0x00,
}

@ -1,16 +1,15 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: walletrpc/walletkit.proto // source: walletrpc/walletkit.proto
package walletrpc // import "github.com/lightningnetwork/lnd/lnrpc/walletrpc" package walletrpc
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import signrpc "github.com/lightningnetwork/lnd/lnrpc/signrpc"
import ( import (
context "golang.org/x/net/context" context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
signrpc "github.com/lightningnetwork/lnd/lnrpc/signrpc"
grpc "google.golang.org/grpc" grpc "google.golang.org/grpc"
math "math"
) )
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
@ -22,17 +21,17 @@ var _ = math.Inf
// is compatible with the proto package it is being compiled against. // is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the // A compilation error at this line likely means your copy of the
// proto package needs to be updated. // proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type KeyReq struct { type KeyReq struct {
// * //*
// Is the key finger print of the root pubkey that this request is targeting. //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 //This allows the WalletKit to possibly serve out keys for multiple HD chains
// via public derivation. //via public derivation.
KeyFingerPrint int32 `protobuf:"varint,1,opt,name=key_finger_print,json=keyFingerPrint,proto3" json:"key_finger_print,omitempty"` 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 //The target key family to derive a key from. In other contexts, this is
// known as the "account". //known as the "account".
KeyFamily int32 `protobuf:"varint,2,opt,name=key_family,json=keyFamily,proto3" json:"key_family,omitempty"` KeyFamily int32 `protobuf:"varint,2,opt,name=key_family,json=keyFamily,proto3" json:"key_family,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -43,16 +42,17 @@ func (m *KeyReq) Reset() { *m = KeyReq{} }
func (m *KeyReq) String() string { return proto.CompactTextString(m) } func (m *KeyReq) String() string { return proto.CompactTextString(m) }
func (*KeyReq) ProtoMessage() {} func (*KeyReq) ProtoMessage() {}
func (*KeyReq) Descriptor() ([]byte, []int) { func (*KeyReq) Descriptor() ([]byte, []int) {
return fileDescriptor_walletkit_ca4e27c2068154e3, []int{0} return fileDescriptor_6cc6942ac78249e5, []int{0}
} }
func (m *KeyReq) XXX_Unmarshal(b []byte) error { func (m *KeyReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_KeyReq.Unmarshal(m, b) return xxx_messageInfo_KeyReq.Unmarshal(m, b)
} }
func (m *KeyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *KeyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_KeyReq.Marshal(b, m, deterministic) return xxx_messageInfo_KeyReq.Marshal(b, m, deterministic)
} }
func (dst *KeyReq) XXX_Merge(src proto.Message) { func (m *KeyReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_KeyReq.Merge(dst, src) xxx_messageInfo_KeyReq.Merge(m, src)
} }
func (m *KeyReq) XXX_Size() int { func (m *KeyReq) XXX_Size() int {
return xxx_messageInfo_KeyReq.Size(m) return xxx_messageInfo_KeyReq.Size(m)
@ -87,16 +87,17 @@ func (m *AddrRequest) Reset() { *m = AddrRequest{} }
func (m *AddrRequest) String() string { return proto.CompactTextString(m) } func (m *AddrRequest) String() string { return proto.CompactTextString(m) }
func (*AddrRequest) ProtoMessage() {} func (*AddrRequest) ProtoMessage() {}
func (*AddrRequest) Descriptor() ([]byte, []int) { func (*AddrRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_walletkit_ca4e27c2068154e3, []int{1} return fileDescriptor_6cc6942ac78249e5, []int{1}
} }
func (m *AddrRequest) XXX_Unmarshal(b []byte) error { func (m *AddrRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AddrRequest.Unmarshal(m, b) return xxx_messageInfo_AddrRequest.Unmarshal(m, b)
} }
func (m *AddrRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *AddrRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AddrRequest.Marshal(b, m, deterministic) return xxx_messageInfo_AddrRequest.Marshal(b, m, deterministic)
} }
func (dst *AddrRequest) XXX_Merge(src proto.Message) { func (m *AddrRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_AddrRequest.Merge(dst, src) xxx_messageInfo_AddrRequest.Merge(m, src)
} }
func (m *AddrRequest) XXX_Size() int { func (m *AddrRequest) XXX_Size() int {
return xxx_messageInfo_AddrRequest.Size(m) return xxx_messageInfo_AddrRequest.Size(m)
@ -108,8 +109,8 @@ func (m *AddrRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_AddrRequest proto.InternalMessageInfo var xxx_messageInfo_AddrRequest proto.InternalMessageInfo
type AddrResponse struct { type AddrResponse struct {
// * //*
// The address encoded using a bech32 format. //The address encoded using a bech32 format.
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -120,16 +121,17 @@ func (m *AddrResponse) Reset() { *m = AddrResponse{} }
func (m *AddrResponse) String() string { return proto.CompactTextString(m) } func (m *AddrResponse) String() string { return proto.CompactTextString(m) }
func (*AddrResponse) ProtoMessage() {} func (*AddrResponse) ProtoMessage() {}
func (*AddrResponse) Descriptor() ([]byte, []int) { func (*AddrResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_walletkit_ca4e27c2068154e3, []int{2} return fileDescriptor_6cc6942ac78249e5, []int{2}
} }
func (m *AddrResponse) XXX_Unmarshal(b []byte) error { func (m *AddrResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AddrResponse.Unmarshal(m, b) return xxx_messageInfo_AddrResponse.Unmarshal(m, b)
} }
func (m *AddrResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *AddrResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AddrResponse.Marshal(b, m, deterministic) return xxx_messageInfo_AddrResponse.Marshal(b, m, deterministic)
} }
func (dst *AddrResponse) XXX_Merge(src proto.Message) { func (m *AddrResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_AddrResponse.Merge(dst, src) xxx_messageInfo_AddrResponse.Merge(m, src)
} }
func (m *AddrResponse) XXX_Size() int { func (m *AddrResponse) XXX_Size() int {
return xxx_messageInfo_AddrResponse.Size(m) return xxx_messageInfo_AddrResponse.Size(m)
@ -148,8 +150,8 @@ func (m *AddrResponse) GetAddr() string {
} }
type Transaction struct { type Transaction struct {
// * //*
// The raw serialized transaction. //The raw serialized transaction.
TxHex []byte `protobuf:"bytes,1,opt,name=tx_hex,json=txHex,proto3" json:"tx_hex,omitempty"` TxHex []byte `protobuf:"bytes,1,opt,name=tx_hex,json=txHex,proto3" json:"tx_hex,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -160,16 +162,17 @@ func (m *Transaction) Reset() { *m = Transaction{} }
func (m *Transaction) String() string { return proto.CompactTextString(m) } func (m *Transaction) String() string { return proto.CompactTextString(m) }
func (*Transaction) ProtoMessage() {} func (*Transaction) ProtoMessage() {}
func (*Transaction) Descriptor() ([]byte, []int) { func (*Transaction) Descriptor() ([]byte, []int) {
return fileDescriptor_walletkit_ca4e27c2068154e3, []int{3} return fileDescriptor_6cc6942ac78249e5, []int{3}
} }
func (m *Transaction) XXX_Unmarshal(b []byte) error { func (m *Transaction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Transaction.Unmarshal(m, b) return xxx_messageInfo_Transaction.Unmarshal(m, b)
} }
func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Transaction.Marshal(b, m, deterministic) return xxx_messageInfo_Transaction.Marshal(b, m, deterministic)
} }
func (dst *Transaction) XXX_Merge(src proto.Message) { func (m *Transaction) XXX_Merge(src proto.Message) {
xxx_messageInfo_Transaction.Merge(dst, src) xxx_messageInfo_Transaction.Merge(m, src)
} }
func (m *Transaction) XXX_Size() int { func (m *Transaction) XXX_Size() int {
return xxx_messageInfo_Transaction.Size(m) return xxx_messageInfo_Transaction.Size(m)
@ -188,12 +191,12 @@ func (m *Transaction) GetTxHex() []byte {
} }
type PublishResponse struct { type PublishResponse struct {
// * //*
// If blank, then no error occurred and the transaction was successfully //If blank, then no error occurred and the transaction was successfully
// published. If not the empty string, then a string representation of the //published. If not the empty string, then a string representation of the
// broadcast error. //broadcast error.
// //
// TODO(roasbeef): map to a proper enum type //TODO(roasbeef): map to a proper enum type
PublishError string `protobuf:"bytes,1,opt,name=publish_error,json=publishError,proto3" json:"publish_error,omitempty"` PublishError string `protobuf:"bytes,1,opt,name=publish_error,json=publishError,proto3" json:"publish_error,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -204,16 +207,17 @@ func (m *PublishResponse) Reset() { *m = PublishResponse{} }
func (m *PublishResponse) String() string { return proto.CompactTextString(m) } func (m *PublishResponse) String() string { return proto.CompactTextString(m) }
func (*PublishResponse) ProtoMessage() {} func (*PublishResponse) ProtoMessage() {}
func (*PublishResponse) Descriptor() ([]byte, []int) { func (*PublishResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_walletkit_ca4e27c2068154e3, []int{4} return fileDescriptor_6cc6942ac78249e5, []int{4}
} }
func (m *PublishResponse) XXX_Unmarshal(b []byte) error { func (m *PublishResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PublishResponse.Unmarshal(m, b) return xxx_messageInfo_PublishResponse.Unmarshal(m, b)
} }
func (m *PublishResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *PublishResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PublishResponse.Marshal(b, m, deterministic) return xxx_messageInfo_PublishResponse.Marshal(b, m, deterministic)
} }
func (dst *PublishResponse) XXX_Merge(src proto.Message) { func (m *PublishResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_PublishResponse.Merge(dst, src) xxx_messageInfo_PublishResponse.Merge(m, src)
} }
func (m *PublishResponse) XXX_Size() int { func (m *PublishResponse) XXX_Size() int {
return xxx_messageInfo_PublishResponse.Size(m) return xxx_messageInfo_PublishResponse.Size(m)
@ -232,12 +236,12 @@ func (m *PublishResponse) GetPublishError() string {
} }
type SendOutputsRequest struct { type SendOutputsRequest struct {
// * //*
// The number of satoshis per kilo weight that should be used when crafting //The number of satoshis per kilo weight that should be used when crafting
// this transaction. //this transaction.
SatPerKw int64 `protobuf:"varint,1,opt,name=sat_per_kw,json=satPerKw,proto3" json:"sat_per_kw,omitempty"` 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. //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"` Outputs []*signrpc.TxOut `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -248,16 +252,17 @@ func (m *SendOutputsRequest) Reset() { *m = SendOutputsRequest{} }
func (m *SendOutputsRequest) String() string { return proto.CompactTextString(m) } func (m *SendOutputsRequest) String() string { return proto.CompactTextString(m) }
func (*SendOutputsRequest) ProtoMessage() {} func (*SendOutputsRequest) ProtoMessage() {}
func (*SendOutputsRequest) Descriptor() ([]byte, []int) { func (*SendOutputsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_walletkit_ca4e27c2068154e3, []int{5} return fileDescriptor_6cc6942ac78249e5, []int{5}
} }
func (m *SendOutputsRequest) XXX_Unmarshal(b []byte) error { func (m *SendOutputsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SendOutputsRequest.Unmarshal(m, b) return xxx_messageInfo_SendOutputsRequest.Unmarshal(m, b)
} }
func (m *SendOutputsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *SendOutputsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SendOutputsRequest.Marshal(b, m, deterministic) return xxx_messageInfo_SendOutputsRequest.Marshal(b, m, deterministic)
} }
func (dst *SendOutputsRequest) XXX_Merge(src proto.Message) { func (m *SendOutputsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SendOutputsRequest.Merge(dst, src) xxx_messageInfo_SendOutputsRequest.Merge(m, src)
} }
func (m *SendOutputsRequest) XXX_Size() int { func (m *SendOutputsRequest) XXX_Size() int {
return xxx_messageInfo_SendOutputsRequest.Size(m) return xxx_messageInfo_SendOutputsRequest.Size(m)
@ -283,8 +288,8 @@ func (m *SendOutputsRequest) GetOutputs() []*signrpc.TxOut {
} }
type SendOutputsResponse struct { type SendOutputsResponse struct {
// * //*
// The serialized transaction sent out on the network. //The serialized transaction sent out on the network.
RawTx []byte `protobuf:"bytes,1,opt,name=raw_tx,json=rawTx,proto3" json:"raw_tx,omitempty"` RawTx []byte `protobuf:"bytes,1,opt,name=raw_tx,json=rawTx,proto3" json:"raw_tx,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -295,16 +300,17 @@ func (m *SendOutputsResponse) Reset() { *m = SendOutputsResponse{} }
func (m *SendOutputsResponse) String() string { return proto.CompactTextString(m) } func (m *SendOutputsResponse) String() string { return proto.CompactTextString(m) }
func (*SendOutputsResponse) ProtoMessage() {} func (*SendOutputsResponse) ProtoMessage() {}
func (*SendOutputsResponse) Descriptor() ([]byte, []int) { func (*SendOutputsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_walletkit_ca4e27c2068154e3, []int{6} return fileDescriptor_6cc6942ac78249e5, []int{6}
} }
func (m *SendOutputsResponse) XXX_Unmarshal(b []byte) error { func (m *SendOutputsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SendOutputsResponse.Unmarshal(m, b) return xxx_messageInfo_SendOutputsResponse.Unmarshal(m, b)
} }
func (m *SendOutputsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *SendOutputsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SendOutputsResponse.Marshal(b, m, deterministic) return xxx_messageInfo_SendOutputsResponse.Marshal(b, m, deterministic)
} }
func (dst *SendOutputsResponse) XXX_Merge(src proto.Message) { func (m *SendOutputsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SendOutputsResponse.Merge(dst, src) xxx_messageInfo_SendOutputsResponse.Merge(m, src)
} }
func (m *SendOutputsResponse) XXX_Size() int { func (m *SendOutputsResponse) XXX_Size() int {
return xxx_messageInfo_SendOutputsResponse.Size(m) return xxx_messageInfo_SendOutputsResponse.Size(m)
@ -323,8 +329,8 @@ func (m *SendOutputsResponse) GetRawTx() []byte {
} }
type EstimateFeeRequest struct { type EstimateFeeRequest struct {
// * //*
// The number of confirmations to shoot for when estimating the fee. //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"` ConfTarget int32 `protobuf:"varint,1,opt,name=conf_target,json=confTarget,proto3" json:"conf_target,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -335,16 +341,17 @@ func (m *EstimateFeeRequest) Reset() { *m = EstimateFeeRequest{} }
func (m *EstimateFeeRequest) String() string { return proto.CompactTextString(m) } func (m *EstimateFeeRequest) String() string { return proto.CompactTextString(m) }
func (*EstimateFeeRequest) ProtoMessage() {} func (*EstimateFeeRequest) ProtoMessage() {}
func (*EstimateFeeRequest) Descriptor() ([]byte, []int) { func (*EstimateFeeRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_walletkit_ca4e27c2068154e3, []int{7} return fileDescriptor_6cc6942ac78249e5, []int{7}
} }
func (m *EstimateFeeRequest) XXX_Unmarshal(b []byte) error { func (m *EstimateFeeRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EstimateFeeRequest.Unmarshal(m, b) return xxx_messageInfo_EstimateFeeRequest.Unmarshal(m, b)
} }
func (m *EstimateFeeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *EstimateFeeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EstimateFeeRequest.Marshal(b, m, deterministic) return xxx_messageInfo_EstimateFeeRequest.Marshal(b, m, deterministic)
} }
func (dst *EstimateFeeRequest) XXX_Merge(src proto.Message) { func (m *EstimateFeeRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_EstimateFeeRequest.Merge(dst, src) xxx_messageInfo_EstimateFeeRequest.Merge(m, src)
} }
func (m *EstimateFeeRequest) XXX_Size() int { func (m *EstimateFeeRequest) XXX_Size() int {
return xxx_messageInfo_EstimateFeeRequest.Size(m) return xxx_messageInfo_EstimateFeeRequest.Size(m)
@ -363,9 +370,9 @@ func (m *EstimateFeeRequest) GetConfTarget() int32 {
} }
type EstimateFeeResponse struct { type EstimateFeeResponse struct {
// * //*
// The amount of satoshis per kw that should be used in order to reach the //The amount of satoshis per kw that should be used in order to reach the
// confirmation target in the request. //confirmation target in the request.
SatPerKw int64 `protobuf:"varint,1,opt,name=sat_per_kw,json=satPerKw,proto3" json:"sat_per_kw,omitempty"` SatPerKw int64 `protobuf:"varint,1,opt,name=sat_per_kw,json=satPerKw,proto3" json:"sat_per_kw,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -376,16 +383,17 @@ func (m *EstimateFeeResponse) Reset() { *m = EstimateFeeResponse{} }
func (m *EstimateFeeResponse) String() string { return proto.CompactTextString(m) } func (m *EstimateFeeResponse) String() string { return proto.CompactTextString(m) }
func (*EstimateFeeResponse) ProtoMessage() {} func (*EstimateFeeResponse) ProtoMessage() {}
func (*EstimateFeeResponse) Descriptor() ([]byte, []int) { func (*EstimateFeeResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_walletkit_ca4e27c2068154e3, []int{8} return fileDescriptor_6cc6942ac78249e5, []int{8}
} }
func (m *EstimateFeeResponse) XXX_Unmarshal(b []byte) error { func (m *EstimateFeeResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EstimateFeeResponse.Unmarshal(m, b) return xxx_messageInfo_EstimateFeeResponse.Unmarshal(m, b)
} }
func (m *EstimateFeeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *EstimateFeeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EstimateFeeResponse.Marshal(b, m, deterministic) return xxx_messageInfo_EstimateFeeResponse.Marshal(b, m, deterministic)
} }
func (dst *EstimateFeeResponse) XXX_Merge(src proto.Message) { func (m *EstimateFeeResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_EstimateFeeResponse.Merge(dst, src) xxx_messageInfo_EstimateFeeResponse.Merge(m, src)
} }
func (m *EstimateFeeResponse) XXX_Size() int { func (m *EstimateFeeResponse) XXX_Size() int {
return xxx_messageInfo_EstimateFeeResponse.Size(m) return xxx_messageInfo_EstimateFeeResponse.Size(m)
@ -415,6 +423,45 @@ func init() {
proto.RegisterType((*EstimateFeeResponse)(nil), "walletrpc.EstimateFeeResponse") proto.RegisterType((*EstimateFeeResponse)(nil), "walletrpc.EstimateFeeResponse")
} }
func init() { proto.RegisterFile("walletrpc/walletkit.proto", fileDescriptor_6cc6942ac78249e5) }
var fileDescriptor_6cc6942ac78249e5 = []byte{
// 524 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x53, 0x5d, 0x6f, 0xd3, 0x30,
0x14, 0xd5, 0x56, 0x56, 0xd6, 0xdb, 0x76, 0x80, 0xcb, 0x46, 0x89, 0x18, 0x4c, 0x81, 0x87, 0x3e,
0xa0, 0x54, 0x6c, 0x02, 0x21, 0x78, 0x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0x27, 0xa5, 0xef, 0xac, 0xfc, 0x08, 0xbb, 0xf9, 0x79, 0x79,
0x02, 0xd8, 0x41, 0xed, 0xc0, 0x5a, 0x42, 0x8c, 0x27, 0x1b, 0x78, 0x35, 0xde, 0x05, 0xb0, 0xca,
0xf0, 0x7a, 0x3a, 0xea, 0x32, 0x35, 0xdc, 0x30, 0x6a, 0xf8, 0xdf, 0x39, 0xb9, 0x84, 0x76, 0xcd,
0x24, 0x76, 0x58, 0xa3, 0x6e, 0x46, 0xc3, 0x78, 0x7e, 0xd7, 0xf6, 0xad, 0x5a, 0xcd, 0x8d, 0x35,
0xb5, 0x4d, 0x73, 0xd7, 0xd4, 0xfe, 0x61, 0xe2, 0xe7, 0x37, 0x3f, 0x86, 0xbe, 0xa0, 0x59, 0x3c,
0xb5, 0x5c, 0xb5, 0x18, 0x06, 0xc2, 0x9f, 0x91, 0x14, 0xd2, 0x97, 0x48, 0x89, 0xd2, 0xf3, 0x61,
0x20, 0xbd, 0x61, 0x20, 0x6f, 0x1f, 0xb7, 0x0e, 0xdd, 0x69, 0xb3, 0x78, 0xbc, 0x27, 0x7f, 0x02,
0x00, 0x00, 0xff, 0xff, 0x2d, 0xbb, 0xcd, 0x97, 0xfa, 0x03, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
var _ context.Context var _ context.Context
var _ grpc.ClientConn var _ grpc.ClientConn
@ -427,33 +474,33 @@ 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. // 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 { type WalletKitClient interface {
// * //*
// DeriveNextKey attempts to derive the *next* key within the key family //DeriveNextKey attempts to derive the *next* key within the key family
// (account in BIP43) specified. This method should return the next external //(account in BIP43) specified. This method should return the next external
// child within this branch. //child within this branch.
DeriveNextKey(ctx context.Context, in *KeyReq, opts ...grpc.CallOption) (*signrpc.KeyDescriptor, error) DeriveNextKey(ctx context.Context, in *KeyReq, opts ...grpc.CallOption) (*signrpc.KeyDescriptor, error)
// * //*
// DeriveKey attempts to derive an arbitrary key specified by the passed //DeriveKey attempts to derive an arbitrary key specified by the passed
// KeyLocator. //KeyLocator.
DeriveKey(ctx context.Context, in *signrpc.KeyLocator, opts ...grpc.CallOption) (*signrpc.KeyDescriptor, error) DeriveKey(ctx context.Context, in *signrpc.KeyLocator, opts ...grpc.CallOption) (*signrpc.KeyDescriptor, error)
// * //*
// NextAddr returns the next unused address within the wallet. //NextAddr returns the next unused address within the wallet.
NextAddr(ctx context.Context, in *AddrRequest, opts ...grpc.CallOption) (*AddrResponse, error) NextAddr(ctx context.Context, in *AddrRequest, opts ...grpc.CallOption) (*AddrResponse, error)
// * //*
// PublishTransaction attempts to publish the passed transaction to the //PublishTransaction attempts to publish the passed transaction to the
// network. Once this returns without an error, the wallet will continually //network. Once this returns without an error, the wallet will continually
// attempt to re-broadcast the transaction on start up, until it enters the //attempt to re-broadcast the transaction on start up, until it enters the
// chain. //chain.
PublishTransaction(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*PublishResponse, error) PublishTransaction(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*PublishResponse, error)
// * //*
// SendOutputs is similar to the existing sendmany call in Bitcoind, and //SendOutputs is similar to the existing sendmany call in Bitcoind, and
// allows the caller to create a transaction that sends to several outputs at //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. //once. This is ideal when wanting to batch create a set of transactions.
SendOutputs(ctx context.Context, in *SendOutputsRequest, opts ...grpc.CallOption) (*SendOutputsResponse, error) SendOutputs(ctx context.Context, in *SendOutputsRequest, opts ...grpc.CallOption) (*SendOutputsResponse, error)
// * //*
// EstimateFee attempts to query the internal fee estimator of the wallet to //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 //determine the fee (in sat/kw) to attach to a transaction in order to
// achieve the confirmation target. //achieve the confirmation target.
EstimateFee(ctx context.Context, in *EstimateFeeRequest, opts ...grpc.CallOption) (*EstimateFeeResponse, error) EstimateFee(ctx context.Context, in *EstimateFeeRequest, opts ...grpc.CallOption) (*EstimateFeeResponse, error)
} }
@ -521,33 +568,33 @@ func (c *walletKitClient) EstimateFee(ctx context.Context, in *EstimateFeeReques
// WalletKitServer is the server API for WalletKit service. // WalletKitServer is the server API for WalletKit service.
type WalletKitServer interface { type WalletKitServer interface {
// * //*
// DeriveNextKey attempts to derive the *next* key within the key family //DeriveNextKey attempts to derive the *next* key within the key family
// (account in BIP43) specified. This method should return the next external //(account in BIP43) specified. This method should return the next external
// child within this branch. //child within this branch.
DeriveNextKey(context.Context, *KeyReq) (*signrpc.KeyDescriptor, error) DeriveNextKey(context.Context, *KeyReq) (*signrpc.KeyDescriptor, error)
// * //*
// DeriveKey attempts to derive an arbitrary key specified by the passed //DeriveKey attempts to derive an arbitrary key specified by the passed
// KeyLocator. //KeyLocator.
DeriveKey(context.Context, *signrpc.KeyLocator) (*signrpc.KeyDescriptor, error) DeriveKey(context.Context, *signrpc.KeyLocator) (*signrpc.KeyDescriptor, error)
// * //*
// NextAddr returns the next unused address within the wallet. //NextAddr returns the next unused address within the wallet.
NextAddr(context.Context, *AddrRequest) (*AddrResponse, error) NextAddr(context.Context, *AddrRequest) (*AddrResponse, error)
// * //*
// PublishTransaction attempts to publish the passed transaction to the //PublishTransaction attempts to publish the passed transaction to the
// network. Once this returns without an error, the wallet will continually //network. Once this returns without an error, the wallet will continually
// attempt to re-broadcast the transaction on start up, until it enters the //attempt to re-broadcast the transaction on start up, until it enters the
// chain. //chain.
PublishTransaction(context.Context, *Transaction) (*PublishResponse, error) PublishTransaction(context.Context, *Transaction) (*PublishResponse, error)
// * //*
// SendOutputs is similar to the existing sendmany call in Bitcoind, and //SendOutputs is similar to the existing sendmany call in Bitcoind, and
// allows the caller to create a transaction that sends to several outputs at //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. //once. This is ideal when wanting to batch create a set of transactions.
SendOutputs(context.Context, *SendOutputsRequest) (*SendOutputsResponse, error) SendOutputs(context.Context, *SendOutputsRequest) (*SendOutputsResponse, error)
// * //*
// EstimateFee attempts to query the internal fee estimator of the wallet to //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 //determine the fee (in sat/kw) to attach to a transaction in order to
// achieve the confirmation target. //achieve the confirmation target.
EstimateFee(context.Context, *EstimateFeeRequest) (*EstimateFeeResponse, error) EstimateFee(context.Context, *EstimateFeeRequest) (*EstimateFeeResponse, error)
} }
@ -695,44 +742,3 @@ var _WalletKit_serviceDesc = grpc.ServiceDesc{
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "walletrpc/walletkit.proto", Metadata: "walletrpc/walletkit.proto",
} }
func init() {
proto.RegisterFile("walletrpc/walletkit.proto", fileDescriptor_walletkit_ca4e27c2068154e3)
}
var fileDescriptor_walletkit_ca4e27c2068154e3 = []byte{
// 524 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x53, 0x5d, 0x6f, 0xd3, 0x30,
0x14, 0xd5, 0x56, 0x56, 0xd6, 0xdb, 0x76, 0x80, 0xcb, 0x46, 0x89, 0x18, 0x4c, 0x81, 0x87, 0x3e,
0xa0, 0x54, 0x6c, 0x02, 0x21, 0x78, 0x02, 0x6d, 0xd3, 0xa4, 0x4e, 0xac, 0x84, 0x4a, 0x48, 0x08,
0x29, 0x72, 0x93, 0xbb, 0xd4, 0x6a, 0x6a, 0x67, 0xce, 0x0d, 0x49, 0xfe, 0x0f, 0x3f, 0x14, 0xe5,
0xa3, 0x5d, 0x4a, 0x19, 0x4f, 0x71, 0x8e, 0xcf, 0x3d, 0xbe, 0xd7, 0xe7, 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