• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lightningnetwork / lnd / 13412100018

19 Feb 2025 12:05PM UTC coverage: 44.914% (-13.9%) from 58.794%
13412100018

Pull #9521

github

web-flow
Merge 861d6970e into 0e8786348
Pull Request #9521: unit: remove GOACC, use Go 1.20 native coverage functionality

101023 of 224923 relevant lines covered (44.91%)

19479.4 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

4.47
/lnrpc/walletunlocker.pb.go
1
// Code generated by protoc-gen-go. DO NOT EDIT.
2
// versions:
3
//         protoc-gen-go v1.33.0
4
//         protoc        v3.21.12
5
// source: walletunlocker.proto
6

7
package lnrpc
8

9
import (
10
        protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11
        protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12
        reflect "reflect"
13
        sync "sync"
14
)
15

16
const (
17
        // Verify that this generated code is sufficiently up-to-date.
18
        _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
19
        // Verify that runtime/protoimpl is sufficiently up-to-date.
20
        _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
21
)
22

23
type GenSeedRequest struct {
24
        state         protoimpl.MessageState
25
        sizeCache     protoimpl.SizeCache
26
        unknownFields protoimpl.UnknownFields
27

28
        // aezeed_passphrase is an optional user provided passphrase that will be used
29
        // to encrypt the generated aezeed cipher seed. When using REST, this field
30
        // must be encoded as base64.
31
        AezeedPassphrase []byte `protobuf:"bytes,1,opt,name=aezeed_passphrase,json=aezeedPassphrase,proto3" json:"aezeed_passphrase,omitempty"`
32
        // seed_entropy is an optional 16-bytes generated via CSPRNG. If not
33
        // specified, then a fresh set of randomness will be used to create the seed.
34
        // When using REST, this field must be encoded as base64.
35
        SeedEntropy []byte `protobuf:"bytes,2,opt,name=seed_entropy,json=seedEntropy,proto3" json:"seed_entropy,omitempty"`
36
}
37

38
func (x *GenSeedRequest) Reset() {
×
39
        *x = GenSeedRequest{}
×
40
        if protoimpl.UnsafeEnabled {
×
41
                mi := &file_walletunlocker_proto_msgTypes[0]
×
42
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
43
                ms.StoreMessageInfo(mi)
×
44
        }
×
45
}
46

47
func (x *GenSeedRequest) String() string {
×
48
        return protoimpl.X.MessageStringOf(x)
×
49
}
×
50

51
func (*GenSeedRequest) ProtoMessage() {}
×
52

53
func (x *GenSeedRequest) ProtoReflect() protoreflect.Message {
×
54
        mi := &file_walletunlocker_proto_msgTypes[0]
×
55
        if protoimpl.UnsafeEnabled && x != nil {
×
56
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
57
                if ms.LoadMessageInfo() == nil {
×
58
                        ms.StoreMessageInfo(mi)
×
59
                }
×
60
                return ms
×
61
        }
62
        return mi.MessageOf(x)
×
63
}
64

65
// Deprecated: Use GenSeedRequest.ProtoReflect.Descriptor instead.
66
func (*GenSeedRequest) Descriptor() ([]byte, []int) {
×
67
        return file_walletunlocker_proto_rawDescGZIP(), []int{0}
×
68
}
×
69

70
func (x *GenSeedRequest) GetAezeedPassphrase() []byte {
×
71
        if x != nil {
×
72
                return x.AezeedPassphrase
×
73
        }
×
74
        return nil
×
75
}
76

77
func (x *GenSeedRequest) GetSeedEntropy() []byte {
×
78
        if x != nil {
×
79
                return x.SeedEntropy
×
80
        }
×
81
        return nil
×
82
}
83

84
type GenSeedResponse struct {
85
        state         protoimpl.MessageState
86
        sizeCache     protoimpl.SizeCache
87
        unknownFields protoimpl.UnknownFields
88

89
        // cipher_seed_mnemonic is a 24-word mnemonic that encodes a prior aezeed
90
        // cipher seed obtained by the user. This field is optional, as if not
91
        // provided, then the daemon will generate a new cipher seed for the user.
92
        // Otherwise, then the daemon will attempt to recover the wallet state linked
93
        // to this cipher seed.
94
        CipherSeedMnemonic []string `protobuf:"bytes,1,rep,name=cipher_seed_mnemonic,json=cipherSeedMnemonic,proto3" json:"cipher_seed_mnemonic,omitempty"`
95
        // enciphered_seed are the raw aezeed cipher seed bytes. This is the raw
96
        // cipher text before run through our mnemonic encoding scheme.
97
        EncipheredSeed []byte `protobuf:"bytes,2,opt,name=enciphered_seed,json=encipheredSeed,proto3" json:"enciphered_seed,omitempty"`
98
}
99

100
func (x *GenSeedResponse) Reset() {
×
101
        *x = GenSeedResponse{}
×
102
        if protoimpl.UnsafeEnabled {
×
103
                mi := &file_walletunlocker_proto_msgTypes[1]
×
104
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
105
                ms.StoreMessageInfo(mi)
×
106
        }
×
107
}
108

109
func (x *GenSeedResponse) String() string {
×
110
        return protoimpl.X.MessageStringOf(x)
×
111
}
×
112

113
func (*GenSeedResponse) ProtoMessage() {}
×
114

115
func (x *GenSeedResponse) ProtoReflect() protoreflect.Message {
×
116
        mi := &file_walletunlocker_proto_msgTypes[1]
×
117
        if protoimpl.UnsafeEnabled && x != nil {
×
118
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
119
                if ms.LoadMessageInfo() == nil {
×
120
                        ms.StoreMessageInfo(mi)
×
121
                }
×
122
                return ms
×
123
        }
124
        return mi.MessageOf(x)
×
125
}
126

127
// Deprecated: Use GenSeedResponse.ProtoReflect.Descriptor instead.
128
func (*GenSeedResponse) Descriptor() ([]byte, []int) {
×
129
        return file_walletunlocker_proto_rawDescGZIP(), []int{1}
×
130
}
×
131

132
func (x *GenSeedResponse) GetCipherSeedMnemonic() []string {
×
133
        if x != nil {
×
134
                return x.CipherSeedMnemonic
×
135
        }
×
136
        return nil
×
137
}
138

139
func (x *GenSeedResponse) GetEncipheredSeed() []byte {
×
140
        if x != nil {
×
141
                return x.EncipheredSeed
×
142
        }
×
143
        return nil
×
144
}
145

