2020-04-02 12:07:05 +02:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
2021-04-28 15:30:59 +02:00
|
|
|
// versions:
|
2021-07-27 12:59:59 +02:00
|
|
|
// protoc-gen-go v1.26.0
|
2021-04-28 15:30:59 +02:00
|
|
|
// protoc v3.6.1
|
2020-04-02 12:07:05 +02:00
|
|
|
// source: walletunlocker.proto
|
|
|
|
|
|
|
|
package lnrpc
|
|
|
|
|
|
|
|
import (
|
2021-04-28 15:30:59 +02:00
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
|
reflect "reflect"
|
|
|
|
sync "sync"
|
2020-04-02 12:07:05 +02:00
|
|
|
)
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
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)
|
|
|
|
)
|
2020-04-02 12:07:05 +02:00
|
|
|
|
|
|
|
type GenSeedRequest struct {
|
2021-04-28 15:30:59 +02:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-05-06 16:51:14 +02:00
|
|
|
//
|
2020-04-02 12:07:05 +02:00
|
|
|
//aezeed_passphrase is an optional user provided passphrase that will be used
|
|
|
|
//to encrypt the generated aezeed cipher seed. When using REST, this field
|
|
|
|
//must be encoded as base64.
|
|
|
|
AezeedPassphrase []byte `protobuf:"bytes,1,opt,name=aezeed_passphrase,json=aezeedPassphrase,proto3" json:"aezeed_passphrase,omitempty"`
|
2020-05-06 16:51:14 +02:00
|
|
|
//
|
2020-04-02 12:07:05 +02:00
|
|
|
//seed_entropy is an optional 16-bytes generated via CSPRNG. If not
|
|
|
|
//specified, then a fresh set of randomness will be used to create the seed.
|
|
|
|
//When using REST, this field must be encoded as base64.
|
2021-04-28 15:30:59 +02:00
|
|
|
SeedEntropy []byte `protobuf:"bytes,2,opt,name=seed_entropy,json=seedEntropy,proto3" json:"seed_entropy,omitempty"`
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *GenSeedRequest) Reset() {
|
|
|
|
*x = GenSeedRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_walletunlocker_proto_msgTypes[0]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *GenSeedRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
2021-04-28 15:30:59 +02:00
|
|
|
|
|
|
|
func (*GenSeedRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *GenSeedRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_walletunlocker_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)
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
// Deprecated: Use GenSeedRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*GenSeedRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return file_walletunlocker_proto_rawDescGZIP(), []int{0}
|
|
|
|
}
|
2020-04-02 12:07:05 +02:00
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *GenSeedRequest) GetAezeedPassphrase() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.AezeedPassphrase
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *GenSeedRequest) GetSeedEntropy() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.SeedEntropy
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type GenSeedResponse struct {
|
2021-04-28 15:30:59 +02:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-05-06 16:51:14 +02:00
|
|
|
//
|
2020-04-02 12:07:05 +02:00
|
|
|
//cipher_seed_mnemonic is a 24-word mnemonic that encodes a prior aezeed
|
|
|
|
//cipher seed obtained by the user. This field is optional, as if not
|
|
|
|
//provided, then the daemon will generate a new cipher seed for the user.
|
|
|
|
//Otherwise, then the daemon will attempt to recover the wallet state linked
|
|
|
|
//to this cipher seed.
|
|
|
|
CipherSeedMnemonic []string `protobuf:"bytes,1,rep,name=cipher_seed_mnemonic,json=cipherSeedMnemonic,proto3" json:"cipher_seed_mnemonic,omitempty"`
|
2020-05-06 16:51:14 +02:00
|
|
|
//
|
2020-04-02 12:07:05 +02:00
|
|
|
//enciphered_seed are the raw aezeed cipher seed bytes. This is the raw
|
|
|
|
//cipher text before run through our mnemonic encoding scheme.
|
2021-04-28 15:30:59 +02:00
|
|
|
EncipheredSeed []byte `protobuf:"bytes,2,opt,name=enciphered_seed,json=encipheredSeed,proto3" json:"enciphered_seed,omitempty"`
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *GenSeedResponse) Reset() {
|
|
|
|
*x = GenSeedResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_walletunlocker_proto_msgTypes[1]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *GenSeedResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
2021-04-28 15:30:59 +02:00
|
|
|
|
|
|
|
func (*GenSeedResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *GenSeedResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_walletunlocker_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)
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
// Deprecated: Use GenSeedResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*GenSeedResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return file_walletunlocker_proto_rawDescGZIP(), []int{1}
|
|
|
|
}
|
2020-04-02 12:07:05 +02:00
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *GenSeedResponse) GetCipherSeedMnemonic() []string {
|
|
|
|
if x != nil {
|
|
|
|
return x.CipherSeedMnemonic
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *GenSeedResponse) GetEncipheredSeed() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.EncipheredSeed
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type InitWalletRequest struct {
|
2021-04-28 15:30:59 +02:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-05-06 16:51:14 +02:00
|
|
|
//
|
2020-04-02 12:07:05 +02:00
|
|
|
//wallet_password is the passphrase that should be used to encrypt the
|
|
|
|
//wallet. This MUST be at least 8 chars in length. After creation, this
|
|
|
|
//password is required to unlock the daemon. When using REST, this field
|
|
|
|
//must be encoded as base64.
|
|
|
|
WalletPassword []byte `protobuf:"bytes,1,opt,name=wallet_password,json=walletPassword,proto3" json:"wallet_password,omitempty"`
|
2020-05-06 16:51:14 +02:00
|
|
|
//
|
2020-04-02 12:07:05 +02:00
|
|
|
//cipher_seed_mnemonic is a 24-word mnemonic that encodes a prior aezeed
|
|
|
|
//cipher seed obtained by the user. This may have been generated by the
|
|
|
|
//GenSeed method, or be an existing seed.
|
|
|
|
CipherSeedMnemonic []string `protobuf:"bytes,2,rep,name=cipher_seed_mnemonic,json=cipherSeedMnemonic,proto3" json:"cipher_seed_mnemonic,omitempty"`
|
2020-05-06 16:51:14 +02:00
|
|
|
//
|
2020-04-02 12:07:05 +02:00
|
|
|
//aezeed_passphrase is an optional user provided passphrase that will be used
|
|
|
|
//to encrypt the generated aezeed cipher seed. When using REST, this field
|
|
|
|
//must be encoded as base64.
|
|
|
|
AezeedPassphrase []byte `protobuf:"bytes,3,opt,name=aezeed_passphrase,json=aezeedPassphrase,proto3" json:"aezeed_passphrase,omitempty"`
|
2020-05-06 16:51:14 +02:00
|
|
|
//
|
2020-04-02 12:07:05 +02:00
|
|
|
//recovery_window is an optional argument specifying the address lookahead
|
|
|
|
//when restoring a wallet seed. The recovery window applies to each
|
|
|
|
//individual branch of the BIP44 derivation paths. Supplying a recovery
|
|
|
|
//window of zero indicates that no addresses should be recovered, such after
|
|
|
|
//the first initialization of the wallet.
|
|
|
|
RecoveryWindow int32 `protobuf:"varint,4,opt,name=recovery_window,json=recoveryWindow,proto3" json:"recovery_window,omitempty"`
|
2020-05-06 16:51:14 +02:00
|
|
|
//
|
2020-04-02 12:07:05 +02:00
|
|
|
//channel_backups is an optional argument that allows clients to recover the
|
|
|
|
//settled funds within a set of channels. This should be populated if the
|
|
|
|
//user was unable to close out all channels and sweep funds before partial or
|
|
|
|
//total data loss occurred. If specified, then after on-chain recovery of
|
|
|
|
//funds, lnd begin to carry out the data loss recovery protocol in order to
|
|
|
|
//recover the funds in each channel from a remote force closed transaction.
|
2020-10-06 17:23:26 +02:00
|
|
|
ChannelBackups *ChanBackupSnapshot `protobuf:"bytes,5,opt,name=channel_backups,json=channelBackups,proto3" json:"channel_backups,omitempty"`
|
|
|
|
//
|
|
|
|
//stateless_init is an optional argument instructing the daemon NOT to create
|
|
|
|
//any *.macaroon files in its filesystem. If this parameter is set, then the
|
|
|
|
//admin macaroon returned in the response MUST be stored by the caller of the
|
|
|
|
//RPC as otherwise all access to the daemon will be lost!
|
2021-04-28 15:30:59 +02:00
|
|
|
StatelessInit bool `protobuf:"varint,6,opt,name=stateless_init,json=statelessInit,proto3" json:"stateless_init,omitempty"`
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *InitWalletRequest) Reset() {
|
|
|
|
*x = InitWalletRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_walletunlocker_proto_msgTypes[2]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *InitWalletRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
2021-04-28 15:30:59 +02:00
|
|
|
|
|
|
|
func (*InitWalletRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *InitWalletRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_walletunlocker_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)
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
// Deprecated: Use InitWalletRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*InitWalletRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return file_walletunlocker_proto_rawDescGZIP(), []int{2}
|
|
|
|
}
|
2020-04-02 12:07:05 +02:00
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *InitWalletRequest) GetWalletPassword() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.WalletPassword
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *InitWalletRequest) GetCipherSeedMnemonic() []string {
|
|
|
|
if x != nil {
|
|
|
|
return x.CipherSeedMnemonic
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *InitWalletRequest) GetAezeedPassphrase() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.AezeedPassphrase
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *InitWalletRequest) GetRecoveryWindow() int32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.RecoveryWindow
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *InitWalletRequest) GetChannelBackups() *ChanBackupSnapshot {
|
|
|
|
if x != nil {
|
|
|
|
return x.ChannelBackups
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *InitWalletRequest) GetStatelessInit() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.StatelessInit
|
2020-10-06 17:23:26 +02:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2020-04-02 12:07:05 +02:00
|
|
|
type InitWalletResponse struct {
|
2021-04-28 15:30:59 +02:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-10-06 17:23:26 +02:00
|
|
|
//
|
|
|
|
//The binary serialized admin macaroon that can be used to access the daemon
|
|
|
|
//after creating the wallet. If the stateless_init parameter was set to true,
|
|
|
|
//this is the ONLY copy of the macaroon and MUST be stored safely by the
|
|
|
|
//caller. Otherwise a copy of this macaroon is also persisted on disk by the
|
|
|
|
//daemon, together with other macaroon files.
|
2021-04-28 15:30:59 +02:00
|
|
|
AdminMacaroon []byte `protobuf:"bytes,1,opt,name=admin_macaroon,json=adminMacaroon,proto3" json:"admin_macaroon,omitempty"`
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *InitWalletResponse) Reset() {
|
|
|
|
*x = InitWalletResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_walletunlocker_proto_msgTypes[3]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *InitWalletResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
2021-04-28 15:30:59 +02:00
|
|
|
|
|
|
|
func (*InitWalletResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *InitWalletResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_walletunlocker_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)
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
// Deprecated: Use InitWalletResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*InitWalletResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return file_walletunlocker_proto_rawDescGZIP(), []int{3}
|
|
|
|
}
|
2020-04-02 12:07:05 +02:00
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *InitWalletResponse) GetAdminMacaroon() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.AdminMacaroon
|
2020-10-06 17:23:26 +02:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-04-02 12:07:05 +02:00
|
|
|
type UnlockWalletRequest struct {
|
2021-04-28 15:30:59 +02:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-05-06 16:51:14 +02:00
|
|
|
//
|
2020-04-02 12:07:05 +02:00
|
|
|
//wallet_password should be the current valid passphrase for the daemon. This
|
|
|
|
//will be required to decrypt on-disk material that the daemon requires to
|
|
|
|
//function properly. When using REST, this field must be encoded as base64.
|
|
|
|
WalletPassword []byte `protobuf:"bytes,1,opt,name=wallet_password,json=walletPassword,proto3" json:"wallet_password,omitempty"`
|
2020-05-06 16:51:14 +02:00
|
|
|
//
|
2020-04-02 12:07:05 +02:00
|
|
|
//recovery_window is an optional argument specifying the address lookahead
|
|
|
|
//when restoring a wallet seed. The recovery window applies to each
|
|
|
|
//individual branch of the BIP44 derivation paths. Supplying a recovery
|
|
|
|
//window of zero indicates that no addresses should be recovered, such after
|
|
|
|
//the first initialization of the wallet.
|
|
|
|
RecoveryWindow int32 `protobuf:"varint,2,opt,name=recovery_window,json=recoveryWindow,proto3" json:"recovery_window,omitempty"`
|
2020-05-06 16:51:14 +02:00
|
|
|
//
|
2020-04-02 12:07:05 +02:00
|
|
|
//channel_backups is an optional argument that allows clients to recover the
|
|
|
|
//settled funds within a set of channels. This should be populated if the
|
|
|
|
//user was unable to close out all channels and sweep funds before partial or
|
|
|
|
//total data loss occurred. If specified, then after on-chain recovery of
|
|
|
|
//funds, lnd begin to carry out the data loss recovery protocol in order to
|
|
|
|
//recover the funds in each channel from a remote force closed transaction.
|
2020-10-06 17:23:26 +02:00
|
|
|
ChannelBackups *ChanBackupSnapshot `protobuf:"bytes,3,opt,name=channel_backups,json=channelBackups,proto3" json:"channel_backups,omitempty"`
|
|
|
|
//
|
|
|
|
//stateless_init is an optional argument instructing the daemon NOT to create
|
|
|
|
//any *.macaroon files in its file system.
|
2021-04-28 15:30:59 +02:00
|
|
|
StatelessInit bool `protobuf:"varint,4,opt,name=stateless_init,json=statelessInit,proto3" json:"stateless_init,omitempty"`
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *UnlockWalletRequest) Reset() {
|
|
|
|
*x = UnlockWalletRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_walletunlocker_proto_msgTypes[4]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *UnlockWalletRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
2021-04-28 15:30:59 +02:00
|
|
|
|
|
|
|
func (*UnlockWalletRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *UnlockWalletRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_walletunlocker_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)
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
// Deprecated: Use UnlockWalletRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*UnlockWalletRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return file_walletunlocker_proto_rawDescGZIP(), []int{4}
|
|
|
|
}
|
2020-04-02 12:07:05 +02:00
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *UnlockWalletRequest) GetWalletPassword() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.WalletPassword
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *UnlockWalletRequest) GetRecoveryWindow() int32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.RecoveryWindow
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *UnlockWalletRequest) GetChannelBackups() *ChanBackupSnapshot {
|
|
|
|
if x != nil {
|
|
|
|
return x.ChannelBackups
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *UnlockWalletRequest) GetStatelessInit() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.StatelessInit
|
2020-10-06 17:23:26 +02:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2020-04-02 12:07:05 +02:00
|
|
|
type UnlockWalletResponse struct {
|
2021-04-28 15:30:59 +02:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *UnlockWalletResponse) Reset() {
|
|
|
|
*x = UnlockWalletResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_walletunlocker_proto_msgTypes[5]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *UnlockWalletResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
2021-04-28 15:30:59 +02:00
|
|
|
|
|
|
|
func (*UnlockWalletResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *UnlockWalletResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_walletunlocker_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)
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
// Deprecated: Use UnlockWalletResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*UnlockWalletResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return file_walletunlocker_proto_rawDescGZIP(), []int{5}
|
|
|
|
}
|
2020-04-02 12:07:05 +02:00
|
|
|
|
|
|
|
type ChangePasswordRequest struct {
|
2021-04-28 15:30:59 +02:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-05-06 16:51:14 +02:00
|
|
|
//
|
2020-04-02 12:07:05 +02:00
|
|
|
//current_password should be the current valid passphrase used to unlock the
|
|
|
|
//daemon. When using REST, this field must be encoded as base64.
|
|
|
|
CurrentPassword []byte `protobuf:"bytes,1,opt,name=current_password,json=currentPassword,proto3" json:"current_password,omitempty"`
|
2020-05-06 16:51:14 +02:00
|
|
|
//
|
2020-04-02 12:07:05 +02:00
|
|
|
//new_password should be the new passphrase that will be needed to unlock the
|
|
|
|
//daemon. When using REST, this field must be encoded as base64.
|
2020-10-06 17:23:26 +02:00
|
|
|
NewPassword []byte `protobuf:"bytes,2,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"`
|
|
|
|
//
|
|
|
|
//stateless_init is an optional argument instructing the daemon NOT to create
|
|
|
|
//any *.macaroon files in its filesystem. If this parameter is set, then the
|
|
|
|
//admin macaroon returned in the response MUST be stored by the caller of the
|
|
|
|
//RPC as otherwise all access to the daemon will be lost!
|
|
|
|
StatelessInit bool `protobuf:"varint,3,opt,name=stateless_init,json=statelessInit,proto3" json:"stateless_init,omitempty"`
|
|
|
|
//
|
|
|
|
//new_macaroon_root_key is an optional argument instructing the daemon to
|
|
|
|
//rotate the macaroon root key when set to true. This will invalidate all
|
|
|
|
//previously generated macaroons.
|
2021-04-28 15:30:59 +02:00
|
|
|
NewMacaroonRootKey bool `protobuf:"varint,4,opt,name=new_macaroon_root_key,json=newMacaroonRootKey,proto3" json:"new_macaroon_root_key,omitempty"`
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *ChangePasswordRequest) Reset() {
|
|
|
|
*x = ChangePasswordRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_walletunlocker_proto_msgTypes[6]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *ChangePasswordRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
2021-04-28 15:30:59 +02:00
|
|
|
|
|
|
|
func (*ChangePasswordRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ChangePasswordRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_walletunlocker_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)
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
// Deprecated: Use ChangePasswordRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ChangePasswordRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return file_walletunlocker_proto_rawDescGZIP(), []int{6}
|
|
|
|
}
|
2020-04-02 12:07:05 +02:00
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *ChangePasswordRequest) GetCurrentPassword() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.CurrentPassword
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *ChangePasswordRequest) GetNewPassword() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.NewPassword
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *ChangePasswordRequest) GetStatelessInit() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.StatelessInit
|
2020-10-06 17:23:26 +02:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *ChangePasswordRequest) GetNewMacaroonRootKey() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.NewMacaroonRootKey
|
2020-10-06 17:23:26 +02:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2020-04-02 12:07:05 +02:00
|
|
|
type ChangePasswordResponse struct {
|
2021-04-28 15:30:59 +02:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-10-06 17:23:26 +02:00
|
|
|
//
|
|
|
|
//The binary serialized admin macaroon that can be used to access the daemon
|
|
|
|
//after rotating the macaroon root key. If both the stateless_init and
|
|
|
|
//new_macaroon_root_key parameter were set to true, this is the ONLY copy of
|
|
|
|
//the macaroon that was created from the new root key and MUST be stored
|
|
|
|
//safely by the caller. Otherwise a copy of this macaroon is also persisted on
|
|
|
|
//disk by the daemon, together with other macaroon files.
|
2021-04-28 15:30:59 +02:00
|
|
|
AdminMacaroon []byte `protobuf:"bytes,1,opt,name=admin_macaroon,json=adminMacaroon,proto3" json:"admin_macaroon,omitempty"`
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *ChangePasswordResponse) Reset() {
|
|
|
|
*x = ChangePasswordResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_walletunlocker_proto_msgTypes[7]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *ChangePasswordResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
2021-04-28 15:30:59 +02:00
|
|
|
|
|
|
|
func (*ChangePasswordResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ChangePasswordResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_walletunlocker_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)
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
// Deprecated: Use ChangePasswordResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ChangePasswordResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return file_walletunlocker_proto_rawDescGZIP(), []int{7}
|
|
|
|
}
|
2020-04-02 12:07:05 +02:00
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
func (x *ChangePasswordResponse) GetAdminMacaroon() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.AdminMacaroon
|
2020-10-06 17:23:26 +02:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-04-28 15:30:59 +02:00
|
|
|
var File_walletunlocker_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
var file_walletunlocker_proto_rawDesc = []byte{
|
|
|
|
0x0a, 0x14, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x72,
|
2021-07-27 12:59:56 +02:00
|
|
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x1a, 0x0f, 0x6c,
|
|
|
|
0x69, 0x67, 0x68, 0x74, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x60,
|
|
|
|
0x0a, 0x0e, 0x47, 0x65, 0x6e, 0x53, 0x65, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
|
|
0x12, 0x2b, 0x0a, 0x11, 0x61, 0x65, 0x7a, 0x65, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x70,
|
|
|
|
0x68, 0x72, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x61, 0x65, 0x7a,
|
|
|
|
0x65, 0x65, 0x64, 0x50, 0x61, 0x73, 0x73, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x12, 0x21, 0x0a,
|
|
|
|
0x0c, 0x73, 0x65, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x6f, 0x70, 0x79, 0x18, 0x02, 0x20,
|
|
|
|
0x01, 0x28, 0x0c, 0x52, 0x0b, 0x73, 0x65, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x6f, 0x70, 0x79,
|
|
|
|
0x22, 0x6c, 0x0a, 0x0f, 0x47, 0x65, 0x6e, 0x53, 0x65, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
|
|
|
0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, 0x5f, 0x73, 0x65,
|
|
|
|
0x65, 0x64, 0x5f, 0x6d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x18, 0x01, 0x20, 0x03, 0x28,
|
|
|
|
0x09, 0x52, 0x12, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, 0x53, 0x65, 0x65, 0x64, 0x4d, 0x6e, 0x65,
|
|
|
|
0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x6e, 0x63, 0x69, 0x70, 0x68, 0x65,
|
|
|
|
0x72, 0x65, 0x64, 0x5f, 0x73, 0x65, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e,
|
|
|
|
0x65, 0x6e, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, 0x65, 0x64, 0x53, 0x65, 0x65, 0x64, 0x22, 0xaf,
|
|
|
|
0x02, 0x0a, 0x11, 0x49, 0x6e, 0x69, 0x74, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71,
|
|
|
|
0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x70,
|
|
|
|
0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x77,
|
|
|
|
0x61, 0x6c, 0x6c, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x30, 0x0a,
|
2021-04-28 15:30:59 +02:00
|
|
|
0x14, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x65, 0x64, 0x5f, 0x6d, 0x6e, 0x65,
|
2021-07-27 12:59:56 +02:00
|
|
|
0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 0x63, 0x69, 0x70,
|
2021-04-28 15:30:59 +02:00
|
|
|
0x68, 0x65, 0x72, 0x53, 0x65, 0x65, 0x64, 0x4d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x12,
|
2021-07-27 12:59:56 +02:00
|
|
|
0x2b, 0x0a, 0x11, 0x61, 0x65, 0x7a, 0x65, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x70, 0x68,
|
|
|
|
0x72, 0x61, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x61, 0x65, 0x7a, 0x65,
|
|
|
|
0x65, 0x64, 0x50, 0x61, 0x73, 0x73, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x0f,
|
|
|
|
0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x5f, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x18,
|
|
|
|
0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x57,
|
|
|
|
0x69, 0x6e, 0x64, 0x6f, 0x77, 0x12, 0x42, 0x0a, 0x0f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c,
|
|
|
|
0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19,
|
|
|
|
0x2e, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x42, 0x61, 0x63, 0x6b, 0x75,
|
|
|
|
0x70, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x0e, 0x63, 0x68, 0x61, 0x6e, 0x6e,
|
|
|
|
0x65, 0x6c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x74, 0x61,
|
|
|
|
0x74, 0x65, 0x6c, 0x65, 0x73, 0x73, 0x5f, 0x69, 0x6e, 0x69, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28,
|
|
|
|
0x08, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6c, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x69, 0x74,
|
|
|
|
0x22, 0x3b, 0x0a, 0x12, 0x49, 0x6e, 0x69, 0x74, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65,
|
|
|
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f,
|
|
|
|
0x6d, 0x61, 0x63, 0x61, 0x72, 0x6f, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d,
|
|
|
|
0x61, 0x64, 0x6d, 0x69, 0x6e, 0x4d, 0x61, 0x63, 0x61, 0x72, 0x6f, 0x6f, 0x6e, 0x22, 0xd2, 0x01,
|
|
|
|
0x0a, 0x13, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65,
|
|
|
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f,
|
|
|
|
0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e,
|
|
|
|
0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x27,
|
|
|
|
0x0a, 0x0f, 0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x5f, 0x77, 0x69, 0x6e, 0x64, 0x6f,
|
|
|
|
0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72,
|
|
|
|
0x79, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x12, 0x42, 0x0a, 0x0f, 0x63, 0x68, 0x61, 0x6e, 0x6e,
|
|
|
|
0x65, 0x6c, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
|
|
|
|
0x32, 0x19, 0x2e, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x42, 0x61, 0x63,
|
|
|
|
0x6b, 0x75, 0x70, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x0e, 0x63, 0x68, 0x61,
|
|
|
|
0x6e, 0x6e, 0x65, 0x6c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x73,
|
|
|
|
0x74, 0x61, 0x74, 0x65, 0x6c, 0x65, 0x73, 0x73, 0x5f, 0x69, 0x6e, 0x69, 0x74, 0x18, 0x04, 0x20,
|
|
|
|
0x01, 0x28, 0x08, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6c, 0x65, 0x73, 0x73, 0x49, 0x6e,
|
|
|
|
0x69, 0x74, 0x22, 0x16, 0x0a, 0x14, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x57, 0x61, 0x6c, 0x6c,
|
|
|
|
0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xbf, 0x01, 0x0a, 0x15, 0x43,
|
|
|
|
0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71,
|
|
|
|
0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f,
|
|
|
|
0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f,
|
|
|
|
0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12,
|
|
|
|
0x21, 0x0a, 0x0c, 0x6e, 0x65, 0x77, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18,
|
|
|
|
0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x6e, 0x65, 0x77, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f,
|
|
|
|
0x72, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6c, 0x65, 0x73, 0x73, 0x5f,
|
|
|
|
0x69, 0x6e, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74,
|
|
|
|
0x65, 0x6c, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x69, 0x74, 0x12, 0x31, 0x0a, 0x15, 0x6e, 0x65, 0x77,
|
|
|
|
0x5f, 0x6d, 0x61, 0x63, 0x61, 0x72, 0x6f, 0x6f, 0x6e, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x6b,
|
|
|
|
0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x6e, 0x65, 0x77, 0x4d, 0x61, 0x63,
|
|
|
|
0x61, 0x72, 0x6f, 0x6f, 0x6e, 0x52, 0x6f, 0x6f, 0x74, 0x4b, 0x65, 0x79, 0x22, 0x3f, 0x0a, 0x16,
|
|
|
|
0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65,
|
|
|
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f,
|
|
|
|
0x6d, 0x61, 0x63, 0x61, 0x72, 0x6f, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d,
|
|
|
|
0x61, 0x64, 0x6d, 0x69, 0x6e, 0x4d, 0x61, 0x63, 0x61, 0x72, 0x6f, 0x6f, 0x6e, 0x32, 0xa5, 0x02,
|
|
|
|
0x0a, 0x0e, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x72,
|
|
|
|
0x12, 0x38, 0x0a, 0x07, 0x47, 0x65, 0x6e, 0x53, 0x65, 0x65, 0x64, 0x12, 0x15, 0x2e, 0x6c, 0x6e,
|
|
|
|
0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x6e, 0x53, 0x65, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
|
|
0x73, 0x74, 0x1a, 0x16, 0x2e, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x6e, 0x53, 0x65,
|
|
|
|
0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0a, 0x49, 0x6e,
|
|
|
|
0x69, 0x74, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x12, 0x18, 0x2e, 0x6c, 0x6e, 0x72, 0x70, 0x63,
|
|
|
|
0x2e, 0x49, 0x6e, 0x69, 0x74, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
|
|
0x73, 0x74, 0x1a, 0x19, 0x2e, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x57,
|
|
|
|
0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a,
|
|
|
|
0x0c, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x12, 0x1a, 0x2e,
|
|
|
|
0x6c, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x57, 0x61, 0x6c, 0x6c,
|
|
|
|
0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x6c, 0x6e, 0x72, 0x70,
|
|
|
|
0x63, 0x2e, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x52, 0x65,
|
|
|
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x0e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,
|
|
|
|
0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1c, 0x2e, 0x6c, 0x6e, 0x72, 0x70, 0x63,
|
|
|
|
0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52,
|
|
|
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x43,
|
|
|
|
0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73,
|
|
|
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x27, 0x5a, 0x25, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
|
|
|
|
0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x69, 0x6e, 0x67, 0x6e, 0x65, 0x74,
|
|
|
|
0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x6c, 0x6e, 0x64, 0x2f, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x62, 0x06,
|
|
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
2021-04-28 15:30:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
file_walletunlocker_proto_rawDescOnce sync.Once
|
|
|
|
file_walletunlocker_proto_rawDescData = file_walletunlocker_proto_rawDesc
|
|
|
|
)
|
|
|
|
|
|
|
|
func file_walletunlocker_proto_rawDescGZIP() []byte {
|
|
|
|
file_walletunlocker_proto_rawDescOnce.Do(func() {
|
|
|
|
file_walletunlocker_proto_rawDescData = protoimpl.X.CompressGZIP(file_walletunlocker_proto_rawDescData)
|
|
|
|
})
|
|
|
|
return file_walletunlocker_proto_rawDescData
|
|
|
|
}
|
|
|
|
|
|
|
|
var file_walletunlocker_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
|
|
|
var file_walletunlocker_proto_goTypes = []interface{}{
|
|
|
|
(*GenSeedRequest)(nil), // 0: lnrpc.GenSeedRequest
|
|
|
|
(*GenSeedResponse)(nil), // 1: lnrpc.GenSeedResponse
|
|
|
|
(*InitWalletRequest)(nil), // 2: lnrpc.InitWalletRequest
|
|
|
|
(*InitWalletResponse)(nil), // 3: lnrpc.InitWalletResponse
|
|
|
|
(*UnlockWalletRequest)(nil), // 4: lnrpc.UnlockWalletRequest
|
|
|
|
(*UnlockWalletResponse)(nil), // 5: lnrpc.UnlockWalletResponse
|
|
|
|
(*ChangePasswordRequest)(nil), // 6: lnrpc.ChangePasswordRequest
|
|
|
|
(*ChangePasswordResponse)(nil), // 7: lnrpc.ChangePasswordResponse
|
|
|
|
(*ChanBackupSnapshot)(nil), // 8: lnrpc.ChanBackupSnapshot
|
|
|
|
}
|
|
|
|
var file_walletunlocker_proto_depIdxs = []int32{
|
|
|
|
8, // 0: lnrpc.InitWalletRequest.channel_backups:type_name -> lnrpc.ChanBackupSnapshot
|
|
|
|
8, // 1: lnrpc.UnlockWalletRequest.channel_backups:type_name -> lnrpc.ChanBackupSnapshot
|
|
|
|
0, // 2: lnrpc.WalletUnlocker.GenSeed:input_type -> lnrpc.GenSeedRequest
|
|
|
|
2, // 3: lnrpc.WalletUnlocker.InitWallet:input_type -> lnrpc.InitWalletRequest
|
|
|
|
4, // 4: lnrpc.WalletUnlocker.UnlockWallet:input_type -> lnrpc.UnlockWalletRequest
|
|
|
|
6, // 5: lnrpc.WalletUnlocker.ChangePassword:input_type -> lnrpc.ChangePasswordRequest
|
|
|
|
1, // 6: lnrpc.WalletUnlocker.GenSeed:output_type -> lnrpc.GenSeedResponse
|
|
|
|
3, // 7: lnrpc.WalletUnlocker.InitWallet:output_type -> lnrpc.InitWalletResponse
|
|
|
|
5, // 8: lnrpc.WalletUnlocker.UnlockWallet:output_type -> lnrpc.UnlockWalletResponse
|
|
|
|
7, // 9: lnrpc.WalletUnlocker.ChangePassword:output_type -> lnrpc.ChangePasswordResponse
|
|
|
|
6, // [6:10] is the sub-list for method output_type
|
|
|
|
2, // [2:6] is the sub-list for method input_type
|
|
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
|
|
0, // [0:2] is the sub-list for field type_name
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() { file_walletunlocker_proto_init() }
|
|
|
|
func file_walletunlocker_proto_init() {
|
|
|
|
if File_walletunlocker_proto != nil {
|
|
|
|
return
|
|
|
|
}
|
2021-07-27 12:59:56 +02:00
|
|
|
file_lightning_proto_init()
|
2021-04-28 15:30:59 +02:00
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
|
file_walletunlocker_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*GenSeedRequest); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_walletunlocker_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*GenSeedResponse); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_walletunlocker_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*InitWalletRequest); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_walletunlocker_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*InitWalletResponse); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_walletunlocker_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*UnlockWalletRequest); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_walletunlocker_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*UnlockWalletResponse); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_walletunlocker_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*ChangePasswordRequest); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_walletunlocker_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*ChangePasswordResponse); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type x struct{}
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
RawDescriptor: file_walletunlocker_proto_rawDesc,
|
|
|
|
NumEnums: 0,
|
|
|
|
NumMessages: 8,
|
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 1,
|
|
|
|
},
|
|
|
|
GoTypes: file_walletunlocker_proto_goTypes,
|
|
|
|
DependencyIndexes: file_walletunlocker_proto_depIdxs,
|
|
|
|
MessageInfos: file_walletunlocker_proto_msgTypes,
|
|
|
|
}.Build()
|
|
|
|
File_walletunlocker_proto = out.File
|
|
|
|
file_walletunlocker_proto_rawDesc = nil
|
|
|
|
file_walletunlocker_proto_goTypes = nil
|
|
|
|
file_walletunlocker_proto_depIdxs = nil
|
2020-04-02 12:07:05 +02:00
|
|
|
}
|