mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
235efc04e4
To avoid a naming conflict with etcd, we rename our very generic rpc.proto to lightning.proto to match the service name that's declared within. This will break many external tutorials and possibly also our API docs but the change needs to be done eventually.
1105 lines
43 KiB
Go
1105 lines
43 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.23.0
|
|
// protoc v3.6.1
|
|
// source: walletunlocker.proto
|
|
|
|
package lnrpc
|
|
|
|
import (
|
|
context "context"
|
|
proto "github.com/golang/protobuf/proto"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// This is a compile-time assertion that a sufficiently up-to-date version
|
|
// of the legacy proto package is being used.
|
|
const _ = proto.ProtoPackageIsVersion4
|
|
|
|
type GenSeedRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
//
|
|
//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"`
|
|
//
|
|
//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.
|
|
SeedEntropy []byte `protobuf:"bytes,2,opt,name=seed_entropy,json=seedEntropy,proto3" json:"seed_entropy,omitempty"`
|
|
}
|
|
|
|
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)
|
|
}
|
|
}
|
|
|
|
func (x *GenSeedRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
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)
|
|
}
|
|
|
|
// Deprecated: Use GenSeedRequest.ProtoReflect.Descriptor instead.
|
|
func (*GenSeedRequest) Descriptor() ([]byte, []int) {
|
|
return file_walletunlocker_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *GenSeedRequest) GetAezeedPassphrase() []byte {
|
|
if x != nil {
|
|
return x.AezeedPassphrase
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GenSeedRequest) GetSeedEntropy() []byte {
|
|
if x != nil {
|
|
return x.SeedEntropy
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GenSeedResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
//
|
|
//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"`
|
|
//
|
|
//enciphered_seed are the raw aezeed cipher seed bytes. This is the raw
|
|
//cipher text before run through our mnemonic encoding scheme.
|
|
EncipheredSeed []byte `protobuf:"bytes,2,opt,name=enciphered_seed,json=encipheredSeed,proto3" json:"enciphered_seed,omitempty"`
|
|
}
|
|
|
|
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)
|
|
}
|
|
}
|
|
|
|
func (x *GenSeedResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
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)
|
|
}
|
|
|
|
// Deprecated: Use GenSeedResponse.ProtoReflect.Descriptor instead.
|
|
func (*GenSeedResponse) Descriptor() ([]byte, []int) {
|
|
return file_walletunlocker_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *GenSeedResponse) GetCipherSeedMnemonic() []string {
|
|
if x != nil {
|
|
return x.CipherSeedMnemonic
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GenSeedResponse) GetEncipheredSeed() []byte {
|
|
if x != nil {
|
|
return x.EncipheredSeed
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type InitWalletRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
//
|
|
//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"`
|
|
//
|
|
//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"`
|
|
//
|
|
//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"`
|
|
//
|
|
//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"`
|
|
//
|
|
//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.
|
|
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!
|
|
StatelessInit bool `protobuf:"varint,6,opt,name=stateless_init,json=statelessInit,proto3" json:"stateless_init,omitempty"`
|
|
}
|
|
|
|
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)
|
|
}
|
|
}
|
|
|
|
func (x *InitWalletRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
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)
|
|
}
|
|
|
|
// Deprecated: Use InitWalletRequest.ProtoReflect.Descriptor instead.
|
|
func (*InitWalletRequest) Descriptor() ([]byte, []int) {
|
|
return file_walletunlocker_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *InitWalletRequest) GetWalletPassword() []byte {
|
|
if x != nil {
|
|
return x.WalletPassword
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *InitWalletRequest) GetCipherSeedMnemonic() []string {
|
|
if x != nil {
|
|
return x.CipherSeedMnemonic
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *InitWalletRequest) GetAezeedPassphrase() []byte {
|
|
if x != nil {
|
|
return x.AezeedPassphrase
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *InitWalletRequest) GetRecoveryWindow() int32 {
|
|
if x != nil {
|
|
return x.RecoveryWindow
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *InitWalletRequest) GetChannelBackups() *ChanBackupSnapshot {
|
|
if x != nil {
|
|
return x.ChannelBackups
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *InitWalletRequest) GetStatelessInit() bool {
|
|
if x != nil {
|
|
return x.StatelessInit
|
|
}
|
|
return false
|
|
}
|
|
|
|
type InitWalletResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
//
|
|
//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.
|
|
AdminMacaroon []byte `protobuf:"bytes,1,opt,name=admin_macaroon,json=adminMacaroon,proto3" json:"admin_macaroon,omitempty"`
|
|
}
|
|
|
|
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)
|
|
}
|
|
}
|
|
|
|
func (x *InitWalletResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
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)
|
|
}
|
|
|
|
// Deprecated: Use InitWalletResponse.ProtoReflect.Descriptor instead.
|
|
func (*InitWalletResponse) Descriptor() ([]byte, []int) {
|
|
return file_walletunlocker_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *InitWalletResponse) GetAdminMacaroon() []byte {
|
|
if x != nil {
|
|
return x.AdminMacaroon
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UnlockWalletRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
//
|
|
//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"`
|
|
//
|
|
//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"`
|
|
//
|
|
//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.
|
|
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.
|
|
StatelessInit bool `protobuf:"varint,4,opt,name=stateless_init,json=statelessInit,proto3" json:"stateless_init,omitempty"`
|
|
}
|
|
|
|
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)
|
|
}
|
|
}
|
|
|
|
func (x *UnlockWalletRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
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)
|
|
}
|
|
|
|
// Deprecated: Use UnlockWalletRequest.ProtoReflect.Descriptor instead.
|
|
func (*UnlockWalletRequest) Descriptor() ([]byte, []int) {
|
|
return file_walletunlocker_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *UnlockWalletRequest) GetWalletPassword() []byte {
|
|
if x != nil {
|
|
return x.WalletPassword
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UnlockWalletRequest) GetRecoveryWindow() int32 {
|
|
if x != nil {
|
|
return x.RecoveryWindow
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UnlockWalletRequest) GetChannelBackups() *ChanBackupSnapshot {
|
|
if x != nil {
|
|
return x.ChannelBackups
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UnlockWalletRequest) GetStatelessInit() bool {
|
|
if x != nil {
|
|
return x.StatelessInit
|
|
}
|
|
return false
|
|
}
|
|
|
|
type UnlockWalletResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
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)
|
|
}
|
|
}
|
|
|
|
func (x *UnlockWalletResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
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)
|
|
}
|
|
|
|
// Deprecated: Use UnlockWalletResponse.ProtoReflect.Descriptor instead.
|
|
func (*UnlockWalletResponse) Descriptor() ([]byte, []int) {
|
|
return file_walletunlocker_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
type ChangePasswordRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
//
|
|
//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"`
|
|
//
|
|
//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.
|
|
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.
|
|
NewMacaroonRootKey bool `protobuf:"varint,4,opt,name=new_macaroon_root_key,json=newMacaroonRootKey,proto3" json:"new_macaroon_root_key,omitempty"`
|
|
}
|
|
|
|
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)
|
|
}
|
|
}
|
|
|
|
func (x *ChangePasswordRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
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)
|
|
}
|
|
|
|
// Deprecated: Use ChangePasswordRequest.ProtoReflect.Descriptor instead.
|
|
func (*ChangePasswordRequest) Descriptor() ([]byte, []int) {
|
|
return file_walletunlocker_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *ChangePasswordRequest) GetCurrentPassword() []byte {
|
|
if x != nil {
|
|
return x.CurrentPassword
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ChangePasswordRequest) GetNewPassword() []byte {
|
|
if x != nil {
|
|
return x.NewPassword
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ChangePasswordRequest) GetStatelessInit() bool {
|
|
if x != nil {
|
|
return x.StatelessInit
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *ChangePasswordRequest) GetNewMacaroonRootKey() bool {
|
|
if x != nil {
|
|
return x.NewMacaroonRootKey
|
|
}
|
|
return false
|
|
}
|
|
|
|
type ChangePasswordResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
//
|
|
//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.
|
|
AdminMacaroon []byte `protobuf:"bytes,1,opt,name=admin_macaroon,json=adminMacaroon,proto3" json:"admin_macaroon,omitempty"`
|
|
}
|
|
|
|
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)
|
|
}
|
|
}
|
|
|
|
func (x *ChangePasswordResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
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)
|
|
}
|
|
|
|
// Deprecated: Use ChangePasswordResponse.ProtoReflect.Descriptor instead.
|
|
func (*ChangePasswordResponse) Descriptor() ([]byte, []int) {
|
|
return file_walletunlocker_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *ChangePasswordResponse) GetAdminMacaroon() []byte {
|
|
if x != nil {
|
|
return x.AdminMacaroon
|
|
}
|
|
return nil
|
|
}
|
|
|
|
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,
|
|
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,
|
|
0x14, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x65, 0x64, 0x5f, 0x6d, 0x6e, 0x65,
|
|
0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x18, 0x02, 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,
|
|
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,
|
|
}
|
|
|
|
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
|
|
}
|
|
file_lightning_proto_init()
|
|
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
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConnInterface
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
const _ = grpc.SupportPackageIsVersion6
|
|
|
|
// WalletUnlockerClient is the client API for WalletUnlocker service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type WalletUnlockerClient interface {
|
|
//
|
|
//GenSeed is the first method that should be used to instantiate a new lnd
|
|
//instance. This method allows a caller to generate a new aezeed cipher seed
|
|
//given an optional passphrase. If provided, the passphrase will be necessary
|
|
//to decrypt the cipherseed to expose the internal wallet seed.
|
|
//
|
|
//Once the cipherseed is obtained and verified by the user, the InitWallet
|
|
//method should be used to commit the newly generated seed, and create the
|
|
//wallet.
|
|
GenSeed(ctx context.Context, in *GenSeedRequest, opts ...grpc.CallOption) (*GenSeedResponse, error)
|
|
//
|
|
//InitWallet is used when lnd is starting up for the first time to fully
|
|
//initialize the daemon and its internal wallet. At the very least a wallet
|
|
//password must be provided. This will be used to encrypt sensitive material
|
|
//on disk.
|
|
//
|
|
//In the case of a recovery scenario, the user can also specify their aezeed
|
|
//mnemonic and passphrase. If set, then the daemon will use this prior state
|
|
//to initialize its internal wallet.
|
|
//
|
|
//Alternatively, this can be used along with the GenSeed RPC to obtain a
|
|
//seed, then present it to the user. Once it has been verified by the user,
|
|
//the seed can be fed into this RPC in order to commit the new wallet.
|
|
InitWallet(ctx context.Context, in *InitWalletRequest, opts ...grpc.CallOption) (*InitWalletResponse, error)
|
|
// lncli: `unlock`
|
|
//UnlockWallet is used at startup of lnd to provide a password to unlock
|
|
//the wallet database.
|
|
UnlockWallet(ctx context.Context, in *UnlockWalletRequest, opts ...grpc.CallOption) (*UnlockWalletResponse, error)
|
|
// lncli: `changepassword`
|
|
//ChangePassword changes the password of the encrypted wallet. This will
|
|
//automatically unlock the wallet database if successful.
|
|
ChangePassword(ctx context.Context, in *ChangePasswordRequest, opts ...grpc.CallOption) (*ChangePasswordResponse, error)
|
|
}
|
|
|
|
type walletUnlockerClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewWalletUnlockerClient(cc grpc.ClientConnInterface) WalletUnlockerClient {
|
|
return &walletUnlockerClient{cc}
|
|
}
|
|
|
|
func (c *walletUnlockerClient) GenSeed(ctx context.Context, in *GenSeedRequest, opts ...grpc.CallOption) (*GenSeedResponse, error) {
|
|
out := new(GenSeedResponse)
|
|
err := c.cc.Invoke(ctx, "/lnrpc.WalletUnlocker/GenSeed", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *walletUnlockerClient) InitWallet(ctx context.Context, in *InitWalletRequest, opts ...grpc.CallOption) (*InitWalletResponse, error) {
|
|
out := new(InitWalletResponse)
|
|
err := c.cc.Invoke(ctx, "/lnrpc.WalletUnlocker/InitWallet", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *walletUnlockerClient) UnlockWallet(ctx context.Context, in *UnlockWalletRequest, opts ...grpc.CallOption) (*UnlockWalletResponse, error) {
|
|
out := new(UnlockWalletResponse)
|
|
err := c.cc.Invoke(ctx, "/lnrpc.WalletUnlocker/UnlockWallet", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *walletUnlockerClient) ChangePassword(ctx context.Context, in *ChangePasswordRequest, opts ...grpc.CallOption) (*ChangePasswordResponse, error) {
|
|
out := new(ChangePasswordResponse)
|
|
err := c.cc.Invoke(ctx, "/lnrpc.WalletUnlocker/ChangePassword", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// WalletUnlockerServer is the server API for WalletUnlocker service.
|
|
type WalletUnlockerServer interface {
|
|
//
|
|
//GenSeed is the first method that should be used to instantiate a new lnd
|
|
//instance. This method allows a caller to generate a new aezeed cipher seed
|
|
//given an optional passphrase. If provided, the passphrase will be necessary
|
|
//to decrypt the cipherseed to expose the internal wallet seed.
|
|
//
|
|
//Once the cipherseed is obtained and verified by the user, the InitWallet
|
|
//method should be used to commit the newly generated seed, and create the
|
|
//wallet.
|
|
GenSeed(context.Context, *GenSeedRequest) (*GenSeedResponse, error)
|
|
//
|
|
//InitWallet is used when lnd is starting up for the first time to fully
|
|
//initialize the daemon and its internal wallet. At the very least a wallet
|
|
//password must be provided. This will be used to encrypt sensitive material
|
|
//on disk.
|
|
//
|
|
//In the case of a recovery scenario, the user can also specify their aezeed
|
|
//mnemonic and passphrase. If set, then the daemon will use this prior state
|
|
//to initialize its internal wallet.
|
|
//
|
|
//Alternatively, this can be used along with the GenSeed RPC to obtain a
|
|
//seed, then present it to the user. Once it has been verified by the user,
|
|
//the seed can be fed into this RPC in order to commit the new wallet.
|
|
InitWallet(context.Context, *InitWalletRequest) (*InitWalletResponse, error)
|
|
// lncli: `unlock`
|
|
//UnlockWallet is used at startup of lnd to provide a password to unlock
|
|
//the wallet database.
|
|
UnlockWallet(context.Context, *UnlockWalletRequest) (*UnlockWalletResponse, error)
|
|
// lncli: `changepassword`
|
|
//ChangePassword changes the password of the encrypted wallet. This will
|
|
//automatically unlock the wallet database if successful.
|
|
ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordResponse, error)
|
|
}
|
|
|
|
// UnimplementedWalletUnlockerServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedWalletUnlockerServer struct {
|
|
}
|
|
|
|
func (*UnimplementedWalletUnlockerServer) GenSeed(context.Context, *GenSeedRequest) (*GenSeedResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GenSeed not implemented")
|
|
}
|
|
func (*UnimplementedWalletUnlockerServer) InitWallet(context.Context, *InitWalletRequest) (*InitWalletResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method InitWallet not implemented")
|
|
}
|
|
func (*UnimplementedWalletUnlockerServer) UnlockWallet(context.Context, *UnlockWalletRequest) (*UnlockWalletResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method UnlockWallet not implemented")
|
|
}
|
|
func (*UnimplementedWalletUnlockerServer) ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ChangePassword not implemented")
|
|
}
|
|
|
|
func RegisterWalletUnlockerServer(s *grpc.Server, srv WalletUnlockerServer) {
|
|
s.RegisterService(&_WalletUnlocker_serviceDesc, srv)
|
|
}
|
|
|
|
func _WalletUnlocker_GenSeed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GenSeedRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(WalletUnlockerServer).GenSeed(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/lnrpc.WalletUnlocker/GenSeed",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(WalletUnlockerServer).GenSeed(ctx, req.(*GenSeedRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _WalletUnlocker_InitWallet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(InitWalletRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(WalletUnlockerServer).InitWallet(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/lnrpc.WalletUnlocker/InitWallet",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(WalletUnlockerServer).InitWallet(ctx, req.(*InitWalletRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _WalletUnlocker_UnlockWallet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UnlockWalletRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(WalletUnlockerServer).UnlockWallet(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/lnrpc.WalletUnlocker/UnlockWallet",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(WalletUnlockerServer).UnlockWallet(ctx, req.(*UnlockWalletRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _WalletUnlocker_ChangePassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ChangePasswordRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(WalletUnlockerServer).ChangePassword(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/lnrpc.WalletUnlocker/ChangePassword",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(WalletUnlockerServer).ChangePassword(ctx, req.(*ChangePasswordRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _WalletUnlocker_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "lnrpc.WalletUnlocker",
|
|
HandlerType: (*WalletUnlockerServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "GenSeed",
|
|
Handler: _WalletUnlocker_GenSeed_Handler,
|
|
},
|
|
{
|
|
MethodName: "InitWallet",
|
|
Handler: _WalletUnlocker_InitWallet_Handler,
|
|
},
|
|
{
|
|
MethodName: "UnlockWallet",
|
|
Handler: _WalletUnlocker_UnlockWallet_Handler,
|
|
},
|
|
{
|
|
MethodName: "ChangePassword",
|
|
Handler: _WalletUnlocker_ChangePassword_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "walletunlocker.proto",
|
|
}
|