146
type InitWalletRequest struct {
147
        state         protoimpl.MessageState
148
        sizeCache     protoimpl.SizeCache
149
        unknownFields protoimpl.UnknownFields
150

151
        // wallet_password is the passphrase that should be used to encrypt the
152
        // wallet. This MUST be at least 8 chars in length. After creation, this
153
        // password is required to unlock the daemon. When using REST, this field
154
        // must be encoded as base64.
155
        WalletPassword []byte `protobuf:"bytes,1,opt,name=wallet_password,json=walletPassword,proto3" json:"wallet_password,omitempty"`
156
        // cipher_seed_mnemonic is a 24-word mnemonic that encodes a prior aezeed
157
        // cipher seed obtained by the user. This may have been generated by the
158
        // GenSeed method, or be an existing seed.
159
        CipherSeedMnemonic []string `protobuf:"bytes,2,rep,name=cipher_seed_mnemonic,json=cipherSeedMnemonic,proto3" json:"cipher_seed_mnemonic,omitempty"`
160
        // aezeed_passphrase is an optional user provided passphrase that will be used
161
        // to encrypt the generated aezeed cipher seed. When using REST, this field
162
        // must be encoded as base64.
163
        AezeedPassphrase []byte `protobuf:"bytes,3,opt,name=aezeed_passphrase,json=aezeedPassphrase,proto3" json:"aezeed_passphrase,omitempty"`
164
        // recovery_window is an optional argument specifying the address lookahead
165
        // when restoring a wallet seed. The recovery window applies to each
166
        // individual branch of the BIP44 derivation paths. Supplying a recovery
167
        // window of zero indicates that no addresses should be recovered, such after
168
        // the first initialization of the wallet.
169
        RecoveryWindow int32 `protobuf:"varint,4,opt,name=recovery_window,json=recoveryWindow,proto3" json:"recovery_window,omitempty"`
170
        // channel_backups is an optional argument that allows clients to recover the
171
        // settled funds within a set of channels. This should be populated if the
172
        // user was unable to close out all channels and sweep funds before partial or
173
        // total data loss occurred. If specified, then after on-chain recovery of
174
        // funds, lnd begin to carry out the data loss recovery protocol in order to
175
        // recover the funds in each channel from a remote force closed transaction.
176
        ChannelBackups *ChanBackupSnapshot `protobuf:"bytes,5,opt,name=channel_backups,json=channelBackups,proto3" json:"channel_backups,omitempty"`
177
        // stateless_init is an optional argument instructing the daemon NOT to create
178
        // any *.macaroon files in its filesystem. If this parameter is set, then the
179
        // admin macaroon returned in the response MUST be stored by the caller of the
180
        // RPC as otherwise all access to the daemon will be lost!
181
        StatelessInit bool `protobuf:"varint,6,opt,name=stateless_init,json=statelessInit,proto3" json:"stateless_init,omitempty"`
182
        // extended_master_key is an alternative to specifying cipher_seed_mnemonic and
183
        // aezeed_passphrase. Instead of deriving the master root key from the entropy
184
        // of an aezeed cipher seed, the given extended master root key is used
185
        // directly as the wallet's master key. This allows users to import/use a
186
        // master key from another wallet. When doing so, lnd still uses its default
187
        // SegWit only (BIP49/84) derivation paths and funds from custom/non-default
188
        // derivation paths will not automatically appear in the on-chain wallet. Using
189
        // an 'xprv' instead of an aezeed also has the disadvantage that the wallet's
190
        // birthday is not known as that is an information that's only encoded in the
191
        // aezeed, not the xprv. Therefore a birthday needs to be specified in
192
        // extended_master_key_birthday_timestamp or a "safe" default value will be
193
        // used.
194
        ExtendedMasterKey string `protobuf:"bytes,7,opt,name=extended_master_key,json=extendedMasterKey,proto3" json:"extended_master_key,omitempty"`
195
        // extended_master_key_birthday_timestamp is the optional unix timestamp in
196
        // seconds to use as the wallet's birthday when using an extended master key
197
        // to restore the wallet. lnd will only start scanning for funds in blocks that
198
        // are after the birthday which can speed up the process significantly. If the
199
        // birthday is not known, this should be left at its default value of 0 in
200
        // which case lnd will start scanning from the first SegWit block (481824 on
201
        // mainnet).
202
        ExtendedMasterKeyBirthdayTimestamp uint64 `protobuf:"varint,8,opt,name=extended_master_key_birthday_timestamp,json=extendedMasterKeyBirthdayTimestamp,proto3" json:"extended_master_key_birthday_timestamp,omitempty"`
203
        // watch_only is the third option of initializing a wallet: by importing
204
        // account xpubs only and therefore creating a watch-only wallet that does not
205
        // contain any private keys. That means the wallet won't be able to sign for
206
        // any of the keys and _needs_ to be run with a remote signer that has the
207
        // corresponding private keys and can serve signing RPC requests.
208
        WatchOnly *WatchOnly `protobuf:"bytes,9,opt,name=watch_only,json=watchOnly,proto3" json:"watch_only,omitempty"`
209
        // macaroon_root_key is an optional 32 byte macaroon root key that can be
210
        // provided when initializing the wallet rather than letting lnd generate one
211
        // on its own.
212
        MacaroonRootKey []byte `protobuf:"bytes,10,opt,name=macaroon_root_key,json=macaroonRootKey,proto3" json:"macaroon_root_key,omitempty"`
213
}
214

215
func (x *InitWalletRequest) Reset() {
×
216
        *x = InitWalletRequest{}
×
217
        if protoimpl.UnsafeEnabled {
×
218
                mi := &file_walletunlocker_proto_msgTypes[2]
×
219
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
220
                ms.StoreMessageInfo(mi)
×
221
        }
×
222
}
223

224
func (x *InitWalletRequest) String() string {
×
225
        return protoimpl.X.MessageStringOf(x)
×
226
}
×
227

228
func (*InitWalletRequest) ProtoMessage() {}
×
229

230
func (x *InitWalletRequest) ProtoReflect() protoreflect.Message {
×
231
        mi := &file_walletunlocker_proto_msgTypes[2]
×
232
        if protoimpl.UnsafeEnabled && x != nil {
×
233
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
234
                if ms.LoadMessageInfo() == nil {
×
235
                        ms.StoreMessageInfo(mi)
×
236
                }
×
237
                return ms
×
238
        }
239
        return mi.MessageOf(x)
×
240
}
241

242
// Deprecated: Use InitWalletRequest.ProtoReflect.Descriptor instead.
243
func (*InitWalletRequest) Descriptor() ([]byte, []int) {
×
244
        return file_walletunlocker_proto_rawDescGZIP(), []int{2}
×
245
}
×
246

247
func (x *InitWalletRequest) GetWalletPassword() []byte {
×
248
        if x != nil {
×
249
                return x.WalletPassword
×
250
        }
×
251
        return nil
×
252
}
253

254
func (x *InitWalletRequest) GetCipherSeedMnemonic() []string {
×
255
        if x != nil {
×
256
                return x.CipherSeedMnemonic
×
257
        }
×
258
        return nil
×
259
}
260

261
func (x *InitWalletRequest) GetAezeedPassphrase() []byte {
×
262
        if x != nil {
×
263
                return x.AezeedPassphrase
×
264
        }
×
265
        return nil
×
266
}
267

268
func (x *InitWalletRequest) GetRecoveryWindow() int32 {
×
269
        if x != nil {
×
270
                return x.RecoveryWindow
×
271
        }
×
272
        return 0
×
273
}
274

