-
Notifications
You must be signed in to change notification settings - Fork 119
/
Copy pathstaticaddr.pb.go
1460 lines (1305 loc) · 58.3 KB
/
staticaddr.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.30.0
// protoc v3.21.12
// source: staticaddr.proto
// We can't change this to swapserverrpc, it would be a breaking change because
// the package name is also contained in the HTTP URIs and old clients would
// call the wrong endpoints. Luckily with the go_package option we can have
// different golang and RPC package names to fix protobuf namespace conflicts.
package swapserverrpc
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
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)
)
// StaticAddressProtocolVersion represents the static address protocol version
// the client adheres to.
type StaticAddressProtocolVersion int32
const (
// V0 is the initially released static address protocol version.
StaticAddressProtocolVersion_V0 StaticAddressProtocolVersion = 0
)
// Enum value maps for StaticAddressProtocolVersion.
var (
StaticAddressProtocolVersion_name = map[int32]string{
0: "V0",
}
StaticAddressProtocolVersion_value = map[string]int32{
"V0": 0,
}
)
func (x StaticAddressProtocolVersion) Enum() *StaticAddressProtocolVersion {
p := new(StaticAddressProtocolVersion)
*p = x
return p
}
func (x StaticAddressProtocolVersion) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (StaticAddressProtocolVersion) Descriptor() protoreflect.EnumDescriptor {
return file_staticaddr_proto_enumTypes[0].Descriptor()
}
func (StaticAddressProtocolVersion) Type() protoreflect.EnumType {
return &file_staticaddr_proto_enumTypes[0]
}
func (x StaticAddressProtocolVersion) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use StaticAddressProtocolVersion.Descriptor instead.
func (StaticAddressProtocolVersion) EnumDescriptor() ([]byte, []int) {
return file_staticaddr_proto_rawDescGZIP(), []int{0}
}
type ServerNewAddressRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The protocol version that the client adheres to.
ProtocolVersion StaticAddressProtocolVersion `protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion,proto3,enum=looprpc.StaticAddressProtocolVersion" json:"protocol_version,omitempty"`
// The client key for the MuSig2 static address output.
ClientKey []byte `protobuf:"bytes,2,opt,name=client_key,json=clientKey,proto3" json:"client_key,omitempty"`
}
func (x *ServerNewAddressRequest) Reset() {
*x = ServerNewAddressRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_staticaddr_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ServerNewAddressRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ServerNewAddressRequest) ProtoMessage() {}
func (x *ServerNewAddressRequest) ProtoReflect() protoreflect.Message {
mi := &file_staticaddr_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 ServerNewAddressRequest.ProtoReflect.Descriptor instead.
func (*ServerNewAddressRequest) Descriptor() ([]byte, []int) {
return file_staticaddr_proto_rawDescGZIP(), []int{0}
}
func (x *ServerNewAddressRequest) GetProtocolVersion() StaticAddressProtocolVersion {
if x != nil {
return x.ProtocolVersion
}
return StaticAddressProtocolVersion_V0
}
func (x *ServerNewAddressRequest) GetClientKey() []byte {
if x != nil {
return x.ClientKey
}
return nil
}
type ServerNewAddressResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The server address parameters that the client needs to know to create the
// static address output.
Params *ServerAddressParameters `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}
func (x *ServerNewAddressResponse) Reset() {
*x = ServerNewAddressResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_staticaddr_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ServerNewAddressResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ServerNewAddressResponse) ProtoMessage() {}
func (x *ServerNewAddressResponse) ProtoReflect() protoreflect.Message {
mi := &file_staticaddr_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 ServerNewAddressResponse.ProtoReflect.Descriptor instead.
func (*ServerNewAddressResponse) Descriptor() ([]byte, []int) {
return file_staticaddr_proto_rawDescGZIP(), []int{1}
}
func (x *ServerNewAddressResponse) GetParams() *ServerAddressParameters {
if x != nil {
return x.Params
}
return nil
}
type ServerAddressParameters struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The server key for the MuSig2 static address output.
ServerKey []byte `protobuf:"bytes,1,opt,name=server_key,json=serverKey,proto3" json:"server_key,omitempty"`
// The CSV expiry of the static address output.
Expiry uint32 `protobuf:"varint,2,opt,name=expiry,proto3" json:"expiry,omitempty"`
}
func (x *ServerAddressParameters) Reset() {
*x = ServerAddressParameters{}
if protoimpl.UnsafeEnabled {
mi := &file_staticaddr_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ServerAddressParameters) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ServerAddressParameters) ProtoMessage() {}
func (x *ServerAddressParameters) ProtoReflect() protoreflect.Message {
mi := &file_staticaddr_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 ServerAddressParameters.ProtoReflect.Descriptor instead.
func (*ServerAddressParameters) Descriptor() ([]byte, []int) {
return file_staticaddr_proto_rawDescGZIP(), []int{2}
}
func (x *ServerAddressParameters) GetServerKey() []byte {
if x != nil {
return x.ServerKey
}
return nil
}
func (x *ServerAddressParameters) GetExpiry() uint32 {
if x != nil {
return x.Expiry
}
return 0
}
type ServerWithdrawRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The deposit outpoints the client wishes to withdraw.
Outpoints []*PrevoutInfo `protobuf:"bytes,1,rep,name=outpoints,proto3" json:"outpoints,omitempty"`
// The nonces that the client used to generate the withdrawal tx sigs.
ClientNonces [][]byte `protobuf:"bytes,2,rep,name=client_nonces,json=clientNonces,proto3" json:"client_nonces,omitempty"`
// The address that the client wants to sweep the static address deposits
// to.
ClientSweepAddr string `protobuf:"bytes,3,opt,name=client_sweep_addr,json=clientSweepAddr,proto3" json:"client_sweep_addr,omitempty"`
// The fee rate in sat/kw that the client wants to use for the sweep.
TxFeeRate uint64 `protobuf:"varint,4,opt,name=tx_fee_rate,json=txFeeRate,proto3" json:"tx_fee_rate,omitempty"`
// The amount that the client wants to withdraw, in satoshis. This amount
// can be a fraction of the total deposit amount.
WithdrawAmount int64 `protobuf:"varint,5,opt,name=withdraw_amount,json=withdrawAmount,proto3" json:"withdraw_amount,omitempty"`
// The change amount will be sent back to the static address. The client
// ensures that the change amount covers the transaction fee, and that the
// change after fees is at least the dust limit.
ChangeAmount int64 `protobuf:"varint,6,opt,name=change_amount,json=changeAmount,proto3" json:"change_amount,omitempty"`
}
func (x *ServerWithdrawRequest) Reset() {
*x = ServerWithdrawRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_staticaddr_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ServerWithdrawRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ServerWithdrawRequest) ProtoMessage() {}
func (x *ServerWithdrawRequest) ProtoReflect() protoreflect.Message {
mi := &file_staticaddr_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 ServerWithdrawRequest.ProtoReflect.Descriptor instead.
func (*ServerWithdrawRequest) Descriptor() ([]byte, []int) {
return file_staticaddr_proto_rawDescGZIP(), []int{3}
}
func (x *ServerWithdrawRequest) GetOutpoints() []*PrevoutInfo {
if x != nil {
return x.Outpoints
}
return nil
}
func (x *ServerWithdrawRequest) GetClientNonces() [][]byte {
if x != nil {
return x.ClientNonces
}
return nil
}
func (x *ServerWithdrawRequest) GetClientSweepAddr() string {
if x != nil {
return x.ClientSweepAddr
}
return ""
}
func (x *ServerWithdrawRequest) GetTxFeeRate() uint64 {
if x != nil {
return x.TxFeeRate
}
return 0
}
func (x *ServerWithdrawRequest) GetWithdrawAmount() int64 {
if x != nil {
return x.WithdrawAmount
}
return 0
}
func (x *ServerWithdrawRequest) GetChangeAmount() int64 {
if x != nil {
return x.ChangeAmount
}
return 0
}
type ServerWithdrawResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The sweep sigs that the server generated for the htlc.
Musig2SweepSigs [][]byte `protobuf:"bytes,1,rep,name=musig2_sweep_sigs,json=musig2SweepSigs,proto3" json:"musig2_sweep_sigs,omitempty"`
// The nonces that the server used to generate the sweepless sweep sigs.
ServerNonces [][]byte `protobuf:"bytes,2,rep,name=server_nonces,json=serverNonces,proto3" json:"server_nonces,omitempty"`
}
func (x *ServerWithdrawResponse) Reset() {
*x = ServerWithdrawResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_staticaddr_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ServerWithdrawResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ServerWithdrawResponse) ProtoMessage() {}
func (x *ServerWithdrawResponse) ProtoReflect() protoreflect.Message {
mi := &file_staticaddr_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 ServerWithdrawResponse.ProtoReflect.Descriptor instead.
func (*ServerWithdrawResponse) Descriptor() ([]byte, []int) {
return file_staticaddr_proto_rawDescGZIP(), []int{4}
}
func (x *ServerWithdrawResponse) GetMusig2SweepSigs() [][]byte {
if x != nil {
return x.Musig2SweepSigs
}
return nil
}
func (x *ServerWithdrawResponse) GetServerNonces() [][]byte {
if x != nil {
return x.ServerNonces
}
return nil
}
type ServerStaticAddressLoopInRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The client's public key for the htlc output.
HtlcClientPubKey []byte `protobuf:"bytes,1,opt,name=htlc_client_pub_key,json=htlcClientPubKey,proto3" json:"htlc_client_pub_key,omitempty"`
// The hashed swap invoice preimage of the swap.
SwapHash []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
// The deposit outpoints the client wishes to loop in. They implicitly state
// the swap amount.
DepositOutpoints []string `protobuf:"bytes,3,rep,name=deposit_outpoints,json=depositOutpoints,proto3" json:"deposit_outpoints,omitempty"`
// The swap invoice that the client wants the server to pay.
SwapInvoice string `protobuf:"bytes,4,opt,name=swap_invoice,json=swapInvoice,proto3" json:"swap_invoice,omitempty"`
// An optional last hop the client wants to receive the invoice payment
// from.
LastHop []byte `protobuf:"bytes,5,opt,name=last_hop,json=lastHop,proto3" json:"last_hop,omitempty"`
// The protocol version that the client adheres to.
ProtocolVersion StaticAddressProtocolVersion `protobuf:"varint,6,opt,name=protocol_version,json=protocolVersion,proto3,enum=looprpc.StaticAddressProtocolVersion" json:"protocol_version,omitempty"`
// The user agent string that identifies the software running on the user's
// side. This can be changed in the user's client software but it _SHOULD_
// conform to the following pattern:
//
// Agent-Name/semver-version(/additional-info)
//
// Examples:
//
// loopd/v0.10.0-beta/commit=3b635821
// litd/v0.2.0-alpha/commit=326d754
// loopd/v0.10.0-beta/commit=3b635823,initiator=easy-autoloop
UserAgent string `protobuf:"bytes,7,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
// The swap payment timeout allows the user to specify an upper limit for
// the amount of time the server is allowed to take to fulfill the off-chain
// swap payment. If the timeout is reached the swap will be aborted on the
// server side and the client can retry the swap with different parameters.
PaymentTimeoutSeconds uint32 `protobuf:"varint,8,opt,name=payment_timeout_seconds,json=paymentTimeoutSeconds,proto3" json:"payment_timeout_seconds,omitempty"`
}
func (x *ServerStaticAddressLoopInRequest) Reset() {
*x = ServerStaticAddressLoopInRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_staticaddr_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ServerStaticAddressLoopInRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ServerStaticAddressLoopInRequest) ProtoMessage() {}
func (x *ServerStaticAddressLoopInRequest) ProtoReflect() protoreflect.Message {
mi := &file_staticaddr_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 ServerStaticAddressLoopInRequest.ProtoReflect.Descriptor instead.
func (*ServerStaticAddressLoopInRequest) Descriptor() ([]byte, []int) {
return file_staticaddr_proto_rawDescGZIP(), []int{5}
}
func (x *ServerStaticAddressLoopInRequest) GetHtlcClientPubKey() []byte {
if x != nil {
return x.HtlcClientPubKey
}
return nil
}
func (x *ServerStaticAddressLoopInRequest) GetSwapHash() []byte {
if x != nil {
return x.SwapHash
}
return nil
}
func (x *ServerStaticAddressLoopInRequest) GetDepositOutpoints() []string {
if x != nil {
return x.DepositOutpoints
}
return nil
}
func (x *ServerStaticAddressLoopInRequest) GetSwapInvoice() string {
if x != nil {
return x.SwapInvoice
}
return ""
}
func (x *ServerStaticAddressLoopInRequest) GetLastHop() []byte {
if x != nil {
return x.LastHop
}
return nil
}
func (x *ServerStaticAddressLoopInRequest) GetProtocolVersion() StaticAddressProtocolVersion {
if x != nil {
return x.ProtocolVersion
}
return StaticAddressProtocolVersion_V0
}
func (x *ServerStaticAddressLoopInRequest) GetUserAgent() string {
if x != nil {
return x.UserAgent
}
return ""
}
func (x *ServerStaticAddressLoopInRequest) GetPaymentTimeoutSeconds() uint32 {
if x != nil {
return x.PaymentTimeoutSeconds
}
return 0
}
type ServerStaticAddressLoopInResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The server's public key for the htlc output.
HtlcServerPubKey []byte `protobuf:"bytes,1,opt,name=htlc_server_pub_key,json=htlcServerPubKey,proto3" json:"htlc_server_pub_key,omitempty"`
// The cltv expiry height for the htlc. This is the height at which the
// htlc will expire and the client is free to claim the funds back.
HtlcExpiry int32 `protobuf:"varint,2,opt,name=htlc_expiry,json=htlcExpiry,proto3" json:"htlc_expiry,omitempty"`
// The info the server used to generate the standard fee partial htlc tx
// sigs.
StandardHtlcInfo *ServerHtlcSigningInfo `protobuf:"bytes,3,opt,name=standard_htlc_info,json=standardHtlcInfo,proto3" json:"standard_htlc_info,omitempty"`
// The info the server used to generate the high fee partial htlc tx sigs.
HighFeeHtlcInfo *ServerHtlcSigningInfo `protobuf:"bytes,4,opt,name=high_fee_htlc_info,json=highFeeHtlcInfo,proto3" json:"high_fee_htlc_info,omitempty"`
// The info the server used to generate the extreme fee partial htlc tx
// sigs.
ExtremeFeeHtlcInfo *ServerHtlcSigningInfo `protobuf:"bytes,5,opt,name=extreme_fee_htlc_info,json=extremeFeeHtlcInfo,proto3" json:"extreme_fee_htlc_info,omitempty"`
}
func (x *ServerStaticAddressLoopInResponse) Reset() {
*x = ServerStaticAddressLoopInResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_staticaddr_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ServerStaticAddressLoopInResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ServerStaticAddressLoopInResponse) ProtoMessage() {}
func (x *ServerStaticAddressLoopInResponse) ProtoReflect() protoreflect.Message {
mi := &file_staticaddr_proto_msgTypes[6]
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 ServerStaticAddressLoopInResponse.ProtoReflect.Descriptor instead.
func (*ServerStaticAddressLoopInResponse) Descriptor() ([]byte, []int) {
return file_staticaddr_proto_rawDescGZIP(), []int{6}
}
func (x *ServerStaticAddressLoopInResponse) GetHtlcServerPubKey() []byte {
if x != nil {
return x.HtlcServerPubKey
}
return nil
}
func (x *ServerStaticAddressLoopInResponse) GetHtlcExpiry() int32 {
if x != nil {
return x.HtlcExpiry
}
return 0
}
func (x *ServerStaticAddressLoopInResponse) GetStandardHtlcInfo() *ServerHtlcSigningInfo {
if x != nil {
return x.StandardHtlcInfo
}
return nil
}
func (x *ServerStaticAddressLoopInResponse) GetHighFeeHtlcInfo() *ServerHtlcSigningInfo {
if x != nil {
return x.HighFeeHtlcInfo
}
return nil
}
func (x *ServerStaticAddressLoopInResponse) GetExtremeFeeHtlcInfo() *ServerHtlcSigningInfo {
if x != nil {
return x.ExtremeFeeHtlcInfo
}
return nil
}
type ServerHtlcSigningInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The nonces that the server used to generate the partial htlc tx sigs.
Nonces [][]byte `protobuf:"bytes,1,rep,name=nonces,proto3" json:"nonces,omitempty"`
// The fee rate in sat/kw that the server wants to use for the htlc tx.
FeeRate uint64 `protobuf:"varint,2,opt,name=fee_rate,json=feeRate,proto3" json:"fee_rate,omitempty"`
}
func (x *ServerHtlcSigningInfo) Reset() {
*x = ServerHtlcSigningInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_staticaddr_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ServerHtlcSigningInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ServerHtlcSigningInfo) ProtoMessage() {}
func (x *ServerHtlcSigningInfo) ProtoReflect() protoreflect.Message {
mi := &file_staticaddr_proto_msgTypes[7]
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 ServerHtlcSigningInfo.ProtoReflect.Descriptor instead.
func (*ServerHtlcSigningInfo) Descriptor() ([]byte, []int) {
return file_staticaddr_proto_rawDescGZIP(), []int{7}
}
func (x *ServerHtlcSigningInfo) GetNonces() [][]byte {
if x != nil {
return x.Nonces
}
return nil
}
func (x *ServerHtlcSigningInfo) GetFeeRate() uint64 {
if x != nil {
return x.FeeRate
}
return 0
}
type PushStaticAddressHtlcSigsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The swap hash that the client wants to push the htlc sigs for.
SwapHash []byte `protobuf:"bytes,1,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
// The nonces that the client used to generate the htlc sigs.
StandardHtlcInfo *ClientHtlcSigningInfo `protobuf:"bytes,2,opt,name=standard_htlc_info,json=standardHtlcInfo,proto3" json:"standard_htlc_info,omitempty"`
// The nonces that the client used to generate the high fee htlc sigs.
HighFeeHtlcInfo *ClientHtlcSigningInfo `protobuf:"bytes,3,opt,name=high_fee_htlc_info,json=highFeeHtlcInfo,proto3" json:"high_fee_htlc_info,omitempty"`
// The nonces that the client used to generate the extreme fee htlc sigs.
ExtremeFeeHtlcInfo *ClientHtlcSigningInfo `protobuf:"bytes,4,opt,name=extreme_fee_htlc_info,json=extremeFeeHtlcInfo,proto3" json:"extreme_fee_htlc_info,omitempty"`
}
func (x *PushStaticAddressHtlcSigsRequest) Reset() {
*x = PushStaticAddressHtlcSigsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_staticaddr_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PushStaticAddressHtlcSigsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PushStaticAddressHtlcSigsRequest) ProtoMessage() {}
func (x *PushStaticAddressHtlcSigsRequest) ProtoReflect() protoreflect.Message {
mi := &file_staticaddr_proto_msgTypes[8]
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 PushStaticAddressHtlcSigsRequest.ProtoReflect.Descriptor instead.
func (*PushStaticAddressHtlcSigsRequest) Descriptor() ([]byte, []int) {
return file_staticaddr_proto_rawDescGZIP(), []int{8}
}
func (x *PushStaticAddressHtlcSigsRequest) GetSwapHash() []byte {
if x != nil {
return x.SwapHash
}
return nil
}
func (x *PushStaticAddressHtlcSigsRequest) GetStandardHtlcInfo() *ClientHtlcSigningInfo {
if x != nil {
return x.StandardHtlcInfo
}
return nil
}
func (x *PushStaticAddressHtlcSigsRequest) GetHighFeeHtlcInfo() *ClientHtlcSigningInfo {
if x != nil {
return x.HighFeeHtlcInfo
}
return nil
}
func (x *PushStaticAddressHtlcSigsRequest) GetExtremeFeeHtlcInfo() *ClientHtlcSigningInfo {
if x != nil {
return x.ExtremeFeeHtlcInfo
}
return nil
}
type ClientHtlcSigningInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The nonces that the client used to generate the partial htlc tx sigs.
Nonces [][]byte `protobuf:"bytes,1,rep,name=nonces,proto3" json:"nonces,omitempty"`
// The musig2 htlc sigs that the client generated for the htlc tx.
Sigs [][]byte `protobuf:"bytes,2,rep,name=sigs,proto3" json:"sigs,omitempty"`
}
func (x *ClientHtlcSigningInfo) Reset() {
*x = ClientHtlcSigningInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_staticaddr_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ClientHtlcSigningInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClientHtlcSigningInfo) ProtoMessage() {}
func (x *ClientHtlcSigningInfo) ProtoReflect() protoreflect.Message {
mi := &file_staticaddr_proto_msgTypes[9]
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 ClientHtlcSigningInfo.ProtoReflect.Descriptor instead.
func (*ClientHtlcSigningInfo) Descriptor() ([]byte, []int) {
return file_staticaddr_proto_rawDescGZIP(), []int{9}
}
func (x *ClientHtlcSigningInfo) GetNonces() [][]byte {
if x != nil {
return x.Nonces
}
return nil
}
func (x *ClientHtlcSigningInfo) GetSigs() [][]byte {
if x != nil {
return x.Sigs
}
return nil
}
type PushStaticAddressHtlcSigsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *PushStaticAddressHtlcSigsResponse) Reset() {
*x = PushStaticAddressHtlcSigsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_staticaddr_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PushStaticAddressHtlcSigsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PushStaticAddressHtlcSigsResponse) ProtoMessage() {}
func (x *PushStaticAddressHtlcSigsResponse) ProtoReflect() protoreflect.Message {
mi := &file_staticaddr_proto_msgTypes[10]
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 PushStaticAddressHtlcSigsResponse.ProtoReflect.Descriptor instead.
func (*PushStaticAddressHtlcSigsResponse) Descriptor() ([]byte, []int) {
return file_staticaddr_proto_rawDescGZIP(), []int{10}
}
type PushStaticAddressSweeplessSigsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The swap hash of the swap that the client wants to push the sweepless
// sigs for.
SwapHash []byte `protobuf:"bytes,1,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
// The txid of the sweep tx that the client wants to push the sweepless
// sigs for.
Txid []byte `protobuf:"bytes,2,opt,name=txid,proto3" json:"txid,omitempty"`
// A map of deposits in format txid:idx to the nonces.
SigningInfo map[string]*ClientSweeplessSigningInfo `protobuf:"bytes,3,rep,name=signing_info,json=signingInfo,proto3" json:"signing_info,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// An optional error message that the client can provide, e.g. if the
// client does not consider the swap finished yet.bool
ErrorMessage string `protobuf:"bytes,4,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
}
func (x *PushStaticAddressSweeplessSigsRequest) Reset() {
*x = PushStaticAddressSweeplessSigsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_staticaddr_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PushStaticAddressSweeplessSigsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PushStaticAddressSweeplessSigsRequest) ProtoMessage() {}
func (x *PushStaticAddressSweeplessSigsRequest) ProtoReflect() protoreflect.Message {
mi := &file_staticaddr_proto_msgTypes[11]
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 PushStaticAddressSweeplessSigsRequest.ProtoReflect.Descriptor instead.
func (*PushStaticAddressSweeplessSigsRequest) Descriptor() ([]byte, []int) {
return file_staticaddr_proto_rawDescGZIP(), []int{11}
}
func (x *PushStaticAddressSweeplessSigsRequest) GetSwapHash() []byte {
if x != nil {
return x.SwapHash
}
return nil
}
func (x *PushStaticAddressSweeplessSigsRequest) GetTxid() []byte {
if x != nil {
return x.Txid
}
return nil
}
func (x *PushStaticAddressSweeplessSigsRequest) GetSigningInfo() map[string]*ClientSweeplessSigningInfo {
if x != nil {
return x.SigningInfo
}
return nil
}
func (x *PushStaticAddressSweeplessSigsRequest) GetErrorMessage() string {
if x != nil {
return x.ErrorMessage
}
return ""
}
type ClientSweeplessSigningInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The nonces that the client used to generate the partial sweepless tx
// sigs.
Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
// The musig2 htlc sigs that the client generated for the sweepless tx.
Sig []byte `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"`
}
func (x *ClientSweeplessSigningInfo) Reset() {
*x = ClientSweeplessSigningInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_staticaddr_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ClientSweeplessSigningInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClientSweeplessSigningInfo) ProtoMessage() {}
func (x *ClientSweeplessSigningInfo) ProtoReflect() protoreflect.Message {
mi := &file_staticaddr_proto_msgTypes[12]
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 ClientSweeplessSigningInfo.ProtoReflect.Descriptor instead.
func (*ClientSweeplessSigningInfo) Descriptor() ([]byte, []int) {
return file_staticaddr_proto_rawDescGZIP(), []int{12}
}
func (x *ClientSweeplessSigningInfo) GetNonce() []byte {
if x != nil {
return x.Nonce
}
return nil
}
func (x *ClientSweeplessSigningInfo) GetSig() []byte {
if x != nil {
return x.Sig
}
return nil
}
type PushStaticAddressSweeplessSigsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *PushStaticAddressSweeplessSigsResponse) Reset() {
*x = PushStaticAddressSweeplessSigsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_staticaddr_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PushStaticAddressSweeplessSigsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PushStaticAddressSweeplessSigsResponse) ProtoMessage() {}
func (x *PushStaticAddressSweeplessSigsResponse) ProtoReflect() protoreflect.Message {
mi := &file_staticaddr_proto_msgTypes[13]
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 PushStaticAddressSweeplessSigsResponse.ProtoReflect.Descriptor instead.