mirror of
https://github.com/muun/recovery.git
synced 2025-11-11 06:20:16 -05:00
Release v0.3.0
This commit is contained in:
751
vendor/github.com/muun/libwallet/bip70.pb.go
generated
vendored
751
vendor/github.com/muun/libwallet/bip70.pb.go
generated
vendored
@@ -1,375 +1,482 @@
|
||||
//
|
||||
// Simple Bitcoin Payment Protocol messages
|
||||
//
|
||||
// Use fields 1000+ for extensions;
|
||||
// to avoid conflicts, register extensions via pull-req at
|
||||
// https://github.com/bitcoin/bips/blob/master/bip-0070/extensions.mediawiki
|
||||
//
|
||||
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0-devel
|
||||
// protoc v3.7.0
|
||||
// source: bip70.proto
|
||||
|
||||
package libwallet
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
math "math"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
|
||||
//TODO: the following lint rule will disappear when this file is re-generated. We need to upgrade.
|
||||
//lint:ignore SA1019 this library is now located in a different repository
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
// Generalized form of "send payment to this/these bitcoin addresses"
|
||||
type Output struct {
|
||||
Amount *uint64 `protobuf:"varint,1,opt,name=amount,def=0" json:"amount,omitempty"`
|
||||
Script []byte `protobuf:"bytes,2,req,name=script" json:"script,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` // amount is integer-number-of-satoshis
|
||||
Script []byte `protobuf:"bytes,2,opt,name=script,proto3" json:"script,omitempty"` // usually one of the standard Script forms
|
||||
}
|
||||
|
||||
func (m *Output) Reset() { *m = Output{} }
|
||||
func (m *Output) String() string { return proto.CompactTextString(m) }
|
||||
func (*Output) ProtoMessage() {}
|
||||
func (x *Output) Reset() {
|
||||
*x = Output{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_bip70_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *Output) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Output) ProtoMessage() {}
|
||||
|
||||
func (x *Output) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_bip70_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use Output.ProtoReflect.Descriptor instead.
|
||||
func (*Output) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_de204c4c8d465ce4, []int{0}
|
||||
return file_bip70_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (m *Output) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Output.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Output) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Output.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *Output) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Output.Merge(m, src)
|
||||
}
|
||||
func (m *Output) XXX_Size() int {
|
||||
return xxx_messageInfo_Output.Size(m)
|
||||
}
|
||||
func (m *Output) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Output.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Output proto.InternalMessageInfo
|
||||
|
||||
type PaymentDetails struct {
|
||||
Network *string `protobuf:"bytes,1,opt,name=network,def=main" json:"network,omitempty"`
|
||||
Outputs []*Output `protobuf:"bytes,2,rep,name=outputs" json:"outputs,omitempty"`
|
||||
Time *uint64 `protobuf:"varint,3,req,name=time" json:"time,omitempty"`
|
||||
Expires *uint64 `protobuf:"varint,4,opt,name=expires" json:"expires,omitempty"`
|
||||
Memo *string `protobuf:"bytes,5,opt,name=memo" json:"memo,omitempty"`
|
||||
PaymentUrl *string `protobuf:"bytes,6,opt,name=payment_url,json=paymentUrl" json:"payment_url,omitempty"`
|
||||
MerchantData []byte `protobuf:"bytes,7,opt,name=merchant_data,json=merchantData" json:"merchant_data,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` // "main" or "test"
|
||||
Outputs []*Output `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs,omitempty"` // Where payment should be sent
|
||||
Time uint64 `protobuf:"varint,3,opt,name=time,proto3" json:"time,omitempty"` // Timestamp; when payment request created
|
||||
Expires uint64 `protobuf:"varint,4,opt,name=expires,proto3" json:"expires,omitempty"` // Timestamp; when this request should be considered invalid
|
||||
Memo string `protobuf:"bytes,5,opt,name=memo,proto3" json:"memo,omitempty"` // Human-readable description of request for the customer
|
||||
PaymentUrl string `protobuf:"bytes,6,opt,name=payment_url,json=paymentUrl,proto3" json:"payment_url,omitempty"` // URL to send Payment and get PaymentACK
|
||||
MerchantData []byte `protobuf:"bytes,7,opt,name=merchant_data,json=merchantData,proto3" json:"merchant_data,omitempty"` // Arbitrary data to include in the Payment message
|
||||
}
|
||||
|
||||
func (m *PaymentDetails) Reset() { *m = PaymentDetails{} }
|
||||
func (m *PaymentDetails) String() string { return proto.CompactTextString(m) }
|
||||
func (*PaymentDetails) ProtoMessage() {}
|
||||
func (x *PaymentDetails) Reset() {
|
||||
*x = PaymentDetails{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_bip70_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *PaymentDetails) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*PaymentDetails) ProtoMessage() {}
|
||||
|
||||
func (x *PaymentDetails) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_bip70_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use PaymentDetails.ProtoReflect.Descriptor instead.
|
||||
func (*PaymentDetails) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_de204c4c8d465ce4, []int{1}
|
||||
}
|
||||
|
||||
func (m *PaymentDetails) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_PaymentDetails.Unmarshal(m, b)
|
||||
}
|
||||
func (m *PaymentDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_PaymentDetails.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *PaymentDetails) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_PaymentDetails.Merge(m, src)
|
||||
}
|
||||
func (m *PaymentDetails) XXX_Size() int {
|
||||
return xxx_messageInfo_PaymentDetails.Size(m)
|
||||
}
|
||||
func (m *PaymentDetails) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_PaymentDetails.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_PaymentDetails proto.InternalMessageInfo
|
||||
|
||||
const Default_PaymentDetails_Network string = "main"
|
||||
|
||||
func (m *PaymentDetails) GetNetwork() string {
|
||||
if m != nil && m.Network != nil {
|
||||
return *m.Network
|
||||
}
|
||||
return Default_PaymentDetails_Network
|
||||
}
|
||||
|
||||
func (m *PaymentDetails) GetOutputs() []*Output {
|
||||
if m != nil {
|
||||
return m.Outputs
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PaymentDetails) GetTime() uint64 {
|
||||
if m != nil && m.Time != nil {
|
||||
return *m.Time
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *PaymentDetails) GetExpires() uint64 {
|
||||
if m != nil && m.Expires != nil {
|
||||
return *m.Expires
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *PaymentDetails) GetMemo() string {
|
||||
if m != nil && m.Memo != nil {
|
||||
return *m.Memo
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *PaymentDetails) GetPaymentUrl() string {
|
||||
if m != nil && m.PaymentUrl != nil {
|
||||
return *m.PaymentUrl
|
||||
}
|
||||
return ""
|
||||
return file_bip70_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
type PaymentRequest struct {
|
||||
PaymentDetailsVersion *uint32 `protobuf:"varint,1,opt,name=payment_details_version,json=paymentDetailsVersion,def=1" json:"payment_details_version,omitempty"`
|
||||
PkiType *string `protobuf:"bytes,2,opt,name=pki_type,json=pkiType,def=none" json:"pki_type,omitempty"`
|
||||
PkiData []byte `protobuf:"bytes,3,opt,name=pki_data,json=pkiData" json:"pki_data,omitempty"`
|
||||
SerializedPaymentDetails []byte `protobuf:"bytes,4,req,name=serialized_payment_details,json=serializedPaymentDetails" json:"serialized_payment_details,omitempty"`
|
||||
Signature []byte `protobuf:"bytes,5,opt,name=signature" json:"signature,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
PaymentDetailsVersion uint32 `protobuf:"varint,1,opt,name=payment_details_version,json=paymentDetailsVersion,proto3" json:"payment_details_version,omitempty"`
|
||||
PkiType string `protobuf:"bytes,2,opt,name=pki_type,json=pkiType,proto3" json:"pki_type,omitempty"` // none / x509+sha256 / x509+sha1
|
||||
PkiData []byte `protobuf:"bytes,3,opt,name=pki_data,json=pkiData,proto3" json:"pki_data,omitempty"` // depends on pki_type
|
||||
SerializedPaymentDetails []byte `protobuf:"bytes,4,opt,name=serialized_payment_details,json=serializedPaymentDetails,proto3" json:"serialized_payment_details,omitempty"` // PaymentDetails
|
||||
Signature []byte `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"` // pki-dependent signature
|
||||
}
|
||||
|
||||
func (m *PaymentRequest) Reset() { *m = PaymentRequest{} }
|
||||
func (m *PaymentRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*PaymentRequest) ProtoMessage() {}
|
||||
func (x *PaymentRequest) Reset() {
|
||||
*x = PaymentRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_bip70_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *PaymentRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*PaymentRequest) ProtoMessage() {}
|
||||
|
||||
func (x *PaymentRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_bip70_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use PaymentRequest.ProtoReflect.Descriptor instead.
|
||||
func (*PaymentRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_de204c4c8d465ce4, []int{2}
|
||||
return file_bip70_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (m *PaymentRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_PaymentRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *PaymentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_PaymentRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *PaymentRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_PaymentRequest.Merge(m, src)
|
||||
}
|
||||
func (m *PaymentRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_PaymentRequest.Size(m)
|
||||
}
|
||||
func (m *PaymentRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_PaymentRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_PaymentRequest proto.InternalMessageInfo
|
||||
|
||||
const Default_PaymentRequest_PaymentDetailsVersion uint32 = 1
|
||||
const Default_PaymentRequest_PkiType string = "none"
|
||||
|
||||
func (m *PaymentRequest) GetPaymentDetailsVersion() uint32 {
|
||||
if m != nil && m.PaymentDetailsVersion != nil {
|
||||
return *m.PaymentDetailsVersion
|
||||
}
|
||||
return Default_PaymentRequest_PaymentDetailsVersion
|
||||
}
|
||||
|
||||
func (m *PaymentRequest) GetPkiType() string {
|
||||
if m != nil && m.PkiType != nil {
|
||||
return *m.PkiType
|
||||
}
|
||||
return Default_PaymentRequest_PkiType
|
||||
}
|
||||
|
||||
|
||||
type X509Certificates struct {
|
||||
Certificate [][]byte `protobuf:"bytes,1,rep,name=certificate" json:"certificate,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Certificate [][]byte `protobuf:"bytes,1,rep,name=certificate,proto3" json:"certificate,omitempty"` // DER-encoded X.509 certificate chain
|
||||
}
|
||||
|
||||
func (m *X509Certificates) Reset() { *m = X509Certificates{} }
|
||||
func (m *X509Certificates) String() string { return proto.CompactTextString(m) }
|
||||
func (*X509Certificates) ProtoMessage() {}
|
||||
func (*X509Certificates) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_de204c4c8d465ce4, []int{3}
|
||||
}
|
||||
|
||||
func (m *X509Certificates) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_X509Certificates.Unmarshal(m, b)
|
||||
}
|
||||
func (m *X509Certificates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_X509Certificates.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *X509Certificates) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_X509Certificates.Merge(m, src)
|
||||
}
|
||||
func (m *X509Certificates) XXX_Size() int {
|
||||
return xxx_messageInfo_X509Certificates.Size(m)
|
||||
}
|
||||
func (m *X509Certificates) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_X509Certificates.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_X509Certificates proto.InternalMessageInfo
|
||||
|
||||
func (m *X509Certificates) GetCertificate() [][]byte {
|
||||
if m != nil {
|
||||
return m.Certificate
|
||||
func (x *X509Certificates) Reset() {
|
||||
*x = X509Certificates{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_bip70_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *X509Certificates) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*X509Certificates) ProtoMessage() {}
|
||||
|
||||
func (x *X509Certificates) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_bip70_proto_msgTypes[3]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use X509Certificates.ProtoReflect.Descriptor instead.
|
||||
func (*X509Certificates) Descriptor() ([]byte, []int) {
|
||||
return file_bip70_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
type Payment struct {
|
||||
MerchantData []byte `protobuf:"bytes,1,opt,name=merchant_data,json=merchantData" json:"merchant_data,omitempty"`
|
||||
Transactions [][]byte `protobuf:"bytes,2,rep,name=transactions" json:"transactions,omitempty"`
|
||||
RefundTo []*Output `protobuf:"bytes,3,rep,name=refund_to,json=refundTo" json:"refund_to,omitempty"`
|
||||
Memo *string `protobuf:"bytes,4,opt,name=memo" json:"memo,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
MerchantData []byte `protobuf:"bytes,1,opt,name=merchant_data,json=merchantData,proto3" json:"merchant_data,omitempty"` // From PaymentDetails.merchant_data
|
||||
Transactions [][]byte `protobuf:"bytes,2,rep,name=transactions,proto3" json:"transactions,omitempty"` // Signed transactions that satisfy PaymentDetails.outputs
|
||||
RefundTo []*Output `protobuf:"bytes,3,rep,name=refund_to,json=refundTo,proto3" json:"refund_to,omitempty"` // Where to send refunds, if a refund is necessary
|
||||
Memo string `protobuf:"bytes,4,opt,name=memo,proto3" json:"memo,omitempty"` // Human-readable message for the merchant
|
||||
}
|
||||
|
||||
func (m *Payment) Reset() { *m = Payment{} }
|
||||
func (m *Payment) String() string { return proto.CompactTextString(m) }
|
||||
func (*Payment) ProtoMessage() {}
|
||||
func (x *Payment) Reset() {
|
||||
*x = Payment{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_bip70_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *Payment) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Payment) ProtoMessage() {}
|
||||
|
||||
func (x *Payment) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_bip70_proto_msgTypes[4]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use Payment.ProtoReflect.Descriptor instead.
|
||||
func (*Payment) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_de204c4c8d465ce4, []int{4}
|
||||
}
|
||||
|
||||
func (m *Payment) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Payment.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Payment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Payment.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *Payment) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Payment.Merge(m, src)
|
||||
}
|
||||
func (m *Payment) XXX_Size() int {
|
||||
return xxx_messageInfo_Payment.Size(m)
|
||||
}
|
||||
func (m *Payment) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Payment.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Payment proto.InternalMessageInfo
|
||||
|
||||
|
||||
func (m *Payment) GetTransactions() [][]byte {
|
||||
if m != nil {
|
||||
return m.Transactions
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Payment) GetRefundTo() []*Output {
|
||||
if m != nil {
|
||||
return m.RefundTo
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Payment) GetMemo() string {
|
||||
if m != nil && m.Memo != nil {
|
||||
return *m.Memo
|
||||
}
|
||||
return ""
|
||||
return file_bip70_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
type PaymentACK struct {
|
||||
Payment *Payment `protobuf:"bytes,1,req,name=payment" json:"payment,omitempty"`
|
||||
Memo *string `protobuf:"bytes,2,opt,name=memo" json:"memo,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Payment *Payment `protobuf:"bytes,1,opt,name=payment,proto3" json:"payment,omitempty"` // Payment message that triggered this ACK
|
||||
Memo string `protobuf:"bytes,2,opt,name=memo,proto3" json:"memo,omitempty"` // human-readable message for customer
|
||||
}
|
||||
|
||||
func (m *PaymentACK) Reset() { *m = PaymentACK{} }
|
||||
func (m *PaymentACK) String() string { return proto.CompactTextString(m) }
|
||||
func (*PaymentACK) ProtoMessage() {}
|
||||
func (*PaymentACK) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_de204c4c8d465ce4, []int{5}
|
||||
}
|
||||
|
||||
func (m *PaymentACK) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_PaymentACK.Unmarshal(m, b)
|
||||
}
|
||||
func (m *PaymentACK) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_PaymentACK.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *PaymentACK) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_PaymentACK.Merge(m, src)
|
||||
}
|
||||
func (m *PaymentACK) XXX_Size() int {
|
||||
return xxx_messageInfo_PaymentACK.Size(m)
|
||||
}
|
||||
func (m *PaymentACK) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_PaymentACK.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_PaymentACK proto.InternalMessageInfo
|
||||
|
||||
func (m *PaymentACK) GetMemo() string {
|
||||
if m != nil && m.Memo != nil {
|
||||
return *m.Memo
|
||||
func (x *PaymentACK) Reset() {
|
||||
*x = PaymentACK{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_bip70_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Output)(nil), "payments.Output")
|
||||
proto.RegisterType((*PaymentDetails)(nil), "payments.PaymentDetails")
|
||||
proto.RegisterType((*PaymentRequest)(nil), "payments.PaymentRequest")
|
||||
proto.RegisterType((*X509Certificates)(nil), "payments.X509Certificates")
|
||||
proto.RegisterType((*Payment)(nil), "payments.Payment")
|
||||
proto.RegisterType((*PaymentACK)(nil), "payments.PaymentACK")
|
||||
func (x *PaymentACK) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("bip70.proto", fileDescriptor_de204c4c8d465ce4) }
|
||||
func (*PaymentACK) ProtoMessage() {}
|
||||
|
||||
var fileDescriptor_de204c4c8d465ce4 = []byte{
|
||||
// 499 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x53, 0x5f, 0x6f, 0xd3, 0x3e,
|
||||
0x14, 0x55, 0xd2, 0xfc, 0x9a, 0xf6, 0x36, 0xfb, 0x69, 0x58, 0x02, 0x3c, 0x84, 0xb6, 0x28, 0xbc,
|
||||
0x44, 0x20, 0xaa, 0x32, 0x81, 0xd0, 0x0a, 0x2f, 0x6c, 0x7b, 0x43, 0x88, 0xc9, 0x1a, 0x88, 0xb7,
|
||||
0xc8, 0x4b, 0xbd, 0x61, 0x35, 0xb1, 0x8d, 0x7d, 0x03, 0x94, 0xef, 0xc1, 0x27, 0x84, 0x0f, 0x82,
|
||||
0xf2, 0xaf, 0x61, 0x9b, 0x78, 0xb3, 0xcf, 0x3d, 0x39, 0xf7, 0xdc, 0x7b, 0x1c, 0x98, 0x5d, 0x48,
|
||||
0xf3, 0x72, 0x31, 0x37, 0x56, 0xa3, 0x26, 0x13, 0xc3, 0x37, 0xa5, 0x50, 0xe8, 0x92, 0x57, 0x30,
|
||||
0x7e, 0x5f, 0xa1, 0xa9, 0x90, 0xec, 0xc1, 0x98, 0x97, 0xba, 0x52, 0x48, 0xbd, 0xd8, 0x4b, 0x83,
|
||||
0xa5, 0xb7, 0x60, 0x1d, 0x40, 0xee, 0xc1, 0xd8, 0xe5, 0x56, 0x1a, 0xa4, 0x7e, 0xec, 0xa7, 0x11,
|
||||
0xeb, 0x6e, 0xc9, 0x6f, 0x0f, 0xfe, 0x3f, 0x6b, 0x95, 0x4e, 0x05, 0x72, 0x59, 0x38, 0xb2, 0x0f,
|
||||
0xa1, 0x12, 0xf8, 0x4d, 0xdb, 0x75, 0x23, 0x33, 0x5d, 0x06, 0x25, 0x97, 0x8a, 0xf5, 0x20, 0x79,
|
||||
0x0c, 0xa1, 0x6e, 0xfa, 0x39, 0xea, 0xc7, 0xa3, 0x74, 0x76, 0xb8, 0x3b, 0xef, 0xbd, 0xcc, 0x5b,
|
||||
0x23, 0xac, 0x27, 0x10, 0x02, 0x01, 0xca, 0x52, 0xd0, 0x51, 0xec, 0xa7, 0x01, 0x6b, 0xce, 0x84,
|
||||
0x42, 0x28, 0xbe, 0x1b, 0x69, 0x85, 0xa3, 0x41, 0x6d, 0x93, 0xf5, 0xd7, 0x9a, 0x5d, 0x8a, 0x52,
|
||||
0xd3, 0xff, 0xea, 0xb6, 0xac, 0x39, 0x93, 0x03, 0x98, 0x75, 0xea, 0x59, 0x65, 0x0b, 0x3a, 0x6e,
|
||||
0x4a, 0xd0, 0x41, 0x1f, 0x6c, 0x41, 0x1e, 0xc1, 0x4e, 0x29, 0x6c, 0xfe, 0x99, 0x2b, 0xcc, 0x56,
|
||||
0x1c, 0x39, 0x0d, 0x63, 0x2f, 0x8d, 0x58, 0xd4, 0x83, 0xa7, 0x1c, 0x79, 0xf2, 0x6b, 0x18, 0x93,
|
||||
0x89, 0x2f, 0x95, 0x70, 0x48, 0x8e, 0xe0, 0x7e, 0x2f, 0xbc, 0x6a, 0x27, 0xcf, 0xbe, 0x0a, 0xeb,
|
||||
0xa4, 0x56, 0xcd, 0xd8, 0x3b, 0x4b, 0xef, 0x19, 0xbb, 0x6b, 0xae, 0xad, 0xe6, 0x63, 0x5b, 0x27,
|
||||
0x07, 0x30, 0x31, 0x6b, 0x99, 0xe1, 0xc6, 0x08, 0xea, 0xb7, 0x2b, 0x52, 0x5a, 0x09, 0x16, 0x9a,
|
||||
0xb5, 0x3c, 0xdf, 0x18, 0x41, 0xf6, 0x5a, 0x42, 0x63, 0x67, 0xd4, 0xd8, 0xa9, 0x4b, 0xb5, 0x13,
|
||||
0xf2, 0x1a, 0x1e, 0x38, 0x61, 0x25, 0x2f, 0xe4, 0x0f, 0xb1, 0xca, 0x6e, 0x38, 0xa0, 0x41, 0x13,
|
||||
0x0e, 0x1d, 0x18, 0x37, 0xb2, 0x79, 0x08, 0x53, 0x27, 0xaf, 0x14, 0xc7, 0xca, 0x8a, 0x66, 0x4d,
|
||||
0x11, 0x1b, 0x80, 0xe4, 0x39, 0xec, 0x7e, 0x7a, 0xb1, 0x38, 0x3a, 0x11, 0x16, 0xe5, 0xa5, 0xcc,
|
||||
0x39, 0x0a, 0x47, 0x62, 0x98, 0xe5, 0xc3, 0x9d, 0x7a, 0xf1, 0x28, 0x8d, 0xd8, 0xdf, 0x50, 0xf2,
|
||||
0xd3, 0x83, 0xb0, 0x6b, 0x73, 0x7b, 0x99, 0xde, 0xed, 0x65, 0x92, 0x04, 0x22, 0xb4, 0x5c, 0x39,
|
||||
0x9e, 0xa3, 0xd4, 0xaa, 0x7d, 0x05, 0x11, 0xbb, 0x86, 0x91, 0xa7, 0x30, 0xb5, 0xe2, 0xb2, 0x52,
|
||||
0xab, 0x0c, 0x35, 0x1d, 0xfd, 0xe3, 0x99, 0x4c, 0x5a, 0xca, 0xb9, 0xde, 0x26, 0x1f, 0x0c, 0xc9,
|
||||
0x27, 0xef, 0x00, 0x3a, 0x5b, 0x6f, 0x4e, 0xde, 0x92, 0x27, 0x10, 0x76, 0x9f, 0x53, 0x2f, 0xf6,
|
||||
0xd3, 0xd9, 0xe1, 0x9d, 0x41, 0xae, 0x4f, 0xb6, 0x67, 0x6c, 0xe5, 0xfc, 0x41, 0xee, 0x38, 0x85,
|
||||
0x7d, 0x6d, 0xaf, 0xe6, 0x17, 0x12, 0x73, 0x2d, 0x55, 0xfb, 0x17, 0xe5, 0xba, 0x70, 0x5b, 0x99,
|
||||
0xe3, 0xf1, 0x59, 0x8d, 0xb9, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x27, 0x08, 0xfa, 0xe5, 0x68,
|
||||
0x03, 0x00, 0x00,
|
||||
func (x *PaymentACK) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_bip70_proto_msgTypes[5]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use PaymentACK.ProtoReflect.Descriptor instead.
|
||||
func (*PaymentACK) Descriptor() ([]byte, []int) {
|
||||
return file_bip70_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
var File_bip70_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_bip70_proto_rawDesc = []byte{
|
||||
0x0a, 0x0b, 0x62, 0x69, 0x70, 0x37, 0x30, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x6c,
|
||||
0x69, 0x62, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x22, 0x38, 0x0a, 0x06, 0x4f, 0x75, 0x74, 0x70,
|
||||
0x75, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63,
|
||||
0x72, 0x69, 0x70, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x63, 0x72, 0x69,
|
||||
0x70, 0x74, 0x22, 0xdf, 0x01, 0x0a, 0x0e, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x65,
|
||||
0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12,
|
||||
0x2b, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
|
||||
0x32, 0x11, 0x2e, 0x6c, 0x69, 0x62, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x4f, 0x75, 0x74,
|
||||
0x70, 0x75, 0x74, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x12, 0x0a, 0x04,
|
||||
0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65,
|
||||
0x12, 0x18, 0x0a, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28,
|
||||
0x04, 0x52, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65,
|
||||
0x6d, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x12, 0x1f,
|
||||
0x0a, 0x0b, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x06, 0x20,
|
||||
0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x55, 0x72, 0x6c, 0x12,
|
||||
0x23, 0x0a, 0x0d, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61,
|
||||
0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74,
|
||||
0x44, 0x61, 0x74, 0x61, 0x22, 0xda, 0x01, 0x0a, 0x0e, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x17, 0x70, 0x61, 0x79, 0x6d, 0x65,
|
||||
0x6e, 0x74, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69,
|
||||
0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x15, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e,
|
||||
0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12,
|
||||
0x19, 0x0a, 0x08, 0x70, 0x6b, 0x69, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x07, 0x70, 0x6b, 0x69, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6b,
|
||||
0x69, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x6b,
|
||||
0x69, 0x44, 0x61, 0x74, 0x61, 0x12, 0x3c, 0x0a, 0x1a, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69,
|
||||
0x7a, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x65, 0x74, 0x61,
|
||||
0x69, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x18, 0x73, 0x65, 0x72, 0x69, 0x61,
|
||||
0x6c, 0x69, 0x7a, 0x65, 0x64, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61,
|
||||
0x69, 0x6c, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65,
|
||||
0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72,
|
||||
0x65, 0x22, 0x34, 0x0a, 0x10, 0x58, 0x35, 0x30, 0x39, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69,
|
||||
0x63, 0x61, 0x74, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69,
|
||||
0x63, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74,
|
||||
0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x22, 0x96, 0x01, 0x0a, 0x07, 0x50, 0x61, 0x79, 0x6d,
|
||||
0x65, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x5f,
|
||||
0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x6d, 0x65, 0x72, 0x63,
|
||||
0x68, 0x61, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x22, 0x0a, 0x0c, 0x74, 0x72, 0x61, 0x6e,
|
||||
0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0c,
|
||||
0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2e, 0x0a, 0x09,
|
||||
0x72, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x5f, 0x74, 0x6f, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
||||
0x11, 0x2e, 0x6c, 0x69, 0x62, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x4f, 0x75, 0x74, 0x70,
|
||||
0x75, 0x74, 0x52, 0x08, 0x72, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x54, 0x6f, 0x12, 0x12, 0x0a, 0x04,
|
||||
0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f,
|
||||
0x22, 0x4e, 0x0a, 0x0a, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x43, 0x4b, 0x12, 0x2c,
|
||||
0x0a, 0x07, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||
0x12, 0x2e, 0x6c, 0x69, 0x62, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x50, 0x61, 0x79, 0x6d,
|
||||
0x65, 0x6e, 0x74, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04,
|
||||
0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f,
|
||||
0x42, 0x08, 0x5a, 0x06, 0x2f, 0x62, 0x69, 0x70, 0x37, 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_bip70_proto_rawDescOnce sync.Once
|
||||
file_bip70_proto_rawDescData = file_bip70_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_bip70_proto_rawDescGZIP() []byte {
|
||||
file_bip70_proto_rawDescOnce.Do(func() {
|
||||
file_bip70_proto_rawDescData = protoimpl.X.CompressGZIP(file_bip70_proto_rawDescData)
|
||||
})
|
||||
return file_bip70_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_bip70_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
||||
var file_bip70_proto_goTypes = []interface{}{
|
||||
(*Output)(nil), // 0: libwallet.Output
|
||||
(*PaymentDetails)(nil), // 1: libwallet.PaymentDetails
|
||||
(*PaymentRequest)(nil), // 2: libwallet.PaymentRequest
|
||||
(*X509Certificates)(nil), // 3: libwallet.X509Certificates
|
||||
(*Payment)(nil), // 4: libwallet.Payment
|
||||
(*PaymentACK)(nil), // 5: libwallet.PaymentACK
|
||||
}
|
||||
var file_bip70_proto_depIdxs = []int32{
|
||||
0, // 0: libwallet.PaymentDetails.outputs:type_name -> libwallet.Output
|
||||
0, // 1: libwallet.Payment.refund_to:type_name -> libwallet.Output
|
||||
4, // 2: libwallet.PaymentACK.payment:type_name -> libwallet.Payment
|
||||
3, // [3:3] is the sub-list for method output_type
|
||||
3, // [3:3] is the sub-list for method input_type
|
||||
3, // [3:3] is the sub-list for extension type_name
|
||||
3, // [3:3] is the sub-list for extension extendee
|
||||
0, // [0:3] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_bip70_proto_init() }
|
||||
func file_bip70_proto_init() {
|
||||
if File_bip70_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_bip70_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Output); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_bip70_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*PaymentDetails); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_bip70_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*PaymentRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_bip70_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*X509Certificates); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_bip70_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Payment); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_bip70_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*PaymentACK); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_bip70_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 6,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_bip70_proto_goTypes,
|
||||
DependencyIndexes: file_bip70_proto_depIdxs,
|
||||
MessageInfos: file_bip70_proto_msgTypes,
|
||||
}.Build()
|
||||
File_bip70_proto = out.File
|
||||
file_bip70_proto_rawDesc = nil
|
||||
file_bip70_proto_goTypes = nil
|
||||
file_bip70_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user