275
func (x *InitWalletRequest) GetChannelBackups() *ChanBackupSnapshot {
×
276
        if x != nil {
×
277
                return x.ChannelBackups
×
278
        }
×
279
        return nil
×
280
}
281

282
func (x *InitWalletRequest) GetStatelessInit() bool {
×
283
        if x != nil {
×
284
                return x.StatelessInit
×
285
        }
×
286
        return false
×
287
}
288

289
func (x *InitWalletRequest) GetExtendedMasterKey() string {
×
290
        if x != nil {
×
291
                return x.ExtendedMasterKey
×
292
        }
×
293
        return ""
×
294
}
295

296
func (x *InitWalletRequest) GetExtendedMasterKeyBirthdayTimestamp() uint64 {
×
297
        if x != nil {
×
298
                return x.ExtendedMasterKeyBirthdayTimestamp
×
299
        }
×
300
        return 0
×
301
}
302

303
func (x *InitWalletRequest) GetWatchOnly() *WatchOnly {
×
304
        if x != nil {
×
305
                return x.WatchOnly
×
306
        }
×
307
        return nil
×
308
}
309

310
func (x *InitWalletRequest) GetMacaroonRootKey() []byte {
×
311
        if x != nil {
×
312
                return x.MacaroonRootKey
×
313
        }
×
314
        return nil
×
315
}
316

317
type InitWalletResponse struct {
318
        state         protoimpl.MessageState
319
        sizeCache     protoimpl.SizeCache
320
        unknownFields protoimpl.UnknownFields
321

322
        // The binary serialized admin macaroon that can be used to access the daemon
323
        // after creating the wallet. If the stateless_init parameter was set to true,
324
        // this is the ONLY copy of the macaroon and MUST be stored safely by the
325
        // caller. Otherwise a copy of this macaroon is also persisted on disk by the
326
        // daemon, together with other macaroon files.
327
        AdminMacaroon []byte `protobuf:"bytes,1,opt,name=admin_macaroon,json=adminMacaroon,proto3" json:"admin_macaroon,omitempty"`
328
}
329

330
func (x *InitWalletResponse) Reset() {
×
331
        *x = InitWalletResponse{}
×
332
        if protoimpl.UnsafeEnabled {
×
333
                mi := &file_walletunlocker_proto_msgTypes[3]
×
334
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
335
                ms.StoreMessageInfo(mi)
×
336
        }
×
337
}
338

339
func (x *InitWalletResponse) String() string {
×
340
        return protoimpl.X.MessageStringOf(x)
×
341
}
×
342

343
func (*InitWalletResponse) ProtoMessage() {}
×
344

345
func (x *InitWalletResponse) ProtoReflect() protoreflect.Message {
×
346
        mi := &file_walletunlocker_proto_msgTypes[3]
×
347
        if protoimpl.UnsafeEnabled && x != nil {
×
348
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
349
                if ms.LoadMessageInfo() == nil {
×
350
                        ms.StoreMessageInfo(mi)
×
351
                }
×
352
                return ms
×
353
        }
354
        return mi.MessageOf(x)
×
355
}
356

357
// Deprecated: Use InitWalletResponse.ProtoReflect.Descriptor instead.
358
func (*InitWalletResponse) Descriptor() ([]byte, []int) {
×
359
        return file_walletunlocker_proto_rawDescGZIP(), []int{3}
×
360
}
×
361

362
func (x *InitWalletResponse) GetAdminMacaroon() []byte {
×
363
        if x != nil {
×
364
                return x.AdminMacaroon
×
365
        }
×
366
        return nil
×
367
}
368

369
type WatchOnly struct {
370
        state         protoimpl.MessageState
371
        sizeCache     protoimpl.SizeCache
372
        unknownFields protoimpl.UnknownFields
373

374
        // The unix timestamp in seconds of when the master key was created. lnd will
375
        // only start scanning for funds in blocks that are after the birthday which
376
        // can speed up the process significantly. If the birthday is not known, this
377
        // should be left at its default value of 0 in which case lnd will start
378
        // scanning from the first SegWit block (481824 on mainnet).
379
        MasterKeyBirthdayTimestamp uint64 `protobuf:"varint,1,opt,name=master_key_birthday_timestamp,json=masterKeyBirthdayTimestamp,proto3" json:"master_key_birthday_timestamp,omitempty"`
380
        // The fingerprint of the root key (also known as the key with derivation path
381
        // m/) from which the account public keys were derived from. This may be
382
        // required by some hardware wallets for proper identification and signing. The
383
        // bytes must be in big-endian order.
384
        MasterKeyFingerprint []byte `protobuf:"bytes,2,opt,name=master_key_fingerprint,json=masterKeyFingerprint,proto3" json:"master_key_fingerprint,omitempty"`
385
        // The list of accounts to import. There _must_ be an account for all of lnd's
386
        // main key scopes: BIP49/BIP84 (m/49'/0'/0', m/84'/0'/0', note that the
387
        // coin type is always 0, even for testnet/regtest) and lnd's internal key
388
        // scope (m/1017'/<coin_type>'/<account>'), where account is the key family as
389
        // defined in `keychain/derivation.go` (currently indices 0 to 9).
390
        Accounts []*WatchOnlyAccount `protobuf:"bytes,3,rep,name=accounts,proto3" json:"accounts,omitempty"`
391
}
392

393
func (x *WatchOnly) Reset() {
×
394
        *x = WatchOnly{}
×
395
        if protoimpl.UnsafeEnabled {
×
396
                mi := &file_walletunlocker_proto_msgTypes[4]
×
397
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
398
                ms.StoreMessageInfo(mi)
×
399
        }
×
400
}
401

402
func (x *WatchOnly) String() string {
×
403
        return protoimpl.X.MessageStringOf(x)
×
404
}
×
405

406
func (*WatchOnly) ProtoMessage() {}
×
407

408
func (x *WatchOnly) ProtoReflect() protoreflect.Message {
×
409
        mi := &file_walletunlocker_proto_msgTypes[4]
×
410
        if protoimpl.UnsafeEnabled && x != nil {
×
411
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
412
                if ms.LoadMessageInfo() == nil {
×
413
                        ms.StoreMessageInfo(mi)
×
414
                }
×
415
                return ms
×
416
        }
417
        return mi.MessageOf(x)
×
418
}
419

420
// Deprecated: Use WatchOnly.ProtoReflect.Descriptor instead.
421
func (*WatchOnly) Descriptor() ([]byte, []int) {
×
422
        return file_walletunlocker_proto_rawDescGZIP(), []int{4}
×
423
}
×
424

425
func (x *WatchOnly) GetMasterKeyBirthdayTimestamp() uint64 {
×
426
        if x != nil {
×
427
                return x.MasterKeyBirthdayTimestamp
×
428
        }
×
429
        return 0
×
430
}
431

432
func (x *WatchOnly) GetMasterKeyFingerprint() []byte {
×
433
        if x != nil {
×
434
                return x.MasterKeyFingerprint
×
435
        }
×
436
        return nil
×
437
}
438

439
func (x *WatchOnly) GetAccounts() []*WatchOnlyAccount {
×
440
        if x != nil {
×
441
                return x.Accounts
×
442
        }
×
443
        return nil
×
444
}
445

446
type WatchOnlyAccount struct {
447
        state         protoimpl.MessageState
448
        sizeCache     protoimpl.SizeCache
449
        unknownFields protoimpl.UnknownFields
450

451
        // Purpose is the first number in the derivation path, must be either 49, 84
452
        // or 1017.
453
        Purpose uint32 `protobuf:"varint,1,opt,name=purpose,proto3" json:"purpose,omitempty"`
454
        // Coin type is the second number in the derivation path, this is _always_ 0
455
        // for purposes 49 and 84. It only needs to be set to 1 for purpose 1017 on
456
        // testnet or regtest.
457
        CoinType uint32 `protobuf:"varint,2,opt,name=coin_type,json=coinType,proto3" json:"coin_type,omitempty"`
458
        // Account is the third number in the derivation path. For purposes 49 and 84
459
        // at least the default account (index 0) needs to be created but optional
460
        // additional accounts are allowed. For purpose 1017 there needs to be exactly
461
        // one account for each of the key families defined in `keychain/derivation.go`
462
        // (currently indices 0 to 9)
463
        Account uint32 `protobuf:"varint,3,opt,name=account,proto3" json:"account,omitempty"`
464
        // The extended public key at depth 3 for the given account.
465
        Xpub string `protobuf:"bytes,4,opt,name=xpub,proto3" json:"xpub,omitempty"`
466
}
467

468
func (x *WatchOnlyAccount) Reset() {
×
469
        *x = WatchOnlyAccount{}
×
470
        if protoimpl.UnsafeEnabled {
×
471
                mi := &file_walletunlocker_proto_msgTypes[5]
×
472
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
473
                ms.StoreMessageInfo(mi)
×
474
        }
×
475
}
476

477
func (x *WatchOnlyAccount) String() string {
×
478
        return protoimpl.X.MessageStringOf(x)
×
479
}
×
480

481
func (*WatchOnlyAccount) ProtoMessage() {}
×
482

483
func (x *WatchOnlyAccount) ProtoReflect() protoreflect.Message {
×
484
        mi := &file_walletunlocker_proto_msgTypes[5]
×
485
        if protoimpl.UnsafeEnabled && x != nil {
×
486
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
487
                if ms.LoadMessageInfo() == nil {
×
488
                        ms.StoreMessageInfo(mi)
×
489
                }
×
490
                return ms
×
491
        }
492
        return mi.MessageOf(x)
×
493
}
494

495
// Deprecated: Use WatchOnlyAccount.ProtoReflect.Descriptor instead.
496
func (*WatchOnlyAccount) Descriptor() ([]byte, []int) {
×
497
        return file_walletunlocker_proto_rawDescGZIP(), []int{5}
×
498
}
×
499

500
func (x *WatchOnlyAccount) GetPurpose() uint32 {
×
501
        if x != nil {
×
502
                return x.Purpose
×
503
        }
×
504
        return 0
×
505
}
506

507
func (x *WatchOnlyAccount) GetCoinType() uint32 {
×
508
        if x != nil {
×
509
                return x.CoinType
×
510
        }
×
511
        return 0
×
512
}
513

514
func (x *WatchOnlyAccount) GetAccount() uint32 {
×
515
        if x != nil {
×
516
                return x.Account
×
517
        }
×
518
        return 0
×
519
}
520

521
func (x *WatchOnlyAccount) GetXpub() string {
×
522
        if x != nil {
×
523
                return x.Xpub
×
524
        }
×
525
        return ""
×
526
}
527

528
type UnlockWalletRequest struct {
529
        state         protoimpl.MessageState
530
        sizeCache     protoimpl.SizeCache
531
        unknownFields protoimpl.UnknownFields
532

533
        // wallet_password should be the current valid passphrase for the daemon. This
534
        // will be required to decrypt on-disk material that the daemon requires to
535
        // function properly. When using REST, this field must be encoded as base64.
536
        WalletPassword []byte `protobuf:"bytes,1,opt,name=wallet_password,json=walletPassword,proto3" json:"wallet_password,omitempty"`
537
        // recovery_window is an optional argument specifying the address lookahead
538
        // when restoring a wallet seed. The recovery window applies to each
539
        // individual branch of the BIP44 derivation paths. Supplying a recovery
540
        // window of zero indicates that no addresses should be recovered, such after
541
        // the first initialization of the wallet.
542
        RecoveryWindow int32 `protobuf:"varint,2,opt,name=recovery_window,json=recoveryWindow,proto3" json:"recovery_window,omitempty"`
543
        // channel_backups is an optional argument that allows clients to recover the
544
        // settled funds within a set of channels. This should be populated if the
545
        // user was unable to close out all channels and sweep funds before partial or
546
        // total data loss occurred. If specified, then after on-chain recovery of
547
        // funds, lnd begin to carry out the data loss recovery protocol in order to
548
        // recover the funds in each channel from a remote force closed transaction.
549
        ChannelBackups *ChanBackupSnapshot `protobuf:"bytes,3,opt,name=channel_backups,json=channelBackups,proto3" json:"channel_backups,omitempty"`
550
        // stateless_init is an optional argument instructing the daemon NOT to create
551
        // any *.macaroon files in its file system.
552
        StatelessInit bool `protobuf:"varint,4,opt,name=stateless_init,json=statelessInit,proto3" json:"stateless_init,omitempty"`
553
}
554

555
func (x *UnlockWalletRequest) Reset() {
×
556
        *x = UnlockWalletRequest{}
×
557
        if protoimpl.UnsafeEnabled {
×
558
                mi := &file_walletunlocker_proto_msgTypes[6]
×
559
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
560
                ms.StoreMessageInfo(mi)
×
561
        }
×
562
}
563

564
func (x *UnlockWalletRequest) String() string {
×
565
        return protoimpl.X.MessageStringOf(x)
×
566
}
×
567

568
func (*UnlockWalletRequest) ProtoMessage() {}
×
569

570
func (x *UnlockWalletRequest) ProtoReflect() protoreflect.Message {
×
571
        mi := &file_walletunlocker_proto_msgTypes[6]
×
572
        if protoimpl.UnsafeEnabled && x != nil {
×
573
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
574
                if ms.LoadMessageInfo() == nil {
×
575
                        ms.StoreMessageInfo(mi)
×
576
                }
×
577
                return ms
×
578
        }
579
        return mi.MessageOf(x)
×
580
}
581

582
// Deprecated: Use UnlockWalletRequest.ProtoReflect.Descriptor instead.
583
func (*UnlockWalletRequest) Descriptor() ([]byte, []int) {
×
584
        return file_walletunlocker_proto_rawDescGZIP(), []int{6}
×
585
}
×
586

587
func (x *UnlockWalletRequest) GetWalletPassword() []byte {
×
588
        if x != nil {
×
589
                return x.WalletPassword
×
590
        }
×
591
        return nil
×
592
}
593

594
func (x *UnlockWalletRequest) GetRecoveryWindow() int32 {
×
595
        if x != nil {
×
596
                return x.RecoveryWindow
×
597
        }
×
598
        return 0
×
599
}
600

601
func (x *UnlockWalletRequest) GetChannelBackups() *ChanBackupSnapshot {
×
602
        if x != nil {
×
603
                return x.ChannelBackups
×
604
        }
×
605
        return nil
×
606
}
607

608
func (x *UnlockWalletRequest) GetStatelessInit() bool {
×
609
        if x != nil {
×
610
                return x.StatelessInit
×
611
        }
×
612
        return false
×
613
}
614

615
type UnlockWalletResponse struct {
616
        state         protoimpl.MessageState
617
        sizeCache     protoimpl.SizeCache
618
        unknownFields protoimpl.UnknownFields
619
}
620

621
func (x *UnlockWalletResponse) Reset() {
×
622
        *x = UnlockWalletResponse{}
×
623
        if protoimpl.UnsafeEnabled {
×
624
                mi := &file_walletunlocker_proto_msgTypes[7]
×
625
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
626
                ms.StoreMessageInfo(mi)
×
627
        }
×
628
}
629

630
func (x *UnlockWalletResponse) String() string {
×
631
        return protoimpl.X.MessageStringOf(x)
×
632
}
×
633

634
func (*UnlockWalletResponse) ProtoMessage() {}
×
635

636
func (x *UnlockWalletResponse) ProtoReflect() protoreflect.Message {
×
637
        mi := &file_walletunlocker_proto_msgTypes[7]
×
638
        if protoimpl.UnsafeEnabled && x != nil {
×
639
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
640
                if ms.LoadMessageInfo() == nil {
×
641
                        ms.StoreMessageInfo(mi)
×
642
                }
×
643
                return ms
×
644
        }
645
        return mi.MessageOf(x)
×
646
}
647

648
// Deprecated: Use UnlockWalletResponse.ProtoReflect.Descriptor instead.
649
func (*UnlockWalletResponse) Descriptor() ([]byte, []int) {
×
650
        return file_walletunlocker_proto_rawDescGZIP(), []int{7}
×
651
}
×
652

653
type ChangePasswordRequest struct {
654
        state         protoimpl.MessageState
655
        sizeCache     protoimpl.SizeCache
656
        unknownFields protoimpl.UnknownFields
657

658
        // current_password should be the current valid passphrase used to unlock the
659
        // daemon. When using REST, this field must be encoded as base64.
660
        CurrentPassword []byte `protobuf:"bytes,1,opt,name=current_password,json=currentPassword,proto3" json:"current_password,omitempty"`
661
        // new_password should be the new passphrase that will be needed to unlock the
662
        // daemon. When using REST, this field must be encoded as base64.
663
        NewPassword []byte `protobuf:"bytes,2,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"`
664
        // stateless_init is an optional argument instructing the daemon NOT to create
665
        // any *.macaroon files in its filesystem. If this parameter is set, then the
666
        // admin macaroon returned in the response MUST be stored by the caller of the
667
        // RPC as otherwise all access to the daemon will be lost!
668
        StatelessInit bool `protobuf:"varint,3,opt,name=stateless_init,json=statelessInit,proto3" json:"stateless_init,omitempty"`
669
        // new_macaroon_root_key is an optional argument instructing the daemon to
670
        // rotate the macaroon root key when set to true. This will invalidate all
671
        // previously generated macaroons.
672
        NewMacaroonRootKey bool `protobuf:"varint,4,opt,name=new_macaroon_root_key,json=newMacaroonRootKey,proto3" json:"new_macaroon_root_key,omitempty"`
673
}
674

675
func (x *ChangePasswordRequest) Reset() {
×
676
        *x = ChangePasswordRequest{}
×
677
        if protoimpl.UnsafeEnabled {
×
678
                mi := &file_walletunlocker_proto_msgTypes[8]
×
679
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
680
                ms.StoreMessageInfo(mi)
×
681
        }
×
682
}
683

684
func (x *ChangePasswordRequest) String() string {
×
685
        return protoimpl.X.MessageStringOf(x)
×
686
}
×
687

688
func (*ChangePasswordRequest) ProtoMessage() {}
×
689

690
func (x *ChangePasswordRequest) ProtoReflect() protoreflect.Message {
×
691
        mi := &file_walletunlocker_proto_msgTypes[8]
×
692
        if protoimpl.UnsafeEnabled && x != nil {
×
693
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
694
                if ms.LoadMessageInfo() == nil {
×
695
                        ms.StoreMessageInfo(mi)
×
696
                }
×
697
                return ms
×
698
        }
699
        return mi.MessageOf(x)
×
700
}
701

702
// Deprecated: Use ChangePasswordRequest.ProtoReflect.Descriptor instead.
703
func (*ChangePasswordRequest) Descriptor() ([]byte, []int) {
×
704
        return file_walletunlocker_proto_rawDescGZIP(), []int{8}
×
705
}
×
706

707
func (x *ChangePasswordRequest) GetCurrentPassword() []byte {
×
708
        if x != nil {
×
709
                return x.CurrentPassword
×
710
        }
×
711
        return nil
×
712
}
713

714
func (x *ChangePasswordRequest) GetNewPassword() []byte {
×
715
        if x != nil {
×
716
                return x.NewPassword
×
717
        }
×
718
        return nil
×
719
}
720

721
func (x *ChangePasswordRequest) GetStatelessInit() bool {
×
722
        if x != nil {
×
723
                return x.StatelessInit
×
724
        }
×
725
        return false
×
726
}
727

728
func (x *ChangePasswordRequest) GetNewMacaroonRootKey() bool {
×
729
        if x != nil {
×
730
                return x.NewMacaroonRootKey
×
731
        }
×
732
        return false
×
733
}
734

735
type ChangePasswordResponse struct {
736
        state         protoimpl.MessageState
737
        sizeCache     protoimpl.SizeCache
738
        unknownFields protoimpl.UnknownFields
739

740
        // The binary serialized admin macaroon that can be used to access the daemon
741
        // after rotating the macaroon root key. If both the stateless_init and
742
        // new_macaroon_root_key parameter were set to true, this is the ONLY copy of
743
        // the macaroon that was created from the new root key and MUST be stored
744
        // safely by the caller. Otherwise a copy of this macaroon is also persisted on
745
        // disk by the daemon, together with other macaroon files.
746
        AdminMacaroon []byte `protobuf:"bytes,1,opt,name=admin_macaroon,json=adminMacaroon,proto3" json:"admin_macaroon,omitempty"`
747
}
748

749
func (x *ChangePasswordResponse) Reset() {
×
750
        *x = ChangePasswordResponse{}
×
751
        if protoimpl.UnsafeEnabled {
×
752
                mi := &file_walletunlocker_proto_msgTypes[9]
×
753
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
754
                ms.StoreMessageInfo(mi)
×
755
        }
×
756
}
757

758
func (x *ChangePasswordResponse) String() string {
×
759
        return protoimpl.X.MessageStringOf(x)
×
760
}
×
761

762
func (*ChangePasswordResponse) ProtoMessage() {}
×
763

764
func (x *ChangePasswordResponse) ProtoReflect() protoreflect.Message {
×
765
        mi := &file_walletunlocker_proto_msgTypes[9]
×
766
        if protoimpl.UnsafeEnabled && x != nil {
×
767
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
768
                if ms.LoadMessageInfo() == nil {
×
769
                        ms.StoreMessageInfo(mi)
×
770
                }
×
771
                return ms
×
772
        }
773
        return mi.MessageOf(x)
×
774
}
775

776
// Deprecated: Use ChangePasswordResponse.ProtoReflect.Descriptor instead.
777
func (*ChangePasswordResponse) Descriptor() ([]byte, []int) {
×
778
        return file_walletunlocker_proto_rawDescGZIP(), []int{9}
×
779
}
×
780

781
func (x *ChangePasswordResponse) GetAdminMacaroon() []byte {
×
782
        if x != nil {
×
783
                return x.AdminMacaroon
×
784
        }
×
785
        return nil
×
786
}
787

788
var File_walletunlocker_proto protoreflect.FileDescriptor
789

790
var file_walletunlocker_proto_rawDesc = []byte{
791
        0x0a, 0x14, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x72,
792
        0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x1a, 0x0f, 0x6c,
793
        0x69, 0x67, 0x68, 0x74, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x60,
794
        0x0a, 0x0e, 0x47, 0x65, 0x6e, 0x53, 0x65, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
795
        0x12, 0x2b, 0x0a, 0x11, 0x61, 0x65, 0x7a, 0x65, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x70,
796
        0x68, 0x72, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x61, 0x65, 0x7a,
797
        0x65, 0x65, 0x64, 0x50, 0x61, 0x73, 0x73, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x12, 0x21, 0x0a,
798
        0x0c, 0x73, 0x65, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x6f, 0x70, 0x79, 0x18, 0x02, 0x20,
799
        0x01, 0x28, 0x0c, 0x52, 0x0b, 0x73, 0x65, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x6f, 0x70, 0x79,
800
        0x22, 0x6c, 0x0a, 0x0f, 0x47, 0x65, 0x6e, 0x53, 0x65, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f,
801
        0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, 0x5f, 0x73, 0x65,
802
        0x65, 0x64, 0x5f, 0x6d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x18, 0x01, 0x20, 0x03, 0x28,
803
        0x09, 0x52, 0x12, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, 0x53, 0x65, 0x65, 0x64, 0x4d, 0x6e, 0x65,
804
        0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x6e, 0x63, 0x69, 0x70, 0x68, 0x65,
805
        0x72, 0x65, 0x64, 0x5f, 0x73, 0x65, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e,
806
        0x65, 0x6e, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, 0x65, 0x64, 0x53, 0x65, 0x65, 0x64, 0x22, 0x90,
807
        0x04, 0x0a, 0x11, 0x49, 0x6e, 0x69, 0x74, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71,
808
        0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x70,
809
        0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x77,
810
        0x61, 0x6c, 0x6c, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x30, 0x0a,
811
        0x14, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x65, 0x64, 0x5f, 0x6d, 0x6e, 0x65,
812
        0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 0x63, 0x69, 0x70,
813
        0x68, 0x65, 0x72, 0x53, 0x65, 0x65, 0x64, 0x4d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x12,
814
        0x2b, 0x0a, 0x11, 0x61, 0x65, 0x7a, 0x65, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x70, 0x68,
815
        0x72, 0x61, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x61, 0x65, 0x7a, 0x65,
816
        0x65, 0x64, 0x50, 0x61, 0x73, 0x73, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x0f,
817
        0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x5f, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x18,
818
        0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x57,
819
        0x69, 0x6e, 0x64, 0x6f, 0x77, 0x12, 0x42, 0x0a, 0x0f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c,
820
        0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19,
821
        0x2e, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x42, 0x61, 0x63, 0x6b, 0x75,
822
        0x70, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x0e, 0x63, 0x68, 0x61, 0x6e, 0x6e,
823
        0x65, 0x6c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x74, 0x61,
824
        0x74, 0x65, 0x6c, 0x65, 0x73, 0x73, 0x5f, 0x69, 0x6e, 0x69, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28,
825
        0x08, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6c, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x69, 0x74,
826
        0x12, 0x2e, 0x0a, 0x13, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x5f, 0x6d, 0x61, 0x73,
827
        0x74, 0x65, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x65,
828
        0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x4d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x4b, 0x65, 0x79,
829
        0x12, 0x52, 0x0a, 0x26, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x5f, 0x6d, 0x61, 0x73,
830
        0x74, 0x65, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x64, 0x61, 0x79,
831
        0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04,
832
        0x52, 0x22, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x4d, 0x61, 0x73, 0x74, 0x65, 0x72,
833
        0x4b, 0x65, 0x79, 0x42, 0x69, 0x72, 0x74, 0x68, 0x64, 0x61, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x73,
834
        0x74, 0x61, 0x6d, 0x70, 0x12, 0x2f, 0x0a, 0x0a, 0x77, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x6f, 0x6e,
835
        0x6c, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6c, 0x6e, 0x72, 0x70, 0x63,
836
        0x2e, 0x57, 0x61, 0x74, 0x63, 0x68, 0x4f, 0x6e, 0x6c, 0x79, 0x52, 0x09, 0x77, 0x61, 0x74, 0x63,
837
        0x68, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x2a, 0x0a, 0x11, 0x6d, 0x61, 0x63, 0x61, 0x72, 0x6f, 0x6f,
838
        0x6e, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0c,
839
        0x52, 0x0f, 0x6d, 0x61, 0x63, 0x61, 0x72, 0x6f, 0x6f, 0x6e, 0x52, 0x6f, 0x6f, 0x74, 0x4b, 0x65,
840
        0x79, 0x22, 0x3b, 0x0a, 0x12, 0x49, 0x6e, 0x69, 0x74, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52,
841
        0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x64, 0x6d, 0x69, 0x6e,
842
        0x5f, 0x6d, 0x61, 0x63, 0x61, 0x72, 0x6f, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52,
843
        0x0d, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x4d, 0x61, 0x63, 0x61, 0x72, 0x6f, 0x6f, 0x6e, 0x22, 0xb9,
844
        0x01, 0x0a, 0x09, 0x57, 0x61, 0x74, 0x63, 0x68, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x41, 0x0a, 0x1d,
845
        0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68,
846
        0x64, 0x61, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20,
847
        0x01, 0x28, 0x04, 0x52, 0x1a, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x4b, 0x65, 0x79, 0x42, 0x69,
848
        0x72, 0x74, 0x68, 0x64, 0x61, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12,
849
        0x34, 0x0a, 0x16, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x66, 0x69,
850
        0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52,
851
        0x14, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x4b, 0x65, 0x79, 0x46, 0x69, 0x6e, 0x67, 0x65, 0x72,
852
        0x70, 0x72, 0x69, 0x6e, 0x74, 0x12, 0x33, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
853
        0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x2e,
854
        0x57, 0x61, 0x74, 0x63, 0x68, 0x4f, 0x6e, 0x6c, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
855
        0x52, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x22, 0x77, 0x0a, 0x10, 0x57, 0x61,
856
        0x74, 0x63, 0x68, 0x4f, 0x6e, 0x6c, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18,
857
        0x0a, 0x07, 0x70, 0x75, 0x72, 0x70, 0x6f, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52,
858
        0x07, 0x70, 0x75, 0x72, 0x70, 0x6f, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x69, 0x6e,
859
        0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x63, 0x6f, 0x69,
860
        0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
861
        0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12,
862
        0x12, 0x0a, 0x04, 0x78, 0x70, 0x75, 0x62, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x78,
863
        0x70, 0x75, 0x62, 0x22, 0xd2, 0x01, 0x0a, 0x13, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x57, 0x61,
864
        0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x77,
865
        0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01,
866
        0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73,
867
        0x77, 0x6f, 0x72, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79,
868
        0x5f, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x72,
869
        0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x12, 0x42, 0x0a,
870
        0x0f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73,
871
        0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x43,
872
        0x68, 0x61, 0x6e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f,
873
        0x74, 0x52, 0x0e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70,
874
        0x73, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6c, 0x65, 0x73, 0x73, 0x5f, 0x69,
875
        0x6e, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65,
876
        0x6c, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x69, 0x74, 0x22, 0x16, 0x0a, 0x14, 0x55, 0x6e, 0x6c, 0x6f,
877
        0x63, 0x6b, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
878
        0x22, 0xbf, 0x01, 0x0a, 0x15, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77,
879
        0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x75,
880
        0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01,
881
        0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x73,
882
        0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x65, 0x77, 0x5f, 0x70, 0x61, 0x73,
883
        0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x6e, 0x65, 0x77,
884
        0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x74, 0x61, 0x74,
885
        0x65, 0x6c, 0x65, 0x73, 0x73, 0x5f, 0x69, 0x6e, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08,
886
        0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6c, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x69, 0x74, 0x12,
887
        0x31, 0x0a, 0x15, 0x6e, 0x65, 0x77, 0x5f, 0x6d, 0x61, 0x63, 0x61, 0x72, 0x6f, 0x6f, 0x6e, 0x5f,
888
        0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12,
889
        0x6e, 0x65, 0x77, 0x4d, 0x61, 0x63, 0x61, 0x72, 0x6f, 0x6f, 0x6e, 0x52, 0x6f, 0x6f, 0x74, 0x4b,
890
        0x65, 0x79, 0x22, 0x3f, 0x0a, 0x16, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x61, 0x73, 0x73,
891
        0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e,
892
        0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x6d, 0x61, 0x63, 0x61, 0x72, 0x6f, 0x6f, 0x6e, 0x18, 0x01,
893
        0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x4d, 0x61, 0x63, 0x61, 0x72,
894
        0x6f, 0x6f, 0x6e, 0x32, 0xa5, 0x02, 0x0a, 0x0e, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x55, 0x6e,
895
        0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x07, 0x47, 0x65, 0x6e, 0x53, 0x65, 0x65,
896
        0x64, 0x12, 0x15, 0x2e, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x6e, 0x53, 0x65, 0x65,
897
        0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x6c, 0x6e, 0x72, 0x70, 0x63,
898
        0x2e, 0x47, 0x65, 0x6e, 0x53, 0x65, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
899
        0x12, 0x41, 0x0a, 0x0a, 0x49, 0x6e, 0x69, 0x74, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x12, 0x18,
900
        0x2e, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x57, 0x61, 0x6c, 0x6c, 0x65,
901
        0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x6c, 0x6e, 0x72, 0x70, 0x63,
902
        0x2e, 0x49, 0x6e, 0x69, 0x74, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
903
        0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0c, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x57, 0x61, 0x6c,
904
        0x6c, 0x65, 0x74, 0x12, 0x1a, 0x2e, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x55, 0x6e, 0x6c, 0x6f,
905
        0x63, 0x6b, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
906
        0x1b, 0x2e, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x57, 0x61,
907
        0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x0e,
908
        0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1c,
909
        0x2e, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x61, 0x73,
910
        0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x6c,
911
        0x6e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77,
912
        0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x27, 0x5a, 0x25, 0x67,
913
        0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e,
914
        0x69, 0x6e, 0x67, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x6c, 0x6e, 0x64, 0x2f, 0x6c,
915
        0x6e, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
916
}
917

918
var (
919
        file_walletunlocker_proto_rawDescOnce sync.Once
920
        file_walletunlocker_proto_rawDescData = file_walletunlocker_proto_rawDesc
921
)
922

923
func file_walletunlocker_proto_rawDescGZIP() []byte {
×
924
        file_walletunlocker_proto_rawDescOnce.Do(func() {
×
925
                file_walletunlocker_proto_rawDescData = protoimpl.X.CompressGZIP(file_walletunlocker_proto_rawDescData)
×
926
        })
×
927
        return file_walletunlocker_proto_rawDescData
×
928
}
929

930
var file_walletunlocker_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
931
var file_walletunlocker_proto_goTypes = []interface{}{
932
        (*GenSeedRequest)(nil),         // 0: lnrpc.GenSeedRequest
933
        (*GenSeedResponse)(nil),        // 1: lnrpc.GenSeedResponse
934
        (*InitWalletRequest)(nil),      // 2: lnrpc.InitWalletRequest
935
        (*InitWalletResponse)(nil),     // 3: lnrpc.InitWalletResponse
936
        (*WatchOnly)(nil),              // 4: lnrpc.WatchOnly
937
        (*WatchOnlyAccount)(nil),       // 5: lnrpc.WatchOnlyAccount
938
        (*UnlockWalletRequest)(nil),    // 6: lnrpc.UnlockWalletRequest
939
        (*UnlockWalletResponse)(nil),   // 7: lnrpc.UnlockWalletResponse
940
        (*ChangePasswordRequest)(nil),  // 8: lnrpc.ChangePasswordRequest
941
        (*ChangePasswordResponse)(nil), // 9: lnrpc.ChangePasswordResponse
942
        (*ChanBackupSnapshot)(nil),     // 10: lnrpc.ChanBackupSnapshot
943
}
944
var file_walletunlocker_proto_depIdxs = []int32{
945
        10, // 0: lnrpc.InitWalletRequest.channel_backups:type_name -> lnrpc.ChanBackupSnapshot
946
        4,  // 1: lnrpc.InitWalletRequest.watch_only:type_name -> lnrpc.WatchOnly
947
        5,  // 2: lnrpc.WatchOnly.accounts:type_name -> lnrpc.WatchOnlyAccount
948
        10, // 3: lnrpc.UnlockWalletRequest.channel_backups:type_name -> lnrpc.ChanBackupSnapshot
949
        0,  // 4: lnrpc.WalletUnlocker.GenSeed:input_type -> lnrpc.GenSeedRequest
950
        2,  // 5: lnrpc.WalletUnlocker.InitWallet:input_type -> lnrpc.InitWalletRequest
951
        6,  // 6: lnrpc.WalletUnlocker.UnlockWallet:input_type -> lnrpc.UnlockWalletRequest
952
        8,  // 7: lnrpc.WalletUnlocker.ChangePassword:input_type -> lnrpc.ChangePasswordRequest
953
        1,  // 8: lnrpc.WalletUnlocker.GenSeed:output_type -> lnrpc.GenSeedResponse
954
        3,  // 9: lnrpc.WalletUnlocker.InitWallet:output_type -> lnrpc.InitWalletResponse
955
        7,  // 10: lnrpc.WalletUnlocker.UnlockWallet:output_type -> lnrpc.UnlockWalletResponse
956
        9,  // 11: lnrpc.WalletUnlocker.ChangePassword:output_type -> lnrpc.ChangePasswordResponse
957
        8,  // [8:12] is the sub-list for method output_type
958
        4,  // [4:8] is the sub-list for method input_type
959
        4,  // [4:4] is the sub-list for extension type_name
960
        4,  // [4:4] is the sub-list for extension extendee
961
        0,  // [0:4] is the sub-list for field type_name
962
}
963

964
func init() { file_walletunlocker_proto_init() }
15✔
965
func file_walletunlocker_proto_init() {
15✔
966
        if File_walletunlocker_proto != nil {
15✔
967
                return
×
968
        }
×
969
        file_lightning_proto_init()
15✔
970
        if !protoimpl.UnsafeEnabled {
15✔
971
                file_walletunlocker_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
×
972
                        switch v := v.(*GenSeedRequest); i {
×
973
                        case 0:
×
974
                                return &v.state
×
975
                        case 1:
×
976
                                return &v.sizeCache
×
977
                        case 2:
×
978
                                return &v.unknownFields
×
979
                        default:
×
980
                                return nil
×
981
                        }
982
                }
983
                file_walletunlocker_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
×
984
                        switch v := v.(*GenSeedResponse); i {
×
985
                        case 0:
×
986
                                return &v.state
×
987
                        case 1:
×
988
                                return &v.sizeCache
×
989
                        case 2:
×
990
                                return &v.unknownFields
×
991
                        default:
×
992
                                return nil
×
993
                        }
994
                }
995
                file_walletunlocker_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
×
996
                        switch v := v.(*InitWalletRequest); i {
×
997
                        case 0:
×
998
                                return &v.state
×
999
                        case 1:
×
1000
                                return &v.sizeCache
×
1001
                        case 2:
×
1002
                                return &v.unknownFields
×
1003
                        default:
×
1004
                                return nil
×
1005
                        }
1006
                }
1007
                file_walletunlocker_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
×
1008
                        switch v := v.(*InitWalletResponse); i {
×
1009
                        case 0:
×
1010
                                return &v.state
×
1011
                        case 1:
×
1012
                                return &v.sizeCache
×
1013
                        case 2:
×
1014
                                return &v.unknownFields
×
1015
                        default:
×
1016
                                return nil
×
1017
                        }
1018
                }
1019
                file_walletunlocker_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
×
1020
                        switch v := v.(*WatchOnly); i {
×
1021
                        case 0:
×
1022
                                return &v.state
×
1023
                        case 1:
×
1024
                                return &v.sizeCache
×
1025
                        case 2:
×
1026
                                return &v.unknownFields
×
1027
                        default:
×
1028
                                return nil
×
1029
                        }
1030
                }
1031
                file_walletunlocker_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
×
1032
                        switch v := v.(*WatchOnlyAccount); i {
×
1033
                        case 0:
×
1034
                                return &v.state
×
1035
                        case 1:
×
1036
                                return &v.sizeCache
×
1037
                        case 2:
×
1038
                                return &v.unknownFields
×
1039
                        default:
×
1040
                                return nil
×
1041
                        }
1042
                }
1043
                file_walletunlocker_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
×
1044
                        switch v := v.(*UnlockWalletRequest); i {
×
1045
                        case 0:
×
1046
                                return &v.state
×
1047
                        case 1:
×
1048
                                return &v.sizeCache
×
1049
                        case 2:
×
1050
                                return &v.unknownFields
×
1051
                        default:
×
1052
                                return nil
×
1053
                        }
1054
                }
1055
                file_walletunlocker_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
×
1056
                        switch v := v.(*UnlockWalletResponse); i {
×
1057
                        case 0:
×
1058
                                return &v.state
×
1059
                        case 1:
×
1060
                                return &v.sizeCache
×
1061
                        case 2:
×
1062
                                return &v.unknownFields
×
1063
                        default:
×
1064
                                return nil
×
1065
                        }
1066
                }
1067
                file_walletunlocker_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
×
1068
                        switch v := v.(*ChangePasswordRequest); i {
×
1069
                        case 0:
×
1070
                                return &v.state
×
1071
                        case 1:
×
1072
                                return &v.sizeCache
×
1073
                        case 2:
×
1074
                                return &v.unknownFields
×
1075
                        default:
×
1076
                                return nil
×
1077
                        }
1078
                }
1079
                file_walletunlocker_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
×
1080
                        switch v := v.(*ChangePasswordResponse); i {
×
1081
                        case 0:
×
1082
                                return &v.state
×
1083
                        case 1:
×
1084
                                return &v.sizeCache
×
1085
                        case 2:
×
1086
                                return &v.unknownFields
×
1087
                        default:
×
1088
                                return nil
×
1089
                        }
1090
                }
1091
        }
1092
        type x struct{}
15✔
1093
        out := protoimpl.TypeBuilder{
15✔
1094
                File: protoimpl.DescBuilder{
15✔
1095
                        GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
15✔
1096
                        RawDescriptor: file_walletunlocker_proto_rawDesc,
15✔
1097
                        NumEnums:      0,
15✔
1098
                        NumMessages:   10,
15✔
1099
                        NumExtensions: 0,
15✔
1100
                        NumServices:   1,
15✔
1101
                },
15✔
1102
                GoTypes:           file_walletunlocker_proto_goTypes,
15✔
1103
                DependencyIndexes: file_walletunlocker_proto_depIdxs,
15✔
1104
                MessageInfos:      file_walletunlocker_proto_msgTypes,
15✔
1105
        }.Build()
15✔
1106
        File_walletunlocker_proto = out.File
15✔
1107
        file_walletunlocker_proto_rawDesc = nil
15✔
1108
        file_walletunlocker_proto_goTypes = nil
15✔
1109
        file_walletunlocker_proto_depIdxs = nil
15✔
1110
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc