diff --git a/README.md b/README.md index e8a5ebc..b959c6b 100644 --- a/README.md +++ b/README.md @@ -7,11 +7,15 @@ tagging versions. Clone the [BitBox02 firmware repo](https://github.com/digitalbitbox/bitbox02-firmware): +Make sure you have `protoc` and +[protoc-gen-go](https://developers.google.com/protocol-buffers/docs/reference/go-generated) +installed: + `git clone https://github.com/digitalbitbox/bitbox02-firmware.git` ```sh -rm -rf api/firmware/messages/* +rm -rf api/firmware/messages/{*.pb.go,*.proto} cp /path/to/bitbox02-firmware/messages/*.proto api/firmware/messages/ rm api/firmware/messages/backup.proto -go generate ./... +./api/firmware/messages/generate.sh ``` diff --git a/api/firmware/btc.go b/api/firmware/btc.go index 9774caf..c727f02 100644 --- a/api/firmware/btc.go +++ b/api/firmware/btc.go @@ -24,7 +24,7 @@ import ( "github.com/digitalbitbox/bitbox02-api-go/api/firmware/messages" "github.com/digitalbitbox/bitbox02-api-go/util/errp" "github.com/digitalbitbox/bitbox02-api-go/util/semver" - "github.com/golang/protobuf/proto" + "google.golang.org/protobuf/proto" ) const multisigNameMaxLen = 30 @@ -277,7 +277,7 @@ func (device *Device) BTCSign( switch next.Type { case messages.BTCSignNextResponse_INPUT: inputIndex := next.Index - input := *tx.Inputs[inputIndex].Input + input := tx.Inputs[inputIndex].Input inputIsSchnorr := isTaproot(scriptConfigs[input.ScriptConfigIndex]) @@ -297,7 +297,7 @@ func (device *Device) BTCSign( } next, err = device.queryBtcSign(&messages.Request{ Request: &messages.Request_BtcSignInput{ - BtcSignInput: &input, + BtcSignInput: input, }}) if err != nil { return nil, err diff --git a/api/firmware/btc_test.go b/api/firmware/btc_test.go index 2cf070b..481174d 100644 --- a/api/firmware/btc_test.go +++ b/api/firmware/btc_test.go @@ -20,8 +20,8 @@ import ( "github.com/digitalbitbox/bitbox02-api-go/api/firmware/messages" "github.com/digitalbitbox/bitbox02-api-go/util/semver" - "github.com/golang/protobuf/proto" "github.com/stretchr/testify/require" + "google.golang.org/protobuf/proto" ) const hardenedKeyStart = 0x80000000 diff --git a/api/firmware/device.go b/api/firmware/device.go index c6b57f8..513c753 100644 --- a/api/firmware/device.go +++ b/api/firmware/device.go @@ -27,8 +27,6 @@ import ( "github.com/flynn/noise" ) -//go:generate sh -c "protoc --proto_path=messages/ --go_out='import_path=messages,paths=source_relative:messages' messages/*.proto" - var ( lowestSupportedFirmwareVersion = semver.NewSemVer(9, 0, 0) lowestSupportedFirmwareVersionBTCOnly = semver.NewSemVer(9, 0, 0) diff --git a/api/firmware/device_test.go b/api/firmware/device_test.go index f592064..6506db8 100644 --- a/api/firmware/device_test.go +++ b/api/firmware/device_test.go @@ -25,8 +25,8 @@ import ( "github.com/digitalbitbox/bitbox02-api-go/api/firmware/mocks" "github.com/digitalbitbox/bitbox02-api-go/util/semver" "github.com/flynn/noise" - "github.com/golang/protobuf/proto" "github.com/stretchr/testify/require" + "google.golang.org/protobuf/proto" ) // newDevice creates a device to test with, with init/pairing already processed. diff --git a/api/firmware/messages/antiklepto.pb.go b/api/firmware/messages/antiklepto.pb.go index 3d79b8e..e11ce50 100644 --- a/api/firmware/messages/antiklepto.pb.go +++ b/api/firmware/messages/antiklepto.pb.go @@ -1,161 +1,285 @@ +// Copyright 2020 Shift Crypto AG +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v3.6.1 // source: antiklepto.proto package messages import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +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) +) type AntiKleptoHostNonceCommitment struct { - Commitment []byte `protobuf:"bytes,1,opt,name=commitment,proto3" json:"commitment,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *AntiKleptoHostNonceCommitment) Reset() { *m = AntiKleptoHostNonceCommitment{} } -func (m *AntiKleptoHostNonceCommitment) String() string { return proto.CompactTextString(m) } -func (*AntiKleptoHostNonceCommitment) ProtoMessage() {} -func (*AntiKleptoHostNonceCommitment) Descriptor() ([]byte, []int) { - return fileDescriptor_39dadd9b6cadc7c0, []int{0} + Commitment []byte `protobuf:"bytes,1,opt,name=commitment,proto3" json:"commitment,omitempty"` } -func (m *AntiKleptoHostNonceCommitment) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AntiKleptoHostNonceCommitment.Unmarshal(m, b) -} -func (m *AntiKleptoHostNonceCommitment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AntiKleptoHostNonceCommitment.Marshal(b, m, deterministic) -} -func (m *AntiKleptoHostNonceCommitment) XXX_Merge(src proto.Message) { - xxx_messageInfo_AntiKleptoHostNonceCommitment.Merge(m, src) +func (x *AntiKleptoHostNonceCommitment) Reset() { + *x = AntiKleptoHostNonceCommitment{} + if protoimpl.UnsafeEnabled { + mi := &file_antiklepto_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AntiKleptoHostNonceCommitment) XXX_Size() int { - return xxx_messageInfo_AntiKleptoHostNonceCommitment.Size(m) + +func (x *AntiKleptoHostNonceCommitment) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AntiKleptoHostNonceCommitment) XXX_DiscardUnknown() { - xxx_messageInfo_AntiKleptoHostNonceCommitment.DiscardUnknown(m) + +func (*AntiKleptoHostNonceCommitment) ProtoMessage() {} + +func (x *AntiKleptoHostNonceCommitment) ProtoReflect() protoreflect.Message { + mi := &file_antiklepto_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) } -var xxx_messageInfo_AntiKleptoHostNonceCommitment proto.InternalMessageInfo +// Deprecated: Use AntiKleptoHostNonceCommitment.ProtoReflect.Descriptor instead. +func (*AntiKleptoHostNonceCommitment) Descriptor() ([]byte, []int) { + return file_antiklepto_proto_rawDescGZIP(), []int{0} +} -func (m *AntiKleptoHostNonceCommitment) GetCommitment() []byte { - if m != nil { - return m.Commitment +func (x *AntiKleptoHostNonceCommitment) GetCommitment() []byte { + if x != nil { + return x.Commitment } return nil } type AntiKleptoSignerCommitment struct { - Commitment []byte `protobuf:"bytes,1,opt,name=commitment,proto3" json:"commitment,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *AntiKleptoSignerCommitment) Reset() { *m = AntiKleptoSignerCommitment{} } -func (m *AntiKleptoSignerCommitment) String() string { return proto.CompactTextString(m) } -func (*AntiKleptoSignerCommitment) ProtoMessage() {} -func (*AntiKleptoSignerCommitment) Descriptor() ([]byte, []int) { - return fileDescriptor_39dadd9b6cadc7c0, []int{1} + Commitment []byte `protobuf:"bytes,1,opt,name=commitment,proto3" json:"commitment,omitempty"` } -func (m *AntiKleptoSignerCommitment) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AntiKleptoSignerCommitment.Unmarshal(m, b) -} -func (m *AntiKleptoSignerCommitment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AntiKleptoSignerCommitment.Marshal(b, m, deterministic) -} -func (m *AntiKleptoSignerCommitment) XXX_Merge(src proto.Message) { - xxx_messageInfo_AntiKleptoSignerCommitment.Merge(m, src) +func (x *AntiKleptoSignerCommitment) Reset() { + *x = AntiKleptoSignerCommitment{} + if protoimpl.UnsafeEnabled { + mi := &file_antiklepto_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AntiKleptoSignerCommitment) XXX_Size() int { - return xxx_messageInfo_AntiKleptoSignerCommitment.Size(m) + +func (x *AntiKleptoSignerCommitment) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AntiKleptoSignerCommitment) XXX_DiscardUnknown() { - xxx_messageInfo_AntiKleptoSignerCommitment.DiscardUnknown(m) + +func (*AntiKleptoSignerCommitment) ProtoMessage() {} + +func (x *AntiKleptoSignerCommitment) ProtoReflect() protoreflect.Message { + mi := &file_antiklepto_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) } -var xxx_messageInfo_AntiKleptoSignerCommitment proto.InternalMessageInfo +// Deprecated: Use AntiKleptoSignerCommitment.ProtoReflect.Descriptor instead. +func (*AntiKleptoSignerCommitment) Descriptor() ([]byte, []int) { + return file_antiklepto_proto_rawDescGZIP(), []int{1} +} -func (m *AntiKleptoSignerCommitment) GetCommitment() []byte { - if m != nil { - return m.Commitment +func (x *AntiKleptoSignerCommitment) GetCommitment() []byte { + if x != nil { + return x.Commitment } return nil } type AntiKleptoSignatureRequest struct { - HostNonce []byte `protobuf:"bytes,1,opt,name=host_nonce,json=hostNonce,proto3" json:"host_nonce,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *AntiKleptoSignatureRequest) Reset() { *m = AntiKleptoSignatureRequest{} } -func (m *AntiKleptoSignatureRequest) String() string { return proto.CompactTextString(m) } -func (*AntiKleptoSignatureRequest) ProtoMessage() {} -func (*AntiKleptoSignatureRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_39dadd9b6cadc7c0, []int{2} + HostNonce []byte `protobuf:"bytes,1,opt,name=host_nonce,json=hostNonce,proto3" json:"host_nonce,omitempty"` } -func (m *AntiKleptoSignatureRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AntiKleptoSignatureRequest.Unmarshal(m, b) -} -func (m *AntiKleptoSignatureRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AntiKleptoSignatureRequest.Marshal(b, m, deterministic) -} -func (m *AntiKleptoSignatureRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AntiKleptoSignatureRequest.Merge(m, src) +func (x *AntiKleptoSignatureRequest) Reset() { + *x = AntiKleptoSignatureRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_antiklepto_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AntiKleptoSignatureRequest) XXX_Size() int { - return xxx_messageInfo_AntiKleptoSignatureRequest.Size(m) + +func (x *AntiKleptoSignatureRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AntiKleptoSignatureRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AntiKleptoSignatureRequest.DiscardUnknown(m) + +func (*AntiKleptoSignatureRequest) ProtoMessage() {} + +func (x *AntiKleptoSignatureRequest) ProtoReflect() protoreflect.Message { + mi := &file_antiklepto_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) } -var xxx_messageInfo_AntiKleptoSignatureRequest proto.InternalMessageInfo +// Deprecated: Use AntiKleptoSignatureRequest.ProtoReflect.Descriptor instead. +func (*AntiKleptoSignatureRequest) Descriptor() ([]byte, []int) { + return file_antiklepto_proto_rawDescGZIP(), []int{2} +} -func (m *AntiKleptoSignatureRequest) GetHostNonce() []byte { - if m != nil { - return m.HostNonce +func (x *AntiKleptoSignatureRequest) GetHostNonce() []byte { + if x != nil { + return x.HostNonce } return nil } -func init() { - proto.RegisterType((*AntiKleptoHostNonceCommitment)(nil), "shiftcrypto.bitbox02.AntiKleptoHostNonceCommitment") - proto.RegisterType((*AntiKleptoSignerCommitment)(nil), "shiftcrypto.bitbox02.AntiKleptoSignerCommitment") - proto.RegisterType((*AntiKleptoSignatureRequest)(nil), "shiftcrypto.bitbox02.AntiKleptoSignatureRequest") +var File_antiklepto_proto protoreflect.FileDescriptor + +var file_antiklepto_proto_rawDesc = []byte{ + 0x0a, 0x10, 0x61, 0x6e, 0x74, 0x69, 0x6b, 0x6c, 0x65, 0x70, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x14, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, + 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x22, 0x3f, 0x0a, 0x1d, 0x41, 0x6e, 0x74, 0x69, + 0x4b, 0x6c, 0x65, 0x70, 0x74, 0x6f, 0x48, 0x6f, 0x73, 0x74, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x43, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x63, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x3c, 0x0a, 0x1a, 0x41, 0x6e, 0x74, + 0x69, 0x4b, 0x6c, 0x65, 0x70, 0x74, 0x6f, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x43, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x63, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x3b, 0x0a, 0x1a, 0x41, 0x6e, 0x74, 0x69, 0x4b, + 0x6c, 0x65, 0x70, 0x74, 0x6f, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x6e, 0x6f, + 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x68, 0x6f, 0x73, 0x74, 0x4e, + 0x6f, 0x6e, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func init() { proto.RegisterFile("antiklepto.proto", fileDescriptor_39dadd9b6cadc7c0) } +var ( + file_antiklepto_proto_rawDescOnce sync.Once + file_antiklepto_proto_rawDescData = file_antiklepto_proto_rawDesc +) + +func file_antiklepto_proto_rawDescGZIP() []byte { + file_antiklepto_proto_rawDescOnce.Do(func() { + file_antiklepto_proto_rawDescData = protoimpl.X.CompressGZIP(file_antiklepto_proto_rawDescData) + }) + return file_antiklepto_proto_rawDescData +} -var fileDescriptor_39dadd9b6cadc7c0 = []byte{ - // 161 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x48, 0xcc, 0x2b, 0xc9, - 0xcc, 0xce, 0x49, 0x2d, 0x28, 0xc9, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x29, 0xce, - 0xc8, 0x4c, 0x2b, 0x49, 0x2e, 0xaa, 0x04, 0x09, 0x25, 0x65, 0x96, 0x24, 0xe5, 0x57, 0x18, 0x18, - 0x29, 0xd9, 0x73, 0xc9, 0x3a, 0xe6, 0x95, 0x64, 0x7a, 0x83, 0x55, 0x7a, 0xe4, 0x17, 0x97, 0xf8, - 0xe5, 0xe7, 0x25, 0xa7, 0x3a, 0xe7, 0xe7, 0xe6, 0x66, 0x96, 0xe4, 0xa6, 0xe6, 0x95, 0x08, 0xc9, - 0x71, 0x71, 0x25, 0xc3, 0x79, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x3c, 0x41, 0x48, 0x22, 0x4a, 0x36, - 0x5c, 0x52, 0x08, 0x03, 0x82, 0x33, 0xd3, 0xf3, 0x52, 0x8b, 0x48, 0xd0, 0x6d, 0x8d, 0xae, 0x3b, - 0xb1, 0xa4, 0xb4, 0x28, 0x35, 0x28, 0xb5, 0xb0, 0x34, 0xb5, 0xb8, 0x44, 0x48, 0x96, 0x8b, 0x2b, - 0x23, 0xbf, 0xb8, 0x24, 0x3e, 0x0f, 0xe4, 0x26, 0xa8, 0x6e, 0xce, 0x0c, 0x98, 0x23, 0x93, 0xd8, - 0xc0, 0x1e, 0x33, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x5d, 0x99, 0x02, 0x07, 0xec, 0x00, 0x00, - 0x00, +var file_antiklepto_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_antiklepto_proto_goTypes = []interface{}{ + (*AntiKleptoHostNonceCommitment)(nil), // 0: shiftcrypto.bitbox02.AntiKleptoHostNonceCommitment + (*AntiKleptoSignerCommitment)(nil), // 1: shiftcrypto.bitbox02.AntiKleptoSignerCommitment + (*AntiKleptoSignatureRequest)(nil), // 2: shiftcrypto.bitbox02.AntiKleptoSignatureRequest +} +var file_antiklepto_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_antiklepto_proto_init() } +func file_antiklepto_proto_init() { + if File_antiklepto_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_antiklepto_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AntiKleptoHostNonceCommitment); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_antiklepto_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AntiKleptoSignerCommitment); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_antiklepto_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AntiKleptoSignatureRequest); 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_antiklepto_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_antiklepto_proto_goTypes, + DependencyIndexes: file_antiklepto_proto_depIdxs, + MessageInfos: file_antiklepto_proto_msgTypes, + }.Build() + File_antiklepto_proto = out.File + file_antiklepto_proto_rawDesc = nil + file_antiklepto_proto_goTypes = nil + file_antiklepto_proto_depIdxs = nil } diff --git a/api/firmware/messages/backup_commands.pb.go b/api/firmware/messages/backup_commands.pb.go index 311e689..65f42dd 100644 --- a/api/firmware/messages/backup_commands.pb.go +++ b/api/firmware/messages/backup_commands.pb.go @@ -1,362 +1,579 @@ +// Copyright 2019 Shift Cryptosecurity AG +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// This file is named backup_commands to avoid conflicting header files with top-most backup.proto + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v3.6.1 // source: backup_commands.proto package messages import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +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) +) type CheckBackupRequest struct { - Silent bool `protobuf:"varint,1,opt,name=silent,proto3" json:"silent,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CheckBackupRequest) Reset() { *m = CheckBackupRequest{} } -func (m *CheckBackupRequest) String() string { return proto.CompactTextString(m) } -func (*CheckBackupRequest) ProtoMessage() {} -func (*CheckBackupRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8233e97e1da7717c, []int{0} + Silent bool `protobuf:"varint,1,opt,name=silent,proto3" json:"silent,omitempty"` } -func (m *CheckBackupRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CheckBackupRequest.Unmarshal(m, b) -} -func (m *CheckBackupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CheckBackupRequest.Marshal(b, m, deterministic) -} -func (m *CheckBackupRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CheckBackupRequest.Merge(m, src) +func (x *CheckBackupRequest) Reset() { + *x = CheckBackupRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_backup_commands_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CheckBackupRequest) XXX_Size() int { - return xxx_messageInfo_CheckBackupRequest.Size(m) + +func (x *CheckBackupRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CheckBackupRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CheckBackupRequest.DiscardUnknown(m) + +func (*CheckBackupRequest) ProtoMessage() {} + +func (x *CheckBackupRequest) ProtoReflect() protoreflect.Message { + mi := &file_backup_commands_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) } -var xxx_messageInfo_CheckBackupRequest proto.InternalMessageInfo +// Deprecated: Use CheckBackupRequest.ProtoReflect.Descriptor instead. +func (*CheckBackupRequest) Descriptor() ([]byte, []int) { + return file_backup_commands_proto_rawDescGZIP(), []int{0} +} -func (m *CheckBackupRequest) GetSilent() bool { - if m != nil { - return m.Silent +func (x *CheckBackupRequest) GetSilent() bool { + if x != nil { + return x.Silent } return false } type CheckBackupResponse struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CheckBackupResponse) Reset() { *m = CheckBackupResponse{} } -func (m *CheckBackupResponse) String() string { return proto.CompactTextString(m) } -func (*CheckBackupResponse) ProtoMessage() {} -func (*CheckBackupResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8233e97e1da7717c, []int{1} + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` } -func (m *CheckBackupResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CheckBackupResponse.Unmarshal(m, b) -} -func (m *CheckBackupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CheckBackupResponse.Marshal(b, m, deterministic) -} -func (m *CheckBackupResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CheckBackupResponse.Merge(m, src) +func (x *CheckBackupResponse) Reset() { + *x = CheckBackupResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_backup_commands_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CheckBackupResponse) XXX_Size() int { - return xxx_messageInfo_CheckBackupResponse.Size(m) + +func (x *CheckBackupResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CheckBackupResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CheckBackupResponse.DiscardUnknown(m) + +func (*CheckBackupResponse) ProtoMessage() {} + +func (x *CheckBackupResponse) ProtoReflect() protoreflect.Message { + mi := &file_backup_commands_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) } -var xxx_messageInfo_CheckBackupResponse proto.InternalMessageInfo +// Deprecated: Use CheckBackupResponse.ProtoReflect.Descriptor instead. +func (*CheckBackupResponse) Descriptor() ([]byte, []int) { + return file_backup_commands_proto_rawDescGZIP(), []int{1} +} -func (m *CheckBackupResponse) GetId() string { - if m != nil { - return m.Id +func (x *CheckBackupResponse) GetId() string { + if x != nil { + return x.Id } return "" } // Timestamp must be in UTC type CreateBackupRequest struct { - Timestamp uint32 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - TimezoneOffset int32 `protobuf:"varint,2,opt,name=timezone_offset,json=timezoneOffset,proto3" json:"timezone_offset,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CreateBackupRequest) Reset() { *m = CreateBackupRequest{} } -func (m *CreateBackupRequest) String() string { return proto.CompactTextString(m) } -func (*CreateBackupRequest) ProtoMessage() {} -func (*CreateBackupRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8233e97e1da7717c, []int{2} + Timestamp uint32 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + TimezoneOffset int32 `protobuf:"varint,2,opt,name=timezone_offset,json=timezoneOffset,proto3" json:"timezone_offset,omitempty"` } -func (m *CreateBackupRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateBackupRequest.Unmarshal(m, b) -} -func (m *CreateBackupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateBackupRequest.Marshal(b, m, deterministic) -} -func (m *CreateBackupRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateBackupRequest.Merge(m, src) +func (x *CreateBackupRequest) Reset() { + *x = CreateBackupRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_backup_commands_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CreateBackupRequest) XXX_Size() int { - return xxx_messageInfo_CreateBackupRequest.Size(m) + +func (x *CreateBackupRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CreateBackupRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateBackupRequest.DiscardUnknown(m) + +func (*CreateBackupRequest) ProtoMessage() {} + +func (x *CreateBackupRequest) ProtoReflect() protoreflect.Message { + mi := &file_backup_commands_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) } -var xxx_messageInfo_CreateBackupRequest proto.InternalMessageInfo +// Deprecated: Use CreateBackupRequest.ProtoReflect.Descriptor instead. +func (*CreateBackupRequest) Descriptor() ([]byte, []int) { + return file_backup_commands_proto_rawDescGZIP(), []int{2} +} -func (m *CreateBackupRequest) GetTimestamp() uint32 { - if m != nil { - return m.Timestamp +func (x *CreateBackupRequest) GetTimestamp() uint32 { + if x != nil { + return x.Timestamp } return 0 } -func (m *CreateBackupRequest) GetTimezoneOffset() int32 { - if m != nil { - return m.TimezoneOffset +func (x *CreateBackupRequest) GetTimezoneOffset() int32 { + if x != nil { + return x.TimezoneOffset } return 0 } type ListBackupsRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ListBackupsRequest) Reset() { *m = ListBackupsRequest{} } -func (m *ListBackupsRequest) String() string { return proto.CompactTextString(m) } -func (*ListBackupsRequest) ProtoMessage() {} -func (*ListBackupsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8233e97e1da7717c, []int{3} +func (x *ListBackupsRequest) Reset() { + *x = ListBackupsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_backup_commands_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ListBackupsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListBackupsRequest.Unmarshal(m, b) -} -func (m *ListBackupsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListBackupsRequest.Marshal(b, m, deterministic) -} -func (m *ListBackupsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListBackupsRequest.Merge(m, src) +func (x *ListBackupsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListBackupsRequest) XXX_Size() int { - return xxx_messageInfo_ListBackupsRequest.Size(m) -} -func (m *ListBackupsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListBackupsRequest.DiscardUnknown(m) + +func (*ListBackupsRequest) ProtoMessage() {} + +func (x *ListBackupsRequest) ProtoReflect() protoreflect.Message { + mi := &file_backup_commands_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) } -var xxx_messageInfo_ListBackupsRequest proto.InternalMessageInfo +// Deprecated: Use ListBackupsRequest.ProtoReflect.Descriptor instead. +func (*ListBackupsRequest) Descriptor() ([]byte, []int) { + return file_backup_commands_proto_rawDescGZIP(), []int{3} +} type BackupInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Timestamp uint32 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // uint32 timezone_offset = 3; - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` } -func (m *BackupInfo) Reset() { *m = BackupInfo{} } -func (m *BackupInfo) String() string { return proto.CompactTextString(m) } -func (*BackupInfo) ProtoMessage() {} -func (*BackupInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_8233e97e1da7717c, []int{4} +func (x *BackupInfo) Reset() { + *x = BackupInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_backup_commands_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BackupInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BackupInfo.Unmarshal(m, b) -} -func (m *BackupInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BackupInfo.Marshal(b, m, deterministic) -} -func (m *BackupInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_BackupInfo.Merge(m, src) +func (x *BackupInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BackupInfo) XXX_Size() int { - return xxx_messageInfo_BackupInfo.Size(m) -} -func (m *BackupInfo) XXX_DiscardUnknown() { - xxx_messageInfo_BackupInfo.DiscardUnknown(m) + +func (*BackupInfo) ProtoMessage() {} + +func (x *BackupInfo) ProtoReflect() protoreflect.Message { + mi := &file_backup_commands_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) } -var xxx_messageInfo_BackupInfo proto.InternalMessageInfo +// Deprecated: Use BackupInfo.ProtoReflect.Descriptor instead. +func (*BackupInfo) Descriptor() ([]byte, []int) { + return file_backup_commands_proto_rawDescGZIP(), []int{4} +} -func (m *BackupInfo) GetId() string { - if m != nil { - return m.Id +func (x *BackupInfo) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *BackupInfo) GetTimestamp() uint32 { - if m != nil { - return m.Timestamp +func (x *BackupInfo) GetTimestamp() uint32 { + if x != nil { + return x.Timestamp } return 0 } -func (m *BackupInfo) GetName() string { - if m != nil { - return m.Name +func (x *BackupInfo) GetName() string { + if x != nil { + return x.Name } return "" } type ListBackupsResponse struct { - Info []*BackupInfo `protobuf:"bytes,1,rep,name=info,proto3" json:"info,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ListBackupsResponse) Reset() { *m = ListBackupsResponse{} } -func (m *ListBackupsResponse) String() string { return proto.CompactTextString(m) } -func (*ListBackupsResponse) ProtoMessage() {} -func (*ListBackupsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8233e97e1da7717c, []int{5} + Info []*BackupInfo `protobuf:"bytes,1,rep,name=info,proto3" json:"info,omitempty"` } -func (m *ListBackupsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListBackupsResponse.Unmarshal(m, b) -} -func (m *ListBackupsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListBackupsResponse.Marshal(b, m, deterministic) -} -func (m *ListBackupsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListBackupsResponse.Merge(m, src) +func (x *ListBackupsResponse) Reset() { + *x = ListBackupsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_backup_commands_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ListBackupsResponse) XXX_Size() int { - return xxx_messageInfo_ListBackupsResponse.Size(m) + +func (x *ListBackupsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ListBackupsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListBackupsResponse.DiscardUnknown(m) + +func (*ListBackupsResponse) ProtoMessage() {} + +func (x *ListBackupsResponse) ProtoReflect() protoreflect.Message { + mi := &file_backup_commands_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) } -var xxx_messageInfo_ListBackupsResponse proto.InternalMessageInfo +// Deprecated: Use ListBackupsResponse.ProtoReflect.Descriptor instead. +func (*ListBackupsResponse) Descriptor() ([]byte, []int) { + return file_backup_commands_proto_rawDescGZIP(), []int{5} +} -func (m *ListBackupsResponse) GetInfo() []*BackupInfo { - if m != nil { - return m.Info +func (x *ListBackupsResponse) GetInfo() []*BackupInfo { + if x != nil { + return x.Info } return nil } type RestoreBackupRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Timestamp uint32 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - TimezoneOffset int32 `protobuf:"varint,3,opt,name=timezone_offset,json=timezoneOffset,proto3" json:"timezone_offset,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *RestoreBackupRequest) Reset() { *m = RestoreBackupRequest{} } -func (m *RestoreBackupRequest) String() string { return proto.CompactTextString(m) } -func (*RestoreBackupRequest) ProtoMessage() {} -func (*RestoreBackupRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8233e97e1da7717c, []int{6} + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Timestamp uint32 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + TimezoneOffset int32 `protobuf:"varint,3,opt,name=timezone_offset,json=timezoneOffset,proto3" json:"timezone_offset,omitempty"` } -func (m *RestoreBackupRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RestoreBackupRequest.Unmarshal(m, b) -} -func (m *RestoreBackupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RestoreBackupRequest.Marshal(b, m, deterministic) -} -func (m *RestoreBackupRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RestoreBackupRequest.Merge(m, src) +func (x *RestoreBackupRequest) Reset() { + *x = RestoreBackupRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_backup_commands_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RestoreBackupRequest) XXX_Size() int { - return xxx_messageInfo_RestoreBackupRequest.Size(m) + +func (x *RestoreBackupRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RestoreBackupRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RestoreBackupRequest.DiscardUnknown(m) + +func (*RestoreBackupRequest) ProtoMessage() {} + +func (x *RestoreBackupRequest) ProtoReflect() protoreflect.Message { + mi := &file_backup_commands_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) } -var xxx_messageInfo_RestoreBackupRequest proto.InternalMessageInfo +// Deprecated: Use RestoreBackupRequest.ProtoReflect.Descriptor instead. +func (*RestoreBackupRequest) Descriptor() ([]byte, []int) { + return file_backup_commands_proto_rawDescGZIP(), []int{6} +} -func (m *RestoreBackupRequest) GetId() string { - if m != nil { - return m.Id +func (x *RestoreBackupRequest) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *RestoreBackupRequest) GetTimestamp() uint32 { - if m != nil { - return m.Timestamp +func (x *RestoreBackupRequest) GetTimestamp() uint32 { + if x != nil { + return x.Timestamp } return 0 } -func (m *RestoreBackupRequest) GetTimezoneOffset() int32 { - if m != nil { - return m.TimezoneOffset +func (x *RestoreBackupRequest) GetTimezoneOffset() int32 { + if x != nil { + return x.TimezoneOffset } return 0 } -func init() { - proto.RegisterType((*CheckBackupRequest)(nil), "shiftcrypto.bitbox02.CheckBackupRequest") - proto.RegisterType((*CheckBackupResponse)(nil), "shiftcrypto.bitbox02.CheckBackupResponse") - proto.RegisterType((*CreateBackupRequest)(nil), "shiftcrypto.bitbox02.CreateBackupRequest") - proto.RegisterType((*ListBackupsRequest)(nil), "shiftcrypto.bitbox02.ListBackupsRequest") - proto.RegisterType((*BackupInfo)(nil), "shiftcrypto.bitbox02.BackupInfo") - proto.RegisterType((*ListBackupsResponse)(nil), "shiftcrypto.bitbox02.ListBackupsResponse") - proto.RegisterType((*RestoreBackupRequest)(nil), "shiftcrypto.bitbox02.RestoreBackupRequest") -} - -func init() { proto.RegisterFile("backup_commands.proto", fileDescriptor_8233e97e1da7717c) } - -var fileDescriptor_8233e97e1da7717c = []byte{ - // 281 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x91, 0x4f, 0x4b, 0xc3, 0x40, - 0x10, 0xc5, 0x49, 0x5a, 0x8b, 0x1d, 0xb1, 0xc2, 0xb6, 0x4a, 0x0e, 0x1e, 0xc2, 0x82, 0x98, 0x83, - 0x04, 0xa9, 0x7e, 0x02, 0x7b, 0x12, 0x45, 0x61, 0xcf, 0x42, 0xc9, 0x9f, 0x09, 0x5d, 0xea, 0xee, - 0xc6, 0xcc, 0x14, 0xd4, 0x4f, 0x2f, 0x6e, 0x23, 0x25, 0x21, 0x17, 0x6f, 0x3b, 0x8f, 0xdf, 0xce, - 0x7b, 0xfb, 0x16, 0xce, 0xf3, 0xac, 0xd8, 0xee, 0xea, 0x75, 0xe1, 0x8c, 0xc9, 0x6c, 0x49, 0x69, - 0xdd, 0x38, 0x76, 0x62, 0x41, 0x1b, 0x5d, 0x71, 0xd1, 0x7c, 0xd5, 0xec, 0xd2, 0x5c, 0x73, 0xee, - 0x3e, 0x6f, 0x97, 0xf2, 0x06, 0xc4, 0x6a, 0x83, 0xc5, 0xf6, 0xc1, 0xdf, 0x51, 0xf8, 0xb1, 0x43, - 0x62, 0x71, 0x01, 0x13, 0xd2, 0xef, 0x68, 0x39, 0x0a, 0xe2, 0x20, 0x39, 0x56, 0xed, 0x24, 0xaf, - 0x60, 0xde, 0xa1, 0xa9, 0x76, 0x96, 0x50, 0xcc, 0x20, 0xd4, 0xa5, 0x47, 0xa7, 0x2a, 0xd4, 0xa5, - 0x7c, 0x83, 0xf9, 0xaa, 0xc1, 0x8c, 0xb1, 0xbb, 0xf5, 0x12, 0xa6, 0xac, 0x0d, 0x12, 0x67, 0xa6, - 0xf6, 0xf4, 0xa9, 0x3a, 0x08, 0xe2, 0x1a, 0xce, 0x7e, 0x87, 0x6f, 0x67, 0x71, 0xed, 0xaa, 0x8a, - 0x90, 0xa3, 0x30, 0x0e, 0x92, 0x23, 0x35, 0xfb, 0x93, 0x5f, 0xbd, 0x2a, 0x17, 0x20, 0x9e, 0x35, - 0xf1, 0x7e, 0x37, 0xb5, 0xcb, 0xe5, 0x0b, 0xc0, 0x5e, 0x79, 0xb4, 0x95, 0xeb, 0x27, 0xea, 0x5a, - 0x87, 0x7d, 0x6b, 0x01, 0x63, 0x9b, 0x19, 0x8c, 0xc6, 0x9e, 0xf7, 0x67, 0xf9, 0x04, 0xf3, 0x8e, - 0x4b, 0xfb, 0xd4, 0x7b, 0x18, 0x6b, 0x5b, 0xb9, 0x28, 0x88, 0x47, 0xc9, 0xc9, 0x32, 0x4e, 0x87, - 0x4a, 0x4d, 0x0f, 0x41, 0x94, 0xa7, 0xa5, 0x81, 0x85, 0x42, 0x62, 0xd7, 0xf4, 0x1a, 0xf9, 0x5f, - 0xcc, 0x81, 0x86, 0x46, 0x43, 0x0d, 0xe5, 0x13, 0xff, 0xe3, 0x77, 0x3f, 0x01, 0x00, 0x00, 0xff, - 0xff, 0x9f, 0x81, 0xc6, 0x5d, 0x0a, 0x02, 0x00, 0x00, +var File_backup_commands_proto protoreflect.FileDescriptor + +var file_backup_commands_proto_rawDesc = []byte{ + 0x0a, 0x15, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x22, 0x2c, 0x0a, + 0x12, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x69, 0x6c, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x06, 0x73, 0x69, 0x6c, 0x65, 0x6e, 0x74, 0x22, 0x25, 0x0a, 0x13, 0x43, + 0x68, 0x65, 0x63, 0x6b, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x22, 0x5c, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, + 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x7a, + 0x6f, 0x6e, 0x65, 0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x0e, 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, + 0x22, 0x14, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4e, 0x0a, 0x0a, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, + 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x4b, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, + 0x63, 0x6b, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, + 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x73, 0x68, + 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, + 0x30, 0x32, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, + 0x6e, 0x66, 0x6f, 0x22, 0x6d, 0x0a, 0x14, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, + 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, + 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x69, 0x6d, + 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x0e, 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x4f, 0x66, 0x66, 0x73, + 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_backup_commands_proto_rawDescOnce sync.Once + file_backup_commands_proto_rawDescData = file_backup_commands_proto_rawDesc +) + +func file_backup_commands_proto_rawDescGZIP() []byte { + file_backup_commands_proto_rawDescOnce.Do(func() { + file_backup_commands_proto_rawDescData = protoimpl.X.CompressGZIP(file_backup_commands_proto_rawDescData) + }) + return file_backup_commands_proto_rawDescData +} + +var file_backup_commands_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_backup_commands_proto_goTypes = []interface{}{ + (*CheckBackupRequest)(nil), // 0: shiftcrypto.bitbox02.CheckBackupRequest + (*CheckBackupResponse)(nil), // 1: shiftcrypto.bitbox02.CheckBackupResponse + (*CreateBackupRequest)(nil), // 2: shiftcrypto.bitbox02.CreateBackupRequest + (*ListBackupsRequest)(nil), // 3: shiftcrypto.bitbox02.ListBackupsRequest + (*BackupInfo)(nil), // 4: shiftcrypto.bitbox02.BackupInfo + (*ListBackupsResponse)(nil), // 5: shiftcrypto.bitbox02.ListBackupsResponse + (*RestoreBackupRequest)(nil), // 6: shiftcrypto.bitbox02.RestoreBackupRequest +} +var file_backup_commands_proto_depIdxs = []int32{ + 4, // 0: shiftcrypto.bitbox02.ListBackupsResponse.info:type_name -> shiftcrypto.bitbox02.BackupInfo + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_backup_commands_proto_init() } +func file_backup_commands_proto_init() { + if File_backup_commands_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_backup_commands_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CheckBackupRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_backup_commands_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CheckBackupResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_backup_commands_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateBackupRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_backup_commands_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListBackupsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_backup_commands_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BackupInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_backup_commands_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListBackupsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_backup_commands_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RestoreBackupRequest); 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_backup_commands_proto_rawDesc, + NumEnums: 0, + NumMessages: 7, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_backup_commands_proto_goTypes, + DependencyIndexes: file_backup_commands_proto_depIdxs, + MessageInfos: file_backup_commands_proto_msgTypes, + }.Build() + File_backup_commands_proto = out.File + file_backup_commands_proto_rawDesc = nil + file_backup_commands_proto_goTypes = nil + file_backup_commands_proto_depIdxs = nil } diff --git a/api/firmware/messages/bitbox02_system.pb.go b/api/firmware/messages/bitbox02_system.pb.go index df5f8c6..32e64d4 100644 --- a/api/firmware/messages/bitbox02_system.pb.go +++ b/api/firmware/messages/bitbox02_system.pb.go @@ -1,24 +1,38 @@ +// Copyright 2019 Shift Cryptosecurity AG +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v3.6.1 // source: bitbox02_system.proto package messages import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +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) +) type InsertRemoveSDCardRequest_SDCardAction int32 @@ -27,435 +41,702 @@ const ( InsertRemoveSDCardRequest_INSERT_CARD InsertRemoveSDCardRequest_SDCardAction = 1 ) -var InsertRemoveSDCardRequest_SDCardAction_name = map[int32]string{ - 0: "REMOVE_CARD", - 1: "INSERT_CARD", -} +// Enum value maps for InsertRemoveSDCardRequest_SDCardAction. +var ( + InsertRemoveSDCardRequest_SDCardAction_name = map[int32]string{ + 0: "REMOVE_CARD", + 1: "INSERT_CARD", + } + InsertRemoveSDCardRequest_SDCardAction_value = map[string]int32{ + "REMOVE_CARD": 0, + "INSERT_CARD": 1, + } +) -var InsertRemoveSDCardRequest_SDCardAction_value = map[string]int32{ - "REMOVE_CARD": 0, - "INSERT_CARD": 1, +func (x InsertRemoveSDCardRequest_SDCardAction) Enum() *InsertRemoveSDCardRequest_SDCardAction { + p := new(InsertRemoveSDCardRequest_SDCardAction) + *p = x + return p } func (x InsertRemoveSDCardRequest_SDCardAction) String() string { - return proto.EnumName(InsertRemoveSDCardRequest_SDCardAction_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (InsertRemoveSDCardRequest_SDCardAction) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_7bdc3d941a731b17, []int{4, 0} +func (InsertRemoveSDCardRequest_SDCardAction) Descriptor() protoreflect.EnumDescriptor { + return file_bitbox02_system_proto_enumTypes[0].Descriptor() } -type CheckSDCardRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (InsertRemoveSDCardRequest_SDCardAction) Type() protoreflect.EnumType { + return &file_bitbox02_system_proto_enumTypes[0] } -func (m *CheckSDCardRequest) Reset() { *m = CheckSDCardRequest{} } -func (m *CheckSDCardRequest) String() string { return proto.CompactTextString(m) } -func (*CheckSDCardRequest) ProtoMessage() {} -func (*CheckSDCardRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7bdc3d941a731b17, []int{0} +func (x InsertRemoveSDCardRequest_SDCardAction) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *CheckSDCardRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CheckSDCardRequest.Unmarshal(m, b) -} -func (m *CheckSDCardRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CheckSDCardRequest.Marshal(b, m, deterministic) +// Deprecated: Use InsertRemoveSDCardRequest_SDCardAction.Descriptor instead. +func (InsertRemoveSDCardRequest_SDCardAction) EnumDescriptor() ([]byte, []int) { + return file_bitbox02_system_proto_rawDescGZIP(), []int{4, 0} } -func (m *CheckSDCardRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CheckSDCardRequest.Merge(m, src) + +type CheckSDCardRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *CheckSDCardRequest) XXX_Size() int { - return xxx_messageInfo_CheckSDCardRequest.Size(m) + +func (x *CheckSDCardRequest) Reset() { + *x = CheckSDCardRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_bitbox02_system_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CheckSDCardRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CheckSDCardRequest.DiscardUnknown(m) + +func (x *CheckSDCardRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_CheckSDCardRequest proto.InternalMessageInfo +func (*CheckSDCardRequest) ProtoMessage() {} -type CheckSDCardResponse struct { - Inserted bool `protobuf:"varint,1,opt,name=inserted,proto3" json:"inserted,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *CheckSDCardRequest) ProtoReflect() protoreflect.Message { + mi := &file_bitbox02_system_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) } -func (m *CheckSDCardResponse) Reset() { *m = CheckSDCardResponse{} } -func (m *CheckSDCardResponse) String() string { return proto.CompactTextString(m) } -func (*CheckSDCardResponse) ProtoMessage() {} -func (*CheckSDCardResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7bdc3d941a731b17, []int{1} +// Deprecated: Use CheckSDCardRequest.ProtoReflect.Descriptor instead. +func (*CheckSDCardRequest) Descriptor() ([]byte, []int) { + return file_bitbox02_system_proto_rawDescGZIP(), []int{0} } -func (m *CheckSDCardResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CheckSDCardResponse.Unmarshal(m, b) -} -func (m *CheckSDCardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CheckSDCardResponse.Marshal(b, m, deterministic) +type CheckSDCardResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Inserted bool `protobuf:"varint,1,opt,name=inserted,proto3" json:"inserted,omitempty"` } -func (m *CheckSDCardResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CheckSDCardResponse.Merge(m, src) + +func (x *CheckSDCardResponse) Reset() { + *x = CheckSDCardResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_bitbox02_system_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CheckSDCardResponse) XXX_Size() int { - return xxx_messageInfo_CheckSDCardResponse.Size(m) + +func (x *CheckSDCardResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CheckSDCardResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CheckSDCardResponse.DiscardUnknown(m) + +func (*CheckSDCardResponse) ProtoMessage() {} + +func (x *CheckSDCardResponse) ProtoReflect() protoreflect.Message { + mi := &file_bitbox02_system_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) } -var xxx_messageInfo_CheckSDCardResponse proto.InternalMessageInfo +// Deprecated: Use CheckSDCardResponse.ProtoReflect.Descriptor instead. +func (*CheckSDCardResponse) Descriptor() ([]byte, []int) { + return file_bitbox02_system_proto_rawDescGZIP(), []int{1} +} -func (m *CheckSDCardResponse) GetInserted() bool { - if m != nil { - return m.Inserted +func (x *CheckSDCardResponse) GetInserted() bool { + if x != nil { + return x.Inserted } return false } type DeviceInfoRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *DeviceInfoRequest) Reset() { *m = DeviceInfoRequest{} } -func (m *DeviceInfoRequest) String() string { return proto.CompactTextString(m) } -func (*DeviceInfoRequest) ProtoMessage() {} -func (*DeviceInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7bdc3d941a731b17, []int{2} +func (x *DeviceInfoRequest) Reset() { + *x = DeviceInfoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_bitbox02_system_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DeviceInfoRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeviceInfoRequest.Unmarshal(m, b) +func (x *DeviceInfoRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DeviceInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeviceInfoRequest.Marshal(b, m, deterministic) -} -func (m *DeviceInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeviceInfoRequest.Merge(m, src) -} -func (m *DeviceInfoRequest) XXX_Size() int { - return xxx_messageInfo_DeviceInfoRequest.Size(m) -} -func (m *DeviceInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeviceInfoRequest.DiscardUnknown(m) + +func (*DeviceInfoRequest) ProtoMessage() {} + +func (x *DeviceInfoRequest) ProtoReflect() protoreflect.Message { + mi := &file_bitbox02_system_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) } -var xxx_messageInfo_DeviceInfoRequest proto.InternalMessageInfo +// Deprecated: Use DeviceInfoRequest.ProtoReflect.Descriptor instead. +func (*DeviceInfoRequest) Descriptor() ([]byte, []int) { + return file_bitbox02_system_proto_rawDescGZIP(), []int{2} +} type DeviceInfoResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Initialized bool `protobuf:"varint,2,opt,name=initialized,proto3" json:"initialized,omitempty"` Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` MnemonicPassphraseEnabled bool `protobuf:"varint,4,opt,name=mnemonic_passphrase_enabled,json=mnemonicPassphraseEnabled,proto3" json:"mnemonic_passphrase_enabled,omitempty"` MonotonicIncrementsRemaining uint32 `protobuf:"varint,5,opt,name=monotonic_increments_remaining,json=monotonicIncrementsRemaining,proto3" json:"monotonic_increments_remaining,omitempty"` // From v9.6.0: "ATECC608A" or "ATECC608B". - SecurechipModel string `protobuf:"bytes,6,opt,name=securechip_model,json=securechipModel,proto3" json:"securechip_model,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + SecurechipModel string `protobuf:"bytes,6,opt,name=securechip_model,json=securechipModel,proto3" json:"securechip_model,omitempty"` } -func (m *DeviceInfoResponse) Reset() { *m = DeviceInfoResponse{} } -func (m *DeviceInfoResponse) String() string { return proto.CompactTextString(m) } -func (*DeviceInfoResponse) ProtoMessage() {} -func (*DeviceInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7bdc3d941a731b17, []int{3} +func (x *DeviceInfoResponse) Reset() { + *x = DeviceInfoResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_bitbox02_system_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DeviceInfoResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeviceInfoResponse.Unmarshal(m, b) -} -func (m *DeviceInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeviceInfoResponse.Marshal(b, m, deterministic) -} -func (m *DeviceInfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeviceInfoResponse.Merge(m, src) -} -func (m *DeviceInfoResponse) XXX_Size() int { - return xxx_messageInfo_DeviceInfoResponse.Size(m) +func (x *DeviceInfoResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DeviceInfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DeviceInfoResponse.DiscardUnknown(m) + +func (*DeviceInfoResponse) ProtoMessage() {} + +func (x *DeviceInfoResponse) ProtoReflect() protoreflect.Message { + mi := &file_bitbox02_system_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) } -var xxx_messageInfo_DeviceInfoResponse proto.InternalMessageInfo +// Deprecated: Use DeviceInfoResponse.ProtoReflect.Descriptor instead. +func (*DeviceInfoResponse) Descriptor() ([]byte, []int) { + return file_bitbox02_system_proto_rawDescGZIP(), []int{3} +} -func (m *DeviceInfoResponse) GetName() string { - if m != nil { - return m.Name +func (x *DeviceInfoResponse) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *DeviceInfoResponse) GetInitialized() bool { - if m != nil { - return m.Initialized +func (x *DeviceInfoResponse) GetInitialized() bool { + if x != nil { + return x.Initialized } return false } -func (m *DeviceInfoResponse) GetVersion() string { - if m != nil { - return m.Version +func (x *DeviceInfoResponse) GetVersion() string { + if x != nil { + return x.Version } return "" } -func (m *DeviceInfoResponse) GetMnemonicPassphraseEnabled() bool { - if m != nil { - return m.MnemonicPassphraseEnabled +func (x *DeviceInfoResponse) GetMnemonicPassphraseEnabled() bool { + if x != nil { + return x.MnemonicPassphraseEnabled } return false } -func (m *DeviceInfoResponse) GetMonotonicIncrementsRemaining() uint32 { - if m != nil { - return m.MonotonicIncrementsRemaining +func (x *DeviceInfoResponse) GetMonotonicIncrementsRemaining() uint32 { + if x != nil { + return x.MonotonicIncrementsRemaining } return 0 } -func (m *DeviceInfoResponse) GetSecurechipModel() string { - if m != nil { - return m.SecurechipModel +func (x *DeviceInfoResponse) GetSecurechipModel() string { + if x != nil { + return x.SecurechipModel } return "" } type InsertRemoveSDCardRequest struct { - Action InsertRemoveSDCardRequest_SDCardAction `protobuf:"varint,1,opt,name=action,proto3,enum=shiftcrypto.bitbox02.InsertRemoveSDCardRequest_SDCardAction" json:"action,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *InsertRemoveSDCardRequest) Reset() { *m = InsertRemoveSDCardRequest{} } -func (m *InsertRemoveSDCardRequest) String() string { return proto.CompactTextString(m) } -func (*InsertRemoveSDCardRequest) ProtoMessage() {} -func (*InsertRemoveSDCardRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7bdc3d941a731b17, []int{4} + Action InsertRemoveSDCardRequest_SDCardAction `protobuf:"varint,1,opt,name=action,proto3,enum=shiftcrypto.bitbox02.InsertRemoveSDCardRequest_SDCardAction" json:"action,omitempty"` } -func (m *InsertRemoveSDCardRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InsertRemoveSDCardRequest.Unmarshal(m, b) -} -func (m *InsertRemoveSDCardRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InsertRemoveSDCardRequest.Marshal(b, m, deterministic) -} -func (m *InsertRemoveSDCardRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_InsertRemoveSDCardRequest.Merge(m, src) +func (x *InsertRemoveSDCardRequest) Reset() { + *x = InsertRemoveSDCardRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_bitbox02_system_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *InsertRemoveSDCardRequest) XXX_Size() int { - return xxx_messageInfo_InsertRemoveSDCardRequest.Size(m) + +func (x *InsertRemoveSDCardRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *InsertRemoveSDCardRequest) XXX_DiscardUnknown() { - xxx_messageInfo_InsertRemoveSDCardRequest.DiscardUnknown(m) + +func (*InsertRemoveSDCardRequest) ProtoMessage() {} + +func (x *InsertRemoveSDCardRequest) ProtoReflect() protoreflect.Message { + mi := &file_bitbox02_system_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) } -var xxx_messageInfo_InsertRemoveSDCardRequest proto.InternalMessageInfo +// Deprecated: Use InsertRemoveSDCardRequest.ProtoReflect.Descriptor instead. +func (*InsertRemoveSDCardRequest) Descriptor() ([]byte, []int) { + return file_bitbox02_system_proto_rawDescGZIP(), []int{4} +} -func (m *InsertRemoveSDCardRequest) GetAction() InsertRemoveSDCardRequest_SDCardAction { - if m != nil { - return m.Action +func (x *InsertRemoveSDCardRequest) GetAction() InsertRemoveSDCardRequest_SDCardAction { + if x != nil { + return x.Action } return InsertRemoveSDCardRequest_REMOVE_CARD } type ResetRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ResetRequest) Reset() { *m = ResetRequest{} } -func (m *ResetRequest) String() string { return proto.CompactTextString(m) } -func (*ResetRequest) ProtoMessage() {} -func (*ResetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7bdc3d941a731b17, []int{5} +func (x *ResetRequest) Reset() { + *x = ResetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_bitbox02_system_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ResetRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ResetRequest.Unmarshal(m, b) -} -func (m *ResetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ResetRequest.Marshal(b, m, deterministic) -} -func (m *ResetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResetRequest.Merge(m, src) -} -func (m *ResetRequest) XXX_Size() int { - return xxx_messageInfo_ResetRequest.Size(m) -} -func (m *ResetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ResetRequest.DiscardUnknown(m) +func (x *ResetRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ResetRequest proto.InternalMessageInfo +func (*ResetRequest) ProtoMessage() {} -type SetDeviceLanguageRequest struct { - Language string `protobuf:"bytes,1,opt,name=language,proto3" json:"language,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ResetRequest) ProtoReflect() protoreflect.Message { + mi := &file_bitbox02_system_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) } -func (m *SetDeviceLanguageRequest) Reset() { *m = SetDeviceLanguageRequest{} } -func (m *SetDeviceLanguageRequest) String() string { return proto.CompactTextString(m) } -func (*SetDeviceLanguageRequest) ProtoMessage() {} -func (*SetDeviceLanguageRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7bdc3d941a731b17, []int{6} +// Deprecated: Use ResetRequest.ProtoReflect.Descriptor instead. +func (*ResetRequest) Descriptor() ([]byte, []int) { + return file_bitbox02_system_proto_rawDescGZIP(), []int{5} } -func (m *SetDeviceLanguageRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetDeviceLanguageRequest.Unmarshal(m, b) -} -func (m *SetDeviceLanguageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetDeviceLanguageRequest.Marshal(b, m, deterministic) +type SetDeviceLanguageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Language string `protobuf:"bytes,1,opt,name=language,proto3" json:"language,omitempty"` } -func (m *SetDeviceLanguageRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetDeviceLanguageRequest.Merge(m, src) + +func (x *SetDeviceLanguageRequest) Reset() { + *x = SetDeviceLanguageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_bitbox02_system_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SetDeviceLanguageRequest) XXX_Size() int { - return xxx_messageInfo_SetDeviceLanguageRequest.Size(m) + +func (x *SetDeviceLanguageRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SetDeviceLanguageRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SetDeviceLanguageRequest.DiscardUnknown(m) + +func (*SetDeviceLanguageRequest) ProtoMessage() {} + +func (x *SetDeviceLanguageRequest) ProtoReflect() protoreflect.Message { + mi := &file_bitbox02_system_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) } -var xxx_messageInfo_SetDeviceLanguageRequest proto.InternalMessageInfo +// Deprecated: Use SetDeviceLanguageRequest.ProtoReflect.Descriptor instead. +func (*SetDeviceLanguageRequest) Descriptor() ([]byte, []int) { + return file_bitbox02_system_proto_rawDescGZIP(), []int{6} +} -func (m *SetDeviceLanguageRequest) GetLanguage() string { - if m != nil { - return m.Language +func (x *SetDeviceLanguageRequest) GetLanguage() string { + if x != nil { + return x.Language } return "" } type SetDeviceNameRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SetDeviceNameRequest) Reset() { *m = SetDeviceNameRequest{} } -func (m *SetDeviceNameRequest) String() string { return proto.CompactTextString(m) } -func (*SetDeviceNameRequest) ProtoMessage() {} -func (*SetDeviceNameRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7bdc3d941a731b17, []int{7} + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } -func (m *SetDeviceNameRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetDeviceNameRequest.Unmarshal(m, b) -} -func (m *SetDeviceNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetDeviceNameRequest.Marshal(b, m, deterministic) -} -func (m *SetDeviceNameRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetDeviceNameRequest.Merge(m, src) +func (x *SetDeviceNameRequest) Reset() { + *x = SetDeviceNameRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_bitbox02_system_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SetDeviceNameRequest) XXX_Size() int { - return xxx_messageInfo_SetDeviceNameRequest.Size(m) + +func (x *SetDeviceNameRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SetDeviceNameRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SetDeviceNameRequest.DiscardUnknown(m) + +func (*SetDeviceNameRequest) ProtoMessage() {} + +func (x *SetDeviceNameRequest) ProtoReflect() protoreflect.Message { + mi := &file_bitbox02_system_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) } -var xxx_messageInfo_SetDeviceNameRequest proto.InternalMessageInfo +// Deprecated: Use SetDeviceNameRequest.ProtoReflect.Descriptor instead. +func (*SetDeviceNameRequest) Descriptor() ([]byte, []int) { + return file_bitbox02_system_proto_rawDescGZIP(), []int{7} +} -func (m *SetDeviceNameRequest) GetName() string { - if m != nil { - return m.Name +func (x *SetDeviceNameRequest) GetName() string { + if x != nil { + return x.Name } return "" } type SetPasswordRequest struct { - Entropy []byte `protobuf:"bytes,1,opt,name=entropy,proto3" json:"entropy,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SetPasswordRequest) Reset() { *m = SetPasswordRequest{} } -func (m *SetPasswordRequest) String() string { return proto.CompactTextString(m) } -func (*SetPasswordRequest) ProtoMessage() {} -func (*SetPasswordRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7bdc3d941a731b17, []int{8} + Entropy []byte `protobuf:"bytes,1,opt,name=entropy,proto3" json:"entropy,omitempty"` } -func (m *SetPasswordRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetPasswordRequest.Unmarshal(m, b) -} -func (m *SetPasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetPasswordRequest.Marshal(b, m, deterministic) -} -func (m *SetPasswordRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetPasswordRequest.Merge(m, src) +func (x *SetPasswordRequest) Reset() { + *x = SetPasswordRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_bitbox02_system_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SetPasswordRequest) XXX_Size() int { - return xxx_messageInfo_SetPasswordRequest.Size(m) + +func (x *SetPasswordRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SetPasswordRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SetPasswordRequest.DiscardUnknown(m) + +func (*SetPasswordRequest) ProtoMessage() {} + +func (x *SetPasswordRequest) ProtoReflect() protoreflect.Message { + mi := &file_bitbox02_system_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SetPasswordRequest proto.InternalMessageInfo +// Deprecated: Use SetPasswordRequest.ProtoReflect.Descriptor instead. +func (*SetPasswordRequest) Descriptor() ([]byte, []int) { + return file_bitbox02_system_proto_rawDescGZIP(), []int{8} +} -func (m *SetPasswordRequest) GetEntropy() []byte { - if m != nil { - return m.Entropy +func (x *SetPasswordRequest) GetEntropy() []byte { + if x != nil { + return x.Entropy } return nil } -func init() { - proto.RegisterEnum("shiftcrypto.bitbox02.InsertRemoveSDCardRequest_SDCardAction", InsertRemoveSDCardRequest_SDCardAction_name, InsertRemoveSDCardRequest_SDCardAction_value) - proto.RegisterType((*CheckSDCardRequest)(nil), "shiftcrypto.bitbox02.CheckSDCardRequest") - proto.RegisterType((*CheckSDCardResponse)(nil), "shiftcrypto.bitbox02.CheckSDCardResponse") - proto.RegisterType((*DeviceInfoRequest)(nil), "shiftcrypto.bitbox02.DeviceInfoRequest") - proto.RegisterType((*DeviceInfoResponse)(nil), "shiftcrypto.bitbox02.DeviceInfoResponse") - proto.RegisterType((*InsertRemoveSDCardRequest)(nil), "shiftcrypto.bitbox02.InsertRemoveSDCardRequest") - proto.RegisterType((*ResetRequest)(nil), "shiftcrypto.bitbox02.ResetRequest") - proto.RegisterType((*SetDeviceLanguageRequest)(nil), "shiftcrypto.bitbox02.SetDeviceLanguageRequest") - proto.RegisterType((*SetDeviceNameRequest)(nil), "shiftcrypto.bitbox02.SetDeviceNameRequest") - proto.RegisterType((*SetPasswordRequest)(nil), "shiftcrypto.bitbox02.SetPasswordRequest") -} - -func init() { proto.RegisterFile("bitbox02_system.proto", fileDescriptor_7bdc3d941a731b17) } - -var fileDescriptor_7bdc3d941a731b17 = []byte{ - // 439 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0x41, 0x6f, 0x13, 0x31, - 0x10, 0x85, 0xd9, 0x52, 0xd2, 0x30, 0x0d, 0x6d, 0x71, 0x83, 0xe4, 0x16, 0x84, 0xa2, 0x3d, 0x15, - 0x0e, 0xab, 0x52, 0x24, 0x4e, 0x08, 0xa9, 0x4a, 0x72, 0x88, 0x44, 0x0b, 0x72, 0x2a, 0xae, 0x2b, - 0x67, 0x77, 0x9a, 0x58, 0xc4, 0xe3, 0xc5, 0x76, 0x02, 0xe1, 0x7f, 0xf0, 0x0b, 0xf8, 0xa3, 0x68, - 0x9d, 0x78, 0x9b, 0x4a, 0xe5, 0xb6, 0xef, 0xe9, 0xcd, 0x27, 0xef, 0xbc, 0x81, 0x17, 0x13, 0xe5, - 0x27, 0xe6, 0xd7, 0xf9, 0x45, 0xee, 0x56, 0xce, 0xa3, 0xce, 0x2a, 0x6b, 0xbc, 0x61, 0x5d, 0x37, - 0x53, 0xb7, 0xbe, 0xb0, 0xab, 0xca, 0x9b, 0x2c, 0x46, 0xd2, 0x2e, 0xb0, 0xfe, 0x0c, 0x8b, 0xef, - 0xe3, 0x41, 0x5f, 0xda, 0x52, 0xe0, 0x8f, 0x05, 0x3a, 0x9f, 0xbe, 0x83, 0xe3, 0x7b, 0xae, 0xab, - 0x0c, 0x39, 0x64, 0xa7, 0xd0, 0x56, 0xe4, 0xd0, 0x7a, 0x2c, 0x79, 0xd2, 0x4b, 0xce, 0xda, 0xa2, - 0xd1, 0xe9, 0x31, 0x3c, 0x1f, 0xe0, 0x52, 0x15, 0x38, 0xa2, 0x5b, 0x13, 0x39, 0x7f, 0x76, 0x80, - 0x6d, 0xbb, 0x1b, 0x0e, 0x83, 0x5d, 0x92, 0x1a, 0x03, 0xe3, 0xa9, 0x08, 0xdf, 0xac, 0x07, 0xfb, - 0x8a, 0x94, 0x57, 0x72, 0xae, 0x7e, 0x63, 0xc9, 0x77, 0x02, 0x7e, 0xdb, 0x62, 0x1c, 0xf6, 0x96, - 0x68, 0x9d, 0x32, 0xc4, 0x1f, 0x87, 0xc1, 0x28, 0xd9, 0x27, 0x78, 0xa9, 0x09, 0xb5, 0x21, 0x55, - 0xe4, 0x95, 0x74, 0xae, 0x9a, 0x59, 0xe9, 0x30, 0x47, 0x92, 0x93, 0x39, 0x96, 0x7c, 0x37, 0xb0, - 0x4e, 0x62, 0xe4, 0x6b, 0x93, 0x18, 0xae, 0x03, 0x6c, 0x00, 0xaf, 0xb5, 0x21, 0xe3, 0x03, 0x40, - 0x51, 0x61, 0x51, 0x23, 0x79, 0x97, 0x5b, 0xd4, 0x52, 0x91, 0xa2, 0x29, 0x7f, 0xd2, 0x4b, 0xce, - 0x9e, 0x89, 0x57, 0x4d, 0x6a, 0xd4, 0x84, 0x44, 0xcc, 0xb0, 0x37, 0x70, 0xe4, 0xb0, 0x58, 0x58, - 0x2c, 0x66, 0xaa, 0xca, 0xb5, 0x29, 0x71, 0xce, 0x5b, 0xe1, 0xa1, 0x87, 0x77, 0xfe, 0x55, 0x6d, - 0xa7, 0x7f, 0x13, 0x38, 0x19, 0x85, 0xcd, 0x09, 0xd4, 0x66, 0x89, 0xf7, 0xb6, 0xcf, 0x6e, 0xa0, - 0x25, 0x0b, 0x5f, 0xff, 0x67, 0xbd, 0xa0, 0x83, 0x8b, 0x8f, 0xd9, 0x43, 0xd5, 0x65, 0xff, 0x05, - 0x64, 0x6b, 0x75, 0x19, 0x18, 0x62, 0xc3, 0x4a, 0xcf, 0xa1, 0xb3, 0xed, 0xb3, 0x43, 0xd8, 0x17, - 0xc3, 0xab, 0x2f, 0xdf, 0x86, 0x79, 0xff, 0x52, 0x0c, 0x8e, 0x1e, 0xd5, 0xc6, 0xe8, 0x7a, 0x3c, - 0x14, 0x37, 0x6b, 0x23, 0x49, 0x0f, 0xa0, 0x23, 0xd0, 0xa1, 0x8f, 0x6d, 0x7e, 0x00, 0x3e, 0x46, - 0xbf, 0xee, 0xf3, 0xb3, 0xa4, 0xe9, 0x42, 0x4e, 0x31, 0xbe, 0xf9, 0x14, 0xda, 0xf3, 0x8d, 0xb5, - 0xa9, 0xb5, 0xd1, 0xe9, 0x5b, 0xe8, 0x36, 0x73, 0xd7, 0x52, 0x37, 0x33, 0x0f, 0x9c, 0x41, 0x9a, - 0x01, 0x1b, 0xa3, 0xaf, 0x2b, 0xfa, 0x69, 0xee, 0x36, 0xc2, 0x61, 0x0f, 0xc9, 0x5b, 0x53, 0xad, - 0x42, 0xb8, 0x23, 0xa2, 0x9c, 0xb4, 0xc2, 0x71, 0xbf, 0xff, 0x17, 0x00, 0x00, 0xff, 0xff, 0xb5, - 0x34, 0x5b, 0x05, 0xf5, 0x02, 0x00, 0x00, +var File_bitbox02_system_proto protoreflect.FileDescriptor + +var file_bitbox02_system_proto_rawDesc = []byte{ + 0x0a, 0x15, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, + 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x22, 0x14, 0x0a, + 0x12, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x44, 0x43, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x22, 0x31, 0x0a, 0x13, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x44, 0x43, 0x61, + 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, + 0x73, 0x65, 0x72, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x6e, + 0x73, 0x65, 0x72, 0x74, 0x65, 0x64, 0x22, 0x13, 0x0a, 0x11, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x95, 0x02, 0x0a, 0x12, + 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, + 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x6e, 0x69, + 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x12, 0x3e, 0x0a, 0x1b, 0x6d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x5f, 0x70, + 0x61, 0x73, 0x73, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x19, 0x6d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, + 0x63, 0x50, 0x61, 0x73, 0x73, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x45, 0x6e, 0x61, 0x62, 0x6c, + 0x65, 0x64, 0x12, 0x44, 0x0a, 0x1e, 0x6d, 0x6f, 0x6e, 0x6f, 0x74, 0x6f, 0x6e, 0x69, 0x63, 0x5f, + 0x69, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x72, 0x65, 0x6d, 0x61, 0x69, + 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x1c, 0x6d, 0x6f, 0x6e, 0x6f, + 0x74, 0x6f, 0x6e, 0x69, 0x63, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, + 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x12, 0x29, 0x0a, 0x10, 0x73, 0x65, 0x63, 0x75, + 0x72, 0x65, 0x63, 0x68, 0x69, 0x70, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x63, 0x68, 0x69, 0x70, 0x4d, 0x6f, + 0x64, 0x65, 0x6c, 0x22, 0xa3, 0x01, 0x0a, 0x19, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, + 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x44, 0x43, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x54, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x3c, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, + 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, + 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x44, 0x43, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x2e, 0x53, 0x44, 0x43, 0x61, 0x72, 0x64, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x30, 0x0a, 0x0c, 0x53, 0x44, 0x43, 0x61, 0x72, + 0x64, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x45, 0x4d, 0x4f, 0x56, + 0x45, 0x5f, 0x43, 0x41, 0x52, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x49, 0x4e, 0x53, 0x45, + 0x52, 0x54, 0x5f, 0x43, 0x41, 0x52, 0x44, 0x10, 0x01, 0x22, 0x0e, 0x0a, 0x0c, 0x52, 0x65, 0x73, + 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x36, 0x0a, 0x18, 0x53, 0x65, 0x74, + 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, + 0x65, 0x22, 0x2a, 0x0a, 0x14, 0x53, 0x65, 0x74, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, + 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x2e, 0x0a, + 0x12, 0x53, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x6f, 0x70, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x6f, 0x70, 0x79, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_bitbox02_system_proto_rawDescOnce sync.Once + file_bitbox02_system_proto_rawDescData = file_bitbox02_system_proto_rawDesc +) + +func file_bitbox02_system_proto_rawDescGZIP() []byte { + file_bitbox02_system_proto_rawDescOnce.Do(func() { + file_bitbox02_system_proto_rawDescData = protoimpl.X.CompressGZIP(file_bitbox02_system_proto_rawDescData) + }) + return file_bitbox02_system_proto_rawDescData +} + +var file_bitbox02_system_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_bitbox02_system_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_bitbox02_system_proto_goTypes = []interface{}{ + (InsertRemoveSDCardRequest_SDCardAction)(0), // 0: shiftcrypto.bitbox02.InsertRemoveSDCardRequest.SDCardAction + (*CheckSDCardRequest)(nil), // 1: shiftcrypto.bitbox02.CheckSDCardRequest + (*CheckSDCardResponse)(nil), // 2: shiftcrypto.bitbox02.CheckSDCardResponse + (*DeviceInfoRequest)(nil), // 3: shiftcrypto.bitbox02.DeviceInfoRequest + (*DeviceInfoResponse)(nil), // 4: shiftcrypto.bitbox02.DeviceInfoResponse + (*InsertRemoveSDCardRequest)(nil), // 5: shiftcrypto.bitbox02.InsertRemoveSDCardRequest + (*ResetRequest)(nil), // 6: shiftcrypto.bitbox02.ResetRequest + (*SetDeviceLanguageRequest)(nil), // 7: shiftcrypto.bitbox02.SetDeviceLanguageRequest + (*SetDeviceNameRequest)(nil), // 8: shiftcrypto.bitbox02.SetDeviceNameRequest + (*SetPasswordRequest)(nil), // 9: shiftcrypto.bitbox02.SetPasswordRequest +} +var file_bitbox02_system_proto_depIdxs = []int32{ + 0, // 0: shiftcrypto.bitbox02.InsertRemoveSDCardRequest.action:type_name -> shiftcrypto.bitbox02.InsertRemoveSDCardRequest.SDCardAction + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_bitbox02_system_proto_init() } +func file_bitbox02_system_proto_init() { + if File_bitbox02_system_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_bitbox02_system_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CheckSDCardRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_bitbox02_system_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CheckSDCardResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_bitbox02_system_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeviceInfoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_bitbox02_system_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeviceInfoResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_bitbox02_system_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InsertRemoveSDCardRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_bitbox02_system_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_bitbox02_system_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetDeviceLanguageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_bitbox02_system_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetDeviceNameRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_bitbox02_system_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetPasswordRequest); 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_bitbox02_system_proto_rawDesc, + NumEnums: 1, + NumMessages: 9, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_bitbox02_system_proto_goTypes, + DependencyIndexes: file_bitbox02_system_proto_depIdxs, + EnumInfos: file_bitbox02_system_proto_enumTypes, + MessageInfos: file_bitbox02_system_proto_msgTypes, + }.Build() + File_bitbox02_system_proto = out.File + file_bitbox02_system_proto_rawDesc = nil + file_bitbox02_system_proto_goTypes = nil + file_bitbox02_system_proto_depIdxs = nil } diff --git a/api/firmware/messages/btc.pb.go b/api/firmware/messages/btc.pb.go index 2e0130b..1441216 100644 --- a/api/firmware/messages/btc.pb.go +++ b/api/firmware/messages/btc.pb.go @@ -1,24 +1,39 @@ +// Copyright 2019 Shift Cryptosecurity AG +// Copyright 2020 Shift Crypto AG +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v3.6.1 // source: btc.proto package messages import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +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) +) type BTCCoin int32 @@ -29,26 +44,47 @@ const ( BTCCoin_TLTC BTCCoin = 3 ) -var BTCCoin_name = map[int32]string{ - 0: "BTC", - 1: "TBTC", - 2: "LTC", - 3: "TLTC", -} +// Enum value maps for BTCCoin. +var ( + BTCCoin_name = map[int32]string{ + 0: "BTC", + 1: "TBTC", + 2: "LTC", + 3: "TLTC", + } + BTCCoin_value = map[string]int32{ + "BTC": 0, + "TBTC": 1, + "LTC": 2, + "TLTC": 3, + } +) -var BTCCoin_value = map[string]int32{ - "BTC": 0, - "TBTC": 1, - "LTC": 2, - "TLTC": 3, +func (x BTCCoin) Enum() *BTCCoin { + p := new(BTCCoin) + *p = x + return p } func (x BTCCoin) String() string { - return proto.EnumName(BTCCoin_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (BTCCoin) Descriptor() protoreflect.EnumDescriptor { + return file_btc_proto_enumTypes[0].Descriptor() +} + +func (BTCCoin) Type() protoreflect.EnumType { + return &file_btc_proto_enumTypes[0] +} + +func (x BTCCoin) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use BTCCoin.Descriptor instead. func (BTCCoin) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_a38f9ffa5c78f451, []int{0} + return file_btc_proto_rawDescGZIP(), []int{0} } type BTCOutputType int32 @@ -62,30 +98,51 @@ const ( BTCOutputType_P2TR BTCOutputType = 5 ) -var BTCOutputType_name = map[int32]string{ - 0: "UNKNOWN", - 1: "P2PKH", - 2: "P2SH", - 3: "P2WPKH", - 4: "P2WSH", - 5: "P2TR", -} +// Enum value maps for BTCOutputType. +var ( + BTCOutputType_name = map[int32]string{ + 0: "UNKNOWN", + 1: "P2PKH", + 2: "P2SH", + 3: "P2WPKH", + 4: "P2WSH", + 5: "P2TR", + } + BTCOutputType_value = map[string]int32{ + "UNKNOWN": 0, + "P2PKH": 1, + "P2SH": 2, + "P2WPKH": 3, + "P2WSH": 4, + "P2TR": 5, + } +) -var BTCOutputType_value = map[string]int32{ - "UNKNOWN": 0, - "P2PKH": 1, - "P2SH": 2, - "P2WPKH": 3, - "P2WSH": 4, - "P2TR": 5, +func (x BTCOutputType) Enum() *BTCOutputType { + p := new(BTCOutputType) + *p = x + return p } func (x BTCOutputType) String() string { - return proto.EnumName(BTCOutputType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (BTCOutputType) Descriptor() protoreflect.EnumDescriptor { + return file_btc_proto_enumTypes[1].Descriptor() +} + +func (BTCOutputType) Type() protoreflect.EnumType { + return &file_btc_proto_enumTypes[1] +} + +func (x BTCOutputType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use BTCOutputType.Descriptor instead. func (BTCOutputType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_a38f9ffa5c78f451, []int{1} + return file_btc_proto_rawDescGZIP(), []int{1} } // SimpleType is a "simple" script: one public key, no additional inputs. @@ -97,49 +154,91 @@ const ( BTCScriptConfig_P2TR BTCScriptConfig_SimpleType = 2 ) -var BTCScriptConfig_SimpleType_name = map[int32]string{ - 0: "P2WPKH_P2SH", - 1: "P2WPKH", - 2: "P2TR", -} +// Enum value maps for BTCScriptConfig_SimpleType. +var ( + BTCScriptConfig_SimpleType_name = map[int32]string{ + 0: "P2WPKH_P2SH", + 1: "P2WPKH", + 2: "P2TR", + } + BTCScriptConfig_SimpleType_value = map[string]int32{ + "P2WPKH_P2SH": 0, + "P2WPKH": 1, + "P2TR": 2, + } +) -var BTCScriptConfig_SimpleType_value = map[string]int32{ - "P2WPKH_P2SH": 0, - "P2WPKH": 1, - "P2TR": 2, +func (x BTCScriptConfig_SimpleType) Enum() *BTCScriptConfig_SimpleType { + p := new(BTCScriptConfig_SimpleType) + *p = x + return p } func (x BTCScriptConfig_SimpleType) String() string { - return proto.EnumName(BTCScriptConfig_SimpleType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (BTCScriptConfig_SimpleType) Descriptor() protoreflect.EnumDescriptor { + return file_btc_proto_enumTypes[2].Descriptor() +} + +func (BTCScriptConfig_SimpleType) Type() protoreflect.EnumType { + return &file_btc_proto_enumTypes[2] +} + +func (x BTCScriptConfig_SimpleType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use BTCScriptConfig_SimpleType.Descriptor instead. func (BTCScriptConfig_SimpleType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_a38f9ffa5c78f451, []int{0, 0} + return file_btc_proto_rawDescGZIP(), []int{0, 0} } type BTCScriptConfig_Multisig_ScriptType int32 const ( - BTCScriptConfig_Multisig_P2WSH BTCScriptConfig_Multisig_ScriptType = 0 - BTCScriptConfig_Multisig_P2WSH_P2SH BTCScriptConfig_Multisig_ScriptType = 1 + BTCScriptConfig_Multisig_P2WSH BTCScriptConfig_Multisig_ScriptType = 0 // native segwit v0 multisig (bech32 addresses) + BTCScriptConfig_Multisig_P2WSH_P2SH BTCScriptConfig_Multisig_ScriptType = 1 // wrapped segwit for legacy address compatibility ) -var BTCScriptConfig_Multisig_ScriptType_name = map[int32]string{ - 0: "P2WSH", - 1: "P2WSH_P2SH", -} +// Enum value maps for BTCScriptConfig_Multisig_ScriptType. +var ( + BTCScriptConfig_Multisig_ScriptType_name = map[int32]string{ + 0: "P2WSH", + 1: "P2WSH_P2SH", + } + BTCScriptConfig_Multisig_ScriptType_value = map[string]int32{ + "P2WSH": 0, + "P2WSH_P2SH": 1, + } +) -var BTCScriptConfig_Multisig_ScriptType_value = map[string]int32{ - "P2WSH": 0, - "P2WSH_P2SH": 1, +func (x BTCScriptConfig_Multisig_ScriptType) Enum() *BTCScriptConfig_Multisig_ScriptType { + p := new(BTCScriptConfig_Multisig_ScriptType) + *p = x + return p } func (x BTCScriptConfig_Multisig_ScriptType) String() string { - return proto.EnumName(BTCScriptConfig_Multisig_ScriptType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (BTCScriptConfig_Multisig_ScriptType) Descriptor() protoreflect.EnumDescriptor { + return file_btc_proto_enumTypes[3].Descriptor() +} + +func (BTCScriptConfig_Multisig_ScriptType) Type() protoreflect.EnumType { + return &file_btc_proto_enumTypes[3] +} + +func (x BTCScriptConfig_Multisig_ScriptType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use BTCScriptConfig_Multisig_ScriptType.Descriptor instead. func (BTCScriptConfig_Multisig_ScriptType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_a38f9ffa5c78f451, []int{0, 0, 0} + return file_btc_proto_rawDescGZIP(), []int{0, 0, 0} } type BTCPubRequest_XPubType int32 @@ -148,47 +247,68 @@ const ( BTCPubRequest_TPUB BTCPubRequest_XPubType = 0 BTCPubRequest_XPUB BTCPubRequest_XPubType = 1 BTCPubRequest_YPUB BTCPubRequest_XPubType = 2 - BTCPubRequest_ZPUB BTCPubRequest_XPubType = 3 - BTCPubRequest_VPUB BTCPubRequest_XPubType = 4 + BTCPubRequest_ZPUB BTCPubRequest_XPubType = 3 // zpub + BTCPubRequest_VPUB BTCPubRequest_XPubType = 4 // vpub BTCPubRequest_UPUB BTCPubRequest_XPubType = 5 - BTCPubRequest_CAPITAL_VPUB BTCPubRequest_XPubType = 6 - BTCPubRequest_CAPITAL_ZPUB BTCPubRequest_XPubType = 7 - BTCPubRequest_CAPITAL_UPUB BTCPubRequest_XPubType = 8 - BTCPubRequest_CAPITAL_YPUB BTCPubRequest_XPubType = 9 + BTCPubRequest_CAPITAL_VPUB BTCPubRequest_XPubType = 6 // Vpub + BTCPubRequest_CAPITAL_ZPUB BTCPubRequest_XPubType = 7 // Zpub + BTCPubRequest_CAPITAL_UPUB BTCPubRequest_XPubType = 8 // Upub + BTCPubRequest_CAPITAL_YPUB BTCPubRequest_XPubType = 9 // Ypub +) + +// Enum value maps for BTCPubRequest_XPubType. +var ( + BTCPubRequest_XPubType_name = map[int32]string{ + 0: "TPUB", + 1: "XPUB", + 2: "YPUB", + 3: "ZPUB", + 4: "VPUB", + 5: "UPUB", + 6: "CAPITAL_VPUB", + 7: "CAPITAL_ZPUB", + 8: "CAPITAL_UPUB", + 9: "CAPITAL_YPUB", + } + BTCPubRequest_XPubType_value = map[string]int32{ + "TPUB": 0, + "XPUB": 1, + "YPUB": 2, + "ZPUB": 3, + "VPUB": 4, + "UPUB": 5, + "CAPITAL_VPUB": 6, + "CAPITAL_ZPUB": 7, + "CAPITAL_UPUB": 8, + "CAPITAL_YPUB": 9, + } ) -var BTCPubRequest_XPubType_name = map[int32]string{ - 0: "TPUB", - 1: "XPUB", - 2: "YPUB", - 3: "ZPUB", - 4: "VPUB", - 5: "UPUB", - 6: "CAPITAL_VPUB", - 7: "CAPITAL_ZPUB", - 8: "CAPITAL_UPUB", - 9: "CAPITAL_YPUB", -} - -var BTCPubRequest_XPubType_value = map[string]int32{ - "TPUB": 0, - "XPUB": 1, - "YPUB": 2, - "ZPUB": 3, - "VPUB": 4, - "UPUB": 5, - "CAPITAL_VPUB": 6, - "CAPITAL_ZPUB": 7, - "CAPITAL_UPUB": 8, - "CAPITAL_YPUB": 9, +func (x BTCPubRequest_XPubType) Enum() *BTCPubRequest_XPubType { + p := new(BTCPubRequest_XPubType) + *p = x + return p } func (x BTCPubRequest_XPubType) String() string { - return proto.EnumName(BTCPubRequest_XPubType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (BTCPubRequest_XPubType) Descriptor() protoreflect.EnumDescriptor { + return file_btc_proto_enumTypes[4].Descriptor() } +func (BTCPubRequest_XPubType) Type() protoreflect.EnumType { + return &file_btc_proto_enumTypes[4] +} + +func (x BTCPubRequest_XPubType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use BTCPubRequest_XPubType.Descriptor instead. func (BTCPubRequest_XPubType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_a38f9ffa5c78f451, []int{1, 0} + return file_btc_proto_rawDescGZIP(), []int{1, 0} } type BTCSignNextResponse_Type int32 @@ -204,32 +324,53 @@ const ( BTCSignNextResponse_HOST_NONCE BTCSignNextResponse_Type = 6 ) -var BTCSignNextResponse_Type_name = map[int32]string{ - 0: "INPUT", - 1: "OUTPUT", - 2: "DONE", - 3: "PREVTX_INIT", - 4: "PREVTX_INPUT", - 5: "PREVTX_OUTPUT", - 6: "HOST_NONCE", -} +// Enum value maps for BTCSignNextResponse_Type. +var ( + BTCSignNextResponse_Type_name = map[int32]string{ + 0: "INPUT", + 1: "OUTPUT", + 2: "DONE", + 3: "PREVTX_INIT", + 4: "PREVTX_INPUT", + 5: "PREVTX_OUTPUT", + 6: "HOST_NONCE", + } + BTCSignNextResponse_Type_value = map[string]int32{ + "INPUT": 0, + "OUTPUT": 1, + "DONE": 2, + "PREVTX_INIT": 3, + "PREVTX_INPUT": 4, + "PREVTX_OUTPUT": 5, + "HOST_NONCE": 6, + } +) -var BTCSignNextResponse_Type_value = map[string]int32{ - "INPUT": 0, - "OUTPUT": 1, - "DONE": 2, - "PREVTX_INIT": 3, - "PREVTX_INPUT": 4, - "PREVTX_OUTPUT": 5, - "HOST_NONCE": 6, +func (x BTCSignNextResponse_Type) Enum() *BTCSignNextResponse_Type { + p := new(BTCSignNextResponse_Type) + *p = x + return p } func (x BTCSignNextResponse_Type) String() string { - return proto.EnumName(BTCSignNextResponse_Type_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (BTCSignNextResponse_Type) Descriptor() protoreflect.EnumDescriptor { + return file_btc_proto_enumTypes[5].Descriptor() +} + +func (BTCSignNextResponse_Type) Type() protoreflect.EnumType { + return &file_btc_proto_enumTypes[5] +} + +func (x BTCSignNextResponse_Type) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use BTCSignNextResponse_Type.Descriptor instead. func (BTCSignNextResponse_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_a38f9ffa5c78f451, []int{4, 0} + return file_btc_proto_rawDescGZIP(), []int{4, 0} } type BTCRegisterScriptConfigRequest_XPubType int32 @@ -241,74 +382,87 @@ const ( BTCRegisterScriptConfigRequest_AUTO_XPUB_TPUB BTCRegisterScriptConfigRequest_XPubType = 1 ) -var BTCRegisterScriptConfigRequest_XPubType_name = map[int32]string{ - 0: "AUTO_ELECTRUM", - 1: "AUTO_XPUB_TPUB", -} +// Enum value maps for BTCRegisterScriptConfigRequest_XPubType. +var ( + BTCRegisterScriptConfigRequest_XPubType_name = map[int32]string{ + 0: "AUTO_ELECTRUM", + 1: "AUTO_XPUB_TPUB", + } + BTCRegisterScriptConfigRequest_XPubType_value = map[string]int32{ + "AUTO_ELECTRUM": 0, + "AUTO_XPUB_TPUB": 1, + } +) -var BTCRegisterScriptConfigRequest_XPubType_value = map[string]int32{ - "AUTO_ELECTRUM": 0, - "AUTO_XPUB_TPUB": 1, +func (x BTCRegisterScriptConfigRequest_XPubType) Enum() *BTCRegisterScriptConfigRequest_XPubType { + p := new(BTCRegisterScriptConfigRequest_XPubType) + *p = x + return p } func (x BTCRegisterScriptConfigRequest_XPubType) String() string { - return proto.EnumName(BTCRegisterScriptConfigRequest_XPubType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (BTCRegisterScriptConfigRequest_XPubType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_a38f9ffa5c78f451, []int{11, 0} +func (BTCRegisterScriptConfigRequest_XPubType) Descriptor() protoreflect.EnumDescriptor { + return file_btc_proto_enumTypes[6].Descriptor() } -type BTCScriptConfig struct { - // Types that are valid to be assigned to Config: - // *BTCScriptConfig_SimpleType_ - // *BTCScriptConfig_Multisig_ - Config isBTCScriptConfig_Config `protobuf_oneof:"config"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (BTCRegisterScriptConfigRequest_XPubType) Type() protoreflect.EnumType { + return &file_btc_proto_enumTypes[6] } -func (m *BTCScriptConfig) Reset() { *m = BTCScriptConfig{} } -func (m *BTCScriptConfig) String() string { return proto.CompactTextString(m) } -func (*BTCScriptConfig) ProtoMessage() {} -func (*BTCScriptConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_a38f9ffa5c78f451, []int{0} +func (x BTCRegisterScriptConfigRequest_XPubType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *BTCScriptConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BTCScriptConfig.Unmarshal(m, b) -} -func (m *BTCScriptConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BTCScriptConfig.Marshal(b, m, deterministic) -} -func (m *BTCScriptConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_BTCScriptConfig.Merge(m, src) -} -func (m *BTCScriptConfig) XXX_Size() int { - return xxx_messageInfo_BTCScriptConfig.Size(m) -} -func (m *BTCScriptConfig) XXX_DiscardUnknown() { - xxx_messageInfo_BTCScriptConfig.DiscardUnknown(m) +// Deprecated: Use BTCRegisterScriptConfigRequest_XPubType.Descriptor instead. +func (BTCRegisterScriptConfigRequest_XPubType) EnumDescriptor() ([]byte, []int) { + return file_btc_proto_rawDescGZIP(), []int{11, 0} } -var xxx_messageInfo_BTCScriptConfig proto.InternalMessageInfo +type BTCScriptConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type isBTCScriptConfig_Config interface { - isBTCScriptConfig_Config() + // Types that are assignable to Config: + // *BTCScriptConfig_SimpleType_ + // *BTCScriptConfig_Multisig_ + Config isBTCScriptConfig_Config `protobuf_oneof:"config"` } -type BTCScriptConfig_SimpleType_ struct { - SimpleType BTCScriptConfig_SimpleType `protobuf:"varint,1,opt,name=simple_type,json=simpleType,proto3,enum=shiftcrypto.bitbox02.BTCScriptConfig_SimpleType,oneof"` +func (x *BTCScriptConfig) Reset() { + *x = BTCScriptConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_btc_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -type BTCScriptConfig_Multisig_ struct { - Multisig *BTCScriptConfig_Multisig `protobuf:"bytes,2,opt,name=multisig,proto3,oneof"` +func (x *BTCScriptConfig) String() string { + return protoimpl.X.MessageStringOf(x) } -func (*BTCScriptConfig_SimpleType_) isBTCScriptConfig_Config() {} +func (*BTCScriptConfig) ProtoMessage() {} -func (*BTCScriptConfig_Multisig_) isBTCScriptConfig_Config() {} +func (x *BTCScriptConfig) ProtoReflect() protoreflect.Message { + mi := &file_btc_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 BTCScriptConfig.ProtoReflect.Descriptor instead. +func (*BTCScriptConfig) Descriptor() ([]byte, []int) { + return file_btc_proto_rawDescGZIP(), []int{0} +} func (m *BTCScriptConfig) GetConfig() isBTCScriptConfig_Config { if m != nil { @@ -317,163 +471,96 @@ func (m *BTCScriptConfig) GetConfig() isBTCScriptConfig_Config { return nil } -func (m *BTCScriptConfig) GetSimpleType() BTCScriptConfig_SimpleType { - if x, ok := m.GetConfig().(*BTCScriptConfig_SimpleType_); ok { +func (x *BTCScriptConfig) GetSimpleType() BTCScriptConfig_SimpleType { + if x, ok := x.GetConfig().(*BTCScriptConfig_SimpleType_); ok { return x.SimpleType } return BTCScriptConfig_P2WPKH_P2SH } -func (m *BTCScriptConfig) GetMultisig() *BTCScriptConfig_Multisig { - if x, ok := m.GetConfig().(*BTCScriptConfig_Multisig_); ok { +func (x *BTCScriptConfig) GetMultisig() *BTCScriptConfig_Multisig { + if x, ok := x.GetConfig().(*BTCScriptConfig_Multisig_); ok { return x.Multisig } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*BTCScriptConfig) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*BTCScriptConfig_SimpleType_)(nil), - (*BTCScriptConfig_Multisig_)(nil), - } -} - -type BTCScriptConfig_Multisig struct { - Threshold uint32 `protobuf:"varint,1,opt,name=threshold,proto3" json:"threshold,omitempty"` - // xpubs are acount-level xpubs. Addresses are going to be derived from it using: m//. - // The number of xpubs defines the number of cosigners. - Xpubs []*XPub `protobuf:"bytes,2,rep,name=xpubs,proto3" json:"xpubs,omitempty"` - // Index to the xpub of our keystore in xpubs. The keypath to it is provided via - // BTCPubRequest/BTCSignInit. - OurXpubIndex uint32 `protobuf:"varint,3,opt,name=our_xpub_index,json=ourXpubIndex,proto3" json:"our_xpub_index,omitempty"` - ScriptType BTCScriptConfig_Multisig_ScriptType `protobuf:"varint,4,opt,name=script_type,json=scriptType,proto3,enum=shiftcrypto.bitbox02.BTCScriptConfig_Multisig_ScriptType" json:"script_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BTCScriptConfig_Multisig) Reset() { *m = BTCScriptConfig_Multisig{} } -func (m *BTCScriptConfig_Multisig) String() string { return proto.CompactTextString(m) } -func (*BTCScriptConfig_Multisig) ProtoMessage() {} -func (*BTCScriptConfig_Multisig) Descriptor() ([]byte, []int) { - return fileDescriptor_a38f9ffa5c78f451, []int{0, 0} -} - -func (m *BTCScriptConfig_Multisig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BTCScriptConfig_Multisig.Unmarshal(m, b) -} -func (m *BTCScriptConfig_Multisig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BTCScriptConfig_Multisig.Marshal(b, m, deterministic) -} -func (m *BTCScriptConfig_Multisig) XXX_Merge(src proto.Message) { - xxx_messageInfo_BTCScriptConfig_Multisig.Merge(m, src) -} -func (m *BTCScriptConfig_Multisig) XXX_Size() int { - return xxx_messageInfo_BTCScriptConfig_Multisig.Size(m) -} -func (m *BTCScriptConfig_Multisig) XXX_DiscardUnknown() { - xxx_messageInfo_BTCScriptConfig_Multisig.DiscardUnknown(m) +type isBTCScriptConfig_Config interface { + isBTCScriptConfig_Config() } -var xxx_messageInfo_BTCScriptConfig_Multisig proto.InternalMessageInfo - -func (m *BTCScriptConfig_Multisig) GetThreshold() uint32 { - if m != nil { - return m.Threshold - } - return 0 +type BTCScriptConfig_SimpleType_ struct { + SimpleType BTCScriptConfig_SimpleType `protobuf:"varint,1,opt,name=simple_type,json=simpleType,proto3,enum=shiftcrypto.bitbox02.BTCScriptConfig_SimpleType,oneof"` } -func (m *BTCScriptConfig_Multisig) GetXpubs() []*XPub { - if m != nil { - return m.Xpubs - } - return nil +type BTCScriptConfig_Multisig_ struct { + Multisig *BTCScriptConfig_Multisig `protobuf:"bytes,2,opt,name=multisig,proto3,oneof"` } -func (m *BTCScriptConfig_Multisig) GetOurXpubIndex() uint32 { - if m != nil { - return m.OurXpubIndex - } - return 0 -} +func (*BTCScriptConfig_SimpleType_) isBTCScriptConfig_Config() {} -func (m *BTCScriptConfig_Multisig) GetScriptType() BTCScriptConfig_Multisig_ScriptType { - if m != nil { - return m.ScriptType - } - return BTCScriptConfig_Multisig_P2WSH -} +func (*BTCScriptConfig_Multisig_) isBTCScriptConfig_Config() {} type BTCPubRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Coin BTCCoin `protobuf:"varint,1,opt,name=coin,proto3,enum=shiftcrypto.bitbox02.BTCCoin" json:"coin,omitempty"` Keypath []uint32 `protobuf:"varint,2,rep,packed,name=keypath,proto3" json:"keypath,omitempty"` - // Types that are valid to be assigned to Output: + // Types that are assignable to Output: // *BTCPubRequest_XpubType // *BTCPubRequest_ScriptConfig - Output isBTCPubRequest_Output `protobuf_oneof:"output"` - Display bool `protobuf:"varint,5,opt,name=display,proto3" json:"display,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Output isBTCPubRequest_Output `protobuf_oneof:"output"` + Display bool `protobuf:"varint,5,opt,name=display,proto3" json:"display,omitempty"` } -func (m *BTCPubRequest) Reset() { *m = BTCPubRequest{} } -func (m *BTCPubRequest) String() string { return proto.CompactTextString(m) } -func (*BTCPubRequest) ProtoMessage() {} -func (*BTCPubRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a38f9ffa5c78f451, []int{1} +func (x *BTCPubRequest) Reset() { + *x = BTCPubRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_btc_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BTCPubRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BTCPubRequest.Unmarshal(m, b) -} -func (m *BTCPubRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BTCPubRequest.Marshal(b, m, deterministic) +func (x *BTCPubRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BTCPubRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BTCPubRequest.Merge(m, src) -} -func (m *BTCPubRequest) XXX_Size() int { - return xxx_messageInfo_BTCPubRequest.Size(m) -} -func (m *BTCPubRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BTCPubRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_BTCPubRequest proto.InternalMessageInfo -func (m *BTCPubRequest) GetCoin() BTCCoin { - if m != nil { - return m.Coin - } - return BTCCoin_BTC -} +func (*BTCPubRequest) ProtoMessage() {} -func (m *BTCPubRequest) GetKeypath() []uint32 { - if m != nil { - return m.Keypath +func (x *BTCPubRequest) ProtoReflect() protoreflect.Message { + mi := &file_btc_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 nil + return mi.MessageOf(x) } -type isBTCPubRequest_Output interface { - isBTCPubRequest_Output() +// Deprecated: Use BTCPubRequest.ProtoReflect.Descriptor instead. +func (*BTCPubRequest) Descriptor() ([]byte, []int) { + return file_btc_proto_rawDescGZIP(), []int{1} } -type BTCPubRequest_XpubType struct { - XpubType BTCPubRequest_XPubType `protobuf:"varint,3,opt,name=xpub_type,json=xpubType,proto3,enum=shiftcrypto.bitbox02.BTCPubRequest_XPubType,oneof"` +func (x *BTCPubRequest) GetCoin() BTCCoin { + if x != nil { + return x.Coin + } + return BTCCoin_BTC } -type BTCPubRequest_ScriptConfig struct { - ScriptConfig *BTCScriptConfig `protobuf:"bytes,4,opt,name=script_config,json=scriptConfig,proto3,oneof"` +func (x *BTCPubRequest) GetKeypath() []uint32 { + if x != nil { + return x.Keypath + } + return nil } -func (*BTCPubRequest_XpubType) isBTCPubRequest_Output() {} - -func (*BTCPubRequest_ScriptConfig) isBTCPubRequest_Output() {} - func (m *BTCPubRequest) GetOutput() isBTCPubRequest_Output { if m != nil { return m.Output @@ -481,911 +568,1042 @@ func (m *BTCPubRequest) GetOutput() isBTCPubRequest_Output { return nil } -func (m *BTCPubRequest) GetXpubType() BTCPubRequest_XPubType { - if x, ok := m.GetOutput().(*BTCPubRequest_XpubType); ok { +func (x *BTCPubRequest) GetXpubType() BTCPubRequest_XPubType { + if x, ok := x.GetOutput().(*BTCPubRequest_XpubType); ok { return x.XpubType } return BTCPubRequest_TPUB } -func (m *BTCPubRequest) GetScriptConfig() *BTCScriptConfig { - if x, ok := m.GetOutput().(*BTCPubRequest_ScriptConfig); ok { +func (x *BTCPubRequest) GetScriptConfig() *BTCScriptConfig { + if x, ok := x.GetOutput().(*BTCPubRequest_ScriptConfig); ok { return x.ScriptConfig } return nil } -func (m *BTCPubRequest) GetDisplay() bool { - if m != nil { - return m.Display +func (x *BTCPubRequest) GetDisplay() bool { + if x != nil { + return x.Display } return false } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*BTCPubRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*BTCPubRequest_XpubType)(nil), - (*BTCPubRequest_ScriptConfig)(nil), - } +type isBTCPubRequest_Output interface { + isBTCPubRequest_Output() } -type BTCScriptConfigWithKeypath struct { - ScriptConfig *BTCScriptConfig `protobuf:"bytes,2,opt,name=script_config,json=scriptConfig,proto3" json:"script_config,omitempty"` - Keypath []uint32 `protobuf:"varint,3,rep,packed,name=keypath,proto3" json:"keypath,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type BTCPubRequest_XpubType struct { + XpubType BTCPubRequest_XPubType `protobuf:"varint,3,opt,name=xpub_type,json=xpubType,proto3,enum=shiftcrypto.bitbox02.BTCPubRequest_XPubType,oneof"` } -func (m *BTCScriptConfigWithKeypath) Reset() { *m = BTCScriptConfigWithKeypath{} } -func (m *BTCScriptConfigWithKeypath) String() string { return proto.CompactTextString(m) } -func (*BTCScriptConfigWithKeypath) ProtoMessage() {} -func (*BTCScriptConfigWithKeypath) Descriptor() ([]byte, []int) { - return fileDescriptor_a38f9ffa5c78f451, []int{2} +type BTCPubRequest_ScriptConfig struct { + ScriptConfig *BTCScriptConfig `protobuf:"bytes,4,opt,name=script_config,json=scriptConfig,proto3,oneof"` } -func (m *BTCScriptConfigWithKeypath) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BTCScriptConfigWithKeypath.Unmarshal(m, b) -} -func (m *BTCScriptConfigWithKeypath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BTCScriptConfigWithKeypath.Marshal(b, m, deterministic) +func (*BTCPubRequest_XpubType) isBTCPubRequest_Output() {} + +func (*BTCPubRequest_ScriptConfig) isBTCPubRequest_Output() {} + +type BTCScriptConfigWithKeypath struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ScriptConfig *BTCScriptConfig `protobuf:"bytes,2,opt,name=script_config,json=scriptConfig,proto3" json:"script_config,omitempty"` + Keypath []uint32 `protobuf:"varint,3,rep,packed,name=keypath,proto3" json:"keypath,omitempty"` } -func (m *BTCScriptConfigWithKeypath) XXX_Merge(src proto.Message) { - xxx_messageInfo_BTCScriptConfigWithKeypath.Merge(m, src) + +func (x *BTCScriptConfigWithKeypath) Reset() { + *x = BTCScriptConfigWithKeypath{} + if protoimpl.UnsafeEnabled { + mi := &file_btc_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BTCScriptConfigWithKeypath) XXX_Size() int { - return xxx_messageInfo_BTCScriptConfigWithKeypath.Size(m) + +func (x *BTCScriptConfigWithKeypath) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BTCScriptConfigWithKeypath) XXX_DiscardUnknown() { - xxx_messageInfo_BTCScriptConfigWithKeypath.DiscardUnknown(m) + +func (*BTCScriptConfigWithKeypath) ProtoMessage() {} + +func (x *BTCScriptConfigWithKeypath) ProtoReflect() protoreflect.Message { + mi := &file_btc_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) } -var xxx_messageInfo_BTCScriptConfigWithKeypath proto.InternalMessageInfo +// Deprecated: Use BTCScriptConfigWithKeypath.ProtoReflect.Descriptor instead. +func (*BTCScriptConfigWithKeypath) Descriptor() ([]byte, []int) { + return file_btc_proto_rawDescGZIP(), []int{2} +} -func (m *BTCScriptConfigWithKeypath) GetScriptConfig() *BTCScriptConfig { - if m != nil { - return m.ScriptConfig +func (x *BTCScriptConfigWithKeypath) GetScriptConfig() *BTCScriptConfig { + if x != nil { + return x.ScriptConfig } return nil } -func (m *BTCScriptConfigWithKeypath) GetKeypath() []uint32 { - if m != nil { - return m.Keypath +func (x *BTCScriptConfigWithKeypath) GetKeypath() []uint32 { + if x != nil { + return x.Keypath } return nil } type BTCSignInitRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Coin BTCCoin `protobuf:"varint,1,opt,name=coin,proto3,enum=shiftcrypto.bitbox02.BTCCoin" json:"coin,omitempty"` // used script configs in inputs and changes - ScriptConfigs []*BTCScriptConfigWithKeypath `protobuf:"bytes,2,rep,name=script_configs,json=scriptConfigs,proto3" json:"script_configs,omitempty"` - Version uint32 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` - NumInputs uint32 `protobuf:"varint,5,opt,name=num_inputs,json=numInputs,proto3" json:"num_inputs,omitempty"` - NumOutputs uint32 `protobuf:"varint,6,opt,name=num_outputs,json=numOutputs,proto3" json:"num_outputs,omitempty"` - Locktime uint32 `protobuf:"varint,7,opt,name=locktime,proto3" json:"locktime,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BTCSignInitRequest) Reset() { *m = BTCSignInitRequest{} } -func (m *BTCSignInitRequest) String() string { return proto.CompactTextString(m) } -func (*BTCSignInitRequest) ProtoMessage() {} -func (*BTCSignInitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a38f9ffa5c78f451, []int{3} + ScriptConfigs []*BTCScriptConfigWithKeypath `protobuf:"bytes,2,rep,name=script_configs,json=scriptConfigs,proto3" json:"script_configs,omitempty"` + Version uint32 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` // must be 1 or 2 + NumInputs uint32 `protobuf:"varint,5,opt,name=num_inputs,json=numInputs,proto3" json:"num_inputs,omitempty"` + NumOutputs uint32 `protobuf:"varint,6,opt,name=num_outputs,json=numOutputs,proto3" json:"num_outputs,omitempty"` + Locktime uint32 `protobuf:"varint,7,opt,name=locktime,proto3" json:"locktime,omitempty"` // must be <500000000 } -func (m *BTCSignInitRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BTCSignInitRequest.Unmarshal(m, b) -} -func (m *BTCSignInitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BTCSignInitRequest.Marshal(b, m, deterministic) -} -func (m *BTCSignInitRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BTCSignInitRequest.Merge(m, src) +func (x *BTCSignInitRequest) Reset() { + *x = BTCSignInitRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_btc_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BTCSignInitRequest) XXX_Size() int { - return xxx_messageInfo_BTCSignInitRequest.Size(m) + +func (x *BTCSignInitRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BTCSignInitRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BTCSignInitRequest.DiscardUnknown(m) + +func (*BTCSignInitRequest) ProtoMessage() {} + +func (x *BTCSignInitRequest) ProtoReflect() protoreflect.Message { + mi := &file_btc_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) } -var xxx_messageInfo_BTCSignInitRequest proto.InternalMessageInfo +// Deprecated: Use BTCSignInitRequest.ProtoReflect.Descriptor instead. +func (*BTCSignInitRequest) Descriptor() ([]byte, []int) { + return file_btc_proto_rawDescGZIP(), []int{3} +} -func (m *BTCSignInitRequest) GetCoin() BTCCoin { - if m != nil { - return m.Coin +func (x *BTCSignInitRequest) GetCoin() BTCCoin { + if x != nil { + return x.Coin } return BTCCoin_BTC } -func (m *BTCSignInitRequest) GetScriptConfigs() []*BTCScriptConfigWithKeypath { - if m != nil { - return m.ScriptConfigs +func (x *BTCSignInitRequest) GetScriptConfigs() []*BTCScriptConfigWithKeypath { + if x != nil { + return x.ScriptConfigs } return nil } -func (m *BTCSignInitRequest) GetVersion() uint32 { - if m != nil { - return m.Version +func (x *BTCSignInitRequest) GetVersion() uint32 { + if x != nil { + return x.Version } return 0 } -func (m *BTCSignInitRequest) GetNumInputs() uint32 { - if m != nil { - return m.NumInputs +func (x *BTCSignInitRequest) GetNumInputs() uint32 { + if x != nil { + return x.NumInputs } return 0 } -func (m *BTCSignInitRequest) GetNumOutputs() uint32 { - if m != nil { - return m.NumOutputs +func (x *BTCSignInitRequest) GetNumOutputs() uint32 { + if x != nil { + return x.NumOutputs } return 0 } -func (m *BTCSignInitRequest) GetLocktime() uint32 { - if m != nil { - return m.Locktime +func (x *BTCSignInitRequest) GetLocktime() uint32 { + if x != nil { + return x.Locktime } return 0 } type BTCSignNextResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Type BTCSignNextResponse_Type `protobuf:"varint,1,opt,name=type,proto3,enum=shiftcrypto.bitbox02.BTCSignNextResponse_Type" json:"type,omitempty"` // index of the current input or output Index uint32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` - HasSignature bool `protobuf:"varint,3,opt,name=has_signature,json=hasSignature,proto3" json:"has_signature,omitempty"` + HasSignature bool `protobuf:"varint,3,opt,name=has_signature,json=hasSignature,proto3" json:"has_signature,omitempty"` // only as a response to BTCSignInputRequest // 64 bytes (32 bytes big endian R, 32 bytes big endian S). Only if has_signature is true. Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` // Previous tx's input/output index in case of PREV_INPUT or PREV_OUTPUT, for the input at `index`. PrevIndex uint32 `protobuf:"varint,5,opt,name=prev_index,json=prevIndex,proto3" json:"prev_index,omitempty"` AntiKleptoSignerCommitment *AntiKleptoSignerCommitment `protobuf:"bytes,6,opt,name=anti_klepto_signer_commitment,json=antiKleptoSignerCommitment,proto3" json:"anti_klepto_signer_commitment,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *BTCSignNextResponse) Reset() { *m = BTCSignNextResponse{} } -func (m *BTCSignNextResponse) String() string { return proto.CompactTextString(m) } -func (*BTCSignNextResponse) ProtoMessage() {} -func (*BTCSignNextResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a38f9ffa5c78f451, []int{4} +func (x *BTCSignNextResponse) Reset() { + *x = BTCSignNextResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_btc_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BTCSignNextResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BTCSignNextResponse.Unmarshal(m, b) -} -func (m *BTCSignNextResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BTCSignNextResponse.Marshal(b, m, deterministic) +func (x *BTCSignNextResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BTCSignNextResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BTCSignNextResponse.Merge(m, src) -} -func (m *BTCSignNextResponse) XXX_Size() int { - return xxx_messageInfo_BTCSignNextResponse.Size(m) -} -func (m *BTCSignNextResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BTCSignNextResponse.DiscardUnknown(m) + +func (*BTCSignNextResponse) ProtoMessage() {} + +func (x *BTCSignNextResponse) ProtoReflect() protoreflect.Message { + mi := &file_btc_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) } -var xxx_messageInfo_BTCSignNextResponse proto.InternalMessageInfo +// Deprecated: Use BTCSignNextResponse.ProtoReflect.Descriptor instead. +func (*BTCSignNextResponse) Descriptor() ([]byte, []int) { + return file_btc_proto_rawDescGZIP(), []int{4} +} -func (m *BTCSignNextResponse) GetType() BTCSignNextResponse_Type { - if m != nil { - return m.Type +func (x *BTCSignNextResponse) GetType() BTCSignNextResponse_Type { + if x != nil { + return x.Type } return BTCSignNextResponse_INPUT } -func (m *BTCSignNextResponse) GetIndex() uint32 { - if m != nil { - return m.Index +func (x *BTCSignNextResponse) GetIndex() uint32 { + if x != nil { + return x.Index } return 0 } -func (m *BTCSignNextResponse) GetHasSignature() bool { - if m != nil { - return m.HasSignature +func (x *BTCSignNextResponse) GetHasSignature() bool { + if x != nil { + return x.HasSignature } return false } -func (m *BTCSignNextResponse) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *BTCSignNextResponse) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } -func (m *BTCSignNextResponse) GetPrevIndex() uint32 { - if m != nil { - return m.PrevIndex +func (x *BTCSignNextResponse) GetPrevIndex() uint32 { + if x != nil { + return x.PrevIndex } return 0 } -func (m *BTCSignNextResponse) GetAntiKleptoSignerCommitment() *AntiKleptoSignerCommitment { - if m != nil { - return m.AntiKleptoSignerCommitment +func (x *BTCSignNextResponse) GetAntiKleptoSignerCommitment() *AntiKleptoSignerCommitment { + if x != nil { + return x.AntiKleptoSignerCommitment } return nil } type BTCSignInputRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + PrevOutHash []byte `protobuf:"bytes,1,opt,name=prevOutHash,proto3" json:"prevOutHash,omitempty"` PrevOutIndex uint32 `protobuf:"varint,2,opt,name=prevOutIndex,proto3" json:"prevOutIndex,omitempty"` PrevOutValue uint64 `protobuf:"varint,3,opt,name=prevOutValue,proto3" json:"prevOutValue,omitempty"` - Sequence uint32 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` - Keypath []uint32 `protobuf:"varint,6,rep,packed,name=keypath,proto3" json:"keypath,omitempty"` + Sequence uint32 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` // must be 0xffffffff-2, 0xffffffff-1 or 0xffffffff + Keypath []uint32 `protobuf:"varint,6,rep,packed,name=keypath,proto3" json:"keypath,omitempty"` // all inputs must be ours. // References a script config from BTCSignInitRequest - ScriptConfigIndex uint32 `protobuf:"varint,7,opt,name=script_config_index,json=scriptConfigIndex,proto3" json:"script_config_index,omitempty"` - HostNonceCommitment *AntiKleptoHostNonceCommitment `protobuf:"bytes,8,opt,name=host_nonce_commitment,json=hostNonceCommitment,proto3" json:"host_nonce_commitment,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ScriptConfigIndex uint32 `protobuf:"varint,7,opt,name=script_config_index,json=scriptConfigIndex,proto3" json:"script_config_index,omitempty"` + HostNonceCommitment *AntiKleptoHostNonceCommitment `protobuf:"bytes,8,opt,name=host_nonce_commitment,json=hostNonceCommitment,proto3" json:"host_nonce_commitment,omitempty"` } -func (m *BTCSignInputRequest) Reset() { *m = BTCSignInputRequest{} } -func (m *BTCSignInputRequest) String() string { return proto.CompactTextString(m) } -func (*BTCSignInputRequest) ProtoMessage() {} -func (*BTCSignInputRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a38f9ffa5c78f451, []int{5} +func (x *BTCSignInputRequest) Reset() { + *x = BTCSignInputRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_btc_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BTCSignInputRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BTCSignInputRequest.Unmarshal(m, b) +func (x *BTCSignInputRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BTCSignInputRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BTCSignInputRequest.Marshal(b, m, deterministic) -} -func (m *BTCSignInputRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BTCSignInputRequest.Merge(m, src) -} -func (m *BTCSignInputRequest) XXX_Size() int { - return xxx_messageInfo_BTCSignInputRequest.Size(m) -} -func (m *BTCSignInputRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BTCSignInputRequest.DiscardUnknown(m) + +func (*BTCSignInputRequest) ProtoMessage() {} + +func (x *BTCSignInputRequest) ProtoReflect() protoreflect.Message { + mi := &file_btc_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) } -var xxx_messageInfo_BTCSignInputRequest proto.InternalMessageInfo +// Deprecated: Use BTCSignInputRequest.ProtoReflect.Descriptor instead. +func (*BTCSignInputRequest) Descriptor() ([]byte, []int) { + return file_btc_proto_rawDescGZIP(), []int{5} +} -func (m *BTCSignInputRequest) GetPrevOutHash() []byte { - if m != nil { - return m.PrevOutHash +func (x *BTCSignInputRequest) GetPrevOutHash() []byte { + if x != nil { + return x.PrevOutHash } return nil } -func (m *BTCSignInputRequest) GetPrevOutIndex() uint32 { - if m != nil { - return m.PrevOutIndex +func (x *BTCSignInputRequest) GetPrevOutIndex() uint32 { + if x != nil { + return x.PrevOutIndex } return 0 } -func (m *BTCSignInputRequest) GetPrevOutValue() uint64 { - if m != nil { - return m.PrevOutValue +func (x *BTCSignInputRequest) GetPrevOutValue() uint64 { + if x != nil { + return x.PrevOutValue } return 0 } -func (m *BTCSignInputRequest) GetSequence() uint32 { - if m != nil { - return m.Sequence +func (x *BTCSignInputRequest) GetSequence() uint32 { + if x != nil { + return x.Sequence } return 0 } -func (m *BTCSignInputRequest) GetKeypath() []uint32 { - if m != nil { - return m.Keypath +func (x *BTCSignInputRequest) GetKeypath() []uint32 { + if x != nil { + return x.Keypath } return nil } -func (m *BTCSignInputRequest) GetScriptConfigIndex() uint32 { - if m != nil { - return m.ScriptConfigIndex +func (x *BTCSignInputRequest) GetScriptConfigIndex() uint32 { + if x != nil { + return x.ScriptConfigIndex } return 0 } -func (m *BTCSignInputRequest) GetHostNonceCommitment() *AntiKleptoHostNonceCommitment { - if m != nil { - return m.HostNonceCommitment +func (x *BTCSignInputRequest) GetHostNonceCommitment() *AntiKleptoHostNonceCommitment { + if x != nil { + return x.HostNonceCommitment } return nil } type BTCSignOutputRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Ours bool `protobuf:"varint,1,opt,name=ours,proto3" json:"ours,omitempty"` - Type BTCOutputType `protobuf:"varint,2,opt,name=type,proto3,enum=shiftcrypto.bitbox02.BTCOutputType" json:"type,omitempty"` + Type BTCOutputType `protobuf:"varint,2,opt,name=type,proto3,enum=shiftcrypto.bitbox02.BTCOutputType" json:"type,omitempty"` // if ours is false // 20 bytes for p2pkh, p2sh, pw2wpkh. 32 bytes for p2wsh. Value uint64 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"` - Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` - Keypath []uint32 `protobuf:"varint,5,rep,packed,name=keypath,proto3" json:"keypath,omitempty"` + Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` // if ours is false. Renamed from `hash`. + Keypath []uint32 `protobuf:"varint,5,rep,packed,name=keypath,proto3" json:"keypath,omitempty"` // if ours is true // If ours is true. References a script config from BTCSignInitRequest - ScriptConfigIndex uint32 `protobuf:"varint,6,opt,name=script_config_index,json=scriptConfigIndex,proto3" json:"script_config_index,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ScriptConfigIndex uint32 `protobuf:"varint,6,opt,name=script_config_index,json=scriptConfigIndex,proto3" json:"script_config_index,omitempty"` } -func (m *BTCSignOutputRequest) Reset() { *m = BTCSignOutputRequest{} } -func (m *BTCSignOutputRequest) String() string { return proto.CompactTextString(m) } -func (*BTCSignOutputRequest) ProtoMessage() {} -func (*BTCSignOutputRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a38f9ffa5c78f451, []int{6} +func (x *BTCSignOutputRequest) Reset() { + *x = BTCSignOutputRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_btc_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BTCSignOutputRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BTCSignOutputRequest.Unmarshal(m, b) -} -func (m *BTCSignOutputRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BTCSignOutputRequest.Marshal(b, m, deterministic) -} -func (m *BTCSignOutputRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BTCSignOutputRequest.Merge(m, src) -} -func (m *BTCSignOutputRequest) XXX_Size() int { - return xxx_messageInfo_BTCSignOutputRequest.Size(m) -} -func (m *BTCSignOutputRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BTCSignOutputRequest.DiscardUnknown(m) +func (x *BTCSignOutputRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_BTCSignOutputRequest proto.InternalMessageInfo +func (*BTCSignOutputRequest) ProtoMessage() {} -func (m *BTCSignOutputRequest) GetOurs() bool { - if m != nil { - return m.Ours +func (x *BTCSignOutputRequest) ProtoReflect() protoreflect.Message { + mi := &file_btc_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 false + return mi.MessageOf(x) } -func (m *BTCSignOutputRequest) GetType() BTCOutputType { - if m != nil { - return m.Type +// Deprecated: Use BTCSignOutputRequest.ProtoReflect.Descriptor instead. +func (*BTCSignOutputRequest) Descriptor() ([]byte, []int) { + return file_btc_proto_rawDescGZIP(), []int{6} +} + +func (x *BTCSignOutputRequest) GetOurs() bool { + if x != nil { + return x.Ours + } + return false +} + +func (x *BTCSignOutputRequest) GetType() BTCOutputType { + if x != nil { + return x.Type } return BTCOutputType_UNKNOWN } -func (m *BTCSignOutputRequest) GetValue() uint64 { - if m != nil { - return m.Value +func (x *BTCSignOutputRequest) GetValue() uint64 { + if x != nil { + return x.Value } return 0 } -func (m *BTCSignOutputRequest) GetPayload() []byte { - if m != nil { - return m.Payload +func (x *BTCSignOutputRequest) GetPayload() []byte { + if x != nil { + return x.Payload } return nil } -func (m *BTCSignOutputRequest) GetKeypath() []uint32 { - if m != nil { - return m.Keypath +func (x *BTCSignOutputRequest) GetKeypath() []uint32 { + if x != nil { + return x.Keypath } return nil } -func (m *BTCSignOutputRequest) GetScriptConfigIndex() uint32 { - if m != nil { - return m.ScriptConfigIndex +func (x *BTCSignOutputRequest) GetScriptConfigIndex() uint32 { + if x != nil { + return x.ScriptConfigIndex } return 0 } type BTCScriptConfigRegistration struct { - Coin BTCCoin `protobuf:"varint,1,opt,name=coin,proto3,enum=shiftcrypto.bitbox02.BTCCoin" json:"coin,omitempty"` - ScriptConfig *BTCScriptConfig `protobuf:"bytes,2,opt,name=script_config,json=scriptConfig,proto3" json:"script_config,omitempty"` - Keypath []uint32 `protobuf:"varint,3,rep,packed,name=keypath,proto3" json:"keypath,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *BTCScriptConfigRegistration) Reset() { *m = BTCScriptConfigRegistration{} } -func (m *BTCScriptConfigRegistration) String() string { return proto.CompactTextString(m) } -func (*BTCScriptConfigRegistration) ProtoMessage() {} -func (*BTCScriptConfigRegistration) Descriptor() ([]byte, []int) { - return fileDescriptor_a38f9ffa5c78f451, []int{7} + Coin BTCCoin `protobuf:"varint,1,opt,name=coin,proto3,enum=shiftcrypto.bitbox02.BTCCoin" json:"coin,omitempty"` + ScriptConfig *BTCScriptConfig `protobuf:"bytes,2,opt,name=script_config,json=scriptConfig,proto3" json:"script_config,omitempty"` + Keypath []uint32 `protobuf:"varint,3,rep,packed,name=keypath,proto3" json:"keypath,omitempty"` } -func (m *BTCScriptConfigRegistration) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BTCScriptConfigRegistration.Unmarshal(m, b) -} -func (m *BTCScriptConfigRegistration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BTCScriptConfigRegistration.Marshal(b, m, deterministic) -} -func (m *BTCScriptConfigRegistration) XXX_Merge(src proto.Message) { - xxx_messageInfo_BTCScriptConfigRegistration.Merge(m, src) +func (x *BTCScriptConfigRegistration) Reset() { + *x = BTCScriptConfigRegistration{} + if protoimpl.UnsafeEnabled { + mi := &file_btc_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BTCScriptConfigRegistration) XXX_Size() int { - return xxx_messageInfo_BTCScriptConfigRegistration.Size(m) + +func (x *BTCScriptConfigRegistration) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BTCScriptConfigRegistration) XXX_DiscardUnknown() { - xxx_messageInfo_BTCScriptConfigRegistration.DiscardUnknown(m) + +func (*BTCScriptConfigRegistration) ProtoMessage() {} + +func (x *BTCScriptConfigRegistration) ProtoReflect() protoreflect.Message { + mi := &file_btc_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) } -var xxx_messageInfo_BTCScriptConfigRegistration proto.InternalMessageInfo +// Deprecated: Use BTCScriptConfigRegistration.ProtoReflect.Descriptor instead. +func (*BTCScriptConfigRegistration) Descriptor() ([]byte, []int) { + return file_btc_proto_rawDescGZIP(), []int{7} +} -func (m *BTCScriptConfigRegistration) GetCoin() BTCCoin { - if m != nil { - return m.Coin +func (x *BTCScriptConfigRegistration) GetCoin() BTCCoin { + if x != nil { + return x.Coin } return BTCCoin_BTC } -func (m *BTCScriptConfigRegistration) GetScriptConfig() *BTCScriptConfig { - if m != nil { - return m.ScriptConfig +func (x *BTCScriptConfigRegistration) GetScriptConfig() *BTCScriptConfig { + if x != nil { + return x.ScriptConfig } return nil } -func (m *BTCScriptConfigRegistration) GetKeypath() []uint32 { - if m != nil { - return m.Keypath +func (x *BTCScriptConfigRegistration) GetKeypath() []uint32 { + if x != nil { + return x.Keypath } return nil } type BTCSuccess struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *BTCSuccess) Reset() { *m = BTCSuccess{} } -func (m *BTCSuccess) String() string { return proto.CompactTextString(m) } -func (*BTCSuccess) ProtoMessage() {} -func (*BTCSuccess) Descriptor() ([]byte, []int) { - return fileDescriptor_a38f9ffa5c78f451, []int{8} +func (x *BTCSuccess) Reset() { + *x = BTCSuccess{} + if protoimpl.UnsafeEnabled { + mi := &file_btc_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BTCSuccess) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BTCSuccess.Unmarshal(m, b) -} -func (m *BTCSuccess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BTCSuccess.Marshal(b, m, deterministic) -} -func (m *BTCSuccess) XXX_Merge(src proto.Message) { - xxx_messageInfo_BTCSuccess.Merge(m, src) -} -func (m *BTCSuccess) XXX_Size() int { - return xxx_messageInfo_BTCSuccess.Size(m) -} -func (m *BTCSuccess) XXX_DiscardUnknown() { - xxx_messageInfo_BTCSuccess.DiscardUnknown(m) +func (x *BTCSuccess) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_BTCSuccess proto.InternalMessageInfo +func (*BTCSuccess) ProtoMessage() {} -type BTCIsScriptConfigRegisteredRequest struct { - Registration *BTCScriptConfigRegistration `protobuf:"bytes,1,opt,name=registration,proto3" json:"registration,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *BTCSuccess) ProtoReflect() protoreflect.Message { + mi := &file_btc_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *BTCIsScriptConfigRegisteredRequest) Reset() { *m = BTCIsScriptConfigRegisteredRequest{} } -func (m *BTCIsScriptConfigRegisteredRequest) String() string { return proto.CompactTextString(m) } -func (*BTCIsScriptConfigRegisteredRequest) ProtoMessage() {} -func (*BTCIsScriptConfigRegisteredRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a38f9ffa5c78f451, []int{9} +// Deprecated: Use BTCSuccess.ProtoReflect.Descriptor instead. +func (*BTCSuccess) Descriptor() ([]byte, []int) { + return file_btc_proto_rawDescGZIP(), []int{8} } -func (m *BTCIsScriptConfigRegisteredRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BTCIsScriptConfigRegisteredRequest.Unmarshal(m, b) -} -func (m *BTCIsScriptConfigRegisteredRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BTCIsScriptConfigRegisteredRequest.Marshal(b, m, deterministic) +type BTCIsScriptConfigRegisteredRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Registration *BTCScriptConfigRegistration `protobuf:"bytes,1,opt,name=registration,proto3" json:"registration,omitempty"` } -func (m *BTCIsScriptConfigRegisteredRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BTCIsScriptConfigRegisteredRequest.Merge(m, src) + +func (x *BTCIsScriptConfigRegisteredRequest) Reset() { + *x = BTCIsScriptConfigRegisteredRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_btc_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BTCIsScriptConfigRegisteredRequest) XXX_Size() int { - return xxx_messageInfo_BTCIsScriptConfigRegisteredRequest.Size(m) + +func (x *BTCIsScriptConfigRegisteredRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BTCIsScriptConfigRegisteredRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BTCIsScriptConfigRegisteredRequest.DiscardUnknown(m) + +func (*BTCIsScriptConfigRegisteredRequest) ProtoMessage() {} + +func (x *BTCIsScriptConfigRegisteredRequest) ProtoReflect() protoreflect.Message { + mi := &file_btc_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_BTCIsScriptConfigRegisteredRequest proto.InternalMessageInfo +// Deprecated: Use BTCIsScriptConfigRegisteredRequest.ProtoReflect.Descriptor instead. +func (*BTCIsScriptConfigRegisteredRequest) Descriptor() ([]byte, []int) { + return file_btc_proto_rawDescGZIP(), []int{9} +} -func (m *BTCIsScriptConfigRegisteredRequest) GetRegistration() *BTCScriptConfigRegistration { - if m != nil { - return m.Registration +func (x *BTCIsScriptConfigRegisteredRequest) GetRegistration() *BTCScriptConfigRegistration { + if x != nil { + return x.Registration } return nil } type BTCIsScriptConfigRegisteredResponse struct { - IsRegistered bool `protobuf:"varint,1,opt,name=is_registered,json=isRegistered,proto3" json:"is_registered,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *BTCIsScriptConfigRegisteredResponse) Reset() { *m = BTCIsScriptConfigRegisteredResponse{} } -func (m *BTCIsScriptConfigRegisteredResponse) String() string { return proto.CompactTextString(m) } -func (*BTCIsScriptConfigRegisteredResponse) ProtoMessage() {} -func (*BTCIsScriptConfigRegisteredResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a38f9ffa5c78f451, []int{10} + IsRegistered bool `protobuf:"varint,1,opt,name=is_registered,json=isRegistered,proto3" json:"is_registered,omitempty"` } -func (m *BTCIsScriptConfigRegisteredResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BTCIsScriptConfigRegisteredResponse.Unmarshal(m, b) -} -func (m *BTCIsScriptConfigRegisteredResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BTCIsScriptConfigRegisteredResponse.Marshal(b, m, deterministic) -} -func (m *BTCIsScriptConfigRegisteredResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BTCIsScriptConfigRegisteredResponse.Merge(m, src) +func (x *BTCIsScriptConfigRegisteredResponse) Reset() { + *x = BTCIsScriptConfigRegisteredResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_btc_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BTCIsScriptConfigRegisteredResponse) XXX_Size() int { - return xxx_messageInfo_BTCIsScriptConfigRegisteredResponse.Size(m) + +func (x *BTCIsScriptConfigRegisteredResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BTCIsScriptConfigRegisteredResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BTCIsScriptConfigRegisteredResponse.DiscardUnknown(m) + +func (*BTCIsScriptConfigRegisteredResponse) ProtoMessage() {} + +func (x *BTCIsScriptConfigRegisteredResponse) ProtoReflect() protoreflect.Message { + mi := &file_btc_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_BTCIsScriptConfigRegisteredResponse proto.InternalMessageInfo +// Deprecated: Use BTCIsScriptConfigRegisteredResponse.ProtoReflect.Descriptor instead. +func (*BTCIsScriptConfigRegisteredResponse) Descriptor() ([]byte, []int) { + return file_btc_proto_rawDescGZIP(), []int{10} +} -func (m *BTCIsScriptConfigRegisteredResponse) GetIsRegistered() bool { - if m != nil { - return m.IsRegistered +func (x *BTCIsScriptConfigRegisteredResponse) GetIsRegistered() bool { + if x != nil { + return x.IsRegistered } return false } type BTCRegisterScriptConfigRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Registration *BTCScriptConfigRegistration `protobuf:"bytes,1,opt,name=registration,proto3" json:"registration,omitempty"` // If empty, the name is entered on the device instead. - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - XpubType BTCRegisterScriptConfigRequest_XPubType `protobuf:"varint,3,opt,name=xpub_type,json=xpubType,proto3,enum=shiftcrypto.bitbox02.BTCRegisterScriptConfigRequest_XPubType" json:"xpub_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + XpubType BTCRegisterScriptConfigRequest_XPubType `protobuf:"varint,3,opt,name=xpub_type,json=xpubType,proto3,enum=shiftcrypto.bitbox02.BTCRegisterScriptConfigRequest_XPubType" json:"xpub_type,omitempty"` } -func (m *BTCRegisterScriptConfigRequest) Reset() { *m = BTCRegisterScriptConfigRequest{} } -func (m *BTCRegisterScriptConfigRequest) String() string { return proto.CompactTextString(m) } -func (*BTCRegisterScriptConfigRequest) ProtoMessage() {} -func (*BTCRegisterScriptConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a38f9ffa5c78f451, []int{11} +func (x *BTCRegisterScriptConfigRequest) Reset() { + *x = BTCRegisterScriptConfigRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_btc_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BTCRegisterScriptConfigRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BTCRegisterScriptConfigRequest.Unmarshal(m, b) -} -func (m *BTCRegisterScriptConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BTCRegisterScriptConfigRequest.Marshal(b, m, deterministic) -} -func (m *BTCRegisterScriptConfigRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BTCRegisterScriptConfigRequest.Merge(m, src) +func (x *BTCRegisterScriptConfigRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BTCRegisterScriptConfigRequest) XXX_Size() int { - return xxx_messageInfo_BTCRegisterScriptConfigRequest.Size(m) -} -func (m *BTCRegisterScriptConfigRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BTCRegisterScriptConfigRequest.DiscardUnknown(m) + +func (*BTCRegisterScriptConfigRequest) ProtoMessage() {} + +func (x *BTCRegisterScriptConfigRequest) ProtoReflect() protoreflect.Message { + mi := &file_btc_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_BTCRegisterScriptConfigRequest proto.InternalMessageInfo +// Deprecated: Use BTCRegisterScriptConfigRequest.ProtoReflect.Descriptor instead. +func (*BTCRegisterScriptConfigRequest) Descriptor() ([]byte, []int) { + return file_btc_proto_rawDescGZIP(), []int{11} +} -func (m *BTCRegisterScriptConfigRequest) GetRegistration() *BTCScriptConfigRegistration { - if m != nil { - return m.Registration +func (x *BTCRegisterScriptConfigRequest) GetRegistration() *BTCScriptConfigRegistration { + if x != nil { + return x.Registration } return nil } -func (m *BTCRegisterScriptConfigRequest) GetName() string { - if m != nil { - return m.Name +func (x *BTCRegisterScriptConfigRequest) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *BTCRegisterScriptConfigRequest) GetXpubType() BTCRegisterScriptConfigRequest_XPubType { - if m != nil { - return m.XpubType +func (x *BTCRegisterScriptConfigRequest) GetXpubType() BTCRegisterScriptConfigRequest_XPubType { + if x != nil { + return x.XpubType } return BTCRegisterScriptConfigRequest_AUTO_ELECTRUM } type BTCPrevTxInitRequest struct { - Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` - NumInputs uint32 `protobuf:"varint,2,opt,name=num_inputs,json=numInputs,proto3" json:"num_inputs,omitempty"` - NumOutputs uint32 `protobuf:"varint,3,opt,name=num_outputs,json=numOutputs,proto3" json:"num_outputs,omitempty"` - Locktime uint32 `protobuf:"varint,4,opt,name=locktime,proto3" json:"locktime,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BTCPrevTxInitRequest) Reset() { *m = BTCPrevTxInitRequest{} } -func (m *BTCPrevTxInitRequest) String() string { return proto.CompactTextString(m) } -func (*BTCPrevTxInitRequest) ProtoMessage() {} -func (*BTCPrevTxInitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a38f9ffa5c78f451, []int{12} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *BTCPrevTxInitRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BTCPrevTxInitRequest.Unmarshal(m, b) + Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` + NumInputs uint32 `protobuf:"varint,2,opt,name=num_inputs,json=numInputs,proto3" json:"num_inputs,omitempty"` + NumOutputs uint32 `protobuf:"varint,3,opt,name=num_outputs,json=numOutputs,proto3" json:"num_outputs,omitempty"` + Locktime uint32 `protobuf:"varint,4,opt,name=locktime,proto3" json:"locktime,omitempty"` } -func (m *BTCPrevTxInitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BTCPrevTxInitRequest.Marshal(b, m, deterministic) -} -func (m *BTCPrevTxInitRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BTCPrevTxInitRequest.Merge(m, src) + +func (x *BTCPrevTxInitRequest) Reset() { + *x = BTCPrevTxInitRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_btc_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BTCPrevTxInitRequest) XXX_Size() int { - return xxx_messageInfo_BTCPrevTxInitRequest.Size(m) + +func (x *BTCPrevTxInitRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BTCPrevTxInitRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BTCPrevTxInitRequest.DiscardUnknown(m) + +func (*BTCPrevTxInitRequest) ProtoMessage() {} + +func (x *BTCPrevTxInitRequest) ProtoReflect() protoreflect.Message { + mi := &file_btc_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_BTCPrevTxInitRequest proto.InternalMessageInfo +// Deprecated: Use BTCPrevTxInitRequest.ProtoReflect.Descriptor instead. +func (*BTCPrevTxInitRequest) Descriptor() ([]byte, []int) { + return file_btc_proto_rawDescGZIP(), []int{12} +} -func (m *BTCPrevTxInitRequest) GetVersion() uint32 { - if m != nil { - return m.Version +func (x *BTCPrevTxInitRequest) GetVersion() uint32 { + if x != nil { + return x.Version } return 0 } -func (m *BTCPrevTxInitRequest) GetNumInputs() uint32 { - if m != nil { - return m.NumInputs +func (x *BTCPrevTxInitRequest) GetNumInputs() uint32 { + if x != nil { + return x.NumInputs } return 0 } -func (m *BTCPrevTxInitRequest) GetNumOutputs() uint32 { - if m != nil { - return m.NumOutputs +func (x *BTCPrevTxInitRequest) GetNumOutputs() uint32 { + if x != nil { + return x.NumOutputs } return 0 } -func (m *BTCPrevTxInitRequest) GetLocktime() uint32 { - if m != nil { - return m.Locktime +func (x *BTCPrevTxInitRequest) GetLocktime() uint32 { + if x != nil { + return x.Locktime } return 0 } type BTCPrevTxInputRequest struct { - PrevOutHash []byte `protobuf:"bytes,1,opt,name=prev_out_hash,json=prevOutHash,proto3" json:"prev_out_hash,omitempty"` - PrevOutIndex uint32 `protobuf:"varint,2,opt,name=prev_out_index,json=prevOutIndex,proto3" json:"prev_out_index,omitempty"` - SignatureScript []byte `protobuf:"bytes,3,opt,name=signature_script,json=signatureScript,proto3" json:"signature_script,omitempty"` - Sequence uint32 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BTCPrevTxInputRequest) Reset() { *m = BTCPrevTxInputRequest{} } -func (m *BTCPrevTxInputRequest) String() string { return proto.CompactTextString(m) } -func (*BTCPrevTxInputRequest) ProtoMessage() {} -func (*BTCPrevTxInputRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a38f9ffa5c78f451, []int{13} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *BTCPrevTxInputRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BTCPrevTxInputRequest.Unmarshal(m, b) -} -func (m *BTCPrevTxInputRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BTCPrevTxInputRequest.Marshal(b, m, deterministic) + PrevOutHash []byte `protobuf:"bytes,1,opt,name=prev_out_hash,json=prevOutHash,proto3" json:"prev_out_hash,omitempty"` + PrevOutIndex uint32 `protobuf:"varint,2,opt,name=prev_out_index,json=prevOutIndex,proto3" json:"prev_out_index,omitempty"` + SignatureScript []byte `protobuf:"bytes,3,opt,name=signature_script,json=signatureScript,proto3" json:"signature_script,omitempty"` + Sequence uint32 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` } -func (m *BTCPrevTxInputRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BTCPrevTxInputRequest.Merge(m, src) + +func (x *BTCPrevTxInputRequest) Reset() { + *x = BTCPrevTxInputRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_btc_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BTCPrevTxInputRequest) XXX_Size() int { - return xxx_messageInfo_BTCPrevTxInputRequest.Size(m) + +func (x *BTCPrevTxInputRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BTCPrevTxInputRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BTCPrevTxInputRequest.DiscardUnknown(m) + +func (*BTCPrevTxInputRequest) ProtoMessage() {} + +func (x *BTCPrevTxInputRequest) ProtoReflect() protoreflect.Message { + mi := &file_btc_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_BTCPrevTxInputRequest proto.InternalMessageInfo +// Deprecated: Use BTCPrevTxInputRequest.ProtoReflect.Descriptor instead. +func (*BTCPrevTxInputRequest) Descriptor() ([]byte, []int) { + return file_btc_proto_rawDescGZIP(), []int{13} +} -func (m *BTCPrevTxInputRequest) GetPrevOutHash() []byte { - if m != nil { - return m.PrevOutHash +func (x *BTCPrevTxInputRequest) GetPrevOutHash() []byte { + if x != nil { + return x.PrevOutHash } return nil } -func (m *BTCPrevTxInputRequest) GetPrevOutIndex() uint32 { - if m != nil { - return m.PrevOutIndex +func (x *BTCPrevTxInputRequest) GetPrevOutIndex() uint32 { + if x != nil { + return x.PrevOutIndex } return 0 } -func (m *BTCPrevTxInputRequest) GetSignatureScript() []byte { - if m != nil { - return m.SignatureScript +func (x *BTCPrevTxInputRequest) GetSignatureScript() []byte { + if x != nil { + return x.SignatureScript } return nil } -func (m *BTCPrevTxInputRequest) GetSequence() uint32 { - if m != nil { - return m.Sequence +func (x *BTCPrevTxInputRequest) GetSequence() uint32 { + if x != nil { + return x.Sequence } return 0 } type BTCPrevTxOutputRequest struct { - Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` - PubkeyScript []byte `protobuf:"bytes,2,opt,name=pubkey_script,json=pubkeyScript,proto3" json:"pubkey_script,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *BTCPrevTxOutputRequest) Reset() { *m = BTCPrevTxOutputRequest{} } -func (m *BTCPrevTxOutputRequest) String() string { return proto.CompactTextString(m) } -func (*BTCPrevTxOutputRequest) ProtoMessage() {} -func (*BTCPrevTxOutputRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a38f9ffa5c78f451, []int{14} + Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` + PubkeyScript []byte `protobuf:"bytes,2,opt,name=pubkey_script,json=pubkeyScript,proto3" json:"pubkey_script,omitempty"` } -func (m *BTCPrevTxOutputRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BTCPrevTxOutputRequest.Unmarshal(m, b) -} -func (m *BTCPrevTxOutputRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BTCPrevTxOutputRequest.Marshal(b, m, deterministic) -} -func (m *BTCPrevTxOutputRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BTCPrevTxOutputRequest.Merge(m, src) +func (x *BTCPrevTxOutputRequest) Reset() { + *x = BTCPrevTxOutputRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_btc_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BTCPrevTxOutputRequest) XXX_Size() int { - return xxx_messageInfo_BTCPrevTxOutputRequest.Size(m) + +func (x *BTCPrevTxOutputRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BTCPrevTxOutputRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BTCPrevTxOutputRequest.DiscardUnknown(m) + +func (*BTCPrevTxOutputRequest) ProtoMessage() {} + +func (x *BTCPrevTxOutputRequest) ProtoReflect() protoreflect.Message { + mi := &file_btc_proto_msgTypes[14] + 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) } -var xxx_messageInfo_BTCPrevTxOutputRequest proto.InternalMessageInfo +// Deprecated: Use BTCPrevTxOutputRequest.ProtoReflect.Descriptor instead. +func (*BTCPrevTxOutputRequest) Descriptor() ([]byte, []int) { + return file_btc_proto_rawDescGZIP(), []int{14} +} -func (m *BTCPrevTxOutputRequest) GetValue() uint64 { - if m != nil { - return m.Value +func (x *BTCPrevTxOutputRequest) GetValue() uint64 { + if x != nil { + return x.Value } return 0 } -func (m *BTCPrevTxOutputRequest) GetPubkeyScript() []byte { - if m != nil { - return m.PubkeyScript +func (x *BTCPrevTxOutputRequest) GetPubkeyScript() []byte { + if x != nil { + return x.PubkeyScript } return nil } type BTCSignMessageRequest struct { - Coin BTCCoin `protobuf:"varint,1,opt,name=coin,proto3,enum=shiftcrypto.bitbox02.BTCCoin" json:"coin,omitempty"` - ScriptConfig *BTCScriptConfigWithKeypath `protobuf:"bytes,2,opt,name=script_config,json=scriptConfig,proto3" json:"script_config,omitempty"` - Msg []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` - HostNonceCommitment *AntiKleptoHostNonceCommitment `protobuf:"bytes,4,opt,name=host_nonce_commitment,json=hostNonceCommitment,proto3" json:"host_nonce_commitment,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BTCSignMessageRequest) Reset() { *m = BTCSignMessageRequest{} } -func (m *BTCSignMessageRequest) String() string { return proto.CompactTextString(m) } -func (*BTCSignMessageRequest) ProtoMessage() {} -func (*BTCSignMessageRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a38f9ffa5c78f451, []int{15} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *BTCSignMessageRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BTCSignMessageRequest.Unmarshal(m, b) + Coin BTCCoin `protobuf:"varint,1,opt,name=coin,proto3,enum=shiftcrypto.bitbox02.BTCCoin" json:"coin,omitempty"` + ScriptConfig *BTCScriptConfigWithKeypath `protobuf:"bytes,2,opt,name=script_config,json=scriptConfig,proto3" json:"script_config,omitempty"` + Msg []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` + HostNonceCommitment *AntiKleptoHostNonceCommitment `protobuf:"bytes,4,opt,name=host_nonce_commitment,json=hostNonceCommitment,proto3" json:"host_nonce_commitment,omitempty"` } -func (m *BTCSignMessageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BTCSignMessageRequest.Marshal(b, m, deterministic) -} -func (m *BTCSignMessageRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BTCSignMessageRequest.Merge(m, src) + +func (x *BTCSignMessageRequest) Reset() { + *x = BTCSignMessageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_btc_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BTCSignMessageRequest) XXX_Size() int { - return xxx_messageInfo_BTCSignMessageRequest.Size(m) + +func (x *BTCSignMessageRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BTCSignMessageRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BTCSignMessageRequest.DiscardUnknown(m) + +func (*BTCSignMessageRequest) ProtoMessage() {} + +func (x *BTCSignMessageRequest) ProtoReflect() protoreflect.Message { + mi := &file_btc_proto_msgTypes[15] + 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) } -var xxx_messageInfo_BTCSignMessageRequest proto.InternalMessageInfo +// Deprecated: Use BTCSignMessageRequest.ProtoReflect.Descriptor instead. +func (*BTCSignMessageRequest) Descriptor() ([]byte, []int) { + return file_btc_proto_rawDescGZIP(), []int{15} +} -func (m *BTCSignMessageRequest) GetCoin() BTCCoin { - if m != nil { - return m.Coin +func (x *BTCSignMessageRequest) GetCoin() BTCCoin { + if x != nil { + return x.Coin } return BTCCoin_BTC } -func (m *BTCSignMessageRequest) GetScriptConfig() *BTCScriptConfigWithKeypath { - if m != nil { - return m.ScriptConfig +func (x *BTCSignMessageRequest) GetScriptConfig() *BTCScriptConfigWithKeypath { + if x != nil { + return x.ScriptConfig } return nil } -func (m *BTCSignMessageRequest) GetMsg() []byte { - if m != nil { - return m.Msg +func (x *BTCSignMessageRequest) GetMsg() []byte { + if x != nil { + return x.Msg } return nil } -func (m *BTCSignMessageRequest) GetHostNonceCommitment() *AntiKleptoHostNonceCommitment { - if m != nil { - return m.HostNonceCommitment +func (x *BTCSignMessageRequest) GetHostNonceCommitment() *AntiKleptoHostNonceCommitment { + if x != nil { + return x.HostNonceCommitment } return nil } type BTCSignMessageResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // 65 bytes (32 bytes big endian R, 32 bytes big endian S, 1 recid). - Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` } -func (m *BTCSignMessageResponse) Reset() { *m = BTCSignMessageResponse{} } -func (m *BTCSignMessageResponse) String() string { return proto.CompactTextString(m) } -func (*BTCSignMessageResponse) ProtoMessage() {} -func (*BTCSignMessageResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a38f9ffa5c78f451, []int{16} +func (x *BTCSignMessageResponse) Reset() { + *x = BTCSignMessageResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_btc_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BTCSignMessageResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BTCSignMessageResponse.Unmarshal(m, b) -} -func (m *BTCSignMessageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BTCSignMessageResponse.Marshal(b, m, deterministic) -} -func (m *BTCSignMessageResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BTCSignMessageResponse.Merge(m, src) +func (x *BTCSignMessageResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BTCSignMessageResponse) XXX_Size() int { - return xxx_messageInfo_BTCSignMessageResponse.Size(m) -} -func (m *BTCSignMessageResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BTCSignMessageResponse.DiscardUnknown(m) + +func (*BTCSignMessageResponse) ProtoMessage() {} + +func (x *BTCSignMessageResponse) ProtoReflect() protoreflect.Message { + mi := &file_btc_proto_msgTypes[16] + 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) } -var xxx_messageInfo_BTCSignMessageResponse proto.InternalMessageInfo +// Deprecated: Use BTCSignMessageResponse.ProtoReflect.Descriptor instead. +func (*BTCSignMessageResponse) Descriptor() ([]byte, []int) { + return file_btc_proto_rawDescGZIP(), []int{16} +} -func (m *BTCSignMessageResponse) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *BTCSignMessageResponse) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type BTCRequest struct { - // Types that are valid to be assigned to Request: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Request: // *BTCRequest_IsScriptConfigRegistered // *BTCRequest_RegisterScriptConfig // *BTCRequest_PrevtxInit @@ -1393,36 +1611,96 @@ type BTCRequest struct { // *BTCRequest_PrevtxOutput // *BTCRequest_SignMessage // *BTCRequest_AntikleptoSignature - Request isBTCRequest_Request `protobuf_oneof:"request"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Request isBTCRequest_Request `protobuf_oneof:"request"` +} + +func (x *BTCRequest) Reset() { + *x = BTCRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_btc_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *BTCRequest) Reset() { *m = BTCRequest{} } -func (m *BTCRequest) String() string { return proto.CompactTextString(m) } -func (*BTCRequest) ProtoMessage() {} +func (x *BTCRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BTCRequest) ProtoMessage() {} + +func (x *BTCRequest) ProtoReflect() protoreflect.Message { + mi := &file_btc_proto_msgTypes[17] + 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 BTCRequest.ProtoReflect.Descriptor instead. func (*BTCRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a38f9ffa5c78f451, []int{17} + return file_btc_proto_rawDescGZIP(), []int{17} } -func (m *BTCRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BTCRequest.Unmarshal(m, b) +func (m *BTCRequest) GetRequest() isBTCRequest_Request { + if m != nil { + return m.Request + } + return nil +} + +func (x *BTCRequest) GetIsScriptConfigRegistered() *BTCIsScriptConfigRegisteredRequest { + if x, ok := x.GetRequest().(*BTCRequest_IsScriptConfigRegistered); ok { + return x.IsScriptConfigRegistered + } + return nil +} + +func (x *BTCRequest) GetRegisterScriptConfig() *BTCRegisterScriptConfigRequest { + if x, ok := x.GetRequest().(*BTCRequest_RegisterScriptConfig); ok { + return x.RegisterScriptConfig + } + return nil } -func (m *BTCRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BTCRequest.Marshal(b, m, deterministic) + +func (x *BTCRequest) GetPrevtxInit() *BTCPrevTxInitRequest { + if x, ok := x.GetRequest().(*BTCRequest_PrevtxInit); ok { + return x.PrevtxInit + } + return nil } -func (m *BTCRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BTCRequest.Merge(m, src) + +func (x *BTCRequest) GetPrevtxInput() *BTCPrevTxInputRequest { + if x, ok := x.GetRequest().(*BTCRequest_PrevtxInput); ok { + return x.PrevtxInput + } + return nil } -func (m *BTCRequest) XXX_Size() int { - return xxx_messageInfo_BTCRequest.Size(m) + +func (x *BTCRequest) GetPrevtxOutput() *BTCPrevTxOutputRequest { + if x, ok := x.GetRequest().(*BTCRequest_PrevtxOutput); ok { + return x.PrevtxOutput + } + return nil } -func (m *BTCRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BTCRequest.DiscardUnknown(m) + +func (x *BTCRequest) GetSignMessage() *BTCSignMessageRequest { + if x, ok := x.GetRequest().(*BTCRequest_SignMessage); ok { + return x.SignMessage + } + return nil } -var xxx_messageInfo_BTCRequest proto.InternalMessageInfo +func (x *BTCRequest) GetAntikleptoSignature() *AntiKleptoSignatureRequest { + if x, ok := x.GetRequest().(*BTCRequest_AntikleptoSignature); ok { + return x.AntikleptoSignature + } + return nil +} type isBTCRequest_Request interface { isBTCRequest_Request() @@ -1470,113 +1748,94 @@ func (*BTCRequest_SignMessage) isBTCRequest_Request() {} func (*BTCRequest_AntikleptoSignature) isBTCRequest_Request() {} -func (m *BTCRequest) GetRequest() isBTCRequest_Request { - if m != nil { - return m.Request - } - return nil +type BTCResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Response: + // *BTCResponse_Success + // *BTCResponse_IsScriptConfigRegistered + // *BTCResponse_SignNext + // *BTCResponse_SignMessage + // *BTCResponse_AntikleptoSignerCommitment + Response isBTCResponse_Response `protobuf_oneof:"response"` } -func (m *BTCRequest) GetIsScriptConfigRegistered() *BTCIsScriptConfigRegisteredRequest { - if x, ok := m.GetRequest().(*BTCRequest_IsScriptConfigRegistered); ok { - return x.IsScriptConfigRegistered +func (x *BTCResponse) Reset() { + *x = BTCResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_btc_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *BTCRequest) GetRegisterScriptConfig() *BTCRegisterScriptConfigRequest { - if x, ok := m.GetRequest().(*BTCRequest_RegisterScriptConfig); ok { - return x.RegisterScriptConfig - } - return nil +func (x *BTCResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *BTCRequest) GetPrevtxInit() *BTCPrevTxInitRequest { - if x, ok := m.GetRequest().(*BTCRequest_PrevtxInit); ok { - return x.PrevtxInit +func (*BTCResponse) ProtoMessage() {} + +func (x *BTCResponse) ProtoReflect() protoreflect.Message { + mi := &file_btc_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *BTCRequest) GetPrevtxInput() *BTCPrevTxInputRequest { - if x, ok := m.GetRequest().(*BTCRequest_PrevtxInput); ok { - return x.PrevtxInput - } - return nil +// Deprecated: Use BTCResponse.ProtoReflect.Descriptor instead. +func (*BTCResponse) Descriptor() ([]byte, []int) { + return file_btc_proto_rawDescGZIP(), []int{18} } -func (m *BTCRequest) GetPrevtxOutput() *BTCPrevTxOutputRequest { - if x, ok := m.GetRequest().(*BTCRequest_PrevtxOutput); ok { - return x.PrevtxOutput +func (m *BTCResponse) GetResponse() isBTCResponse_Response { + if m != nil { + return m.Response } return nil } -func (m *BTCRequest) GetSignMessage() *BTCSignMessageRequest { - if x, ok := m.GetRequest().(*BTCRequest_SignMessage); ok { - return x.SignMessage +func (x *BTCResponse) GetSuccess() *BTCSuccess { + if x, ok := x.GetResponse().(*BTCResponse_Success); ok { + return x.Success } return nil } -func (m *BTCRequest) GetAntikleptoSignature() *AntiKleptoSignatureRequest { - if x, ok := m.GetRequest().(*BTCRequest_AntikleptoSignature); ok { - return x.AntikleptoSignature +func (x *BTCResponse) GetIsScriptConfigRegistered() *BTCIsScriptConfigRegisteredResponse { + if x, ok := x.GetResponse().(*BTCResponse_IsScriptConfigRegistered); ok { + return x.IsScriptConfigRegistered } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*BTCRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*BTCRequest_IsScriptConfigRegistered)(nil), - (*BTCRequest_RegisterScriptConfig)(nil), - (*BTCRequest_PrevtxInit)(nil), - (*BTCRequest_PrevtxInput)(nil), - (*BTCRequest_PrevtxOutput)(nil), - (*BTCRequest_SignMessage)(nil), - (*BTCRequest_AntikleptoSignature)(nil), +func (x *BTCResponse) GetSignNext() *BTCSignNextResponse { + if x, ok := x.GetResponse().(*BTCResponse_SignNext); ok { + return x.SignNext } + return nil } -type BTCResponse struct { - // Types that are valid to be assigned to Response: - // *BTCResponse_Success - // *BTCResponse_IsScriptConfigRegistered - // *BTCResponse_SignNext - // *BTCResponse_SignMessage - // *BTCResponse_AntikleptoSignerCommitment - Response isBTCResponse_Response `protobuf_oneof:"response"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BTCResponse) Reset() { *m = BTCResponse{} } -func (m *BTCResponse) String() string { return proto.CompactTextString(m) } -func (*BTCResponse) ProtoMessage() {} -func (*BTCResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a38f9ffa5c78f451, []int{18} +func (x *BTCResponse) GetSignMessage() *BTCSignMessageResponse { + if x, ok := x.GetResponse().(*BTCResponse_SignMessage); ok { + return x.SignMessage + } + return nil } -func (m *BTCResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BTCResponse.Unmarshal(m, b) -} -func (m *BTCResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BTCResponse.Marshal(b, m, deterministic) -} -func (m *BTCResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BTCResponse.Merge(m, src) -} -func (m *BTCResponse) XXX_Size() int { - return xxx_messageInfo_BTCResponse.Size(m) -} -func (m *BTCResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BTCResponse.DiscardUnknown(m) +func (x *BTCResponse) GetAntikleptoSignerCommitment() *AntiKleptoSignerCommitment { + if x, ok := x.GetResponse().(*BTCResponse_AntikleptoSignerCommitment); ok { + return x.AntikleptoSignerCommitment + } + return nil } -var xxx_messageInfo_BTCResponse proto.InternalMessageInfo - type isBTCResponse_Response interface { isBTCResponse_Response() } @@ -1611,196 +1870,788 @@ func (*BTCResponse_SignMessage) isBTCResponse_Response() {} func (*BTCResponse_AntikleptoSignerCommitment) isBTCResponse_Response() {} -func (m *BTCResponse) GetResponse() isBTCResponse_Response { - if m != nil { - return m.Response +type BTCScriptConfig_Multisig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Threshold uint32 `protobuf:"varint,1,opt,name=threshold,proto3" json:"threshold,omitempty"` + // xpubs are acount-level xpubs. Addresses are going to be derived from it using: m//. + // The number of xpubs defines the number of cosigners. + Xpubs []*XPub `protobuf:"bytes,2,rep,name=xpubs,proto3" json:"xpubs,omitempty"` + // Index to the xpub of our keystore in xpubs. The keypath to it is provided via + // BTCPubRequest/BTCSignInit. + OurXpubIndex uint32 `protobuf:"varint,3,opt,name=our_xpub_index,json=ourXpubIndex,proto3" json:"our_xpub_index,omitempty"` + ScriptType BTCScriptConfig_Multisig_ScriptType `protobuf:"varint,4,opt,name=script_type,json=scriptType,proto3,enum=shiftcrypto.bitbox02.BTCScriptConfig_Multisig_ScriptType" json:"script_type,omitempty"` +} + +func (x *BTCScriptConfig_Multisig) Reset() { + *x = BTCScriptConfig_Multisig{} + if protoimpl.UnsafeEnabled { + mi := &file_btc_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *BTCResponse) GetSuccess() *BTCSuccess { - if x, ok := m.GetResponse().(*BTCResponse_Success); ok { - return x.Success +func (x *BTCScriptConfig_Multisig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BTCScriptConfig_Multisig) ProtoMessage() {} + +func (x *BTCScriptConfig_Multisig) ProtoReflect() protoreflect.Message { + mi := &file_btc_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *BTCResponse) GetIsScriptConfigRegistered() *BTCIsScriptConfigRegisteredResponse { - if x, ok := m.GetResponse().(*BTCResponse_IsScriptConfigRegistered); ok { - return x.IsScriptConfigRegistered +// Deprecated: Use BTCScriptConfig_Multisig.ProtoReflect.Descriptor instead. +func (*BTCScriptConfig_Multisig) Descriptor() ([]byte, []int) { + return file_btc_proto_rawDescGZIP(), []int{0, 0} +} + +func (x *BTCScriptConfig_Multisig) GetThreshold() uint32 { + if x != nil { + return x.Threshold } - return nil + return 0 } -func (m *BTCResponse) GetSignNext() *BTCSignNextResponse { - if x, ok := m.GetResponse().(*BTCResponse_SignNext); ok { - return x.SignNext +func (x *BTCScriptConfig_Multisig) GetXpubs() []*XPub { + if x != nil { + return x.Xpubs } return nil } -func (m *BTCResponse) GetSignMessage() *BTCSignMessageResponse { - if x, ok := m.GetResponse().(*BTCResponse_SignMessage); ok { - return x.SignMessage +func (x *BTCScriptConfig_Multisig) GetOurXpubIndex() uint32 { + if x != nil { + return x.OurXpubIndex } - return nil + return 0 } -func (m *BTCResponse) GetAntikleptoSignerCommitment() *AntiKleptoSignerCommitment { - if x, ok := m.GetResponse().(*BTCResponse_AntikleptoSignerCommitment); ok { - return x.AntikleptoSignerCommitment +func (x *BTCScriptConfig_Multisig) GetScriptType() BTCScriptConfig_Multisig_ScriptType { + if x != nil { + return x.ScriptType } - return nil + return BTCScriptConfig_Multisig_P2WSH } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*BTCResponse) XXX_OneofWrappers() []interface{} { - return []interface{}{ +var File_btc_proto protoreflect.FileDescriptor + +var file_btc_proto_rawDesc = []byte{ + 0x0a, 0x09, 0x62, 0x74, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x73, 0x68, 0x69, + 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, + 0x32, 0x1a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x10, 0x61, 0x6e, 0x74, 0x69, 0x6b, 0x6c, 0x65, 0x70, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0xfb, 0x03, 0x0a, 0x0f, 0x42, 0x54, 0x43, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x53, 0x0a, 0x0b, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x73, 0x68, 0x69, + 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, + 0x32, 0x2e, 0x42, 0x54, 0x43, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0a, + 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x4c, 0x0a, 0x08, 0x6d, 0x75, + 0x6c, 0x74, 0x69, 0x73, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x73, + 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, + 0x78, 0x30, 0x32, 0x2e, 0x42, 0x54, 0x43, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x73, 0x69, 0x67, 0x48, 0x00, 0x52, 0x08, + 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x73, 0x69, 0x67, 0x1a, 0x85, 0x02, 0x0a, 0x08, 0x4d, 0x75, 0x6c, + 0x74, 0x69, 0x73, 0x69, 0x67, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, + 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, + 0x6f, 0x6c, 0x64, 0x12, 0x30, 0x0a, 0x05, 0x78, 0x70, 0x75, 0x62, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, + 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x58, 0x50, 0x75, 0x62, 0x52, 0x05, + 0x78, 0x70, 0x75, 0x62, 0x73, 0x12, 0x24, 0x0a, 0x0e, 0x6f, 0x75, 0x72, 0x5f, 0x78, 0x70, 0x75, + 0x62, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x6f, + 0x75, 0x72, 0x58, 0x70, 0x75, 0x62, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x5a, 0x0a, 0x0b, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x39, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, + 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x42, 0x54, 0x43, 0x53, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x73, 0x69, 0x67, + 0x2e, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x27, 0x0a, 0x0a, 0x53, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x32, 0x57, 0x53, 0x48, 0x10, 0x00, + 0x12, 0x0e, 0x0a, 0x0a, 0x50, 0x32, 0x57, 0x53, 0x48, 0x5f, 0x50, 0x32, 0x53, 0x48, 0x10, 0x01, + 0x22, 0x33, 0x0a, 0x0a, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, + 0x0a, 0x0b, 0x50, 0x32, 0x57, 0x50, 0x4b, 0x48, 0x5f, 0x50, 0x32, 0x53, 0x48, 0x10, 0x00, 0x12, + 0x0a, 0x0a, 0x06, 0x50, 0x32, 0x57, 0x50, 0x4b, 0x48, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x50, + 0x32, 0x54, 0x52, 0x10, 0x02, 0x42, 0x08, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, + 0xac, 0x03, 0x0a, 0x0d, 0x42, 0x54, 0x43, 0x50, 0x75, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x31, 0x0a, 0x04, 0x63, 0x6f, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x1d, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, + 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x42, 0x54, 0x43, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x04, + 0x63, 0x6f, 0x69, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x70, 0x61, 0x74, 0x68, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x70, 0x61, 0x74, 0x68, 0x12, 0x4b, + 0x0a, 0x09, 0x78, 0x70, 0x75, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x2c, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, + 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x42, 0x54, 0x43, 0x50, 0x75, 0x62, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x58, 0x50, 0x75, 0x62, 0x54, 0x79, 0x70, 0x65, 0x48, + 0x00, 0x52, 0x08, 0x78, 0x70, 0x75, 0x62, 0x54, 0x79, 0x70, 0x65, 0x12, 0x4c, 0x0a, 0x0d, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, + 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x42, 0x54, 0x43, 0x53, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x69, 0x73, + 0x70, 0x6c, 0x61, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x69, 0x73, 0x70, + 0x6c, 0x61, 0x79, 0x22, 0x8e, 0x01, 0x0a, 0x08, 0x58, 0x50, 0x75, 0x62, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x08, 0x0a, 0x04, 0x54, 0x50, 0x55, 0x42, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x58, 0x50, + 0x55, 0x42, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x59, 0x50, 0x55, 0x42, 0x10, 0x02, 0x12, 0x08, + 0x0a, 0x04, 0x5a, 0x50, 0x55, 0x42, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x56, 0x50, 0x55, 0x42, + 0x10, 0x04, 0x12, 0x08, 0x0a, 0x04, 0x55, 0x50, 0x55, 0x42, 0x10, 0x05, 0x12, 0x10, 0x0a, 0x0c, + 0x43, 0x41, 0x50, 0x49, 0x54, 0x41, 0x4c, 0x5f, 0x56, 0x50, 0x55, 0x42, 0x10, 0x06, 0x12, 0x10, + 0x0a, 0x0c, 0x43, 0x41, 0x50, 0x49, 0x54, 0x41, 0x4c, 0x5f, 0x5a, 0x50, 0x55, 0x42, 0x10, 0x07, + 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x41, 0x50, 0x49, 0x54, 0x41, 0x4c, 0x5f, 0x55, 0x50, 0x55, 0x42, + 0x10, 0x08, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x41, 0x50, 0x49, 0x54, 0x41, 0x4c, 0x5f, 0x59, 0x50, + 0x55, 0x42, 0x10, 0x09, 0x42, 0x08, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x22, 0x82, + 0x01, 0x0a, 0x1a, 0x42, 0x54, 0x43, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x57, 0x69, 0x74, 0x68, 0x4b, 0x65, 0x79, 0x70, 0x61, 0x74, 0x68, 0x12, 0x4a, 0x0a, + 0x0d, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, + 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x42, 0x54, 0x43, 0x53, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0c, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, + 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x70, + 0x61, 0x74, 0x68, 0x22, 0x96, 0x02, 0x0a, 0x12, 0x42, 0x54, 0x43, 0x53, 0x69, 0x67, 0x6e, 0x49, + 0x6e, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x04, 0x63, 0x6f, + 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, + 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, + 0x42, 0x54, 0x43, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x04, 0x63, 0x6f, 0x69, 0x6e, 0x12, 0x57, 0x0a, + 0x0e, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x42, 0x54, 0x43, + 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x57, 0x69, 0x74, 0x68, + 0x4b, 0x65, 0x79, 0x70, 0x61, 0x74, 0x68, 0x52, 0x0d, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x75, 0x6d, 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x6e, 0x75, 0x6d, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, + 0x1f, 0x0a, 0x0b, 0x6e, 0x75, 0x6d, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x6e, 0x75, 0x6d, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, + 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x74, 0x69, 0x6d, 0x65, 0x22, 0xb5, 0x03, 0x0a, + 0x13, 0x42, 0x54, 0x43, 0x53, 0x69, 0x67, 0x6e, 0x4e, 0x65, 0x78, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, + 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x42, 0x54, 0x43, 0x53, 0x69, 0x67, + 0x6e, 0x4e, 0x65, 0x78, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, + 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x23, + 0x0a, 0x0d, 0x68, 0x61, 0x73, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x68, 0x61, 0x73, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, + 0x75, 0x72, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, + 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x70, 0x72, 0x65, 0x76, 0x49, 0x6e, 0x64, 0x65, 0x78, + 0x12, 0x73, 0x0a, 0x1d, 0x61, 0x6e, 0x74, 0x69, 0x5f, 0x6b, 0x6c, 0x65, 0x70, 0x74, 0x6f, 0x5f, + 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, + 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x41, + 0x6e, 0x74, 0x69, 0x4b, 0x6c, 0x65, 0x70, 0x74, 0x6f, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x43, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x1a, 0x61, 0x6e, 0x74, 0x69, 0x4b, + 0x6c, 0x65, 0x70, 0x74, 0x6f, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x6d, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, + 0x05, 0x49, 0x4e, 0x50, 0x55, 0x54, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4f, 0x55, 0x54, 0x50, + 0x55, 0x54, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x0f, + 0x0a, 0x0b, 0x50, 0x52, 0x45, 0x56, 0x54, 0x58, 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x10, 0x03, 0x12, + 0x10, 0x0a, 0x0c, 0x50, 0x52, 0x45, 0x56, 0x54, 0x58, 0x5f, 0x49, 0x4e, 0x50, 0x55, 0x54, 0x10, + 0x04, 0x12, 0x11, 0x0a, 0x0d, 0x50, 0x52, 0x45, 0x56, 0x54, 0x58, 0x5f, 0x4f, 0x55, 0x54, 0x50, + 0x55, 0x54, 0x10, 0x05, 0x12, 0x0e, 0x0a, 0x0a, 0x48, 0x4f, 0x53, 0x54, 0x5f, 0x4e, 0x4f, 0x4e, + 0x43, 0x45, 0x10, 0x06, 0x22, 0xce, 0x02, 0x0a, 0x13, 0x42, 0x54, 0x43, 0x53, 0x69, 0x67, 0x6e, + 0x49, 0x6e, 0x70, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, + 0x70, 0x72, 0x65, 0x76, 0x4f, 0x75, 0x74, 0x48, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x0b, 0x70, 0x72, 0x65, 0x76, 0x4f, 0x75, 0x74, 0x48, 0x61, 0x73, 0x68, 0x12, 0x22, + 0x0a, 0x0c, 0x70, 0x72, 0x65, 0x76, 0x4f, 0x75, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x70, 0x72, 0x65, 0x76, 0x4f, 0x75, 0x74, 0x49, 0x6e, 0x64, + 0x65, 0x78, 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x72, 0x65, 0x76, 0x4f, 0x75, 0x74, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x70, 0x72, 0x65, 0x76, 0x4f, 0x75, + 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, + 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, + 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x70, 0x61, 0x74, 0x68, 0x18, 0x06, 0x20, + 0x03, 0x28, 0x0d, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x70, 0x61, 0x74, 0x68, 0x12, 0x2e, 0x0a, 0x13, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x69, 0x6e, + 0x64, 0x65, 0x78, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x67, 0x0a, 0x15, + 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x73, 0x68, + 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, + 0x30, 0x32, 0x2e, 0x41, 0x6e, 0x74, 0x69, 0x4b, 0x6c, 0x65, 0x70, 0x74, 0x6f, 0x48, 0x6f, 0x73, + 0x74, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, + 0x52, 0x13, 0x68, 0x6f, 0x73, 0x74, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0xdd, 0x01, 0x0a, 0x14, 0x42, 0x54, 0x43, 0x53, 0x69, 0x67, + 0x6e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, + 0x0a, 0x04, 0x6f, 0x75, 0x72, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x6f, 0x75, + 0x72, 0x73, 0x12, 0x37, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x23, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, + 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x42, 0x54, 0x43, 0x4f, 0x75, 0x74, 0x70, 0x75, + 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6b, + 0x65, 0x79, 0x70, 0x61, 0x74, 0x68, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x07, 0x6b, 0x65, + 0x79, 0x70, 0x61, 0x74, 0x68, 0x12, 0x2e, 0x0a, 0x13, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x5f, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x11, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x49, 0x6e, 0x64, 0x65, 0x78, 0x22, 0xb6, 0x01, 0x0a, 0x1b, 0x42, 0x54, 0x43, 0x53, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x31, 0x0a, 0x04, 0x63, 0x6f, 0x69, 0x6e, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x42, 0x54, 0x43, 0x43, 0x6f, + 0x69, 0x6e, 0x52, 0x04, 0x63, 0x6f, 0x69, 0x6e, 0x12, 0x4a, 0x0a, 0x0d, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x25, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, + 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x42, 0x54, 0x43, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0c, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x70, 0x61, 0x74, 0x68, 0x18, + 0x03, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x70, 0x61, 0x74, 0x68, 0x22, 0x0c, + 0x0a, 0x0a, 0x42, 0x54, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x22, 0x7b, 0x0a, 0x22, + 0x42, 0x54, 0x43, 0x49, 0x73, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x55, 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, + 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, + 0x42, 0x54, 0x43, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4a, 0x0a, 0x23, 0x42, 0x54, 0x43, + 0x49, 0x73, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x65, 0x72, 0x65, 0x64, 0x22, 0x9a, 0x02, 0x0a, 0x1e, 0x42, 0x54, 0x43, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x55, 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, + 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, + 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x42, 0x54, 0x43, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x5a, 0x0a, 0x09, 0x78, 0x70, 0x75, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3d, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x42, 0x54, + 0x43, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x58, 0x50, 0x75, + 0x62, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x78, 0x70, 0x75, 0x62, 0x54, 0x79, 0x70, 0x65, 0x22, + 0x31, 0x0a, 0x08, 0x58, 0x50, 0x75, 0x62, 0x54, 0x79, 0x70, 0x65, 0x12, 0x11, 0x0a, 0x0d, 0x41, + 0x55, 0x54, 0x4f, 0x5f, 0x45, 0x4c, 0x45, 0x43, 0x54, 0x52, 0x55, 0x4d, 0x10, 0x00, 0x12, 0x12, + 0x0a, 0x0e, 0x41, 0x55, 0x54, 0x4f, 0x5f, 0x58, 0x50, 0x55, 0x42, 0x5f, 0x54, 0x50, 0x55, 0x42, + 0x10, 0x01, 0x22, 0x8c, 0x01, 0x0a, 0x14, 0x42, 0x54, 0x43, 0x50, 0x72, 0x65, 0x76, 0x54, 0x78, + 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x75, 0x6d, 0x5f, 0x69, 0x6e, 0x70, + 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x6e, 0x75, 0x6d, 0x49, 0x6e, + 0x70, 0x75, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x75, 0x6d, 0x5f, 0x6f, 0x75, 0x74, 0x70, + 0x75, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x6e, 0x75, 0x6d, 0x4f, 0x75, + 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x74, 0x69, 0x6d, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x74, 0x69, 0x6d, + 0x65, 0x22, 0xa8, 0x01, 0x0a, 0x15, 0x42, 0x54, 0x43, 0x50, 0x72, 0x65, 0x76, 0x54, 0x78, 0x49, + 0x6e, 0x70, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0d, 0x70, + 0x72, 0x65, 0x76, 0x5f, 0x6f, 0x75, 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x0b, 0x70, 0x72, 0x65, 0x76, 0x4f, 0x75, 0x74, 0x48, 0x61, 0x73, 0x68, 0x12, + 0x24, 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x6f, 0x75, 0x74, 0x5f, 0x69, 0x6e, 0x64, 0x65, + 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x70, 0x72, 0x65, 0x76, 0x4f, 0x75, 0x74, + 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x29, 0x0a, 0x10, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, + 0x72, 0x65, 0x5f, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x0f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x53, 0x0a, 0x16, + 0x42, 0x54, 0x43, 0x50, 0x72, 0x65, 0x76, 0x54, 0x78, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0d, + 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x53, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x22, 0x9c, 0x02, 0x0a, 0x15, 0x42, 0x54, 0x43, 0x53, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x04, 0x63, + 0x6f, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x73, 0x68, 0x69, 0x66, + 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, + 0x2e, 0x42, 0x54, 0x43, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x04, 0x63, 0x6f, 0x69, 0x6e, 0x12, 0x55, + 0x0a, 0x0d, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x42, 0x54, 0x43, + 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x57, 0x69, 0x74, 0x68, + 0x4b, 0x65, 0x79, 0x70, 0x61, 0x74, 0x68, 0x52, 0x0c, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x67, 0x0a, 0x15, 0x68, 0x6f, 0x73, 0x74, 0x5f, + 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x41, 0x6e, + 0x74, 0x69, 0x4b, 0x6c, 0x65, 0x70, 0x74, 0x6f, 0x48, 0x6f, 0x73, 0x74, 0x4e, 0x6f, 0x6e, 0x63, + 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x13, 0x68, 0x6f, 0x73, + 0x74, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, + 0x22, 0x36, 0x0a, 0x16, 0x42, 0x54, 0x43, 0x53, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, + 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, + 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0xaf, 0x05, 0x0a, 0x0a, 0x42, 0x54, 0x43, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x79, 0x0a, 0x1b, 0x69, 0x73, 0x5f, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x73, + 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, + 0x78, 0x30, 0x32, 0x2e, 0x42, 0x54, 0x43, 0x49, 0x73, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x18, 0x69, 0x73, 0x53, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, + 0x65, 0x64, 0x12, 0x6c, 0x0a, 0x16, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, + 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x42, 0x54, 0x43, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x14, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x65, 0x72, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x12, 0x4d, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x76, 0x74, 0x78, 0x5f, 0x69, 0x6e, 0x69, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x42, 0x54, 0x43, + 0x50, 0x72, 0x65, 0x76, 0x54, 0x78, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x48, 0x00, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x76, 0x74, 0x78, 0x49, 0x6e, 0x69, 0x74, 0x12, + 0x50, 0x0a, 0x0c, 0x70, 0x72, 0x65, 0x76, 0x74, 0x78, 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x42, 0x54, 0x43, + 0x50, 0x72, 0x65, 0x76, 0x54, 0x78, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x70, 0x72, 0x65, 0x76, 0x74, 0x78, 0x49, 0x6e, 0x70, 0x75, + 0x74, 0x12, 0x53, 0x0a, 0x0d, 0x70, 0x72, 0x65, 0x76, 0x74, 0x78, 0x5f, 0x6f, 0x75, 0x74, 0x70, + 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, + 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, + 0x42, 0x54, 0x43, 0x50, 0x72, 0x65, 0x76, 0x54, 0x78, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x70, 0x72, 0x65, 0x76, 0x74, 0x78, + 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x50, 0x0a, 0x0c, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x73, + 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, + 0x78, 0x30, 0x32, 0x2e, 0x42, 0x54, 0x43, 0x53, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x69, 0x67, + 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x65, 0x0a, 0x14, 0x61, 0x6e, 0x74, 0x69, + 0x6b, 0x6c, 0x65, 0x70, 0x74, 0x6f, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x41, 0x6e, + 0x74, 0x69, 0x4b, 0x6c, 0x65, 0x70, 0x74, 0x6f, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x13, 0x61, 0x6e, 0x74, 0x69, + 0x6b, 0x6c, 0x65, 0x70, 0x74, 0x6f, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x42, + 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xe6, 0x03, 0x0a, 0x0b, 0x42, + 0x54, 0x43, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x07, 0x73, 0x75, + 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x73, 0x68, + 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, + 0x30, 0x32, 0x2e, 0x42, 0x54, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, + 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x7a, 0x0a, 0x1b, 0x69, 0x73, 0x5f, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, + 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, + 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x42, 0x54, 0x43, 0x49, 0x73, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x18, 0x69, 0x73, 0x53, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x65, 0x72, 0x65, 0x64, 0x12, 0x48, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x6e, 0x65, 0x78, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x42, + 0x54, 0x43, 0x53, 0x69, 0x67, 0x6e, 0x4e, 0x65, 0x78, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x48, 0x00, 0x52, 0x08, 0x73, 0x69, 0x67, 0x6e, 0x4e, 0x65, 0x78, 0x74, 0x12, 0x51, + 0x0a, 0x0c, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, + 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x42, 0x54, 0x43, 0x53, + 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x12, 0x74, 0x0a, 0x1c, 0x61, 0x6e, 0x74, 0x69, 0x6b, 0x6c, 0x65, 0x70, 0x74, 0x6f, 0x5f, + 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, + 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x41, + 0x6e, 0x74, 0x69, 0x4b, 0x6c, 0x65, 0x70, 0x74, 0x6f, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x43, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x1a, 0x61, 0x6e, 0x74, + 0x69, 0x6b, 0x6c, 0x65, 0x70, 0x74, 0x6f, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x43, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x2a, 0x2f, 0x0a, 0x07, 0x42, 0x54, 0x43, 0x43, 0x6f, 0x69, 0x6e, 0x12, 0x07, + 0x0a, 0x03, 0x42, 0x54, 0x43, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x54, 0x42, 0x54, 0x43, 0x10, + 0x01, 0x12, 0x07, 0x0a, 0x03, 0x4c, 0x54, 0x43, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x54, 0x4c, + 0x54, 0x43, 0x10, 0x03, 0x2a, 0x52, 0x0a, 0x0d, 0x42, 0x54, 0x43, 0x4f, 0x75, 0x74, 0x70, 0x75, + 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, + 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x32, 0x50, 0x4b, 0x48, 0x10, 0x01, 0x12, 0x08, 0x0a, + 0x04, 0x50, 0x32, 0x53, 0x48, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x50, 0x32, 0x57, 0x50, 0x4b, + 0x48, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x32, 0x57, 0x53, 0x48, 0x10, 0x04, 0x12, 0x08, + 0x0a, 0x04, 0x50, 0x32, 0x54, 0x52, 0x10, 0x05, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_btc_proto_rawDescOnce sync.Once + file_btc_proto_rawDescData = file_btc_proto_rawDesc +) + +func file_btc_proto_rawDescGZIP() []byte { + file_btc_proto_rawDescOnce.Do(func() { + file_btc_proto_rawDescData = protoimpl.X.CompressGZIP(file_btc_proto_rawDescData) + }) + return file_btc_proto_rawDescData +} + +var file_btc_proto_enumTypes = make([]protoimpl.EnumInfo, 7) +var file_btc_proto_msgTypes = make([]protoimpl.MessageInfo, 20) +var file_btc_proto_goTypes = []interface{}{ + (BTCCoin)(0), // 0: shiftcrypto.bitbox02.BTCCoin + (BTCOutputType)(0), // 1: shiftcrypto.bitbox02.BTCOutputType + (BTCScriptConfig_SimpleType)(0), // 2: shiftcrypto.bitbox02.BTCScriptConfig.SimpleType + (BTCScriptConfig_Multisig_ScriptType)(0), // 3: shiftcrypto.bitbox02.BTCScriptConfig.Multisig.ScriptType + (BTCPubRequest_XPubType)(0), // 4: shiftcrypto.bitbox02.BTCPubRequest.XPubType + (BTCSignNextResponse_Type)(0), // 5: shiftcrypto.bitbox02.BTCSignNextResponse.Type + (BTCRegisterScriptConfigRequest_XPubType)(0), // 6: shiftcrypto.bitbox02.BTCRegisterScriptConfigRequest.XPubType + (*BTCScriptConfig)(nil), // 7: shiftcrypto.bitbox02.BTCScriptConfig + (*BTCPubRequest)(nil), // 8: shiftcrypto.bitbox02.BTCPubRequest + (*BTCScriptConfigWithKeypath)(nil), // 9: shiftcrypto.bitbox02.BTCScriptConfigWithKeypath + (*BTCSignInitRequest)(nil), // 10: shiftcrypto.bitbox02.BTCSignInitRequest + (*BTCSignNextResponse)(nil), // 11: shiftcrypto.bitbox02.BTCSignNextResponse + (*BTCSignInputRequest)(nil), // 12: shiftcrypto.bitbox02.BTCSignInputRequest + (*BTCSignOutputRequest)(nil), // 13: shiftcrypto.bitbox02.BTCSignOutputRequest + (*BTCScriptConfigRegistration)(nil), // 14: shiftcrypto.bitbox02.BTCScriptConfigRegistration + (*BTCSuccess)(nil), // 15: shiftcrypto.bitbox02.BTCSuccess + (*BTCIsScriptConfigRegisteredRequest)(nil), // 16: shiftcrypto.bitbox02.BTCIsScriptConfigRegisteredRequest + (*BTCIsScriptConfigRegisteredResponse)(nil), // 17: shiftcrypto.bitbox02.BTCIsScriptConfigRegisteredResponse + (*BTCRegisterScriptConfigRequest)(nil), // 18: shiftcrypto.bitbox02.BTCRegisterScriptConfigRequest + (*BTCPrevTxInitRequest)(nil), // 19: shiftcrypto.bitbox02.BTCPrevTxInitRequest + (*BTCPrevTxInputRequest)(nil), // 20: shiftcrypto.bitbox02.BTCPrevTxInputRequest + (*BTCPrevTxOutputRequest)(nil), // 21: shiftcrypto.bitbox02.BTCPrevTxOutputRequest + (*BTCSignMessageRequest)(nil), // 22: shiftcrypto.bitbox02.BTCSignMessageRequest + (*BTCSignMessageResponse)(nil), // 23: shiftcrypto.bitbox02.BTCSignMessageResponse + (*BTCRequest)(nil), // 24: shiftcrypto.bitbox02.BTCRequest + (*BTCResponse)(nil), // 25: shiftcrypto.bitbox02.BTCResponse + (*BTCScriptConfig_Multisig)(nil), // 26: shiftcrypto.bitbox02.BTCScriptConfig.Multisig + (*AntiKleptoSignerCommitment)(nil), // 27: shiftcrypto.bitbox02.AntiKleptoSignerCommitment + (*AntiKleptoHostNonceCommitment)(nil), // 28: shiftcrypto.bitbox02.AntiKleptoHostNonceCommitment + (*AntiKleptoSignatureRequest)(nil), // 29: shiftcrypto.bitbox02.AntiKleptoSignatureRequest + (*XPub)(nil), // 30: shiftcrypto.bitbox02.XPub +} +var file_btc_proto_depIdxs = []int32{ + 2, // 0: shiftcrypto.bitbox02.BTCScriptConfig.simple_type:type_name -> shiftcrypto.bitbox02.BTCScriptConfig.SimpleType + 26, // 1: shiftcrypto.bitbox02.BTCScriptConfig.multisig:type_name -> shiftcrypto.bitbox02.BTCScriptConfig.Multisig + 0, // 2: shiftcrypto.bitbox02.BTCPubRequest.coin:type_name -> shiftcrypto.bitbox02.BTCCoin + 4, // 3: shiftcrypto.bitbox02.BTCPubRequest.xpub_type:type_name -> shiftcrypto.bitbox02.BTCPubRequest.XPubType + 7, // 4: shiftcrypto.bitbox02.BTCPubRequest.script_config:type_name -> shiftcrypto.bitbox02.BTCScriptConfig + 7, // 5: shiftcrypto.bitbox02.BTCScriptConfigWithKeypath.script_config:type_name -> shiftcrypto.bitbox02.BTCScriptConfig + 0, // 6: shiftcrypto.bitbox02.BTCSignInitRequest.coin:type_name -> shiftcrypto.bitbox02.BTCCoin + 9, // 7: shiftcrypto.bitbox02.BTCSignInitRequest.script_configs:type_name -> shiftcrypto.bitbox02.BTCScriptConfigWithKeypath + 5, // 8: shiftcrypto.bitbox02.BTCSignNextResponse.type:type_name -> shiftcrypto.bitbox02.BTCSignNextResponse.Type + 27, // 9: shiftcrypto.bitbox02.BTCSignNextResponse.anti_klepto_signer_commitment:type_name -> shiftcrypto.bitbox02.AntiKleptoSignerCommitment + 28, // 10: shiftcrypto.bitbox02.BTCSignInputRequest.host_nonce_commitment:type_name -> shiftcrypto.bitbox02.AntiKleptoHostNonceCommitment + 1, // 11: shiftcrypto.bitbox02.BTCSignOutputRequest.type:type_name -> shiftcrypto.bitbox02.BTCOutputType + 0, // 12: shiftcrypto.bitbox02.BTCScriptConfigRegistration.coin:type_name -> shiftcrypto.bitbox02.BTCCoin + 7, // 13: shiftcrypto.bitbox02.BTCScriptConfigRegistration.script_config:type_name -> shiftcrypto.bitbox02.BTCScriptConfig + 14, // 14: shiftcrypto.bitbox02.BTCIsScriptConfigRegisteredRequest.registration:type_name -> shiftcrypto.bitbox02.BTCScriptConfigRegistration + 14, // 15: shiftcrypto.bitbox02.BTCRegisterScriptConfigRequest.registration:type_name -> shiftcrypto.bitbox02.BTCScriptConfigRegistration + 6, // 16: shiftcrypto.bitbox02.BTCRegisterScriptConfigRequest.xpub_type:type_name -> shiftcrypto.bitbox02.BTCRegisterScriptConfigRequest.XPubType + 0, // 17: shiftcrypto.bitbox02.BTCSignMessageRequest.coin:type_name -> shiftcrypto.bitbox02.BTCCoin + 9, // 18: shiftcrypto.bitbox02.BTCSignMessageRequest.script_config:type_name -> shiftcrypto.bitbox02.BTCScriptConfigWithKeypath + 28, // 19: shiftcrypto.bitbox02.BTCSignMessageRequest.host_nonce_commitment:type_name -> shiftcrypto.bitbox02.AntiKleptoHostNonceCommitment + 16, // 20: shiftcrypto.bitbox02.BTCRequest.is_script_config_registered:type_name -> shiftcrypto.bitbox02.BTCIsScriptConfigRegisteredRequest + 18, // 21: shiftcrypto.bitbox02.BTCRequest.register_script_config:type_name -> shiftcrypto.bitbox02.BTCRegisterScriptConfigRequest + 19, // 22: shiftcrypto.bitbox02.BTCRequest.prevtx_init:type_name -> shiftcrypto.bitbox02.BTCPrevTxInitRequest + 20, // 23: shiftcrypto.bitbox02.BTCRequest.prevtx_input:type_name -> shiftcrypto.bitbox02.BTCPrevTxInputRequest + 21, // 24: shiftcrypto.bitbox02.BTCRequest.prevtx_output:type_name -> shiftcrypto.bitbox02.BTCPrevTxOutputRequest + 22, // 25: shiftcrypto.bitbox02.BTCRequest.sign_message:type_name -> shiftcrypto.bitbox02.BTCSignMessageRequest + 29, // 26: shiftcrypto.bitbox02.BTCRequest.antiklepto_signature:type_name -> shiftcrypto.bitbox02.AntiKleptoSignatureRequest + 15, // 27: shiftcrypto.bitbox02.BTCResponse.success:type_name -> shiftcrypto.bitbox02.BTCSuccess + 17, // 28: shiftcrypto.bitbox02.BTCResponse.is_script_config_registered:type_name -> shiftcrypto.bitbox02.BTCIsScriptConfigRegisteredResponse + 11, // 29: shiftcrypto.bitbox02.BTCResponse.sign_next:type_name -> shiftcrypto.bitbox02.BTCSignNextResponse + 23, // 30: shiftcrypto.bitbox02.BTCResponse.sign_message:type_name -> shiftcrypto.bitbox02.BTCSignMessageResponse + 27, // 31: shiftcrypto.bitbox02.BTCResponse.antiklepto_signer_commitment:type_name -> shiftcrypto.bitbox02.AntiKleptoSignerCommitment + 30, // 32: shiftcrypto.bitbox02.BTCScriptConfig.Multisig.xpubs:type_name -> shiftcrypto.bitbox02.XPub + 3, // 33: shiftcrypto.bitbox02.BTCScriptConfig.Multisig.script_type:type_name -> shiftcrypto.bitbox02.BTCScriptConfig.Multisig.ScriptType + 34, // [34:34] is the sub-list for method output_type + 34, // [34:34] is the sub-list for method input_type + 34, // [34:34] is the sub-list for extension type_name + 34, // [34:34] is the sub-list for extension extendee + 0, // [0:34] is the sub-list for field type_name +} + +func init() { file_btc_proto_init() } +func file_btc_proto_init() { + if File_btc_proto != nil { + return + } + file_common_proto_init() + file_antiklepto_proto_init() + if !protoimpl.UnsafeEnabled { + file_btc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BTCScriptConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_btc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BTCPubRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_btc_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BTCScriptConfigWithKeypath); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_btc_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BTCSignInitRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_btc_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BTCSignNextResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_btc_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BTCSignInputRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_btc_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BTCSignOutputRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_btc_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BTCScriptConfigRegistration); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_btc_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BTCSuccess); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_btc_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BTCIsScriptConfigRegisteredRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_btc_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BTCIsScriptConfigRegisteredResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_btc_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BTCRegisterScriptConfigRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_btc_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BTCPrevTxInitRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_btc_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BTCPrevTxInputRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_btc_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BTCPrevTxOutputRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_btc_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BTCSignMessageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_btc_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BTCSignMessageResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_btc_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BTCRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_btc_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BTCResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_btc_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BTCScriptConfig_Multisig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_btc_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*BTCScriptConfig_SimpleType_)(nil), + (*BTCScriptConfig_Multisig_)(nil), + } + file_btc_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*BTCPubRequest_XpubType)(nil), + (*BTCPubRequest_ScriptConfig)(nil), + } + file_btc_proto_msgTypes[17].OneofWrappers = []interface{}{ + (*BTCRequest_IsScriptConfigRegistered)(nil), + (*BTCRequest_RegisterScriptConfig)(nil), + (*BTCRequest_PrevtxInit)(nil), + (*BTCRequest_PrevtxInput)(nil), + (*BTCRequest_PrevtxOutput)(nil), + (*BTCRequest_SignMessage)(nil), + (*BTCRequest_AntikleptoSignature)(nil), + } + file_btc_proto_msgTypes[18].OneofWrappers = []interface{}{ (*BTCResponse_Success)(nil), (*BTCResponse_IsScriptConfigRegistered)(nil), (*BTCResponse_SignNext)(nil), (*BTCResponse_SignMessage)(nil), (*BTCResponse_AntikleptoSignerCommitment)(nil), } -} - -func init() { - proto.RegisterEnum("shiftcrypto.bitbox02.BTCCoin", BTCCoin_name, BTCCoin_value) - proto.RegisterEnum("shiftcrypto.bitbox02.BTCOutputType", BTCOutputType_name, BTCOutputType_value) - proto.RegisterEnum("shiftcrypto.bitbox02.BTCScriptConfig_SimpleType", BTCScriptConfig_SimpleType_name, BTCScriptConfig_SimpleType_value) - proto.RegisterEnum("shiftcrypto.bitbox02.BTCScriptConfig_Multisig_ScriptType", BTCScriptConfig_Multisig_ScriptType_name, BTCScriptConfig_Multisig_ScriptType_value) - proto.RegisterEnum("shiftcrypto.bitbox02.BTCPubRequest_XPubType", BTCPubRequest_XPubType_name, BTCPubRequest_XPubType_value) - proto.RegisterEnum("shiftcrypto.bitbox02.BTCSignNextResponse_Type", BTCSignNextResponse_Type_name, BTCSignNextResponse_Type_value) - proto.RegisterEnum("shiftcrypto.bitbox02.BTCRegisterScriptConfigRequest_XPubType", BTCRegisterScriptConfigRequest_XPubType_name, BTCRegisterScriptConfigRequest_XPubType_value) - proto.RegisterType((*BTCScriptConfig)(nil), "shiftcrypto.bitbox02.BTCScriptConfig") - proto.RegisterType((*BTCScriptConfig_Multisig)(nil), "shiftcrypto.bitbox02.BTCScriptConfig.Multisig") - proto.RegisterType((*BTCPubRequest)(nil), "shiftcrypto.bitbox02.BTCPubRequest") - proto.RegisterType((*BTCScriptConfigWithKeypath)(nil), "shiftcrypto.bitbox02.BTCScriptConfigWithKeypath") - proto.RegisterType((*BTCSignInitRequest)(nil), "shiftcrypto.bitbox02.BTCSignInitRequest") - proto.RegisterType((*BTCSignNextResponse)(nil), "shiftcrypto.bitbox02.BTCSignNextResponse") - proto.RegisterType((*BTCSignInputRequest)(nil), "shiftcrypto.bitbox02.BTCSignInputRequest") - proto.RegisterType((*BTCSignOutputRequest)(nil), "shiftcrypto.bitbox02.BTCSignOutputRequest") - proto.RegisterType((*BTCScriptConfigRegistration)(nil), "shiftcrypto.bitbox02.BTCScriptConfigRegistration") - proto.RegisterType((*BTCSuccess)(nil), "shiftcrypto.bitbox02.BTCSuccess") - proto.RegisterType((*BTCIsScriptConfigRegisteredRequest)(nil), "shiftcrypto.bitbox02.BTCIsScriptConfigRegisteredRequest") - proto.RegisterType((*BTCIsScriptConfigRegisteredResponse)(nil), "shiftcrypto.bitbox02.BTCIsScriptConfigRegisteredResponse") - proto.RegisterType((*BTCRegisterScriptConfigRequest)(nil), "shiftcrypto.bitbox02.BTCRegisterScriptConfigRequest") - proto.RegisterType((*BTCPrevTxInitRequest)(nil), "shiftcrypto.bitbox02.BTCPrevTxInitRequest") - proto.RegisterType((*BTCPrevTxInputRequest)(nil), "shiftcrypto.bitbox02.BTCPrevTxInputRequest") - proto.RegisterType((*BTCPrevTxOutputRequest)(nil), "shiftcrypto.bitbox02.BTCPrevTxOutputRequest") - proto.RegisterType((*BTCSignMessageRequest)(nil), "shiftcrypto.bitbox02.BTCSignMessageRequest") - proto.RegisterType((*BTCSignMessageResponse)(nil), "shiftcrypto.bitbox02.BTCSignMessageResponse") - proto.RegisterType((*BTCRequest)(nil), "shiftcrypto.bitbox02.BTCRequest") - proto.RegisterType((*BTCResponse)(nil), "shiftcrypto.bitbox02.BTCResponse") -} - -func init() { proto.RegisterFile("btc.proto", fileDescriptor_a38f9ffa5c78f451) } - -var fileDescriptor_a38f9ffa5c78f451 = []byte{ - // 1675 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0x4f, 0x6f, 0x1b, 0x45, - 0x14, 0xf7, 0xae, 0xff, 0x3f, 0xdb, 0xa9, 0x3b, 0x49, 0x2b, 0x2b, 0x6d, 0x21, 0xda, 0x14, 0x91, - 0xb6, 0xc8, 0xb4, 0x2e, 0x02, 0x2a, 0xc1, 0x21, 0x36, 0x91, 0xec, 0x26, 0xb1, 0xcd, 0x78, 0xdd, - 0x84, 0x5e, 0x56, 0xb6, 0xb3, 0xb5, 0x57, 0xb1, 0x77, 0x97, 0x9d, 0xd9, 0xc8, 0x86, 0x1b, 0x12, - 0x37, 0xc4, 0x91, 0x03, 0xe2, 0x03, 0x70, 0x40, 0xe2, 0x04, 0x1f, 0x83, 0x6f, 0xc0, 0x95, 0x2f, - 0xc1, 0x05, 0xcd, 0xcc, 0xee, 0x7a, 0xd7, 0x89, 0x9d, 0x34, 0x05, 0x6e, 0x33, 0x6f, 0xe6, 0xcd, - 0xbc, 0xf9, 0xbd, 0xf7, 0x7e, 0xf3, 0x66, 0x20, 0xdb, 0xa7, 0x83, 0xb2, 0xed, 0x58, 0xd4, 0x42, - 0x1b, 0x64, 0x64, 0xbc, 0xa2, 0x03, 0x67, 0x66, 0x53, 0xab, 0xdc, 0x37, 0x68, 0xdf, 0x9a, 0x3e, - 0xae, 0x6c, 0xe6, 0x07, 0xd6, 0x64, 0x62, 0x99, 0x62, 0xce, 0x66, 0xb1, 0x67, 0x52, 0xe3, 0x74, - 0xac, 0xb3, 0x29, 0x5c, 0xa2, 0xfc, 0x1d, 0x87, 0x1b, 0x55, 0xb5, 0xd6, 0x19, 0x38, 0x86, 0x4d, - 0x6b, 0x96, 0xf9, 0xca, 0x18, 0xa2, 0x0e, 0xe4, 0x88, 0x31, 0xb1, 0xc7, 0xba, 0x46, 0x67, 0xb6, - 0x5e, 0x92, 0xb6, 0xa4, 0x9d, 0xb5, 0xca, 0xe3, 0xf2, 0x45, 0xeb, 0x97, 0x17, 0x74, 0xcb, 0x1d, - 0xae, 0xa8, 0xce, 0x6c, 0xbd, 0x1e, 0xc3, 0x40, 0x82, 0x1e, 0x3a, 0x80, 0xcc, 0xc4, 0x1d, 0x53, - 0x83, 0x18, 0xc3, 0x92, 0xbc, 0x25, 0xed, 0xe4, 0x2a, 0xe5, 0xab, 0xad, 0x78, 0xe8, 0x69, 0xd5, - 0x63, 0x38, 0x58, 0x61, 0xf3, 0x5b, 0x19, 0x32, 0xfe, 0x00, 0xba, 0x0b, 0x59, 0x3a, 0x72, 0x74, - 0x32, 0xb2, 0xc6, 0x27, 0xdc, 0xda, 0x02, 0x9e, 0x0b, 0xd0, 0x63, 0x48, 0x4e, 0x6d, 0xb7, 0x4f, - 0x4a, 0xf2, 0x56, 0x7c, 0x27, 0x57, 0xd9, 0xbc, 0x78, 0xd7, 0xe3, 0xb6, 0xdb, 0xc7, 0x62, 0x22, - 0xba, 0x0f, 0x6b, 0x96, 0xeb, 0x68, 0xac, 0xa3, 0x19, 0xe6, 0x89, 0x3e, 0x2d, 0xc5, 0xf9, 0xa2, - 0x79, 0xcb, 0x75, 0x8e, 0x6d, 0xb7, 0xdf, 0x60, 0x32, 0xf4, 0x12, 0x72, 0x84, 0xdb, 0x29, 0x50, - 0x4a, 0x70, 0x94, 0x9e, 0xbd, 0xde, 0x99, 0xca, 0x42, 0xca, 0x00, 0xc2, 0x40, 0x82, 0xb6, 0xf2, - 0x2e, 0xc0, 0x7c, 0x04, 0x65, 0x21, 0xd9, 0xae, 0x1c, 0x75, 0xea, 0xc5, 0x18, 0x5a, 0x03, 0xe0, - 0x4d, 0xad, 0x5d, 0xe9, 0xd4, 0x8b, 0x92, 0xf2, 0x14, 0x60, 0x8e, 0x38, 0xba, 0x01, 0xb9, 0x76, - 0xe5, 0xa8, 0xbd, 0xef, 0x0d, 0xc7, 0x10, 0x40, 0x4a, 0x08, 0x8a, 0x12, 0xca, 0x40, 0xa2, 0x5d, - 0x51, 0x71, 0x51, 0xae, 0x66, 0x20, 0x35, 0xe0, 0x76, 0x28, 0xbf, 0xc4, 0xa1, 0x50, 0x55, 0x6b, - 0xec, 0xec, 0xfa, 0x97, 0xae, 0x4e, 0x28, 0x7a, 0x02, 0x89, 0x81, 0x65, 0x98, 0x9e, 0xd3, 0xef, - 0x2d, 0x3d, 0x4e, 0xcd, 0x32, 0x4c, 0xcc, 0xa7, 0xa2, 0x12, 0xa4, 0x4f, 0xf5, 0x99, 0xdd, 0xa3, - 0x23, 0x0e, 0x71, 0x01, 0xfb, 0x5d, 0xb4, 0x0f, 0x59, 0x0e, 0x22, 0x07, 0x28, 0xce, 0x57, 0x7c, - 0x6f, 0xe9, 0x8a, 0x73, 0x23, 0xb8, 0x33, 0xbc, 0x10, 0xca, 0xb0, 0x05, 0xbc, 0x00, 0x2a, 0x78, - 0x78, 0x0b, 0xe3, 0x39, 0xe2, 0xb9, 0xca, 0x3b, 0x57, 0x42, 0xbc, 0x1e, 0xc3, 0x79, 0x12, 0x8e, - 0xf1, 0x12, 0xa4, 0x4f, 0x0c, 0x62, 0x8f, 0x7b, 0xb3, 0x52, 0x72, 0x4b, 0xda, 0xc9, 0x60, 0xbf, - 0xab, 0x7c, 0x2f, 0x41, 0xc6, 0x37, 0x80, 0x81, 0xa6, 0xb6, 0xbb, 0xd5, 0x62, 0x8c, 0xb5, 0x8e, - 0x59, 0x8b, 0x03, 0xf9, 0x05, 0x6b, 0xc9, 0xac, 0xf5, 0x92, 0xb5, 0xe2, 0xac, 0xf5, 0x82, 0xb5, - 0x12, 0xac, 0xd5, 0x65, 0xad, 0x24, 0x2a, 0x42, 0xbe, 0xb6, 0xdb, 0x6e, 0xa8, 0xbb, 0x07, 0x1a, - 0x1f, 0x4b, 0x85, 0x25, 0x5c, 0x2f, 0x1d, 0x96, 0x70, 0xad, 0x4c, 0x58, 0xc2, 0x77, 0xc9, 0x32, - 0x77, 0x59, 0x2e, 0xb5, 0x5d, 0xaa, 0x7c, 0x23, 0xc1, 0xe6, 0xc2, 0xc1, 0x8e, 0x0c, 0x3a, 0xda, - 0xf7, 0xe0, 0x7e, 0xbe, 0x88, 0x90, 0xfc, 0x1a, 0x08, 0x9d, 0xc7, 0xc7, 0x77, 0x6a, 0x3c, 0xe2, - 0x54, 0xe5, 0x07, 0x19, 0x10, 0xd3, 0x35, 0x86, 0x66, 0xc3, 0x34, 0xe8, 0x1b, 0x04, 0xce, 0x11, - 0xac, 0x45, 0xec, 0xf5, 0x53, 0xf4, 0x6a, 0x54, 0x13, 0x3a, 0x39, 0x2e, 0x84, 0x6d, 0x27, 0xcc, - 0xf8, 0x33, 0xdd, 0x21, 0x86, 0x65, 0xf2, 0x20, 0x29, 0x60, 0xbf, 0x8b, 0xee, 0x01, 0x98, 0xee, - 0x44, 0x33, 0x4c, 0xdb, 0xa5, 0x84, 0x7b, 0xbe, 0x80, 0xb3, 0xa6, 0x3b, 0x69, 0x70, 0x01, 0x7a, - 0x1b, 0x72, 0x6c, 0x58, 0xc0, 0x4d, 0x4a, 0x29, 0x3e, 0xce, 0x34, 0x5a, 0x42, 0x82, 0x36, 0x21, - 0x33, 0xb6, 0x06, 0xa7, 0xd4, 0x98, 0xe8, 0xa5, 0x34, 0x1f, 0x0d, 0xfa, 0xca, 0x6f, 0x71, 0x58, - 0xf7, 0x80, 0x69, 0xea, 0x53, 0x8a, 0x75, 0x62, 0x5b, 0x26, 0xd1, 0x51, 0x15, 0x12, 0x21, 0x1e, - 0x5d, 0xc1, 0x7a, 0x0b, 0x8a, 0x65, 0x4e, 0x0b, 0x5c, 0x17, 0x6d, 0x40, 0x52, 0x30, 0x91, 0xcc, - 0x37, 0x15, 0x1d, 0xb4, 0x0d, 0x85, 0x51, 0x8f, 0x68, 0xc4, 0x18, 0x9a, 0x3d, 0xea, 0x3a, 0x22, - 0xc7, 0x32, 0x38, 0x3f, 0xea, 0x91, 0x8e, 0x2f, 0x63, 0xec, 0x38, 0x9f, 0xc0, 0xe0, 0xc8, 0xe3, - 0xb9, 0x80, 0x01, 0x62, 0x3b, 0xfa, 0x99, 0xc7, 0x73, 0x1e, 0x20, 0x4c, 0x22, 0x48, 0x8e, 0xc0, - 0x3d, 0x76, 0x65, 0x68, 0xe2, 0xce, 0xe0, 0x3b, 0xe9, 0x8e, 0xc6, 0xee, 0x14, 0x83, 0x4e, 0x74, - 0x93, 0x72, 0x88, 0x96, 0x7a, 0x6c, 0xd7, 0xa4, 0xc6, 0x3e, 0xd7, 0xec, 0x70, 0xc5, 0x5a, 0xa0, - 0x87, 0x37, 0x7b, 0x4b, 0xc7, 0x94, 0x09, 0x24, 0x7c, 0xde, 0x6b, 0x34, 0xdb, 0x5d, 0x55, 0x10, - 0x59, 0xab, 0xab, 0xb2, 0x36, 0xcf, 0xbf, 0xcf, 0x5a, 0xcd, 0xbd, 0xa2, 0xcc, 0xf9, 0x0e, 0xef, - 0xbd, 0x50, 0x8f, 0xb5, 0x46, 0xb3, 0xa1, 0x16, 0xe3, 0x2c, 0x79, 0x02, 0x01, 0x9b, 0x9c, 0x40, - 0x37, 0xa1, 0xe0, 0x49, 0x3c, 0xfd, 0x24, 0xe3, 0xd0, 0x7a, 0xab, 0xa3, 0x6a, 0xcd, 0x56, 0xb3, - 0xb6, 0x57, 0x4c, 0x29, 0x7f, 0xc8, 0x81, 0xdf, 0x78, 0x18, 0xf8, 0x11, 0xbd, 0x05, 0x39, 0x06, - 0x44, 0xcb, 0xa5, 0xf5, 0x1e, 0x19, 0x71, 0xf7, 0xe5, 0x71, 0x58, 0x84, 0x14, 0xc8, 0x7b, 0xdd, - 0x46, 0xc8, 0x39, 0x11, 0x59, 0x68, 0xce, 0x8b, 0xde, 0xd8, 0x15, 0x2e, 0x4a, 0xe0, 0x88, 0x8c, - 0x45, 0x15, 0x61, 0x9b, 0x9a, 0x03, 0xdd, 0x0b, 0xd8, 0xa0, 0x1f, 0x4e, 0xc4, 0x54, 0x94, 0x5d, - 0xcb, 0xb0, 0x1e, 0x49, 0x1f, 0xcf, 0x87, 0x22, 0x2c, 0x6f, 0x86, 0x33, 0x42, 0x58, 0x32, 0x84, - 0x5b, 0x23, 0x8b, 0x50, 0xcd, 0xb4, 0xcc, 0x81, 0x1e, 0xf6, 0x61, 0x86, 0xfb, 0xf0, 0xe9, 0x65, - 0x3e, 0xac, 0x5b, 0x84, 0x36, 0x99, 0x6e, 0xc8, 0x8d, 0xeb, 0xa3, 0xf3, 0x42, 0xe5, 0x4f, 0x09, - 0x36, 0x3c, 0x40, 0x45, 0xde, 0xf8, 0x88, 0x22, 0x48, 0x58, 0xae, 0x43, 0x38, 0x94, 0x19, 0xcc, - 0xdb, 0xe8, 0x23, 0x2f, 0x3b, 0x64, 0x9e, 0x1d, 0xdb, 0x4b, 0xb3, 0x43, 0xac, 0x14, 0x4d, 0x89, - 0xb3, 0x10, 0xa2, 0xa2, 0xc3, 0xe0, 0xb2, 0x7b, 0xb3, 0xb1, 0xd5, 0x3b, 0xf1, 0x62, 0xdd, 0xef, - 0x86, 0x81, 0x4c, 0x5e, 0x09, 0xc8, 0xd4, 0x12, 0x20, 0x95, 0xdf, 0x25, 0xb8, 0xb3, 0xc8, 0x9e, - 0xfa, 0xd0, 0x20, 0xd4, 0xe9, 0x51, 0x46, 0x32, 0xd7, 0xa0, 0xc2, 0xff, 0x87, 0xba, 0xf3, 0x00, - 0x4c, 0xd5, 0x1d, 0x0c, 0x74, 0x42, 0x94, 0xaf, 0x41, 0xa9, 0xaa, 0xb5, 0x06, 0x39, 0x7f, 0x0e, - 0xdd, 0xd1, 0x4f, 0x7c, 0x9f, 0x75, 0x21, 0xef, 0x84, 0x0e, 0xc7, 0x0f, 0x95, 0xab, 0x3c, 0xb9, - 0x9a, 0x61, 0x21, 0x45, 0x1c, 0x59, 0x46, 0x79, 0x0e, 0xdb, 0x2b, 0x37, 0xf7, 0xb8, 0x73, 0x1b, - 0x0a, 0x06, 0xd1, 0x9c, 0x60, 0xc0, 0x0b, 0x9d, 0xbc, 0x41, 0xe6, 0x93, 0x95, 0x1f, 0x65, 0x78, - 0xab, 0xaa, 0xd6, 0x7c, 0x49, 0x74, 0xc9, 0xff, 0xf2, 0x14, 0x2c, 0xa0, 0xcd, 0xde, 0x44, 0x04, - 0x6f, 0x16, 0xf3, 0x36, 0x7a, 0x79, 0xbe, 0xe8, 0xf9, 0x74, 0xe9, 0x3e, 0x2b, 0x6c, 0x0e, 0xaa, - 0xa0, 0x79, 0x0d, 0xa4, 0x3c, 0x09, 0x95, 0x26, 0x37, 0xa1, 0xb0, 0xdb, 0x55, 0x5b, 0xda, 0xde, - 0xc1, 0x5e, 0x4d, 0xc5, 0xdd, 0xc3, 0x62, 0x0c, 0x21, 0x58, 0xe3, 0x22, 0x56, 0xa8, 0x68, 0xbc, - 0x6e, 0x91, 0x94, 0xef, 0x44, 0x32, 0xb6, 0x1d, 0xfd, 0x4c, 0x9d, 0x86, 0x2f, 0xec, 0xd0, 0x25, - 0x29, 0xad, 0xba, 0x24, 0xe5, 0x4b, 0x2e, 0xc9, 0xf8, 0xca, 0x4b, 0x32, 0xb1, 0x70, 0x49, 0xfe, - 0x2c, 0xc1, 0xad, 0x90, 0x39, 0x21, 0x72, 0x50, 0xa0, 0xc0, 0x6f, 0x22, 0xcb, 0xa5, 0xda, 0x68, - 0x09, 0xe1, 0xde, 0x87, 0xb5, 0x60, 0x8e, 0xb1, 0x94, 0x72, 0x1f, 0x40, 0x31, 0xb8, 0xe0, 0x34, - 0x91, 0x1a, 0xdc, 0xca, 0x3c, 0xbe, 0x11, 0xc8, 0x05, 0xe0, 0xab, 0x98, 0x57, 0xe9, 0xc0, 0xed, - 0xc0, 0xd2, 0x28, 0x8f, 0x05, 0xd4, 0x23, 0x85, 0xa9, 0x67, 0x1b, 0x0a, 0xb6, 0xdb, 0x3f, 0xd5, - 0x67, 0xfe, 0x9e, 0x32, 0xdf, 0x33, 0x2f, 0x84, 0x62, 0x43, 0xe5, 0x27, 0x99, 0x9f, 0x9f, 0x71, - 0xe3, 0xa1, 0x4e, 0x48, 0x6f, 0xa8, 0xbf, 0x41, 0x01, 0xd5, 0xbd, 0x98, 0x35, 0x5e, 0xbf, 0x7e, - 0x8a, 0x12, 0x48, 0x11, 0xe2, 0x13, 0x32, 0xf4, 0x20, 0x63, 0xcd, 0xe5, 0x57, 0x47, 0xe2, 0x5f, - 0xbe, 0x3a, 0x3e, 0xe4, 0x98, 0x47, 0xd0, 0xf1, 0x98, 0x20, 0x52, 0xc6, 0x48, 0x0b, 0x65, 0x8c, - 0xf2, 0x6b, 0x92, 0x53, 0x9b, 0x8f, 0xe5, 0x0c, 0xee, 0x18, 0x44, 0x8b, 0x92, 0xfa, 0x02, 0x89, - 0xe4, 0x2a, 0x1f, 0x2f, 0x85, 0xe9, 0x12, 0x4e, 0xac, 0xc7, 0x70, 0xc9, 0x58, 0x32, 0x05, 0x8d, - 0xe1, 0xb6, 0xbf, 0x93, 0x76, 0x91, 0x73, 0x3e, 0xb8, 0x0e, 0x17, 0xd4, 0x63, 0x78, 0xc3, 0xb9, - 0x60, 0x18, 0x1d, 0x8a, 0x1a, 0x85, 0x4e, 0x35, 0xc3, 0x34, 0x44, 0x94, 0xe7, 0x2a, 0x0f, 0x97, - 0xbf, 0xb1, 0x16, 0x59, 0x80, 0x3d, 0xd2, 0xc5, 0x02, 0x4c, 0x88, 0xda, 0xa2, 0x58, 0xe1, 0xcb, - 0xd9, 0xae, 0xef, 0xde, 0x47, 0x97, 0xae, 0x37, 0xcf, 0x8d, 0x7a, 0x0c, 0xe7, 0xfc, 0x05, 0x6d, - 0x97, 0xa2, 0x8e, 0xc8, 0x6a, 0x3a, 0xf5, 0xf8, 0x82, 0x97, 0x98, 0xb9, 0x55, 0xcf, 0xc0, 0xf3, - 0xf9, 0xc6, 0x1e, 0x6f, 0x62, 0x11, 0x21, 0x66, 0x66, 0x32, 0xd7, 0x6b, 0x13, 0x11, 0x23, 0x5e, - 0x11, 0xfa, 0x68, 0x65, 0x65, 0x1d, 0xcd, 0x36, 0x66, 0x26, 0x99, 0x4b, 0x91, 0x0e, 0x1b, 0xf3, - 0xaf, 0x91, 0x50, 0x41, 0x9d, 0xbe, 0x7a, 0x79, 0xcb, 0x15, 0xe6, 0xcb, 0xaf, 0xcf, 0xd7, 0x0b, - 0x46, 0xab, 0x59, 0x48, 0x3b, 0x62, 0x86, 0xf2, 0x57, 0x1c, 0x72, 0xdc, 0xe9, 0x5e, 0x7c, 0x7f, - 0x02, 0x69, 0x22, 0x2e, 0x66, 0x2f, 0x3c, 0xb7, 0x96, 0x1f, 0x47, 0xcc, 0xab, 0xc7, 0xb0, 0xaf, - 0x82, 0xbe, 0x5a, 0x1d, 0xf0, 0x22, 0xf4, 0x9e, 0x5d, 0x23, 0xe0, 0x85, 0x75, 0x2b, 0x23, 0xbe, - 0x2e, 0x32, 0x53, 0x33, 0xf5, 0xa9, 0x1f, 0x81, 0x0f, 0xae, 0xfc, 0xc8, 0x61, 0x4f, 0x7c, 0xe2, - 0xc9, 0xd0, 0xe7, 0x0b, 0x7e, 0x4d, 0x5c, 0x12, 0x2b, 0x17, 0xf0, 0xc4, 0xa2, 0x63, 0x29, 0xdc, - 0x5d, 0x70, 0x6c, 0xf4, 0xfd, 0x92, 0xbc, 0xde, 0xfb, 0xa5, 0x1e, 0x13, 0x2f, 0x98, 0xd3, 0x0b, - 0x47, 0xab, 0x00, 0x19, 0xc7, 0x33, 0xe8, 0xe1, 0xfb, 0x90, 0xf6, 0x58, 0x1b, 0xa5, 0x21, 0x5e, - 0x55, 0x6b, 0xe2, 0x33, 0x41, 0x65, 0x2d, 0x89, 0x89, 0x0e, 0xd4, 0x9a, 0xf8, 0x4b, 0x50, 0x59, - 0x2b, 0xfe, 0x10, 0xf3, 0x3f, 0x99, 0x79, 0xbd, 0x8b, 0x72, 0x90, 0xee, 0x36, 0xf7, 0x9b, 0xad, - 0xa3, 0x66, 0x31, 0x26, 0x3e, 0x83, 0x42, 0x3f, 0x3a, 0x9d, 0x7a, 0x51, 0x0e, 0xfd, 0xf3, 0xc4, - 0xe7, 0xbf, 0x45, 0x89, 0xe0, 0xcb, 0x27, 0xd9, 0x4f, 0xf1, 0xdf, 0xbe, 0xa7, 0xff, 0x04, 0x00, - 0x00, 0xff, 0xff, 0x53, 0x28, 0x36, 0x30, 0x30, 0x14, 0x00, 0x00, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_btc_proto_rawDesc, + NumEnums: 7, + NumMessages: 20, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_btc_proto_goTypes, + DependencyIndexes: file_btc_proto_depIdxs, + EnumInfos: file_btc_proto_enumTypes, + MessageInfos: file_btc_proto_msgTypes, + }.Build() + File_btc_proto = out.File + file_btc_proto_rawDesc = nil + file_btc_proto_goTypes = nil + file_btc_proto_depIdxs = nil } diff --git a/api/firmware/messages/cardano.pb.go b/api/firmware/messages/cardano.pb.go index 8c5be2d..2d5d225 100644 --- a/api/firmware/messages/cardano.pb.go +++ b/api/firmware/messages/cardano.pb.go @@ -1,24 +1,38 @@ +// Copyright 2021 Shift Crypto AG +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v3.6.1 // source: cardano.proto package messages import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +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) +) type CardanoNetwork int32 @@ -27,151 +41,186 @@ const ( CardanoNetwork_CardanoTestnet CardanoNetwork = 1 ) -var CardanoNetwork_name = map[int32]string{ - 0: "CardanoMainnet", - 1: "CardanoTestnet", -} +// Enum value maps for CardanoNetwork. +var ( + CardanoNetwork_name = map[int32]string{ + 0: "CardanoMainnet", + 1: "CardanoTestnet", + } + CardanoNetwork_value = map[string]int32{ + "CardanoMainnet": 0, + "CardanoTestnet": 1, + } +) -var CardanoNetwork_value = map[string]int32{ - "CardanoMainnet": 0, - "CardanoTestnet": 1, +func (x CardanoNetwork) Enum() *CardanoNetwork { + p := new(CardanoNetwork) + *p = x + return p } func (x CardanoNetwork) String() string { - return proto.EnumName(CardanoNetwork_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (CardanoNetwork) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_785ed7eccc80ff2e, []int{0} +func (CardanoNetwork) Descriptor() protoreflect.EnumDescriptor { + return file_cardano_proto_enumTypes[0].Descriptor() } -type CardanoXpubsRequest struct { - Keypaths []*Keypath `protobuf:"bytes,1,rep,name=keypaths,proto3" json:"keypaths,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (CardanoNetwork) Type() protoreflect.EnumType { + return &file_cardano_proto_enumTypes[0] } -func (m *CardanoXpubsRequest) Reset() { *m = CardanoXpubsRequest{} } -func (m *CardanoXpubsRequest) String() string { return proto.CompactTextString(m) } -func (*CardanoXpubsRequest) ProtoMessage() {} -func (*CardanoXpubsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_785ed7eccc80ff2e, []int{0} +func (x CardanoNetwork) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *CardanoXpubsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CardanoXpubsRequest.Unmarshal(m, b) +// Deprecated: Use CardanoNetwork.Descriptor instead. +func (CardanoNetwork) EnumDescriptor() ([]byte, []int) { + return file_cardano_proto_rawDescGZIP(), []int{0} } -func (m *CardanoXpubsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CardanoXpubsRequest.Marshal(b, m, deterministic) + +type CardanoXpubsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Keypaths []*Keypath `protobuf:"bytes,1,rep,name=keypaths,proto3" json:"keypaths,omitempty"` } -func (m *CardanoXpubsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CardanoXpubsRequest.Merge(m, src) + +func (x *CardanoXpubsRequest) Reset() { + *x = CardanoXpubsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cardano_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CardanoXpubsRequest) XXX_Size() int { - return xxx_messageInfo_CardanoXpubsRequest.Size(m) + +func (x *CardanoXpubsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CardanoXpubsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CardanoXpubsRequest.DiscardUnknown(m) + +func (*CardanoXpubsRequest) ProtoMessage() {} + +func (x *CardanoXpubsRequest) ProtoReflect() protoreflect.Message { + mi := &file_cardano_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) } -var xxx_messageInfo_CardanoXpubsRequest proto.InternalMessageInfo +// Deprecated: Use CardanoXpubsRequest.ProtoReflect.Descriptor instead. +func (*CardanoXpubsRequest) Descriptor() ([]byte, []int) { + return file_cardano_proto_rawDescGZIP(), []int{0} +} -func (m *CardanoXpubsRequest) GetKeypaths() []*Keypath { - if m != nil { - return m.Keypaths +func (x *CardanoXpubsRequest) GetKeypaths() []*Keypath { + if x != nil { + return x.Keypaths } return nil } type CardanoXpubsResponse struct { - Xpubs [][]byte `protobuf:"bytes,1,rep,name=xpubs,proto3" json:"xpubs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CardanoXpubsResponse) Reset() { *m = CardanoXpubsResponse{} } -func (m *CardanoXpubsResponse) String() string { return proto.CompactTextString(m) } -func (*CardanoXpubsResponse) ProtoMessage() {} -func (*CardanoXpubsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_785ed7eccc80ff2e, []int{1} + Xpubs [][]byte `protobuf:"bytes,1,rep,name=xpubs,proto3" json:"xpubs,omitempty"` } -func (m *CardanoXpubsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CardanoXpubsResponse.Unmarshal(m, b) -} -func (m *CardanoXpubsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CardanoXpubsResponse.Marshal(b, m, deterministic) -} -func (m *CardanoXpubsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CardanoXpubsResponse.Merge(m, src) +func (x *CardanoXpubsResponse) Reset() { + *x = CardanoXpubsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cardano_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CardanoXpubsResponse) XXX_Size() int { - return xxx_messageInfo_CardanoXpubsResponse.Size(m) + +func (x *CardanoXpubsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CardanoXpubsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CardanoXpubsResponse.DiscardUnknown(m) + +func (*CardanoXpubsResponse) ProtoMessage() {} + +func (x *CardanoXpubsResponse) ProtoReflect() protoreflect.Message { + mi := &file_cardano_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) } -var xxx_messageInfo_CardanoXpubsResponse proto.InternalMessageInfo +// Deprecated: Use CardanoXpubsResponse.ProtoReflect.Descriptor instead. +func (*CardanoXpubsResponse) Descriptor() ([]byte, []int) { + return file_cardano_proto_rawDescGZIP(), []int{1} +} -func (m *CardanoXpubsResponse) GetXpubs() [][]byte { - if m != nil { - return m.Xpubs +func (x *CardanoXpubsResponse) GetXpubs() [][]byte { + if x != nil { + return x.Xpubs } return nil } type CardanoScriptConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Entries correspond to address types as described in: // https://github.com/cardano-foundation/CIPs/blob/6c249ef48f8f5b32efc0ec768fadf4321f3173f2/CIP-0019/CIP-0019.md // See also: // https://github.com/input-output-hk/cardano-ledger-specs/blob/d0aa86ded0b973b09b629e5aa62aa1e71364d088/eras/alonzo/test-suite/cddl-files/alonzo.cddl#L137 // - // Types that are valid to be assigned to Config: + // Types that are assignable to Config: // *CardanoScriptConfig_PkhSkh_ - Config isCardanoScriptConfig_Config `protobuf_oneof:"config"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Config isCardanoScriptConfig_Config `protobuf_oneof:"config"` } -func (m *CardanoScriptConfig) Reset() { *m = CardanoScriptConfig{} } -func (m *CardanoScriptConfig) String() string { return proto.CompactTextString(m) } -func (*CardanoScriptConfig) ProtoMessage() {} -func (*CardanoScriptConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_785ed7eccc80ff2e, []int{2} +func (x *CardanoScriptConfig) Reset() { + *x = CardanoScriptConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_cardano_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CardanoScriptConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CardanoScriptConfig.Unmarshal(m, b) -} -func (m *CardanoScriptConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CardanoScriptConfig.Marshal(b, m, deterministic) -} -func (m *CardanoScriptConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_CardanoScriptConfig.Merge(m, src) -} -func (m *CardanoScriptConfig) XXX_Size() int { - return xxx_messageInfo_CardanoScriptConfig.Size(m) -} -func (m *CardanoScriptConfig) XXX_DiscardUnknown() { - xxx_messageInfo_CardanoScriptConfig.DiscardUnknown(m) +func (x *CardanoScriptConfig) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_CardanoScriptConfig proto.InternalMessageInfo +func (*CardanoScriptConfig) ProtoMessage() {} -type isCardanoScriptConfig_Config interface { - isCardanoScriptConfig_Config() +func (x *CardanoScriptConfig) ProtoReflect() protoreflect.Message { + mi := &file_cardano_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) } -type CardanoScriptConfig_PkhSkh_ struct { - PkhSkh *CardanoScriptConfig_PkhSkh `protobuf:"bytes,1,opt,name=pkh_skh,json=pkhSkh,proto3,oneof"` +// Deprecated: Use CardanoScriptConfig.ProtoReflect.Descriptor instead. +func (*CardanoScriptConfig) Descriptor() ([]byte, []int) { + return file_cardano_proto_rawDescGZIP(), []int{2} } -func (*CardanoScriptConfig_PkhSkh_) isCardanoScriptConfig_Config() {} - func (m *CardanoScriptConfig) GetConfig() isCardanoScriptConfig_Config { if m != nil { return m.Config @@ -179,118 +228,83 @@ func (m *CardanoScriptConfig) GetConfig() isCardanoScriptConfig_Config { return nil } -func (m *CardanoScriptConfig) GetPkhSkh() *CardanoScriptConfig_PkhSkh { - if x, ok := m.GetConfig().(*CardanoScriptConfig_PkhSkh_); ok { +func (x *CardanoScriptConfig) GetPkhSkh() *CardanoScriptConfig_PkhSkh { + if x, ok := x.GetConfig().(*CardanoScriptConfig_PkhSkh_); ok { return x.PkhSkh } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*CardanoScriptConfig) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*CardanoScriptConfig_PkhSkh_)(nil), - } -} - -type CardanoScriptConfig_PkhSkh struct { - KeypathPayment []uint32 `protobuf:"varint,1,rep,packed,name=keypath_payment,json=keypathPayment,proto3" json:"keypath_payment,omitempty"` - KeypathStake []uint32 `protobuf:"varint,2,rep,packed,name=keypath_stake,json=keypathStake,proto3" json:"keypath_stake,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type isCardanoScriptConfig_Config interface { + isCardanoScriptConfig_Config() } -func (m *CardanoScriptConfig_PkhSkh) Reset() { *m = CardanoScriptConfig_PkhSkh{} } -func (m *CardanoScriptConfig_PkhSkh) String() string { return proto.CompactTextString(m) } -func (*CardanoScriptConfig_PkhSkh) ProtoMessage() {} -func (*CardanoScriptConfig_PkhSkh) Descriptor() ([]byte, []int) { - return fileDescriptor_785ed7eccc80ff2e, []int{2, 0} +type CardanoScriptConfig_PkhSkh_ struct { + // Shelley PaymentKeyHash & StakeKeyHash + PkhSkh *CardanoScriptConfig_PkhSkh `protobuf:"bytes,1,opt,name=pkh_skh,json=pkhSkh,proto3,oneof"` } -func (m *CardanoScriptConfig_PkhSkh) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CardanoScriptConfig_PkhSkh.Unmarshal(m, b) -} -func (m *CardanoScriptConfig_PkhSkh) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CardanoScriptConfig_PkhSkh.Marshal(b, m, deterministic) -} -func (m *CardanoScriptConfig_PkhSkh) XXX_Merge(src proto.Message) { - xxx_messageInfo_CardanoScriptConfig_PkhSkh.Merge(m, src) -} -func (m *CardanoScriptConfig_PkhSkh) XXX_Size() int { - return xxx_messageInfo_CardanoScriptConfig_PkhSkh.Size(m) -} -func (m *CardanoScriptConfig_PkhSkh) XXX_DiscardUnknown() { - xxx_messageInfo_CardanoScriptConfig_PkhSkh.DiscardUnknown(m) -} +func (*CardanoScriptConfig_PkhSkh_) isCardanoScriptConfig_Config() {} -var xxx_messageInfo_CardanoScriptConfig_PkhSkh proto.InternalMessageInfo +type CardanoAddressRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CardanoScriptConfig_PkhSkh) GetKeypathPayment() []uint32 { - if m != nil { - return m.KeypathPayment - } - return nil + Network CardanoNetwork `protobuf:"varint,1,opt,name=network,proto3,enum=shiftcrypto.bitbox02.CardanoNetwork" json:"network,omitempty"` + Display bool `protobuf:"varint,2,opt,name=display,proto3" json:"display,omitempty"` + ScriptConfig *CardanoScriptConfig `protobuf:"bytes,3,opt,name=script_config,json=scriptConfig,proto3" json:"script_config,omitempty"` } -func (m *CardanoScriptConfig_PkhSkh) GetKeypathStake() []uint32 { - if m != nil { - return m.KeypathStake +func (x *CardanoAddressRequest) Reset() { + *x = CardanoAddressRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cardano_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type CardanoAddressRequest struct { - Network CardanoNetwork `protobuf:"varint,1,opt,name=network,proto3,enum=shiftcrypto.bitbox02.CardanoNetwork" json:"network,omitempty"` - Display bool `protobuf:"varint,2,opt,name=display,proto3" json:"display,omitempty"` - ScriptConfig *CardanoScriptConfig `protobuf:"bytes,3,opt,name=script_config,json=scriptConfig,proto3" json:"script_config,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *CardanoAddressRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CardanoAddressRequest) Reset() { *m = CardanoAddressRequest{} } -func (m *CardanoAddressRequest) String() string { return proto.CompactTextString(m) } -func (*CardanoAddressRequest) ProtoMessage() {} -func (*CardanoAddressRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_785ed7eccc80ff2e, []int{3} -} +func (*CardanoAddressRequest) ProtoMessage() {} -func (m *CardanoAddressRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CardanoAddressRequest.Unmarshal(m, b) -} -func (m *CardanoAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CardanoAddressRequest.Marshal(b, m, deterministic) -} -func (m *CardanoAddressRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CardanoAddressRequest.Merge(m, src) -} -func (m *CardanoAddressRequest) XXX_Size() int { - return xxx_messageInfo_CardanoAddressRequest.Size(m) -} -func (m *CardanoAddressRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CardanoAddressRequest.DiscardUnknown(m) +func (x *CardanoAddressRequest) ProtoReflect() protoreflect.Message { + mi := &file_cardano_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) } -var xxx_messageInfo_CardanoAddressRequest proto.InternalMessageInfo +// Deprecated: Use CardanoAddressRequest.ProtoReflect.Descriptor instead. +func (*CardanoAddressRequest) Descriptor() ([]byte, []int) { + return file_cardano_proto_rawDescGZIP(), []int{3} +} -func (m *CardanoAddressRequest) GetNetwork() CardanoNetwork { - if m != nil { - return m.Network +func (x *CardanoAddressRequest) GetNetwork() CardanoNetwork { + if x != nil { + return x.Network } return CardanoNetwork_CardanoMainnet } -func (m *CardanoAddressRequest) GetDisplay() bool { - if m != nil { - return m.Display +func (x *CardanoAddressRequest) GetDisplay() bool { + if x != nil { + return x.Display } return false } -func (m *CardanoAddressRequest) GetScriptConfig() *CardanoScriptConfig { - if m != nil { - return m.ScriptConfig +func (x *CardanoAddressRequest) GetScriptConfig() *CardanoScriptConfig { + if x != nil { + return x.ScriptConfig } return nil } @@ -301,6 +315,10 @@ func (m *CardanoAddressRequest) GetScriptConfig() *CardanoScriptConfig { // // See also: https://github.com/input-output-hk/cardano-ledger-specs/blob/d0aa86ded0b973b09b629e5aa62aa1e71364d088/eras/alonzo/test-suite/cddl-files/alonzo.cddl#L50 type CardanoSignTransactionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Network CardanoNetwork `protobuf:"varint,1,opt,name=network,proto3,enum=shiftcrypto.bitbox02.CardanoNetwork" json:"network,omitempty"` Inputs []*CardanoSignTransactionRequest_Input `protobuf:"bytes,2,rep,name=inputs,proto3" json:"inputs,omitempty"` Outputs []*CardanoSignTransactionRequest_Output `protobuf:"bytes,3,rep,name=outputs,proto3" json:"outputs,omitempty"` @@ -309,892 +327,1410 @@ type CardanoSignTransactionRequest struct { Certificates []*CardanoSignTransactionRequest_Certificate `protobuf:"bytes,6,rep,name=certificates,proto3" json:"certificates,omitempty"` Withdrawals []*CardanoSignTransactionRequest_Withdrawal `protobuf:"bytes,7,rep,name=withdrawals,proto3" json:"withdrawals,omitempty"` ValidityIntervalStart uint64 `protobuf:"varint,8,opt,name=validity_interval_start,json=validityIntervalStart,proto3" json:"validity_interval_start,omitempty"` - AllowZeroTtl bool `protobuf:"varint,9,opt,name=allow_zero_ttl,json=allowZeroTtl,proto3" json:"allow_zero_ttl,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + AllowZeroTtl bool `protobuf:"varint,9,opt,name=allow_zero_ttl,json=allowZeroTtl,proto3" json:"allow_zero_ttl,omitempty"` // include ttl even if it is zero } -func (m *CardanoSignTransactionRequest) Reset() { *m = CardanoSignTransactionRequest{} } -func (m *CardanoSignTransactionRequest) String() string { return proto.CompactTextString(m) } -func (*CardanoSignTransactionRequest) ProtoMessage() {} -func (*CardanoSignTransactionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_785ed7eccc80ff2e, []int{4} +func (x *CardanoSignTransactionRequest) Reset() { + *x = CardanoSignTransactionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cardano_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CardanoSignTransactionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CardanoSignTransactionRequest.Unmarshal(m, b) +func (x *CardanoSignTransactionRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CardanoSignTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CardanoSignTransactionRequest.Marshal(b, m, deterministic) -} -func (m *CardanoSignTransactionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CardanoSignTransactionRequest.Merge(m, src) -} -func (m *CardanoSignTransactionRequest) XXX_Size() int { - return xxx_messageInfo_CardanoSignTransactionRequest.Size(m) -} -func (m *CardanoSignTransactionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CardanoSignTransactionRequest.DiscardUnknown(m) + +func (*CardanoSignTransactionRequest) ProtoMessage() {} + +func (x *CardanoSignTransactionRequest) ProtoReflect() protoreflect.Message { + mi := &file_cardano_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) } -var xxx_messageInfo_CardanoSignTransactionRequest proto.InternalMessageInfo +// Deprecated: Use CardanoSignTransactionRequest.ProtoReflect.Descriptor instead. +func (*CardanoSignTransactionRequest) Descriptor() ([]byte, []int) { + return file_cardano_proto_rawDescGZIP(), []int{4} +} -func (m *CardanoSignTransactionRequest) GetNetwork() CardanoNetwork { - if m != nil { - return m.Network +func (x *CardanoSignTransactionRequest) GetNetwork() CardanoNetwork { + if x != nil { + return x.Network } return CardanoNetwork_CardanoMainnet } -func (m *CardanoSignTransactionRequest) GetInputs() []*CardanoSignTransactionRequest_Input { - if m != nil { - return m.Inputs +func (x *CardanoSignTransactionRequest) GetInputs() []*CardanoSignTransactionRequest_Input { + if x != nil { + return x.Inputs } return nil } -func (m *CardanoSignTransactionRequest) GetOutputs() []*CardanoSignTransactionRequest_Output { - if m != nil { - return m.Outputs +func (x *CardanoSignTransactionRequest) GetOutputs() []*CardanoSignTransactionRequest_Output { + if x != nil { + return x.Outputs } return nil } -func (m *CardanoSignTransactionRequest) GetFee() uint64 { - if m != nil { - return m.Fee +func (x *CardanoSignTransactionRequest) GetFee() uint64 { + if x != nil { + return x.Fee } return 0 } -func (m *CardanoSignTransactionRequest) GetTtl() uint64 { - if m != nil { - return m.Ttl +func (x *CardanoSignTransactionRequest) GetTtl() uint64 { + if x != nil { + return x.Ttl } return 0 } -func (m *CardanoSignTransactionRequest) GetCertificates() []*CardanoSignTransactionRequest_Certificate { - if m != nil { - return m.Certificates +func (x *CardanoSignTransactionRequest) GetCertificates() []*CardanoSignTransactionRequest_Certificate { + if x != nil { + return x.Certificates } return nil } -func (m *CardanoSignTransactionRequest) GetWithdrawals() []*CardanoSignTransactionRequest_Withdrawal { - if m != nil { - return m.Withdrawals +func (x *CardanoSignTransactionRequest) GetWithdrawals() []*CardanoSignTransactionRequest_Withdrawal { + if x != nil { + return x.Withdrawals } return nil } -func (m *CardanoSignTransactionRequest) GetValidityIntervalStart() uint64 { - if m != nil { - return m.ValidityIntervalStart +func (x *CardanoSignTransactionRequest) GetValidityIntervalStart() uint64 { + if x != nil { + return x.ValidityIntervalStart } return 0 } -func (m *CardanoSignTransactionRequest) GetAllowZeroTtl() bool { - if m != nil { - return m.AllowZeroTtl +func (x *CardanoSignTransactionRequest) GetAllowZeroTtl() bool { + if x != nil { + return x.AllowZeroTtl } return false } -type CardanoSignTransactionRequest_Input struct { - Keypath []uint32 `protobuf:"varint,1,rep,packed,name=keypath,proto3" json:"keypath,omitempty"` - PrevOutHash []byte `protobuf:"bytes,2,opt,name=prev_out_hash,json=prevOutHash,proto3" json:"prev_out_hash,omitempty"` - PrevOutIndex uint32 `protobuf:"varint,3,opt,name=prev_out_index,json=prevOutIndex,proto3" json:"prev_out_index,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +type CardanoSignTransactionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CardanoSignTransactionRequest_Input) Reset() { *m = CardanoSignTransactionRequest_Input{} } -func (m *CardanoSignTransactionRequest_Input) String() string { return proto.CompactTextString(m) } -func (*CardanoSignTransactionRequest_Input) ProtoMessage() {} -func (*CardanoSignTransactionRequest_Input) Descriptor() ([]byte, []int) { - return fileDescriptor_785ed7eccc80ff2e, []int{4, 0} + ShelleyWitnesses []*CardanoSignTransactionResponse_ShelleyWitness `protobuf:"bytes,1,rep,name=shelley_witnesses,json=shelleyWitnesses,proto3" json:"shelley_witnesses,omitempty"` } -func (m *CardanoSignTransactionRequest_Input) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CardanoSignTransactionRequest_Input.Unmarshal(m, b) -} -func (m *CardanoSignTransactionRequest_Input) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CardanoSignTransactionRequest_Input.Marshal(b, m, deterministic) -} -func (m *CardanoSignTransactionRequest_Input) XXX_Merge(src proto.Message) { - xxx_messageInfo_CardanoSignTransactionRequest_Input.Merge(m, src) -} -func (m *CardanoSignTransactionRequest_Input) XXX_Size() int { - return xxx_messageInfo_CardanoSignTransactionRequest_Input.Size(m) +func (x *CardanoSignTransactionResponse) Reset() { + *x = CardanoSignTransactionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cardano_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CardanoSignTransactionRequest_Input) XXX_DiscardUnknown() { - xxx_messageInfo_CardanoSignTransactionRequest_Input.DiscardUnknown(m) + +func (x *CardanoSignTransactionResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_CardanoSignTransactionRequest_Input proto.InternalMessageInfo +func (*CardanoSignTransactionResponse) ProtoMessage() {} -func (m *CardanoSignTransactionRequest_Input) GetKeypath() []uint32 { - if m != nil { - return m.Keypath +func (x *CardanoSignTransactionResponse) ProtoReflect() protoreflect.Message { + mi := &file_cardano_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 nil + return mi.MessageOf(x) } -func (m *CardanoSignTransactionRequest_Input) GetPrevOutHash() []byte { - if m != nil { - return m.PrevOutHash - } - return nil +// Deprecated: Use CardanoSignTransactionResponse.ProtoReflect.Descriptor instead. +func (*CardanoSignTransactionResponse) Descriptor() ([]byte, []int) { + return file_cardano_proto_rawDescGZIP(), []int{5} } -func (m *CardanoSignTransactionRequest_Input) GetPrevOutIndex() uint32 { - if m != nil { - return m.PrevOutIndex +func (x *CardanoSignTransactionResponse) GetShelleyWitnesses() []*CardanoSignTransactionResponse_ShelleyWitness { + if x != nil { + return x.ShelleyWitnesses } - return 0 + return nil } -// https://github.com/input-output-hk/cardano-ledger/blob/d0aa86ded0b973b09b629e5aa62aa1e71364d088/eras/alonzo/test-suite/cddl-files/alonzo.cddl#L358 -type CardanoSignTransactionRequest_AssetGroup struct { - PolicyId []byte `protobuf:"bytes,1,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"` - Tokens []*CardanoSignTransactionRequest_AssetGroup_Token `protobuf:"bytes,2,rep,name=tokens,proto3" json:"tokens,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +type CardanoRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CardanoSignTransactionRequest_AssetGroup) Reset() { - *m = CardanoSignTransactionRequest_AssetGroup{} -} -func (m *CardanoSignTransactionRequest_AssetGroup) String() string { return proto.CompactTextString(m) } -func (*CardanoSignTransactionRequest_AssetGroup) ProtoMessage() {} -func (*CardanoSignTransactionRequest_AssetGroup) Descriptor() ([]byte, []int) { - return fileDescriptor_785ed7eccc80ff2e, []int{4, 1} + // Types that are assignable to Request: + // *CardanoRequest_Xpubs + // *CardanoRequest_Address + // *CardanoRequest_SignTransaction + Request isCardanoRequest_Request `protobuf_oneof:"request"` } -func (m *CardanoSignTransactionRequest_AssetGroup) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CardanoSignTransactionRequest_AssetGroup.Unmarshal(m, b) -} -func (m *CardanoSignTransactionRequest_AssetGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CardanoSignTransactionRequest_AssetGroup.Marshal(b, m, deterministic) -} -func (m *CardanoSignTransactionRequest_AssetGroup) XXX_Merge(src proto.Message) { - xxx_messageInfo_CardanoSignTransactionRequest_AssetGroup.Merge(m, src) +func (x *CardanoRequest) Reset() { + *x = CardanoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cardano_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CardanoSignTransactionRequest_AssetGroup) XXX_Size() int { - return xxx_messageInfo_CardanoSignTransactionRequest_AssetGroup.Size(m) + +func (x *CardanoRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CardanoSignTransactionRequest_AssetGroup) XXX_DiscardUnknown() { - xxx_messageInfo_CardanoSignTransactionRequest_AssetGroup.DiscardUnknown(m) + +func (*CardanoRequest) ProtoMessage() {} + +func (x *CardanoRequest) ProtoReflect() protoreflect.Message { + mi := &file_cardano_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) } -var xxx_messageInfo_CardanoSignTransactionRequest_AssetGroup proto.InternalMessageInfo +// Deprecated: Use CardanoRequest.ProtoReflect.Descriptor instead. +func (*CardanoRequest) Descriptor() ([]byte, []int) { + return file_cardano_proto_rawDescGZIP(), []int{6} +} -func (m *CardanoSignTransactionRequest_AssetGroup) GetPolicyId() []byte { +func (m *CardanoRequest) GetRequest() isCardanoRequest_Request { if m != nil { - return m.PolicyId + return m.Request } return nil } -func (m *CardanoSignTransactionRequest_AssetGroup) GetTokens() []*CardanoSignTransactionRequest_AssetGroup_Token { - if m != nil { - return m.Tokens +func (x *CardanoRequest) GetXpubs() *CardanoXpubsRequest { + if x, ok := x.GetRequest().(*CardanoRequest_Xpubs); ok { + return x.Xpubs } return nil } -type CardanoSignTransactionRequest_AssetGroup_Token struct { - AssetName []byte `protobuf:"bytes,1,opt,name=asset_name,json=assetName,proto3" json:"asset_name,omitempty"` - // Number of tokens transacted of this asset. - Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *CardanoRequest) GetAddress() *CardanoAddressRequest { + if x, ok := x.GetRequest().(*CardanoRequest_Address); ok { + return x.Address + } + return nil } -func (m *CardanoSignTransactionRequest_AssetGroup_Token) Reset() { - *m = CardanoSignTransactionRequest_AssetGroup_Token{} -} -func (m *CardanoSignTransactionRequest_AssetGroup_Token) String() string { - return proto.CompactTextString(m) -} -func (*CardanoSignTransactionRequest_AssetGroup_Token) ProtoMessage() {} -func (*CardanoSignTransactionRequest_AssetGroup_Token) Descriptor() ([]byte, []int) { - return fileDescriptor_785ed7eccc80ff2e, []int{4, 1, 0} +func (x *CardanoRequest) GetSignTransaction() *CardanoSignTransactionRequest { + if x, ok := x.GetRequest().(*CardanoRequest_SignTransaction); ok { + return x.SignTransaction + } + return nil } -func (m *CardanoSignTransactionRequest_AssetGroup_Token) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CardanoSignTransactionRequest_AssetGroup_Token.Unmarshal(m, b) -} -func (m *CardanoSignTransactionRequest_AssetGroup_Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CardanoSignTransactionRequest_AssetGroup_Token.Marshal(b, m, deterministic) +type isCardanoRequest_Request interface { + isCardanoRequest_Request() } -func (m *CardanoSignTransactionRequest_AssetGroup_Token) XXX_Merge(src proto.Message) { - xxx_messageInfo_CardanoSignTransactionRequest_AssetGroup_Token.Merge(m, src) + +type CardanoRequest_Xpubs struct { + Xpubs *CardanoXpubsRequest `protobuf:"bytes,1,opt,name=xpubs,proto3,oneof"` } -func (m *CardanoSignTransactionRequest_AssetGroup_Token) XXX_Size() int { - return xxx_messageInfo_CardanoSignTransactionRequest_AssetGroup_Token.Size(m) + +type CardanoRequest_Address struct { + Address *CardanoAddressRequest `protobuf:"bytes,2,opt,name=address,proto3,oneof"` } -func (m *CardanoSignTransactionRequest_AssetGroup_Token) XXX_DiscardUnknown() { - xxx_messageInfo_CardanoSignTransactionRequest_AssetGroup_Token.DiscardUnknown(m) + +type CardanoRequest_SignTransaction struct { + SignTransaction *CardanoSignTransactionRequest `protobuf:"bytes,3,opt,name=sign_transaction,json=signTransaction,proto3,oneof"` } -var xxx_messageInfo_CardanoSignTransactionRequest_AssetGroup_Token proto.InternalMessageInfo +func (*CardanoRequest_Xpubs) isCardanoRequest_Request() {} -func (m *CardanoSignTransactionRequest_AssetGroup_Token) GetAssetName() []byte { - if m != nil { - return m.AssetName - } - return nil +func (*CardanoRequest_Address) isCardanoRequest_Request() {} + +func (*CardanoRequest_SignTransaction) isCardanoRequest_Request() {} + +type CardanoResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Response: + // *CardanoResponse_Xpubs + // *CardanoResponse_Pub + // *CardanoResponse_SignTransaction + Response isCardanoResponse_Response `protobuf_oneof:"response"` } -func (m *CardanoSignTransactionRequest_AssetGroup_Token) GetValue() uint64 { - if m != nil { - return m.Value +func (x *CardanoResponse) Reset() { + *x = CardanoResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cardano_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return 0 } -type CardanoSignTransactionRequest_Output struct { - EncodedAddress string `protobuf:"bytes,1,opt,name=encoded_address,json=encodedAddress,proto3" json:"encoded_address,omitempty"` - Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` - // Optional. If provided, this is validated as a change output. - ScriptConfig *CardanoScriptConfig `protobuf:"bytes,3,opt,name=script_config,json=scriptConfig,proto3" json:"script_config,omitempty"` - AssetGroups []*CardanoSignTransactionRequest_AssetGroup `protobuf:"bytes,4,rep,name=asset_groups,json=assetGroups,proto3" json:"asset_groups,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *CardanoResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CardanoSignTransactionRequest_Output) Reset() { *m = CardanoSignTransactionRequest_Output{} } -func (m *CardanoSignTransactionRequest_Output) String() string { return proto.CompactTextString(m) } -func (*CardanoSignTransactionRequest_Output) ProtoMessage() {} -func (*CardanoSignTransactionRequest_Output) Descriptor() ([]byte, []int) { - return fileDescriptor_785ed7eccc80ff2e, []int{4, 2} -} +func (*CardanoResponse) ProtoMessage() {} -func (m *CardanoSignTransactionRequest_Output) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CardanoSignTransactionRequest_Output.Unmarshal(m, b) -} -func (m *CardanoSignTransactionRequest_Output) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CardanoSignTransactionRequest_Output.Marshal(b, m, deterministic) -} -func (m *CardanoSignTransactionRequest_Output) XXX_Merge(src proto.Message) { - xxx_messageInfo_CardanoSignTransactionRequest_Output.Merge(m, src) -} -func (m *CardanoSignTransactionRequest_Output) XXX_Size() int { - return xxx_messageInfo_CardanoSignTransactionRequest_Output.Size(m) -} -func (m *CardanoSignTransactionRequest_Output) XXX_DiscardUnknown() { - xxx_messageInfo_CardanoSignTransactionRequest_Output.DiscardUnknown(m) +func (x *CardanoResponse) ProtoReflect() protoreflect.Message { + mi := &file_cardano_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) } -var xxx_messageInfo_CardanoSignTransactionRequest_Output proto.InternalMessageInfo +// Deprecated: Use CardanoResponse.ProtoReflect.Descriptor instead. +func (*CardanoResponse) Descriptor() ([]byte, []int) { + return file_cardano_proto_rawDescGZIP(), []int{7} +} -func (m *CardanoSignTransactionRequest_Output) GetEncodedAddress() string { +func (m *CardanoResponse) GetResponse() isCardanoResponse_Response { if m != nil { - return m.EncodedAddress + return m.Response } - return "" + return nil } -func (m *CardanoSignTransactionRequest_Output) GetValue() uint64 { - if m != nil { - return m.Value +func (x *CardanoResponse) GetXpubs() *CardanoXpubsResponse { + if x, ok := x.GetResponse().(*CardanoResponse_Xpubs); ok { + return x.Xpubs } - return 0 + return nil } -func (m *CardanoSignTransactionRequest_Output) GetScriptConfig() *CardanoScriptConfig { - if m != nil { - return m.ScriptConfig +func (x *CardanoResponse) GetPub() *PubResponse { + if x, ok := x.GetResponse().(*CardanoResponse_Pub); ok { + return x.Pub } return nil } -func (m *CardanoSignTransactionRequest_Output) GetAssetGroups() []*CardanoSignTransactionRequest_AssetGroup { - if m != nil { - return m.AssetGroups +func (x *CardanoResponse) GetSignTransaction() *CardanoSignTransactionResponse { + if x, ok := x.GetResponse().(*CardanoResponse_SignTransaction); ok { + return x.SignTransaction } return nil } -// See https://github.com/input-output-hk/cardano-ledger-specs/blob/d0aa86ded0b973b09b629e5aa62aa1e71364d088/eras/alonzo/test-suite/cddl-files/alonzo.cddl#L150 -type CardanoSignTransactionRequest_Certificate struct { - // Types that are valid to be assigned to Cert: - // *CardanoSignTransactionRequest_Certificate_StakeRegistration - // *CardanoSignTransactionRequest_Certificate_StakeDeregistration - // *CardanoSignTransactionRequest_Certificate_StakeDelegation_ - Cert isCardanoSignTransactionRequest_Certificate_Cert `protobuf_oneof:"cert"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type isCardanoResponse_Response interface { + isCardanoResponse_Response() } -func (m *CardanoSignTransactionRequest_Certificate) Reset() { - *m = CardanoSignTransactionRequest_Certificate{} -} -func (m *CardanoSignTransactionRequest_Certificate) String() string { return proto.CompactTextString(m) } -func (*CardanoSignTransactionRequest_Certificate) ProtoMessage() {} -func (*CardanoSignTransactionRequest_Certificate) Descriptor() ([]byte, []int) { - return fileDescriptor_785ed7eccc80ff2e, []int{4, 3} +type CardanoResponse_Xpubs struct { + Xpubs *CardanoXpubsResponse `protobuf:"bytes,1,opt,name=xpubs,proto3,oneof"` } -func (m *CardanoSignTransactionRequest_Certificate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CardanoSignTransactionRequest_Certificate.Unmarshal(m, b) -} -func (m *CardanoSignTransactionRequest_Certificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CardanoSignTransactionRequest_Certificate.Marshal(b, m, deterministic) -} -func (m *CardanoSignTransactionRequest_Certificate) XXX_Merge(src proto.Message) { - xxx_messageInfo_CardanoSignTransactionRequest_Certificate.Merge(m, src) -} -func (m *CardanoSignTransactionRequest_Certificate) XXX_Size() int { - return xxx_messageInfo_CardanoSignTransactionRequest_Certificate.Size(m) +type CardanoResponse_Pub struct { + Pub *PubResponse `protobuf:"bytes,2,opt,name=pub,proto3,oneof"` } -func (m *CardanoSignTransactionRequest_Certificate) XXX_DiscardUnknown() { - xxx_messageInfo_CardanoSignTransactionRequest_Certificate.DiscardUnknown(m) + +type CardanoResponse_SignTransaction struct { + SignTransaction *CardanoSignTransactionResponse `protobuf:"bytes,3,opt,name=sign_transaction,json=signTransaction,proto3,oneof"` } -var xxx_messageInfo_CardanoSignTransactionRequest_Certificate proto.InternalMessageInfo +func (*CardanoResponse_Xpubs) isCardanoResponse_Response() {} -type isCardanoSignTransactionRequest_Certificate_Cert interface { - isCardanoSignTransactionRequest_Certificate_Cert() -} +func (*CardanoResponse_Pub) isCardanoResponse_Response() {} -type CardanoSignTransactionRequest_Certificate_StakeRegistration struct { - StakeRegistration *Keypath `protobuf:"bytes,1,opt,name=stake_registration,json=stakeRegistration,proto3,oneof"` -} +func (*CardanoResponse_SignTransaction) isCardanoResponse_Response() {} -type CardanoSignTransactionRequest_Certificate_StakeDeregistration struct { - StakeDeregistration *Keypath `protobuf:"bytes,2,opt,name=stake_deregistration,json=stakeDeregistration,proto3,oneof"` -} +type CardanoScriptConfig_PkhSkh struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type CardanoSignTransactionRequest_Certificate_StakeDelegation_ struct { - StakeDelegation *CardanoSignTransactionRequest_Certificate_StakeDelegation `protobuf:"bytes,3,opt,name=stake_delegation,json=stakeDelegation,proto3,oneof"` + KeypathPayment []uint32 `protobuf:"varint,1,rep,packed,name=keypath_payment,json=keypathPayment,proto3" json:"keypath_payment,omitempty"` + KeypathStake []uint32 `protobuf:"varint,2,rep,packed,name=keypath_stake,json=keypathStake,proto3" json:"keypath_stake,omitempty"` } -func (*CardanoSignTransactionRequest_Certificate_StakeRegistration) isCardanoSignTransactionRequest_Certificate_Cert() { +func (x *CardanoScriptConfig_PkhSkh) Reset() { + *x = CardanoScriptConfig_PkhSkh{} + if protoimpl.UnsafeEnabled { + mi := &file_cardano_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (*CardanoSignTransactionRequest_Certificate_StakeDeregistration) isCardanoSignTransactionRequest_Certificate_Cert() { +func (x *CardanoScriptConfig_PkhSkh) String() string { + return protoimpl.X.MessageStringOf(x) } -func (*CardanoSignTransactionRequest_Certificate_StakeDelegation_) isCardanoSignTransactionRequest_Certificate_Cert() { -} +func (*CardanoScriptConfig_PkhSkh) ProtoMessage() {} -func (m *CardanoSignTransactionRequest_Certificate) GetCert() isCardanoSignTransactionRequest_Certificate_Cert { - if m != nil { - return m.Cert +func (x *CardanoScriptConfig_PkhSkh) ProtoReflect() protoreflect.Message { + mi := &file_cardano_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *CardanoSignTransactionRequest_Certificate) GetStakeRegistration() *Keypath { - if x, ok := m.GetCert().(*CardanoSignTransactionRequest_Certificate_StakeRegistration); ok { - return x.StakeRegistration - } - return nil +// Deprecated: Use CardanoScriptConfig_PkhSkh.ProtoReflect.Descriptor instead. +func (*CardanoScriptConfig_PkhSkh) Descriptor() ([]byte, []int) { + return file_cardano_proto_rawDescGZIP(), []int{2, 0} } -func (m *CardanoSignTransactionRequest_Certificate) GetStakeDeregistration() *Keypath { - if x, ok := m.GetCert().(*CardanoSignTransactionRequest_Certificate_StakeDeregistration); ok { - return x.StakeDeregistration +func (x *CardanoScriptConfig_PkhSkh) GetKeypathPayment() []uint32 { + if x != nil { + return x.KeypathPayment } return nil } -func (m *CardanoSignTransactionRequest_Certificate) GetStakeDelegation() *CardanoSignTransactionRequest_Certificate_StakeDelegation { - if x, ok := m.GetCert().(*CardanoSignTransactionRequest_Certificate_StakeDelegation_); ok { - return x.StakeDelegation +func (x *CardanoScriptConfig_PkhSkh) GetKeypathStake() []uint32 { + if x != nil { + return x.KeypathStake } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*CardanoSignTransactionRequest_Certificate) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*CardanoSignTransactionRequest_Certificate_StakeRegistration)(nil), - (*CardanoSignTransactionRequest_Certificate_StakeDeregistration)(nil), - (*CardanoSignTransactionRequest_Certificate_StakeDelegation_)(nil), - } -} +type CardanoSignTransactionRequest_Input struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type CardanoSignTransactionRequest_Certificate_StakeDelegation struct { - Keypath []uint32 `protobuf:"varint,1,rep,packed,name=keypath,proto3" json:"keypath,omitempty"` - PoolKeyhash []byte `protobuf:"bytes,2,opt,name=pool_keyhash,json=poolKeyhash,proto3" json:"pool_keyhash,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Keypath []uint32 `protobuf:"varint,1,rep,packed,name=keypath,proto3" json:"keypath,omitempty"` + PrevOutHash []byte `protobuf:"bytes,2,opt,name=prev_out_hash,json=prevOutHash,proto3" json:"prev_out_hash,omitempty"` + PrevOutIndex uint32 `protobuf:"varint,3,opt,name=prev_out_index,json=prevOutIndex,proto3" json:"prev_out_index,omitempty"` } -func (m *CardanoSignTransactionRequest_Certificate_StakeDelegation) Reset() { - *m = CardanoSignTransactionRequest_Certificate_StakeDelegation{} -} -func (m *CardanoSignTransactionRequest_Certificate_StakeDelegation) String() string { - return proto.CompactTextString(m) -} -func (*CardanoSignTransactionRequest_Certificate_StakeDelegation) ProtoMessage() {} -func (*CardanoSignTransactionRequest_Certificate_StakeDelegation) Descriptor() ([]byte, []int) { - return fileDescriptor_785ed7eccc80ff2e, []int{4, 3, 0} +func (x *CardanoSignTransactionRequest_Input) Reset() { + *x = CardanoSignTransactionRequest_Input{} + if protoimpl.UnsafeEnabled { + mi := &file_cardano_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CardanoSignTransactionRequest_Certificate_StakeDelegation) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CardanoSignTransactionRequest_Certificate_StakeDelegation.Unmarshal(m, b) +func (x *CardanoSignTransactionRequest_Input) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CardanoSignTransactionRequest_Certificate_StakeDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CardanoSignTransactionRequest_Certificate_StakeDelegation.Marshal(b, m, deterministic) -} -func (m *CardanoSignTransactionRequest_Certificate_StakeDelegation) XXX_Merge(src proto.Message) { - xxx_messageInfo_CardanoSignTransactionRequest_Certificate_StakeDelegation.Merge(m, src) -} -func (m *CardanoSignTransactionRequest_Certificate_StakeDelegation) XXX_Size() int { - return xxx_messageInfo_CardanoSignTransactionRequest_Certificate_StakeDelegation.Size(m) -} -func (m *CardanoSignTransactionRequest_Certificate_StakeDelegation) XXX_DiscardUnknown() { - xxx_messageInfo_CardanoSignTransactionRequest_Certificate_StakeDelegation.DiscardUnknown(m) + +func (*CardanoSignTransactionRequest_Input) ProtoMessage() {} + +func (x *CardanoSignTransactionRequest_Input) ProtoReflect() protoreflect.Message { + mi := &file_cardano_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CardanoSignTransactionRequest_Certificate_StakeDelegation proto.InternalMessageInfo +// Deprecated: Use CardanoSignTransactionRequest_Input.ProtoReflect.Descriptor instead. +func (*CardanoSignTransactionRequest_Input) Descriptor() ([]byte, []int) { + return file_cardano_proto_rawDescGZIP(), []int{4, 0} +} -func (m *CardanoSignTransactionRequest_Certificate_StakeDelegation) GetKeypath() []uint32 { - if m != nil { - return m.Keypath +func (x *CardanoSignTransactionRequest_Input) GetKeypath() []uint32 { + if x != nil { + return x.Keypath } return nil } -func (m *CardanoSignTransactionRequest_Certificate_StakeDelegation) GetPoolKeyhash() []byte { - if m != nil { - return m.PoolKeyhash +func (x *CardanoSignTransactionRequest_Input) GetPrevOutHash() []byte { + if x != nil { + return x.PrevOutHash } return nil } -type CardanoSignTransactionRequest_Withdrawal struct { - Keypath []uint32 `protobuf:"varint,1,rep,packed,name=keypath,proto3" json:"keypath,omitempty"` - Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *CardanoSignTransactionRequest_Input) GetPrevOutIndex() uint32 { + if x != nil { + return x.PrevOutIndex + } + return 0 } -func (m *CardanoSignTransactionRequest_Withdrawal) Reset() { - *m = CardanoSignTransactionRequest_Withdrawal{} -} -func (m *CardanoSignTransactionRequest_Withdrawal) String() string { return proto.CompactTextString(m) } -func (*CardanoSignTransactionRequest_Withdrawal) ProtoMessage() {} -func (*CardanoSignTransactionRequest_Withdrawal) Descriptor() ([]byte, []int) { - return fileDescriptor_785ed7eccc80ff2e, []int{4, 4} -} +// https://github.com/input-output-hk/cardano-ledger/blob/d0aa86ded0b973b09b629e5aa62aa1e71364d088/eras/alonzo/test-suite/cddl-files/alonzo.cddl#L358 +type CardanoSignTransactionRequest_AssetGroup struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CardanoSignTransactionRequest_Withdrawal) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CardanoSignTransactionRequest_Withdrawal.Unmarshal(m, b) + PolicyId []byte `protobuf:"bytes,1,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"` + Tokens []*CardanoSignTransactionRequest_AssetGroup_Token `protobuf:"bytes,2,rep,name=tokens,proto3" json:"tokens,omitempty"` } -func (m *CardanoSignTransactionRequest_Withdrawal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CardanoSignTransactionRequest_Withdrawal.Marshal(b, m, deterministic) -} -func (m *CardanoSignTransactionRequest_Withdrawal) XXX_Merge(src proto.Message) { - xxx_messageInfo_CardanoSignTransactionRequest_Withdrawal.Merge(m, src) + +func (x *CardanoSignTransactionRequest_AssetGroup) Reset() { + *x = CardanoSignTransactionRequest_AssetGroup{} + if protoimpl.UnsafeEnabled { + mi := &file_cardano_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CardanoSignTransactionRequest_Withdrawal) XXX_Size() int { - return xxx_messageInfo_CardanoSignTransactionRequest_Withdrawal.Size(m) + +func (x *CardanoSignTransactionRequest_AssetGroup) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CardanoSignTransactionRequest_Withdrawal) XXX_DiscardUnknown() { - xxx_messageInfo_CardanoSignTransactionRequest_Withdrawal.DiscardUnknown(m) + +func (*CardanoSignTransactionRequest_AssetGroup) ProtoMessage() {} + +func (x *CardanoSignTransactionRequest_AssetGroup) ProtoReflect() protoreflect.Message { + mi := &file_cardano_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CardanoSignTransactionRequest_Withdrawal proto.InternalMessageInfo +// Deprecated: Use CardanoSignTransactionRequest_AssetGroup.ProtoReflect.Descriptor instead. +func (*CardanoSignTransactionRequest_AssetGroup) Descriptor() ([]byte, []int) { + return file_cardano_proto_rawDescGZIP(), []int{4, 1} +} -func (m *CardanoSignTransactionRequest_Withdrawal) GetKeypath() []uint32 { - if m != nil { - return m.Keypath +func (x *CardanoSignTransactionRequest_AssetGroup) GetPolicyId() []byte { + if x != nil { + return x.PolicyId } return nil } -func (m *CardanoSignTransactionRequest_Withdrawal) GetValue() uint64 { - if m != nil { - return m.Value +func (x *CardanoSignTransactionRequest_AssetGroup) GetTokens() []*CardanoSignTransactionRequest_AssetGroup_Token { + if x != nil { + return x.Tokens } - return 0 + return nil } -type CardanoSignTransactionResponse struct { - ShelleyWitnesses []*CardanoSignTransactionResponse_ShelleyWitness `protobuf:"bytes,1,rep,name=shelley_witnesses,json=shelleyWitnesses,proto3" json:"shelley_witnesses,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +type CardanoSignTransactionRequest_Output struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CardanoSignTransactionResponse) Reset() { *m = CardanoSignTransactionResponse{} } -func (m *CardanoSignTransactionResponse) String() string { return proto.CompactTextString(m) } -func (*CardanoSignTransactionResponse) ProtoMessage() {} -func (*CardanoSignTransactionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_785ed7eccc80ff2e, []int{5} + EncodedAddress string `protobuf:"bytes,1,opt,name=encoded_address,json=encodedAddress,proto3" json:"encoded_address,omitempty"` + Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` + // Optional. If provided, this is validated as a change output. + ScriptConfig *CardanoScriptConfig `protobuf:"bytes,3,opt,name=script_config,json=scriptConfig,proto3" json:"script_config,omitempty"` + AssetGroups []*CardanoSignTransactionRequest_AssetGroup `protobuf:"bytes,4,rep,name=asset_groups,json=assetGroups,proto3" json:"asset_groups,omitempty"` } -func (m *CardanoSignTransactionResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CardanoSignTransactionResponse.Unmarshal(m, b) -} -func (m *CardanoSignTransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CardanoSignTransactionResponse.Marshal(b, m, deterministic) -} -func (m *CardanoSignTransactionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CardanoSignTransactionResponse.Merge(m, src) -} -func (m *CardanoSignTransactionResponse) XXX_Size() int { - return xxx_messageInfo_CardanoSignTransactionResponse.Size(m) +func (x *CardanoSignTransactionRequest_Output) Reset() { + *x = CardanoSignTransactionRequest_Output{} + if protoimpl.UnsafeEnabled { + mi := &file_cardano_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CardanoSignTransactionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CardanoSignTransactionResponse.DiscardUnknown(m) + +func (x *CardanoSignTransactionRequest_Output) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_CardanoSignTransactionResponse proto.InternalMessageInfo +func (*CardanoSignTransactionRequest_Output) ProtoMessage() {} -func (m *CardanoSignTransactionResponse) GetShelleyWitnesses() []*CardanoSignTransactionResponse_ShelleyWitness { - if m != nil { - return m.ShelleyWitnesses +func (x *CardanoSignTransactionRequest_Output) ProtoReflect() protoreflect.Message { + mi := &file_cardano_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type CardanoSignTransactionResponse_ShelleyWitness struct { - PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use CardanoSignTransactionRequest_Output.ProtoReflect.Descriptor instead. +func (*CardanoSignTransactionRequest_Output) Descriptor() ([]byte, []int) { + return file_cardano_proto_rawDescGZIP(), []int{4, 2} } -func (m *CardanoSignTransactionResponse_ShelleyWitness) Reset() { - *m = CardanoSignTransactionResponse_ShelleyWitness{} +func (x *CardanoSignTransactionRequest_Output) GetEncodedAddress() string { + if x != nil { + return x.EncodedAddress + } + return "" } -func (m *CardanoSignTransactionResponse_ShelleyWitness) String() string { - return proto.CompactTextString(m) + +func (x *CardanoSignTransactionRequest_Output) GetValue() uint64 { + if x != nil { + return x.Value + } + return 0 } -func (*CardanoSignTransactionResponse_ShelleyWitness) ProtoMessage() {} -func (*CardanoSignTransactionResponse_ShelleyWitness) Descriptor() ([]byte, []int) { - return fileDescriptor_785ed7eccc80ff2e, []int{5, 0} + +func (x *CardanoSignTransactionRequest_Output) GetScriptConfig() *CardanoScriptConfig { + if x != nil { + return x.ScriptConfig + } + return nil } -func (m *CardanoSignTransactionResponse_ShelleyWitness) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CardanoSignTransactionResponse_ShelleyWitness.Unmarshal(m, b) +func (x *CardanoSignTransactionRequest_Output) GetAssetGroups() []*CardanoSignTransactionRequest_AssetGroup { + if x != nil { + return x.AssetGroups + } + return nil } -func (m *CardanoSignTransactionResponse_ShelleyWitness) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CardanoSignTransactionResponse_ShelleyWitness.Marshal(b, m, deterministic) + +// See https://github.com/input-output-hk/cardano-ledger-specs/blob/d0aa86ded0b973b09b629e5aa62aa1e71364d088/eras/alonzo/test-suite/cddl-files/alonzo.cddl#L150 +type CardanoSignTransactionRequest_Certificate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Cert: + // *CardanoSignTransactionRequest_Certificate_StakeRegistration + // *CardanoSignTransactionRequest_Certificate_StakeDeregistration + // *CardanoSignTransactionRequest_Certificate_StakeDelegation_ + Cert isCardanoSignTransactionRequest_Certificate_Cert `protobuf_oneof:"cert"` } -func (m *CardanoSignTransactionResponse_ShelleyWitness) XXX_Merge(src proto.Message) { - xxx_messageInfo_CardanoSignTransactionResponse_ShelleyWitness.Merge(m, src) + +func (x *CardanoSignTransactionRequest_Certificate) Reset() { + *x = CardanoSignTransactionRequest_Certificate{} + if protoimpl.UnsafeEnabled { + mi := &file_cardano_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CardanoSignTransactionResponse_ShelleyWitness) XXX_Size() int { - return xxx_messageInfo_CardanoSignTransactionResponse_ShelleyWitness.Size(m) + +func (x *CardanoSignTransactionRequest_Certificate) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CardanoSignTransactionResponse_ShelleyWitness) XXX_DiscardUnknown() { - xxx_messageInfo_CardanoSignTransactionResponse_ShelleyWitness.DiscardUnknown(m) + +func (*CardanoSignTransactionRequest_Certificate) ProtoMessage() {} + +func (x *CardanoSignTransactionRequest_Certificate) ProtoReflect() protoreflect.Message { + mi := &file_cardano_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CardanoSignTransactionResponse_ShelleyWitness proto.InternalMessageInfo +// Deprecated: Use CardanoSignTransactionRequest_Certificate.ProtoReflect.Descriptor instead. +func (*CardanoSignTransactionRequest_Certificate) Descriptor() ([]byte, []int) { + return file_cardano_proto_rawDescGZIP(), []int{4, 3} +} -func (m *CardanoSignTransactionResponse_ShelleyWitness) GetPublicKey() []byte { +func (m *CardanoSignTransactionRequest_Certificate) GetCert() isCardanoSignTransactionRequest_Certificate_Cert { if m != nil { - return m.PublicKey + return m.Cert } return nil } -func (m *CardanoSignTransactionResponse_ShelleyWitness) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *CardanoSignTransactionRequest_Certificate) GetStakeRegistration() *Keypath { + if x, ok := x.GetCert().(*CardanoSignTransactionRequest_Certificate_StakeRegistration); ok { + return x.StakeRegistration } return nil } -type CardanoRequest struct { - // Types that are valid to be assigned to Request: - // *CardanoRequest_Xpubs - // *CardanoRequest_Address - // *CardanoRequest_SignTransaction - Request isCardanoRequest_Request `protobuf_oneof:"request"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *CardanoSignTransactionRequest_Certificate) GetStakeDeregistration() *Keypath { + if x, ok := x.GetCert().(*CardanoSignTransactionRequest_Certificate_StakeDeregistration); ok { + return x.StakeDeregistration + } + return nil } -func (m *CardanoRequest) Reset() { *m = CardanoRequest{} } -func (m *CardanoRequest) String() string { return proto.CompactTextString(m) } -func (*CardanoRequest) ProtoMessage() {} -func (*CardanoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_785ed7eccc80ff2e, []int{6} +func (x *CardanoSignTransactionRequest_Certificate) GetStakeDelegation() *CardanoSignTransactionRequest_Certificate_StakeDelegation { + if x, ok := x.GetCert().(*CardanoSignTransactionRequest_Certificate_StakeDelegation_); ok { + return x.StakeDelegation + } + return nil } -func (m *CardanoRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CardanoRequest.Unmarshal(m, b) +type isCardanoSignTransactionRequest_Certificate_Cert interface { + isCardanoSignTransactionRequest_Certificate_Cert() } -func (m *CardanoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CardanoRequest.Marshal(b, m, deterministic) + +type CardanoSignTransactionRequest_Certificate_StakeRegistration struct { + StakeRegistration *Keypath `protobuf:"bytes,1,opt,name=stake_registration,json=stakeRegistration,proto3,oneof"` } -func (m *CardanoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CardanoRequest.Merge(m, src) + +type CardanoSignTransactionRequest_Certificate_StakeDeregistration struct { + StakeDeregistration *Keypath `protobuf:"bytes,2,opt,name=stake_deregistration,json=stakeDeregistration,proto3,oneof"` } -func (m *CardanoRequest) XXX_Size() int { - return xxx_messageInfo_CardanoRequest.Size(m) + +type CardanoSignTransactionRequest_Certificate_StakeDelegation_ struct { + StakeDelegation *CardanoSignTransactionRequest_Certificate_StakeDelegation `protobuf:"bytes,3,opt,name=stake_delegation,json=stakeDelegation,proto3,oneof"` } -func (m *CardanoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CardanoRequest.DiscardUnknown(m) + +func (*CardanoSignTransactionRequest_Certificate_StakeRegistration) isCardanoSignTransactionRequest_Certificate_Cert() { } -var xxx_messageInfo_CardanoRequest proto.InternalMessageInfo +func (*CardanoSignTransactionRequest_Certificate_StakeDeregistration) isCardanoSignTransactionRequest_Certificate_Cert() { +} -type isCardanoRequest_Request interface { - isCardanoRequest_Request() +func (*CardanoSignTransactionRequest_Certificate_StakeDelegation_) isCardanoSignTransactionRequest_Certificate_Cert() { } -type CardanoRequest_Xpubs struct { - Xpubs *CardanoXpubsRequest `protobuf:"bytes,1,opt,name=xpubs,proto3,oneof"` +type CardanoSignTransactionRequest_Withdrawal struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Keypath []uint32 `protobuf:"varint,1,rep,packed,name=keypath,proto3" json:"keypath,omitempty"` + Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` } -type CardanoRequest_Address struct { - Address *CardanoAddressRequest `protobuf:"bytes,2,opt,name=address,proto3,oneof"` +func (x *CardanoSignTransactionRequest_Withdrawal) Reset() { + *x = CardanoSignTransactionRequest_Withdrawal{} + if protoimpl.UnsafeEnabled { + mi := &file_cardano_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -type CardanoRequest_SignTransaction struct { - SignTransaction *CardanoSignTransactionRequest `protobuf:"bytes,3,opt,name=sign_transaction,json=signTransaction,proto3,oneof"` +func (x *CardanoSignTransactionRequest_Withdrawal) String() string { + return protoimpl.X.MessageStringOf(x) } -func (*CardanoRequest_Xpubs) isCardanoRequest_Request() {} +func (*CardanoSignTransactionRequest_Withdrawal) ProtoMessage() {} -func (*CardanoRequest_Address) isCardanoRequest_Request() {} +func (x *CardanoSignTransactionRequest_Withdrawal) ProtoReflect() protoreflect.Message { + mi := &file_cardano_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} -func (*CardanoRequest_SignTransaction) isCardanoRequest_Request() {} +// Deprecated: Use CardanoSignTransactionRequest_Withdrawal.ProtoReflect.Descriptor instead. +func (*CardanoSignTransactionRequest_Withdrawal) Descriptor() ([]byte, []int) { + return file_cardano_proto_rawDescGZIP(), []int{4, 4} +} -func (m *CardanoRequest) GetRequest() isCardanoRequest_Request { - if m != nil { - return m.Request +func (x *CardanoSignTransactionRequest_Withdrawal) GetKeypath() []uint32 { + if x != nil { + return x.Keypath } return nil } -func (m *CardanoRequest) GetXpubs() *CardanoXpubsRequest { - if x, ok := m.GetRequest().(*CardanoRequest_Xpubs); ok { - return x.Xpubs +func (x *CardanoSignTransactionRequest_Withdrawal) GetValue() uint64 { + if x != nil { + return x.Value } - return nil + return 0 } -func (m *CardanoRequest) GetAddress() *CardanoAddressRequest { - if x, ok := m.GetRequest().(*CardanoRequest_Address); ok { - return x.Address - } - return nil +type CardanoSignTransactionRequest_AssetGroup_Token struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AssetName []byte `protobuf:"bytes,1,opt,name=asset_name,json=assetName,proto3" json:"asset_name,omitempty"` + // Number of tokens transacted of this asset. + Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` } -func (m *CardanoRequest) GetSignTransaction() *CardanoSignTransactionRequest { - if x, ok := m.GetRequest().(*CardanoRequest_SignTransaction); ok { - return x.SignTransaction +func (x *CardanoSignTransactionRequest_AssetGroup_Token) Reset() { + *x = CardanoSignTransactionRequest_AssetGroup_Token{} + if protoimpl.UnsafeEnabled { + mi := &file_cardano_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*CardanoRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*CardanoRequest_Xpubs)(nil), - (*CardanoRequest_Address)(nil), - (*CardanoRequest_SignTransaction)(nil), - } +func (x *CardanoSignTransactionRequest_AssetGroup_Token) String() string { + return protoimpl.X.MessageStringOf(x) } -type CardanoResponse struct { - // Types that are valid to be assigned to Response: - // *CardanoResponse_Xpubs - // *CardanoResponse_Pub - // *CardanoResponse_SignTransaction - Response isCardanoResponse_Response `protobuf_oneof:"response"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (*CardanoSignTransactionRequest_AssetGroup_Token) ProtoMessage() {} + +func (x *CardanoSignTransactionRequest_AssetGroup_Token) ProtoReflect() protoreflect.Message { + mi := &file_cardano_proto_msgTypes[14] + 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) } -func (m *CardanoResponse) Reset() { *m = CardanoResponse{} } -func (m *CardanoResponse) String() string { return proto.CompactTextString(m) } -func (*CardanoResponse) ProtoMessage() {} -func (*CardanoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_785ed7eccc80ff2e, []int{7} +// Deprecated: Use CardanoSignTransactionRequest_AssetGroup_Token.ProtoReflect.Descriptor instead. +func (*CardanoSignTransactionRequest_AssetGroup_Token) Descriptor() ([]byte, []int) { + return file_cardano_proto_rawDescGZIP(), []int{4, 1, 0} } -func (m *CardanoResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CardanoResponse.Unmarshal(m, b) +func (x *CardanoSignTransactionRequest_AssetGroup_Token) GetAssetName() []byte { + if x != nil { + return x.AssetName + } + return nil } -func (m *CardanoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CardanoResponse.Marshal(b, m, deterministic) + +func (x *CardanoSignTransactionRequest_AssetGroup_Token) GetValue() uint64 { + if x != nil { + return x.Value + } + return 0 } -func (m *CardanoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CardanoResponse.Merge(m, src) + +type CardanoSignTransactionRequest_Certificate_StakeDelegation struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Keypath []uint32 `protobuf:"varint,1,rep,packed,name=keypath,proto3" json:"keypath,omitempty"` + PoolKeyhash []byte `protobuf:"bytes,2,opt,name=pool_keyhash,json=poolKeyhash,proto3" json:"pool_keyhash,omitempty"` } -func (m *CardanoResponse) XXX_Size() int { - return xxx_messageInfo_CardanoResponse.Size(m) + +func (x *CardanoSignTransactionRequest_Certificate_StakeDelegation) Reset() { + *x = CardanoSignTransactionRequest_Certificate_StakeDelegation{} + if protoimpl.UnsafeEnabled { + mi := &file_cardano_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CardanoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CardanoResponse.DiscardUnknown(m) + +func (x *CardanoSignTransactionRequest_Certificate_StakeDelegation) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_CardanoResponse proto.InternalMessageInfo +func (*CardanoSignTransactionRequest_Certificate_StakeDelegation) ProtoMessage() {} -type isCardanoResponse_Response interface { - isCardanoResponse_Response() +func (x *CardanoSignTransactionRequest_Certificate_StakeDelegation) ProtoReflect() protoreflect.Message { + mi := &file_cardano_proto_msgTypes[15] + 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) } -type CardanoResponse_Xpubs struct { - Xpubs *CardanoXpubsResponse `protobuf:"bytes,1,opt,name=xpubs,proto3,oneof"` +// Deprecated: Use CardanoSignTransactionRequest_Certificate_StakeDelegation.ProtoReflect.Descriptor instead. +func (*CardanoSignTransactionRequest_Certificate_StakeDelegation) Descriptor() ([]byte, []int) { + return file_cardano_proto_rawDescGZIP(), []int{4, 3, 0} } -type CardanoResponse_Pub struct { - Pub *PubResponse `protobuf:"bytes,2,opt,name=pub,proto3,oneof"` +func (x *CardanoSignTransactionRequest_Certificate_StakeDelegation) GetKeypath() []uint32 { + if x != nil { + return x.Keypath + } + return nil } -type CardanoResponse_SignTransaction struct { - SignTransaction *CardanoSignTransactionResponse `protobuf:"bytes,3,opt,name=sign_transaction,json=signTransaction,proto3,oneof"` +func (x *CardanoSignTransactionRequest_Certificate_StakeDelegation) GetPoolKeyhash() []byte { + if x != nil { + return x.PoolKeyhash + } + return nil } -func (*CardanoResponse_Xpubs) isCardanoResponse_Response() {} - -func (*CardanoResponse_Pub) isCardanoResponse_Response() {} +type CardanoSignTransactionResponse_ShelleyWitness struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (*CardanoResponse_SignTransaction) isCardanoResponse_Response() {} + PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` +} -func (m *CardanoResponse) GetResponse() isCardanoResponse_Response { - if m != nil { - return m.Response +func (x *CardanoSignTransactionResponse_ShelleyWitness) Reset() { + *x = CardanoSignTransactionResponse_ShelleyWitness{} + if protoimpl.UnsafeEnabled { + mi := &file_cardano_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *CardanoResponse) GetXpubs() *CardanoXpubsResponse { - if x, ok := m.GetResponse().(*CardanoResponse_Xpubs); ok { - return x.Xpubs +func (x *CardanoSignTransactionResponse_ShelleyWitness) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CardanoSignTransactionResponse_ShelleyWitness) ProtoMessage() {} + +func (x *CardanoSignTransactionResponse_ShelleyWitness) ProtoReflect() protoreflect.Message { + mi := &file_cardano_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *CardanoResponse) GetPub() *PubResponse { - if x, ok := m.GetResponse().(*CardanoResponse_Pub); ok { - return x.Pub +// Deprecated: Use CardanoSignTransactionResponse_ShelleyWitness.ProtoReflect.Descriptor instead. +func (*CardanoSignTransactionResponse_ShelleyWitness) Descriptor() ([]byte, []int) { + return file_cardano_proto_rawDescGZIP(), []int{5, 0} +} + +func (x *CardanoSignTransactionResponse_ShelleyWitness) GetPublicKey() []byte { + if x != nil { + return x.PublicKey } return nil } -func (m *CardanoResponse) GetSignTransaction() *CardanoSignTransactionResponse { - if x, ok := m.GetResponse().(*CardanoResponse_SignTransaction); ok { - return x.SignTransaction +func (x *CardanoSignTransactionResponse_ShelleyWitness) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*CardanoResponse) XXX_OneofWrappers() []interface{} { - return []interface{}{ +var File_cardano_proto protoreflect.FileDescriptor + +var file_cardano_proto_rawDesc = []byte{ + 0x0a, 0x0d, 0x63, 0x61, 0x72, 0x64, 0x61, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x14, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, + 0x62, 0x6f, 0x78, 0x30, 0x32, 0x1a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x50, 0x0a, 0x13, 0x43, 0x61, 0x72, 0x64, 0x61, 0x6e, 0x6f, 0x58, 0x70, + 0x75, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x08, 0x6b, 0x65, + 0x79, 0x70, 0x61, 0x74, 0x68, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, + 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, + 0x78, 0x30, 0x32, 0x2e, 0x4b, 0x65, 0x79, 0x70, 0x61, 0x74, 0x68, 0x52, 0x08, 0x6b, 0x65, 0x79, + 0x70, 0x61, 0x74, 0x68, 0x73, 0x22, 0x2c, 0x0a, 0x14, 0x43, 0x61, 0x72, 0x64, 0x61, 0x6e, 0x6f, + 0x58, 0x70, 0x75, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, + 0x05, 0x78, 0x70, 0x75, 0x62, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x05, 0x78, 0x70, + 0x75, 0x62, 0x73, 0x22, 0xc4, 0x01, 0x0a, 0x13, 0x43, 0x61, 0x72, 0x64, 0x61, 0x6e, 0x6f, 0x53, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4b, 0x0a, 0x07, 0x70, + 0x6b, 0x68, 0x5f, 0x73, 0x6b, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, + 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, + 0x78, 0x30, 0x32, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x61, 0x6e, 0x6f, 0x53, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x50, 0x6b, 0x68, 0x53, 0x6b, 0x68, 0x48, 0x00, + 0x52, 0x06, 0x70, 0x6b, 0x68, 0x53, 0x6b, 0x68, 0x1a, 0x56, 0x0a, 0x06, 0x50, 0x6b, 0x68, 0x53, + 0x6b, 0x68, 0x12, 0x27, 0x0a, 0x0f, 0x6b, 0x65, 0x79, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x70, 0x61, + 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0e, 0x6b, 0x65, 0x79, + 0x70, 0x61, 0x74, 0x68, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x6b, + 0x65, 0x79, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0d, 0x52, 0x0c, 0x6b, 0x65, 0x79, 0x70, 0x61, 0x74, 0x68, 0x53, 0x74, 0x61, 0x6b, 0x65, + 0x42, 0x08, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xc1, 0x01, 0x0a, 0x15, 0x43, + 0x61, 0x72, 0x64, 0x61, 0x6e, 0x6f, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x43, 0x61, 0x72, + 0x64, 0x61, 0x6e, 0x6f, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x07, 0x6e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x12, 0x4e, + 0x0a, 0x0d, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x43, 0x61, 0x72, + 0x64, 0x61, 0x6e, 0x6f, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x52, 0x0c, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xcb, + 0x0c, 0x0a, 0x1d, 0x43, 0x61, 0x72, 0x64, 0x61, 0x6e, 0x6f, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, + 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x3e, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x24, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, + 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x61, 0x6e, 0x6f, + 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x12, 0x51, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x39, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, + 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x61, 0x6e, 0x6f, 0x53, + 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x52, 0x06, 0x69, 0x6e, 0x70, + 0x75, 0x74, 0x73, 0x12, 0x54, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x03, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, + 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x43, 0x61, 0x72, 0x64, + 0x61, 0x6e, 0x6f, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, + 0x52, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x65, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x66, 0x65, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, + 0x74, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x74, 0x74, 0x6c, 0x12, 0x63, 0x0a, + 0x0c, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x18, 0x06, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x61, + 0x6e, 0x6f, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x65, 0x52, 0x0c, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x73, 0x12, 0x60, 0x0a, 0x0b, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, + 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x43, + 0x61, 0x72, 0x64, 0x61, 0x6e, 0x6f, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x57, 0x69, 0x74, + 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x52, 0x0b, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, + 0x77, 0x61, 0x6c, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, + 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x15, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x49, + 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x24, 0x0a, 0x0e, + 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x7a, 0x65, 0x72, 0x6f, 0x5f, 0x74, 0x74, 0x6c, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5a, 0x65, 0x72, 0x6f, 0x54, + 0x74, 0x6c, 0x1a, 0x6b, 0x0a, 0x05, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6b, + 0x65, 0x79, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x07, 0x6b, 0x65, + 0x79, 0x70, 0x61, 0x74, 0x68, 0x12, 0x22, 0x0a, 0x0d, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x6f, 0x75, + 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x70, 0x72, + 0x65, 0x76, 0x4f, 0x75, 0x74, 0x48, 0x61, 0x73, 0x68, 0x12, 0x24, 0x0a, 0x0e, 0x70, 0x72, 0x65, + 0x76, 0x5f, 0x6f, 0x75, 0x74, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x0c, 0x70, 0x72, 0x65, 0x76, 0x4f, 0x75, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x1a, + 0xc5, 0x01, 0x0a, 0x0a, 0x41, 0x73, 0x73, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1b, + 0x0a, 0x09, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x12, 0x5c, 0x0a, 0x06, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x44, 0x2e, 0x73, 0x68, + 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, + 0x30, 0x32, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x61, 0x6e, 0x6f, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, + 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x52, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x1a, 0x3c, 0x0a, 0x05, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x61, 0x73, 0x73, 0x65, 0x74, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0xfa, 0x01, 0x0a, 0x06, 0x4f, 0x75, 0x74, 0x70, + 0x75, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x64, 0x5f, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x65, 0x6e, 0x63, + 0x6f, 0x64, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x12, 0x4e, 0x0a, 0x0d, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, + 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, + 0x43, 0x61, 0x72, 0x64, 0x61, 0x6e, 0x6f, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x52, 0x0c, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x12, 0x61, 0x0a, 0x0c, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, + 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x43, + 0x61, 0x72, 0x64, 0x61, 0x6e, 0x6f, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x41, 0x73, 0x73, + 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x0b, 0x61, 0x73, 0x73, 0x65, 0x74, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x73, 0x1a, 0x87, 0x03, 0x0a, 0x0b, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x65, 0x12, 0x4e, 0x0a, 0x12, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x5f, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1d, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, + 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x4b, 0x65, 0x79, 0x70, 0x61, 0x74, 0x68, 0x48, + 0x00, 0x52, 0x11, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x52, 0x0a, 0x14, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x5f, 0x64, 0x65, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, + 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x4b, 0x65, 0x79, 0x70, 0x61, 0x74, + 0x68, 0x48, 0x00, 0x52, 0x13, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x44, 0x65, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x7c, 0x0a, 0x10, 0x73, 0x74, 0x61, 0x6b, + 0x65, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x4f, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, + 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x61, 0x6e, + 0x6f, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x44, 0x65, 0x6c, 0x65, + 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x4e, 0x0a, 0x0f, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x44, + 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, + 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x70, + 0x61, 0x74, 0x68, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x6f, 0x6f, 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x68, + 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x70, 0x6f, 0x6f, 0x6c, 0x4b, + 0x65, 0x79, 0x68, 0x61, 0x73, 0x68, 0x42, 0x06, 0x0a, 0x04, 0x63, 0x65, 0x72, 0x74, 0x1a, 0x3c, + 0x0a, 0x0a, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x61, 0x6c, 0x12, 0x18, 0x0a, 0x07, + 0x6b, 0x65, 0x79, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x07, 0x6b, + 0x65, 0x79, 0x70, 0x61, 0x74, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xe1, 0x01, 0x0a, + 0x1e, 0x43, 0x61, 0x72, 0x64, 0x61, 0x6e, 0x6f, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x70, 0x0a, 0x11, 0x73, 0x68, 0x65, 0x6c, 0x6c, 0x65, 0x79, 0x5f, 0x77, 0x69, 0x74, 0x6e, 0x65, + 0x73, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x73, 0x68, 0x69, + 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, + 0x32, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x61, 0x6e, 0x6f, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, + 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x2e, 0x53, 0x68, 0x65, 0x6c, 0x6c, 0x65, 0x79, 0x57, 0x69, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x52, + 0x10, 0x73, 0x68, 0x65, 0x6c, 0x6c, 0x65, 0x79, 0x57, 0x69, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x65, + 0x73, 0x1a, 0x4d, 0x0a, 0x0e, 0x53, 0x68, 0x65, 0x6c, 0x6c, 0x65, 0x79, 0x57, 0x69, 0x74, 0x6e, + 0x65, 0x73, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, + 0x65, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, + 0x22, 0x89, 0x02, 0x0a, 0x0e, 0x43, 0x61, 0x72, 0x64, 0x61, 0x6e, 0x6f, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x05, 0x78, 0x70, 0x75, 0x62, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, + 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x61, 0x6e, + 0x6f, 0x58, 0x70, 0x75, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, + 0x05, 0x78, 0x70, 0x75, 0x62, 0x73, 0x12, 0x47, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x43, + 0x61, 0x72, 0x64, 0x61, 0x6e, 0x6f, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, + 0x60, 0x0a, 0x10, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x73, 0x68, 0x69, 0x66, + 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, + 0x2e, 0x43, 0x61, 0x72, 0x64, 0x61, 0x6e, 0x6f, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, + 0x52, 0x0f, 0x73, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xfb, 0x01, 0x0a, + 0x0f, 0x43, 0x61, 0x72, 0x64, 0x61, 0x6e, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x42, 0x0a, 0x05, 0x78, 0x70, 0x75, 0x62, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2a, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, + 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x61, 0x6e, 0x6f, 0x58, 0x70, + 0x75, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x05, 0x78, + 0x70, 0x75, 0x62, 0x73, 0x12, 0x35, 0x0a, 0x03, 0x70, 0x75, 0x62, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x21, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, + 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x50, 0x75, 0x62, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x03, 0x70, 0x75, 0x62, 0x12, 0x61, 0x0a, 0x10, 0x73, + 0x69, 0x67, 0x6e, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x43, 0x61, 0x72, + 0x64, 0x61, 0x6e, 0x6f, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x73, + 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0a, + 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0x38, 0x0a, 0x0e, 0x43, 0x61, + 0x72, 0x64, 0x61, 0x6e, 0x6f, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x12, 0x0a, 0x0e, + 0x43, 0x61, 0x72, 0x64, 0x61, 0x6e, 0x6f, 0x4d, 0x61, 0x69, 0x6e, 0x6e, 0x65, 0x74, 0x10, 0x00, + 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x61, 0x72, 0x64, 0x61, 0x6e, 0x6f, 0x54, 0x65, 0x73, 0x74, 0x6e, + 0x65, 0x74, 0x10, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cardano_proto_rawDescOnce sync.Once + file_cardano_proto_rawDescData = file_cardano_proto_rawDesc +) + +func file_cardano_proto_rawDescGZIP() []byte { + file_cardano_proto_rawDescOnce.Do(func() { + file_cardano_proto_rawDescData = protoimpl.X.CompressGZIP(file_cardano_proto_rawDescData) + }) + return file_cardano_proto_rawDescData +} + +var file_cardano_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_cardano_proto_msgTypes = make([]protoimpl.MessageInfo, 17) +var file_cardano_proto_goTypes = []interface{}{ + (CardanoNetwork)(0), // 0: shiftcrypto.bitbox02.CardanoNetwork + (*CardanoXpubsRequest)(nil), // 1: shiftcrypto.bitbox02.CardanoXpubsRequest + (*CardanoXpubsResponse)(nil), // 2: shiftcrypto.bitbox02.CardanoXpubsResponse + (*CardanoScriptConfig)(nil), // 3: shiftcrypto.bitbox02.CardanoScriptConfig + (*CardanoAddressRequest)(nil), // 4: shiftcrypto.bitbox02.CardanoAddressRequest + (*CardanoSignTransactionRequest)(nil), // 5: shiftcrypto.bitbox02.CardanoSignTransactionRequest + (*CardanoSignTransactionResponse)(nil), // 6: shiftcrypto.bitbox02.CardanoSignTransactionResponse + (*CardanoRequest)(nil), // 7: shiftcrypto.bitbox02.CardanoRequest + (*CardanoResponse)(nil), // 8: shiftcrypto.bitbox02.CardanoResponse + (*CardanoScriptConfig_PkhSkh)(nil), // 9: shiftcrypto.bitbox02.CardanoScriptConfig.PkhSkh + (*CardanoSignTransactionRequest_Input)(nil), // 10: shiftcrypto.bitbox02.CardanoSignTransactionRequest.Input + (*CardanoSignTransactionRequest_AssetGroup)(nil), // 11: shiftcrypto.bitbox02.CardanoSignTransactionRequest.AssetGroup + (*CardanoSignTransactionRequest_Output)(nil), // 12: shiftcrypto.bitbox02.CardanoSignTransactionRequest.Output + (*CardanoSignTransactionRequest_Certificate)(nil), // 13: shiftcrypto.bitbox02.CardanoSignTransactionRequest.Certificate + (*CardanoSignTransactionRequest_Withdrawal)(nil), // 14: shiftcrypto.bitbox02.CardanoSignTransactionRequest.Withdrawal + (*CardanoSignTransactionRequest_AssetGroup_Token)(nil), // 15: shiftcrypto.bitbox02.CardanoSignTransactionRequest.AssetGroup.Token + (*CardanoSignTransactionRequest_Certificate_StakeDelegation)(nil), // 16: shiftcrypto.bitbox02.CardanoSignTransactionRequest.Certificate.StakeDelegation + (*CardanoSignTransactionResponse_ShelleyWitness)(nil), // 17: shiftcrypto.bitbox02.CardanoSignTransactionResponse.ShelleyWitness + (*Keypath)(nil), // 18: shiftcrypto.bitbox02.Keypath + (*PubResponse)(nil), // 19: shiftcrypto.bitbox02.PubResponse +} +var file_cardano_proto_depIdxs = []int32{ + 18, // 0: shiftcrypto.bitbox02.CardanoXpubsRequest.keypaths:type_name -> shiftcrypto.bitbox02.Keypath + 9, // 1: shiftcrypto.bitbox02.CardanoScriptConfig.pkh_skh:type_name -> shiftcrypto.bitbox02.CardanoScriptConfig.PkhSkh + 0, // 2: shiftcrypto.bitbox02.CardanoAddressRequest.network:type_name -> shiftcrypto.bitbox02.CardanoNetwork + 3, // 3: shiftcrypto.bitbox02.CardanoAddressRequest.script_config:type_name -> shiftcrypto.bitbox02.CardanoScriptConfig + 0, // 4: shiftcrypto.bitbox02.CardanoSignTransactionRequest.network:type_name -> shiftcrypto.bitbox02.CardanoNetwork + 10, // 5: shiftcrypto.bitbox02.CardanoSignTransactionRequest.inputs:type_name -> shiftcrypto.bitbox02.CardanoSignTransactionRequest.Input + 12, // 6: shiftcrypto.bitbox02.CardanoSignTransactionRequest.outputs:type_name -> shiftcrypto.bitbox02.CardanoSignTransactionRequest.Output + 13, // 7: shiftcrypto.bitbox02.CardanoSignTransactionRequest.certificates:type_name -> shiftcrypto.bitbox02.CardanoSignTransactionRequest.Certificate + 14, // 8: shiftcrypto.bitbox02.CardanoSignTransactionRequest.withdrawals:type_name -> shiftcrypto.bitbox02.CardanoSignTransactionRequest.Withdrawal + 17, // 9: shiftcrypto.bitbox02.CardanoSignTransactionResponse.shelley_witnesses:type_name -> shiftcrypto.bitbox02.CardanoSignTransactionResponse.ShelleyWitness + 1, // 10: shiftcrypto.bitbox02.CardanoRequest.xpubs:type_name -> shiftcrypto.bitbox02.CardanoXpubsRequest + 4, // 11: shiftcrypto.bitbox02.CardanoRequest.address:type_name -> shiftcrypto.bitbox02.CardanoAddressRequest + 5, // 12: shiftcrypto.bitbox02.CardanoRequest.sign_transaction:type_name -> shiftcrypto.bitbox02.CardanoSignTransactionRequest + 2, // 13: shiftcrypto.bitbox02.CardanoResponse.xpubs:type_name -> shiftcrypto.bitbox02.CardanoXpubsResponse + 19, // 14: shiftcrypto.bitbox02.CardanoResponse.pub:type_name -> shiftcrypto.bitbox02.PubResponse + 6, // 15: shiftcrypto.bitbox02.CardanoResponse.sign_transaction:type_name -> shiftcrypto.bitbox02.CardanoSignTransactionResponse + 15, // 16: shiftcrypto.bitbox02.CardanoSignTransactionRequest.AssetGroup.tokens:type_name -> shiftcrypto.bitbox02.CardanoSignTransactionRequest.AssetGroup.Token + 3, // 17: shiftcrypto.bitbox02.CardanoSignTransactionRequest.Output.script_config:type_name -> shiftcrypto.bitbox02.CardanoScriptConfig + 11, // 18: shiftcrypto.bitbox02.CardanoSignTransactionRequest.Output.asset_groups:type_name -> shiftcrypto.bitbox02.CardanoSignTransactionRequest.AssetGroup + 18, // 19: shiftcrypto.bitbox02.CardanoSignTransactionRequest.Certificate.stake_registration:type_name -> shiftcrypto.bitbox02.Keypath + 18, // 20: shiftcrypto.bitbox02.CardanoSignTransactionRequest.Certificate.stake_deregistration:type_name -> shiftcrypto.bitbox02.Keypath + 16, // 21: shiftcrypto.bitbox02.CardanoSignTransactionRequest.Certificate.stake_delegation:type_name -> shiftcrypto.bitbox02.CardanoSignTransactionRequest.Certificate.StakeDelegation + 22, // [22:22] is the sub-list for method output_type + 22, // [22:22] is the sub-list for method input_type + 22, // [22:22] is the sub-list for extension type_name + 22, // [22:22] is the sub-list for extension extendee + 0, // [0:22] is the sub-list for field type_name +} + +func init() { file_cardano_proto_init() } +func file_cardano_proto_init() { + if File_cardano_proto != nil { + return + } + file_common_proto_init() + if !protoimpl.UnsafeEnabled { + file_cardano_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CardanoXpubsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardano_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CardanoXpubsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardano_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CardanoScriptConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardano_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CardanoAddressRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardano_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CardanoSignTransactionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardano_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CardanoSignTransactionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardano_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CardanoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardano_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CardanoResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardano_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CardanoScriptConfig_PkhSkh); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardano_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CardanoSignTransactionRequest_Input); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardano_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CardanoSignTransactionRequest_AssetGroup); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardano_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CardanoSignTransactionRequest_Output); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardano_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CardanoSignTransactionRequest_Certificate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardano_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CardanoSignTransactionRequest_Withdrawal); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardano_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CardanoSignTransactionRequest_AssetGroup_Token); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardano_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CardanoSignTransactionRequest_Certificate_StakeDelegation); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cardano_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CardanoSignTransactionResponse_ShelleyWitness); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_cardano_proto_msgTypes[2].OneofWrappers = []interface{}{ + (*CardanoScriptConfig_PkhSkh_)(nil), + } + file_cardano_proto_msgTypes[6].OneofWrappers = []interface{}{ + (*CardanoRequest_Xpubs)(nil), + (*CardanoRequest_Address)(nil), + (*CardanoRequest_SignTransaction)(nil), + } + file_cardano_proto_msgTypes[7].OneofWrappers = []interface{}{ (*CardanoResponse_Xpubs)(nil), (*CardanoResponse_Pub)(nil), (*CardanoResponse_SignTransaction)(nil), } -} - -func init() { - proto.RegisterEnum("shiftcrypto.bitbox02.CardanoNetwork", CardanoNetwork_name, CardanoNetwork_value) - proto.RegisterType((*CardanoXpubsRequest)(nil), "shiftcrypto.bitbox02.CardanoXpubsRequest") - proto.RegisterType((*CardanoXpubsResponse)(nil), "shiftcrypto.bitbox02.CardanoXpubsResponse") - proto.RegisterType((*CardanoScriptConfig)(nil), "shiftcrypto.bitbox02.CardanoScriptConfig") - proto.RegisterType((*CardanoScriptConfig_PkhSkh)(nil), "shiftcrypto.bitbox02.CardanoScriptConfig.PkhSkh") - proto.RegisterType((*CardanoAddressRequest)(nil), "shiftcrypto.bitbox02.CardanoAddressRequest") - proto.RegisterType((*CardanoSignTransactionRequest)(nil), "shiftcrypto.bitbox02.CardanoSignTransactionRequest") - proto.RegisterType((*CardanoSignTransactionRequest_Input)(nil), "shiftcrypto.bitbox02.CardanoSignTransactionRequest.Input") - proto.RegisterType((*CardanoSignTransactionRequest_AssetGroup)(nil), "shiftcrypto.bitbox02.CardanoSignTransactionRequest.AssetGroup") - proto.RegisterType((*CardanoSignTransactionRequest_AssetGroup_Token)(nil), "shiftcrypto.bitbox02.CardanoSignTransactionRequest.AssetGroup.Token") - proto.RegisterType((*CardanoSignTransactionRequest_Output)(nil), "shiftcrypto.bitbox02.CardanoSignTransactionRequest.Output") - proto.RegisterType((*CardanoSignTransactionRequest_Certificate)(nil), "shiftcrypto.bitbox02.CardanoSignTransactionRequest.Certificate") - proto.RegisterType((*CardanoSignTransactionRequest_Certificate_StakeDelegation)(nil), "shiftcrypto.bitbox02.CardanoSignTransactionRequest.Certificate.StakeDelegation") - proto.RegisterType((*CardanoSignTransactionRequest_Withdrawal)(nil), "shiftcrypto.bitbox02.CardanoSignTransactionRequest.Withdrawal") - proto.RegisterType((*CardanoSignTransactionResponse)(nil), "shiftcrypto.bitbox02.CardanoSignTransactionResponse") - proto.RegisterType((*CardanoSignTransactionResponse_ShelleyWitness)(nil), "shiftcrypto.bitbox02.CardanoSignTransactionResponse.ShelleyWitness") - proto.RegisterType((*CardanoRequest)(nil), "shiftcrypto.bitbox02.CardanoRequest") - proto.RegisterType((*CardanoResponse)(nil), "shiftcrypto.bitbox02.CardanoResponse") -} - -func init() { proto.RegisterFile("cardano.proto", fileDescriptor_785ed7eccc80ff2e) } - -var fileDescriptor_785ed7eccc80ff2e = []byte{ - // 1067 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x6f, 0x6f, 0x1b, 0xc5, - 0x13, 0xf6, 0xc5, 0x89, 0xff, 0x8c, 0xcf, 0x4e, 0xba, 0x4d, 0xf5, 0x3b, 0xf9, 0x47, 0x51, 0x6a, - 0x2a, 0x11, 0x0a, 0xb2, 0xaa, 0x14, 0x10, 0x45, 0x55, 0x51, 0x93, 0x4a, 0x75, 0x14, 0x35, 0x09, - 0xeb, 0x88, 0x22, 0x84, 0x74, 0x5d, 0xdf, 0x6d, 0xec, 0x95, 0x2f, 0xb7, 0xc7, 0xed, 0x5e, 0x12, - 0x23, 0xde, 0x23, 0x3e, 0x16, 0x12, 0xbc, 0xe2, 0x53, 0xf0, 0x35, 0xe0, 0x0d, 0xda, 0x3f, 0x67, - 0xfb, 0x90, 0x6b, 0x82, 0xe9, 0x3b, 0xef, 0xb3, 0x33, 0xcf, 0xcc, 0x3c, 0x9e, 0x99, 0x5b, 0x68, - 0x06, 0x24, 0x0d, 0x49, 0xcc, 0xbb, 0x49, 0xca, 0x25, 0x47, 0xdb, 0x62, 0xc4, 0xce, 0x65, 0x90, - 0x4e, 0x12, 0xc9, 0xbb, 0x03, 0x26, 0x07, 0xfc, 0xfa, 0xe1, 0x5e, 0xdb, 0x0d, 0xf8, 0xc5, 0x05, - 0x8f, 0x8d, 0x4d, 0xe7, 0x14, 0x6e, 0x1f, 0x18, 0xa7, 0xaf, 0x93, 0x6c, 0x20, 0x30, 0xfd, 0x2e, - 0xa3, 0x42, 0xa2, 0xc7, 0x50, 0x1b, 0xd3, 0x49, 0x42, 0xe4, 0x48, 0x78, 0xce, 0x4e, 0x79, 0xb7, - 0xb1, 0x77, 0xb7, 0xbb, 0x88, 0xad, 0x7b, 0x64, 0xac, 0xf0, 0xd4, 0xbc, 0xf3, 0x11, 0x6c, 0x17, - 0x19, 0x45, 0xc2, 0x63, 0x41, 0xd1, 0x36, 0x6c, 0x5c, 0x2b, 0x40, 0xf3, 0xb9, 0xd8, 0x1c, 0x3a, - 0xbf, 0x38, 0xd3, 0x04, 0xfa, 0x41, 0xca, 0x12, 0x79, 0xc0, 0xe3, 0x73, 0x36, 0x44, 0x47, 0x50, - 0x4d, 0xc6, 0x23, 0x5f, 0x8c, 0x47, 0x9e, 0xb3, 0xe3, 0xec, 0x36, 0xf6, 0x1e, 0x2e, 0x8e, 0xbf, - 0xc0, 0xb7, 0x7b, 0x3a, 0x1e, 0xf5, 0xc7, 0xa3, 0x5e, 0x09, 0x57, 0x12, 0xfd, 0xab, 0xfd, 0x15, - 0x54, 0x0c, 0x86, 0xde, 0x87, 0x4d, 0x9b, 0xa8, 0x9f, 0x90, 0xc9, 0x05, 0x8d, 0xa5, 0x4e, 0xa7, - 0x89, 0x5b, 0x16, 0x3e, 0x35, 0x28, 0x7a, 0x0f, 0x9a, 0xb9, 0xa1, 0x90, 0x64, 0x4c, 0xbd, 0x35, - 0x6d, 0xe6, 0x5a, 0xb0, 0xaf, 0xb0, 0xfd, 0x1a, 0x54, 0x02, 0x1d, 0xb2, 0xf3, 0xb3, 0x03, 0x77, - 0x6c, 0x2a, 0xcf, 0xc2, 0x30, 0xa5, 0x62, 0xaa, 0xe4, 0x53, 0xa8, 0xc6, 0x54, 0x5e, 0xf1, 0x74, - 0xac, 0x0b, 0x69, 0xed, 0xdd, 0x5f, 0x5a, 0xc8, 0xb1, 0xb1, 0xc5, 0xb9, 0x13, 0xf2, 0xa0, 0x1a, - 0x32, 0x91, 0x44, 0x64, 0xe2, 0xad, 0xed, 0x38, 0xbb, 0x35, 0x9c, 0x1f, 0xd1, 0x31, 0x34, 0x85, - 0x2e, 0xdb, 0x37, 0x49, 0x78, 0x65, 0x2d, 0xd4, 0x07, 0x37, 0x16, 0x0a, 0xbb, 0x62, 0xee, 0xd4, - 0xf9, 0xcd, 0x85, 0xbb, 0xb9, 0x15, 0x1b, 0xc6, 0x67, 0x29, 0x89, 0x05, 0x09, 0x24, 0xe3, 0xf1, - 0xdb, 0xaa, 0xe5, 0x4b, 0xa8, 0xb0, 0x38, 0xc9, 0xa4, 0xd0, 0x6a, 0x36, 0xf6, 0x1e, 0x2f, 0x4f, - 0x75, 0x61, 0x12, 0xdd, 0x43, 0xc5, 0x80, 0x2d, 0x11, 0x3a, 0x83, 0x2a, 0xcf, 0xa4, 0xe6, 0x2c, - 0x6b, 0xce, 0xcf, 0x57, 0xe1, 0x3c, 0xd1, 0x14, 0x38, 0xa7, 0x42, 0x5b, 0x50, 0x3e, 0xa7, 0xd4, - 0x5b, 0xdf, 0x71, 0x76, 0xd7, 0xb1, 0xfa, 0xa9, 0x10, 0x29, 0x23, 0x6f, 0xc3, 0x20, 0x52, 0x46, - 0x28, 0x00, 0x37, 0xa0, 0xa9, 0x64, 0xe7, 0x2c, 0x20, 0x92, 0x0a, 0xaf, 0xa2, 0xc3, 0x7f, 0xb1, - 0x4a, 0xf8, 0x83, 0x19, 0x0f, 0x2e, 0x90, 0xa2, 0xd7, 0xd0, 0xb8, 0x62, 0x72, 0x14, 0xa6, 0xe4, - 0x8a, 0x44, 0xc2, 0xab, 0xea, 0x18, 0x4f, 0x57, 0x89, 0xf1, 0x6a, 0x4a, 0x83, 0xe7, 0x29, 0xd1, - 0xa7, 0xf0, 0xbf, 0x4b, 0x12, 0xb1, 0x90, 0xc9, 0x89, 0xcf, 0x62, 0x49, 0xd3, 0x4b, 0x12, 0xa9, - 0x96, 0x4f, 0xa5, 0x57, 0xd3, 0xc5, 0xde, 0xc9, 0xaf, 0x0f, 0xed, 0x6d, 0x5f, 0x5d, 0xa2, 0xfb, - 0xd0, 0x22, 0x51, 0xc4, 0xaf, 0xfc, 0xef, 0x69, 0xca, 0x7d, 0xa5, 0x4d, 0x5d, 0xb7, 0xa7, 0xab, - 0xd1, 0x6f, 0x68, 0xca, 0xcf, 0x64, 0xd4, 0x1e, 0xc3, 0x86, 0xfe, 0xbf, 0x54, 0x1b, 0xdb, 0xd1, - 0xb1, 0x03, 0x97, 0x1f, 0x51, 0x07, 0x9a, 0x49, 0x4a, 0x2f, 0x7d, 0x9e, 0x49, 0x7f, 0x44, 0xc4, - 0x48, 0xb7, 0xb9, 0x8b, 0x1b, 0x0a, 0x3c, 0xc9, 0x64, 0x8f, 0x88, 0x91, 0x0a, 0x36, 0xb5, 0x61, - 0x71, 0x48, 0xaf, 0x75, 0xaf, 0x37, 0xb1, 0x6b, 0x8d, 0x0e, 0x15, 0xd6, 0xfe, 0xd5, 0x01, 0x78, - 0x26, 0x04, 0x95, 0x2f, 0x52, 0x9e, 0x25, 0xe8, 0xff, 0x50, 0x4f, 0x78, 0xc4, 0x82, 0x89, 0xcf, - 0x42, 0xdd, 0xaf, 0x2e, 0xae, 0x19, 0xe0, 0x30, 0x44, 0xdf, 0x42, 0x45, 0xf2, 0x31, 0x8d, 0xf3, - 0x56, 0x7c, 0xbe, 0x8a, 0xa6, 0xb3, 0x60, 0xdd, 0x33, 0x45, 0x86, 0x2d, 0x67, 0xfb, 0x09, 0x6c, - 0x68, 0x00, 0xdd, 0x05, 0x20, 0xca, 0xc8, 0x8f, 0xc9, 0x05, 0xb5, 0x49, 0xd4, 0x35, 0x72, 0x4c, - 0x2e, 0xf4, 0x4e, 0xbc, 0x24, 0x51, 0x46, 0x75, 0xcd, 0xeb, 0xd8, 0x1c, 0xda, 0x7f, 0x38, 0x50, - 0x31, 0x1d, 0xa9, 0xf6, 0x15, 0x8d, 0x03, 0x1e, 0xd2, 0xd0, 0x27, 0x66, 0xaf, 0x68, 0x92, 0x3a, - 0x6e, 0x59, 0xd8, 0x6e, 0x9b, 0xc5, 0x4c, 0x6f, 0x7b, 0x45, 0x20, 0x02, 0xae, 0x29, 0x67, 0xa8, - 0x8a, 0x16, 0xde, 0xfa, 0xea, 0xfd, 0x38, 0xd3, 0x0e, 0x37, 0xc8, 0xf4, 0xb7, 0x68, 0xff, 0x58, - 0x86, 0xc6, 0xdc, 0x3c, 0xa0, 0x63, 0x40, 0x7a, 0x01, 0xfb, 0x29, 0x1d, 0x32, 0x21, 0x53, 0xa2, - 0x48, 0xec, 0x37, 0x61, 0xf9, 0x37, 0xa9, 0x57, 0xc2, 0xb7, 0xb4, 0x2b, 0x9e, 0xf3, 0x44, 0x18, - 0xb6, 0x0d, 0x5f, 0x48, 0x0b, 0x8c, 0x6b, 0x37, 0x63, 0xbc, 0xad, 0x9d, 0x9f, 0x17, 0x7c, 0xd1, - 0x0f, 0xb0, 0x95, 0x73, 0x46, 0x74, 0x68, 0xf8, 0x8c, 0xd2, 0x27, 0xff, 0x71, 0x1d, 0x74, 0xfb, - 0x26, 0x5c, 0x4e, 0xdb, 0x2b, 0xe1, 0x4d, 0x51, 0x84, 0xda, 0xc7, 0xb0, 0xf9, 0x37, 0xab, 0x25, - 0xd3, 0x76, 0x0f, 0xdc, 0x84, 0xf3, 0xc8, 0x1f, 0xd3, 0x49, 0x61, 0xd8, 0x38, 0x8f, 0x8e, 0x0c, - 0xb4, 0x5f, 0x81, 0x75, 0xb5, 0x83, 0xda, 0x4f, 0x00, 0x66, 0x4b, 0x63, 0x09, 0xe5, 0xc2, 0xd6, - 0xeb, 0xfc, 0xee, 0xc0, 0xbb, 0x6f, 0x2a, 0xd3, 0xbe, 0x08, 0x12, 0xb8, 0x25, 0x46, 0x34, 0x8a, - 0xe8, 0xc4, 0xbf, 0x62, 0x32, 0xa6, 0x42, 0xd0, 0xfc, 0xb5, 0x71, 0xf0, 0xef, 0x74, 0x33, 0x84, - 0xdd, 0xbe, 0x61, 0x7b, 0x65, 0xc8, 0xf0, 0x96, 0x28, 0x9c, 0xa9, 0x68, 0xbf, 0x84, 0x56, 0xd1, - 0x46, 0x0d, 0x68, 0x92, 0x0d, 0x22, 0x16, 0x28, 0x45, 0xf2, 0x01, 0x35, 0xc8, 0x11, 0x9d, 0xa0, - 0x77, 0xa0, 0x2e, 0xd8, 0x30, 0x26, 0x32, 0x4b, 0xa9, 0xd5, 0x6a, 0x06, 0x74, 0x7e, 0x5a, 0x83, - 0x96, 0x4d, 0x29, 0xff, 0x44, 0x3e, 0x9b, 0xbd, 0x72, 0xfe, 0x79, 0xd2, 0xe6, 0x9f, 0x5c, 0xbd, - 0x92, 0x7d, 0x12, 0xa1, 0x17, 0x50, 0xcd, 0x67, 0xdd, 0x34, 0xe5, 0x87, 0x4b, 0x49, 0x8a, 0xef, - 0x8d, 0x5e, 0x09, 0xe7, 0xde, 0xe8, 0x35, 0x6c, 0xa9, 0x5c, 0x7d, 0x39, 0x93, 0xca, 0xb6, 0xe5, - 0xa3, 0x15, 0xda, 0x52, 0xb7, 0x5e, 0xf1, 0x66, 0xbf, 0x0e, 0xd5, 0xd4, 0xdc, 0x76, 0xfe, 0x74, - 0x60, 0x73, 0xaa, 0x85, 0xfd, 0x83, 0xf7, 0x8b, 0x62, 0x3c, 0xb8, 0x89, 0x18, 0xc6, 0x75, 0xa6, - 0xc6, 0x27, 0x50, 0x4e, 0xb2, 0x81, 0x55, 0xe2, 0xde, 0x62, 0x86, 0xd3, 0x6c, 0x30, 0xe7, 0xa8, - 0xec, 0x11, 0x79, 0x63, 0xed, 0x1f, 0xaf, 0xd2, 0x5a, 0x8b, 0x8a, 0x07, 0xa8, 0xa5, 0xf6, 0xfa, - 0xc1, 0x67, 0xd3, 0x46, 0xb0, 0x8f, 0x1e, 0x84, 0xa6, 0xc8, 0x4b, 0xc2, 0xe2, 0x98, 0xca, 0xad, - 0xd2, 0x1c, 0x76, 0x46, 0x85, 0x54, 0x98, 0x33, 0xa8, 0xe8, 0x77, 0xf8, 0xa3, 0xbf, 0x02, 0x00, - 0x00, 0xff, 0xff, 0x76, 0xd8, 0x9d, 0xf5, 0xbc, 0x0b, 0x00, 0x00, + file_cardano_proto_msgTypes[12].OneofWrappers = []interface{}{ + (*CardanoSignTransactionRequest_Certificate_StakeRegistration)(nil), + (*CardanoSignTransactionRequest_Certificate_StakeDeregistration)(nil), + (*CardanoSignTransactionRequest_Certificate_StakeDelegation_)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cardano_proto_rawDesc, + NumEnums: 1, + NumMessages: 17, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_cardano_proto_goTypes, + DependencyIndexes: file_cardano_proto_depIdxs, + EnumInfos: file_cardano_proto_enumTypes, + MessageInfos: file_cardano_proto_msgTypes, + }.Build() + File_cardano_proto = out.File + file_cardano_proto_rawDesc = nil + file_cardano_proto_goTypes = nil + file_cardano_proto_depIdxs = nil } diff --git a/api/firmware/messages/common.pb.go b/api/firmware/messages/common.pb.go index 7537d26..7891d8e 100644 --- a/api/firmware/messages/common.pb.go +++ b/api/firmware/messages/common.pb.go @@ -1,130 +1,167 @@ +// Copyright 2019 Shift Cryptosecurity AG +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v3.6.1 // source: common.proto package messages import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +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) +) type PubResponse struct { - Pub string `protobuf:"bytes,1,opt,name=pub,proto3" json:"pub,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *PubResponse) Reset() { *m = PubResponse{} } -func (m *PubResponse) String() string { return proto.CompactTextString(m) } -func (*PubResponse) ProtoMessage() {} -func (*PubResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_555bd8c177793206, []int{0} + Pub string `protobuf:"bytes,1,opt,name=pub,proto3" json:"pub,omitempty"` } -func (m *PubResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PubResponse.Unmarshal(m, b) -} -func (m *PubResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PubResponse.Marshal(b, m, deterministic) -} -func (m *PubResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PubResponse.Merge(m, src) +func (x *PubResponse) Reset() { + *x = PubResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_common_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *PubResponse) XXX_Size() int { - return xxx_messageInfo_PubResponse.Size(m) + +func (x *PubResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PubResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PubResponse.DiscardUnknown(m) + +func (*PubResponse) ProtoMessage() {} + +func (x *PubResponse) ProtoReflect() protoreflect.Message { + mi := &file_common_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) } -var xxx_messageInfo_PubResponse proto.InternalMessageInfo +// Deprecated: Use PubResponse.ProtoReflect.Descriptor instead. +func (*PubResponse) Descriptor() ([]byte, []int) { + return file_common_proto_rawDescGZIP(), []int{0} +} -func (m *PubResponse) GetPub() string { - if m != nil { - return m.Pub +func (x *PubResponse) GetPub() string { + if x != nil { + return x.Pub } return "" } type RootFingerprintRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *RootFingerprintRequest) Reset() { *m = RootFingerprintRequest{} } -func (m *RootFingerprintRequest) String() string { return proto.CompactTextString(m) } -func (*RootFingerprintRequest) ProtoMessage() {} -func (*RootFingerprintRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_555bd8c177793206, []int{1} +func (x *RootFingerprintRequest) Reset() { + *x = RootFingerprintRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_common_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RootFingerprintRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RootFingerprintRequest.Unmarshal(m, b) -} -func (m *RootFingerprintRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RootFingerprintRequest.Marshal(b, m, deterministic) -} -func (m *RootFingerprintRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RootFingerprintRequest.Merge(m, src) -} -func (m *RootFingerprintRequest) XXX_Size() int { - return xxx_messageInfo_RootFingerprintRequest.Size(m) -} -func (m *RootFingerprintRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RootFingerprintRequest.DiscardUnknown(m) +func (x *RootFingerprintRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_RootFingerprintRequest proto.InternalMessageInfo +func (*RootFingerprintRequest) ProtoMessage() {} -type RootFingerprintResponse struct { - Fingerprint []byte `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *RootFingerprintRequest) ProtoReflect() protoreflect.Message { + mi := &file_common_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) } -func (m *RootFingerprintResponse) Reset() { *m = RootFingerprintResponse{} } -func (m *RootFingerprintResponse) String() string { return proto.CompactTextString(m) } -func (*RootFingerprintResponse) ProtoMessage() {} -func (*RootFingerprintResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_555bd8c177793206, []int{2} +// Deprecated: Use RootFingerprintRequest.ProtoReflect.Descriptor instead. +func (*RootFingerprintRequest) Descriptor() ([]byte, []int) { + return file_common_proto_rawDescGZIP(), []int{1} } -func (m *RootFingerprintResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RootFingerprintResponse.Unmarshal(m, b) -} -func (m *RootFingerprintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RootFingerprintResponse.Marshal(b, m, deterministic) +type RootFingerprintResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Fingerprint []byte `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` } -func (m *RootFingerprintResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RootFingerprintResponse.Merge(m, src) + +func (x *RootFingerprintResponse) Reset() { + *x = RootFingerprintResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_common_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RootFingerprintResponse) XXX_Size() int { - return xxx_messageInfo_RootFingerprintResponse.Size(m) + +func (x *RootFingerprintResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RootFingerprintResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RootFingerprintResponse.DiscardUnknown(m) + +func (*RootFingerprintResponse) ProtoMessage() {} + +func (x *RootFingerprintResponse) ProtoReflect() protoreflect.Message { + mi := &file_common_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) } -var xxx_messageInfo_RootFingerprintResponse proto.InternalMessageInfo +// Deprecated: Use RootFingerprintResponse.ProtoReflect.Descriptor instead. +func (*RootFingerprintResponse) Descriptor() ([]byte, []int) { + return file_common_proto_rawDescGZIP(), []int{2} +} -func (m *RootFingerprintResponse) GetFingerprint() []byte { - if m != nil { - return m.Fingerprint +func (x *RootFingerprintResponse) GetFingerprint() []byte { + if x != nil { + return x.Fingerprint } return nil } @@ -132,143 +169,272 @@ func (m *RootFingerprintResponse) GetFingerprint() []byte { // See https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki. // version field dropped as it will set dynamically based on the context (xpub, ypub, etc.). type XPub struct { - Depth []byte `protobuf:"bytes,1,opt,name=depth,proto3" json:"depth,omitempty"` - ParentFingerprint []byte `protobuf:"bytes,2,opt,name=parent_fingerprint,json=parentFingerprint,proto3" json:"parent_fingerprint,omitempty"` - ChildNum uint32 `protobuf:"varint,3,opt,name=child_num,json=childNum,proto3" json:"child_num,omitempty"` - ChainCode []byte `protobuf:"bytes,4,opt,name=chain_code,json=chainCode,proto3" json:"chain_code,omitempty"` - PublicKey []byte `protobuf:"bytes,5,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *XPub) Reset() { *m = XPub{} } -func (m *XPub) String() string { return proto.CompactTextString(m) } -func (*XPub) ProtoMessage() {} -func (*XPub) Descriptor() ([]byte, []int) { - return fileDescriptor_555bd8c177793206, []int{3} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Depth []byte `protobuf:"bytes,1,opt,name=depth,proto3" json:"depth,omitempty"` + ParentFingerprint []byte `protobuf:"bytes,2,opt,name=parent_fingerprint,json=parentFingerprint,proto3" json:"parent_fingerprint,omitempty"` + ChildNum uint32 `protobuf:"varint,3,opt,name=child_num,json=childNum,proto3" json:"child_num,omitempty"` + ChainCode []byte `protobuf:"bytes,4,opt,name=chain_code,json=chainCode,proto3" json:"chain_code,omitempty"` + PublicKey []byte `protobuf:"bytes,5,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` +} + +func (x *XPub) Reset() { + *x = XPub{} + if protoimpl.UnsafeEnabled { + mi := &file_common_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *XPub) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_XPub.Unmarshal(m, b) -} -func (m *XPub) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_XPub.Marshal(b, m, deterministic) +func (x *XPub) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *XPub) XXX_Merge(src proto.Message) { - xxx_messageInfo_XPub.Merge(m, src) -} -func (m *XPub) XXX_Size() int { - return xxx_messageInfo_XPub.Size(m) -} -func (m *XPub) XXX_DiscardUnknown() { - xxx_messageInfo_XPub.DiscardUnknown(m) + +func (*XPub) ProtoMessage() {} + +func (x *XPub) ProtoReflect() protoreflect.Message { + mi := &file_common_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) } -var xxx_messageInfo_XPub proto.InternalMessageInfo +// Deprecated: Use XPub.ProtoReflect.Descriptor instead. +func (*XPub) Descriptor() ([]byte, []int) { + return file_common_proto_rawDescGZIP(), []int{3} +} -func (m *XPub) GetDepth() []byte { - if m != nil { - return m.Depth +func (x *XPub) GetDepth() []byte { + if x != nil { + return x.Depth } return nil } -func (m *XPub) GetParentFingerprint() []byte { - if m != nil { - return m.ParentFingerprint +func (x *XPub) GetParentFingerprint() []byte { + if x != nil { + return x.ParentFingerprint } return nil } -func (m *XPub) GetChildNum() uint32 { - if m != nil { - return m.ChildNum +func (x *XPub) GetChildNum() uint32 { + if x != nil { + return x.ChildNum } return 0 } -func (m *XPub) GetChainCode() []byte { - if m != nil { - return m.ChainCode +func (x *XPub) GetChainCode() []byte { + if x != nil { + return x.ChainCode } return nil } -func (m *XPub) GetPublicKey() []byte { - if m != nil { - return m.PublicKey +func (x *XPub) GetPublicKey() []byte { + if x != nil { + return x.PublicKey } return nil } // This message exists for use in oneof or repeated fields, where one can't inline `repeated uint32` due to protobuf rules. type Keypath struct { - Keypath []uint32 `protobuf:"varint,1,rep,packed,name=keypath,proto3" json:"keypath,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Keypath) Reset() { *m = Keypath{} } -func (m *Keypath) String() string { return proto.CompactTextString(m) } -func (*Keypath) ProtoMessage() {} -func (*Keypath) Descriptor() ([]byte, []int) { - return fileDescriptor_555bd8c177793206, []int{4} + Keypath []uint32 `protobuf:"varint,1,rep,packed,name=keypath,proto3" json:"keypath,omitempty"` } -func (m *Keypath) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Keypath.Unmarshal(m, b) -} -func (m *Keypath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Keypath.Marshal(b, m, deterministic) -} -func (m *Keypath) XXX_Merge(src proto.Message) { - xxx_messageInfo_Keypath.Merge(m, src) +func (x *Keypath) Reset() { + *x = Keypath{} + if protoimpl.UnsafeEnabled { + mi := &file_common_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Keypath) XXX_Size() int { - return xxx_messageInfo_Keypath.Size(m) + +func (x *Keypath) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Keypath) XXX_DiscardUnknown() { - xxx_messageInfo_Keypath.DiscardUnknown(m) + +func (*Keypath) ProtoMessage() {} + +func (x *Keypath) ProtoReflect() protoreflect.Message { + mi := &file_common_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) } -var xxx_messageInfo_Keypath proto.InternalMessageInfo +// Deprecated: Use Keypath.ProtoReflect.Descriptor instead. +func (*Keypath) Descriptor() ([]byte, []int) { + return file_common_proto_rawDescGZIP(), []int{4} +} -func (m *Keypath) GetKeypath() []uint32 { - if m != nil { - return m.Keypath +func (x *Keypath) GetKeypath() []uint32 { + if x != nil { + return x.Keypath } return nil } -func init() { - proto.RegisterType((*PubResponse)(nil), "shiftcrypto.bitbox02.PubResponse") - proto.RegisterType((*RootFingerprintRequest)(nil), "shiftcrypto.bitbox02.RootFingerprintRequest") - proto.RegisterType((*RootFingerprintResponse)(nil), "shiftcrypto.bitbox02.RootFingerprintResponse") - proto.RegisterType((*XPub)(nil), "shiftcrypto.bitbox02.XPub") - proto.RegisterType((*Keypath)(nil), "shiftcrypto.bitbox02.Keypath") -} - -func init() { proto.RegisterFile("common.proto", fileDescriptor_555bd8c177793206) } - -var fileDescriptor_555bd8c177793206 = []byte{ - // 267 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0x41, 0x4b, 0xc3, 0x30, - 0x14, 0x80, 0xa9, 0xdb, 0x9c, 0x7d, 0xdb, 0x40, 0xc3, 0xd0, 0x80, 0x88, 0xa5, 0x5e, 0x7a, 0x71, - 0x88, 0x1e, 0x3d, 0x0a, 0x5e, 0x06, 0x32, 0x72, 0xf2, 0x56, 0x9a, 0xf4, 0xcd, 0x86, 0xad, 0x79, - 0xb1, 0x4d, 0xc0, 0xfe, 0x21, 0x7f, 0xa7, 0x2c, 0x9d, 0x58, 0xf0, 0xf6, 0xde, 0xf7, 0x3d, 0xbe, - 0x40, 0x60, 0xae, 0xa8, 0xae, 0xc9, 0xac, 0x6c, 0x43, 0x8e, 0xd8, 0xb2, 0xad, 0xf4, 0xd6, 0xa9, - 0xa6, 0xb3, 0x8e, 0x56, 0x52, 0x3b, 0x49, 0x5f, 0x0f, 0x8f, 0xe9, 0x2d, 0xcc, 0x36, 0x5e, 0x0a, - 0x6c, 0x2d, 0x99, 0x16, 0xd9, 0x39, 0x8c, 0xac, 0x97, 0x3c, 0x4a, 0xa2, 0x2c, 0x16, 0x87, 0x31, - 0xe5, 0x70, 0x29, 0x88, 0xdc, 0xab, 0x36, 0x1f, 0xd8, 0xd8, 0x46, 0x1b, 0x27, 0xf0, 0xd3, 0x63, - 0xeb, 0xd2, 0x67, 0xb8, 0xfa, 0x67, 0x8e, 0x99, 0x04, 0x66, 0xdb, 0x3f, 0x1c, 0x72, 0x73, 0x31, - 0x44, 0xe9, 0x77, 0x04, 0xe3, 0xf7, 0x8d, 0x97, 0x6c, 0x09, 0x93, 0x12, 0xad, 0xab, 0x8e, 0x47, - 0xfd, 0xc2, 0xee, 0x81, 0xd9, 0xa2, 0x41, 0xe3, 0xf2, 0x61, 0xe7, 0x24, 0x9c, 0x5c, 0xf4, 0x66, - 0xf0, 0x2e, 0xbb, 0x86, 0x58, 0x55, 0x7a, 0x5f, 0xe6, 0xc6, 0xd7, 0x7c, 0x94, 0x44, 0xd9, 0x42, - 0x9c, 0x05, 0xf0, 0xe6, 0x6b, 0x76, 0x03, 0xa0, 0xaa, 0x42, 0x9b, 0x5c, 0x51, 0x89, 0x7c, 0x1c, - 0x1a, 0x71, 0x20, 0x2f, 0x54, 0xe2, 0x41, 0x5b, 0x2f, 0xf7, 0x5a, 0xe5, 0x3b, 0xec, 0xf8, 0xa4, - 0xd7, 0x3d, 0x59, 0x63, 0x97, 0xde, 0xc1, 0x74, 0x8d, 0x9d, 0x2d, 0x5c, 0xc5, 0x38, 0x4c, 0x77, - 0xfd, 0xc8, 0xa3, 0x64, 0x94, 0x2d, 0xc4, 0xef, 0x2a, 0x4f, 0xc3, 0x17, 0x3f, 0xfd, 0x04, 0x00, - 0x00, 0xff, 0xff, 0x34, 0x35, 0x29, 0x2b, 0x72, 0x01, 0x00, 0x00, +var File_common_proto protoreflect.FileDescriptor + +var file_common_proto_rawDesc = []byte{ + 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, + 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, + 0x6f, 0x78, 0x30, 0x32, 0x22, 0x1f, 0x0a, 0x0b, 0x50, 0x75, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x75, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x70, 0x75, 0x62, 0x22, 0x18, 0x0a, 0x16, 0x52, 0x6f, 0x6f, 0x74, 0x46, 0x69, 0x6e, + 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, + 0x3b, 0x0a, 0x17, 0x52, 0x6f, 0x6f, 0x74, 0x46, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, + 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x66, 0x69, + 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x0b, 0x66, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x22, 0xa6, 0x01, 0x0a, + 0x04, 0x58, 0x50, 0x75, 0x62, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x70, 0x74, 0x68, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x64, 0x65, 0x70, 0x74, 0x68, 0x12, 0x2d, 0x0a, 0x12, 0x70, + 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x66, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x46, + 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x68, + 0x69, 0x6c, 0x64, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x63, + 0x68, 0x69, 0x6c, 0x64, 0x4e, 0x75, 0x6d, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x69, 0x6e, + 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x68, 0x61, + 0x69, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, + 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, + 0x69, 0x63, 0x4b, 0x65, 0x79, 0x22, 0x23, 0x0a, 0x07, 0x4b, 0x65, 0x79, 0x70, 0x61, 0x74, 0x68, + 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0d, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x70, 0x61, 0x74, 0x68, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_common_proto_rawDescOnce sync.Once + file_common_proto_rawDescData = file_common_proto_rawDesc +) + +func file_common_proto_rawDescGZIP() []byte { + file_common_proto_rawDescOnce.Do(func() { + file_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_proto_rawDescData) + }) + return file_common_proto_rawDescData +} + +var file_common_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_common_proto_goTypes = []interface{}{ + (*PubResponse)(nil), // 0: shiftcrypto.bitbox02.PubResponse + (*RootFingerprintRequest)(nil), // 1: shiftcrypto.bitbox02.RootFingerprintRequest + (*RootFingerprintResponse)(nil), // 2: shiftcrypto.bitbox02.RootFingerprintResponse + (*XPub)(nil), // 3: shiftcrypto.bitbox02.XPub + (*Keypath)(nil), // 4: shiftcrypto.bitbox02.Keypath +} +var file_common_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_common_proto_init() } +func file_common_proto_init() { + if File_common_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PubResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RootFingerprintRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RootFingerprintResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_common_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*XPub); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_common_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Keypath); 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_common_proto_rawDesc, + NumEnums: 0, + NumMessages: 5, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_common_proto_goTypes, + DependencyIndexes: file_common_proto_depIdxs, + MessageInfos: file_common_proto_msgTypes, + }.Build() + File_common_proto = out.File + file_common_proto_rawDesc = nil + file_common_proto_goTypes = nil + file_common_proto_depIdxs = nil } diff --git a/api/firmware/messages/eth.pb.go b/api/firmware/messages/eth.pb.go index 5e7c132..96dd9c3 100644 --- a/api/firmware/messages/eth.pb.go +++ b/api/firmware/messages/eth.pb.go @@ -1,25 +1,38 @@ +// Copyright 2019 Shift Cryptosecurity AG +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v3.6.1 // source: eth.proto package messages import ( - fmt "fmt" - math "math" - - proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +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) +) type ETHCoin int32 @@ -29,24 +42,45 @@ const ( ETHCoin_RinkebyETH ETHCoin = 2 ) -var ETHCoin_name = map[int32]string{ - 0: "ETH", - 1: "RopstenETH", - 2: "RinkebyETH", -} +// Enum value maps for ETHCoin. +var ( + ETHCoin_name = map[int32]string{ + 0: "ETH", + 1: "RopstenETH", + 2: "RinkebyETH", + } + ETHCoin_value = map[string]int32{ + "ETH": 0, + "RopstenETH": 1, + "RinkebyETH": 2, + } +) -var ETHCoin_value = map[string]int32{ - "ETH": 0, - "RopstenETH": 1, - "RinkebyETH": 2, +func (x ETHCoin) Enum() *ETHCoin { + p := new(ETHCoin) + *p = x + return p } func (x ETHCoin) String() string { - return proto.EnumName(ETHCoin_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ETHCoin) Descriptor() protoreflect.EnumDescriptor { + return file_eth_proto_enumTypes[0].Descriptor() +} + +func (ETHCoin) Type() protoreflect.EnumType { + return &file_eth_proto_enumTypes[0] +} + +func (x ETHCoin) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use ETHCoin.Descriptor instead. func (ETHCoin) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_d980f775760351f6, []int{0} + return file_eth_proto_rawDescGZIP(), []int{0} } type ETHPubRequest_OutputType int32 @@ -56,22 +90,43 @@ const ( ETHPubRequest_XPUB ETHPubRequest_OutputType = 1 ) -var ETHPubRequest_OutputType_name = map[int32]string{ - 0: "ADDRESS", - 1: "XPUB", -} +// Enum value maps for ETHPubRequest_OutputType. +var ( + ETHPubRequest_OutputType_name = map[int32]string{ + 0: "ADDRESS", + 1: "XPUB", + } + ETHPubRequest_OutputType_value = map[string]int32{ + "ADDRESS": 0, + "XPUB": 1, + } +) -var ETHPubRequest_OutputType_value = map[string]int32{ - "ADDRESS": 0, - "XPUB": 1, +func (x ETHPubRequest_OutputType) Enum() *ETHPubRequest_OutputType { + p := new(ETHPubRequest_OutputType) + *p = x + return p } func (x ETHPubRequest_OutputType) String() string { - return proto.EnumName(ETHPubRequest_OutputType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ETHPubRequest_OutputType) Descriptor() protoreflect.EnumDescriptor { + return file_eth_proto_enumTypes[1].Descriptor() } +func (ETHPubRequest_OutputType) Type() protoreflect.EnumType { + return &file_eth_proto_enumTypes[1] +} + +func (x ETHPubRequest_OutputType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ETHPubRequest_OutputType.Descriptor instead. func (ETHPubRequest_OutputType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_d980f775760351f6, []int{0, 0} + return file_eth_proto_rawDescGZIP(), []int{0, 0} } type ETHSignTypedMessageRequest_DataType int32 @@ -88,36 +143,57 @@ const ( ETHSignTypedMessageRequest_STRUCT ETHSignTypedMessageRequest_DataType = 8 ) -var ETHSignTypedMessageRequest_DataType_name = map[int32]string{ - 0: "UNKNOWN", - 1: "BYTES", - 2: "UINT", - 3: "INT", - 4: "BOOL", - 5: "ADDRESS", - 6: "STRING", - 7: "ARRAY", - 8: "STRUCT", -} - -var ETHSignTypedMessageRequest_DataType_value = map[string]int32{ - "UNKNOWN": 0, - "BYTES": 1, - "UINT": 2, - "INT": 3, - "BOOL": 4, - "ADDRESS": 5, - "STRING": 6, - "ARRAY": 7, - "STRUCT": 8, +// Enum value maps for ETHSignTypedMessageRequest_DataType. +var ( + ETHSignTypedMessageRequest_DataType_name = map[int32]string{ + 0: "UNKNOWN", + 1: "BYTES", + 2: "UINT", + 3: "INT", + 4: "BOOL", + 5: "ADDRESS", + 6: "STRING", + 7: "ARRAY", + 8: "STRUCT", + } + ETHSignTypedMessageRequest_DataType_value = map[string]int32{ + "UNKNOWN": 0, + "BYTES": 1, + "UINT": 2, + "INT": 3, + "BOOL": 4, + "ADDRESS": 5, + "STRING": 6, + "ARRAY": 7, + "STRUCT": 8, + } +) + +func (x ETHSignTypedMessageRequest_DataType) Enum() *ETHSignTypedMessageRequest_DataType { + p := new(ETHSignTypedMessageRequest_DataType) + *p = x + return p } func (x ETHSignTypedMessageRequest_DataType) String() string { - return proto.EnumName(ETHSignTypedMessageRequest_DataType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ETHSignTypedMessageRequest_DataType) Descriptor() protoreflect.EnumDescriptor { + return file_eth_proto_enumTypes[2].Descriptor() +} + +func (ETHSignTypedMessageRequest_DataType) Type() protoreflect.EnumType { + return &file_eth_proto_enumTypes[2] } +func (x ETHSignTypedMessageRequest_DataType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ETHSignTypedMessageRequest_DataType.Descriptor instead. func (ETHSignTypedMessageRequest_DataType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_d980f775760351f6, []int{4, 0} + return file_eth_proto_rawDescGZIP(), []int{4, 0} } type ETHTypedMessageValueResponse_RootObject int32 @@ -128,27 +204,52 @@ const ( ETHTypedMessageValueResponse_MESSAGE ETHTypedMessageValueResponse_RootObject = 2 ) -var ETHTypedMessageValueResponse_RootObject_name = map[int32]string{ - 0: "UNKNOWN", - 1: "DOMAIN", - 2: "MESSAGE", -} +// Enum value maps for ETHTypedMessageValueResponse_RootObject. +var ( + ETHTypedMessageValueResponse_RootObject_name = map[int32]string{ + 0: "UNKNOWN", + 1: "DOMAIN", + 2: "MESSAGE", + } + ETHTypedMessageValueResponse_RootObject_value = map[string]int32{ + "UNKNOWN": 0, + "DOMAIN": 1, + "MESSAGE": 2, + } +) -var ETHTypedMessageValueResponse_RootObject_value = map[string]int32{ - "UNKNOWN": 0, - "DOMAIN": 1, - "MESSAGE": 2, +func (x ETHTypedMessageValueResponse_RootObject) Enum() *ETHTypedMessageValueResponse_RootObject { + p := new(ETHTypedMessageValueResponse_RootObject) + *p = x + return p } func (x ETHTypedMessageValueResponse_RootObject) String() string { - return proto.EnumName(ETHTypedMessageValueResponse_RootObject_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (ETHTypedMessageValueResponse_RootObject) Descriptor() protoreflect.EnumDescriptor { + return file_eth_proto_enumTypes[3].Descriptor() +} + +func (ETHTypedMessageValueResponse_RootObject) Type() protoreflect.EnumType { + return &file_eth_proto_enumTypes[3] +} + +func (x ETHTypedMessageValueResponse_RootObject) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ETHTypedMessageValueResponse_RootObject.Descriptor instead. func (ETHTypedMessageValueResponse_RootObject) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_d980f775760351f6, []int{5, 0} + return file_eth_proto_rawDescGZIP(), []int{5, 0} } type ETHPubRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Keypath []uint32 `protobuf:"varint,1,rep,packed,name=keypath,proto3" json:"keypath,omitempty"` // Deprecated: use chain_id instead. Coin ETHCoin `protobuf:"varint,2,opt,name=coin,proto3,enum=shiftcrypto.bitbox02.ETHCoin" json:"coin,omitempty"` @@ -156,657 +257,609 @@ type ETHPubRequest struct { Display bool `protobuf:"varint,4,opt,name=display,proto3" json:"display,omitempty"` ContractAddress []byte `protobuf:"bytes,5,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` // If non-zero, `coin` is ignored and `chain_id` is used to identify the network. - ChainId uint64 `protobuf:"varint,6,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ChainId uint64 `protobuf:"varint,6,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` } -func (m *ETHPubRequest) Reset() { *m = ETHPubRequest{} } -func (m *ETHPubRequest) String() string { return proto.CompactTextString(m) } -func (*ETHPubRequest) ProtoMessage() {} -func (*ETHPubRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d980f775760351f6, []int{0} +func (x *ETHPubRequest) Reset() { + *x = ETHPubRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_eth_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ETHPubRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ETHPubRequest.Unmarshal(m, b) -} -func (m *ETHPubRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ETHPubRequest.Marshal(b, m, deterministic) -} -func (m *ETHPubRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ETHPubRequest.Merge(m, src) +func (x *ETHPubRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ETHPubRequest) XXX_Size() int { - return xxx_messageInfo_ETHPubRequest.Size(m) -} -func (m *ETHPubRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ETHPubRequest.DiscardUnknown(m) + +func (*ETHPubRequest) ProtoMessage() {} + +func (x *ETHPubRequest) ProtoReflect() protoreflect.Message { + mi := &file_eth_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) } -var xxx_messageInfo_ETHPubRequest proto.InternalMessageInfo +// Deprecated: Use ETHPubRequest.ProtoReflect.Descriptor instead. +func (*ETHPubRequest) Descriptor() ([]byte, []int) { + return file_eth_proto_rawDescGZIP(), []int{0} +} -func (m *ETHPubRequest) GetKeypath() []uint32 { - if m != nil { - return m.Keypath +func (x *ETHPubRequest) GetKeypath() []uint32 { + if x != nil { + return x.Keypath } return nil } -func (m *ETHPubRequest) GetCoin() ETHCoin { - if m != nil { - return m.Coin +func (x *ETHPubRequest) GetCoin() ETHCoin { + if x != nil { + return x.Coin } return ETHCoin_ETH } -func (m *ETHPubRequest) GetOutputType() ETHPubRequest_OutputType { - if m != nil { - return m.OutputType +func (x *ETHPubRequest) GetOutputType() ETHPubRequest_OutputType { + if x != nil { + return x.OutputType } return ETHPubRequest_ADDRESS } -func (m *ETHPubRequest) GetDisplay() bool { - if m != nil { - return m.Display +func (x *ETHPubRequest) GetDisplay() bool { + if x != nil { + return x.Display } return false } -func (m *ETHPubRequest) GetContractAddress() []byte { - if m != nil { - return m.ContractAddress +func (x *ETHPubRequest) GetContractAddress() []byte { + if x != nil { + return x.ContractAddress } return nil } -func (m *ETHPubRequest) GetChainId() uint64 { - if m != nil { - return m.ChainId +func (x *ETHPubRequest) GetChainId() uint64 { + if x != nil { + return x.ChainId } return 0 } type ETHSignRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Deprecated: use chain_id instead. Coin ETHCoin `protobuf:"varint,1,opt,name=coin,proto3,enum=shiftcrypto.bitbox02.ETHCoin" json:"coin,omitempty"` Keypath []uint32 `protobuf:"varint,2,rep,packed,name=keypath,proto3" json:"keypath,omitempty"` - Nonce []byte `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"` - GasPrice []byte `protobuf:"bytes,4,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` - GasLimit []byte `protobuf:"bytes,5,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` - Recipient []byte `protobuf:"bytes,6,opt,name=recipient,proto3" json:"recipient,omitempty"` - Value []byte `protobuf:"bytes,7,opt,name=value,proto3" json:"value,omitempty"` + Nonce []byte `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"` // smallest big endian serialization, max. 16 bytes + GasPrice []byte `protobuf:"bytes,4,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` // smallest big endian serialization, max. 16 bytes + GasLimit []byte `protobuf:"bytes,5,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` // smallest big endian serialization, max. 16 bytes + Recipient []byte `protobuf:"bytes,6,opt,name=recipient,proto3" json:"recipient,omitempty"` // 20 byte recipient + Value []byte `protobuf:"bytes,7,opt,name=value,proto3" json:"value,omitempty"` // smallest big endian serialization, max. 32 bytes Data []byte `protobuf:"bytes,8,opt,name=data,proto3" json:"data,omitempty"` HostNonceCommitment *AntiKleptoHostNonceCommitment `protobuf:"bytes,9,opt,name=host_nonce_commitment,json=hostNonceCommitment,proto3" json:"host_nonce_commitment,omitempty"` // If non-zero, `coin` is ignored and `chain_id` is used to identify the network. - ChainId uint64 `protobuf:"varint,10,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ChainId uint64 `protobuf:"varint,10,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` } -func (m *ETHSignRequest) Reset() { *m = ETHSignRequest{} } -func (m *ETHSignRequest) String() string { return proto.CompactTextString(m) } -func (*ETHSignRequest) ProtoMessage() {} -func (*ETHSignRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d980f775760351f6, []int{1} +func (x *ETHSignRequest) Reset() { + *x = ETHSignRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_eth_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ETHSignRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ETHSignRequest.Unmarshal(m, b) +func (x *ETHSignRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ETHSignRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ETHSignRequest.Marshal(b, m, deterministic) -} -func (m *ETHSignRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ETHSignRequest.Merge(m, src) -} -func (m *ETHSignRequest) XXX_Size() int { - return xxx_messageInfo_ETHSignRequest.Size(m) -} -func (m *ETHSignRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ETHSignRequest.DiscardUnknown(m) + +func (*ETHSignRequest) ProtoMessage() {} + +func (x *ETHSignRequest) ProtoReflect() protoreflect.Message { + mi := &file_eth_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) } -var xxx_messageInfo_ETHSignRequest proto.InternalMessageInfo +// Deprecated: Use ETHSignRequest.ProtoReflect.Descriptor instead. +func (*ETHSignRequest) Descriptor() ([]byte, []int) { + return file_eth_proto_rawDescGZIP(), []int{1} +} -func (m *ETHSignRequest) GetCoin() ETHCoin { - if m != nil { - return m.Coin +func (x *ETHSignRequest) GetCoin() ETHCoin { + if x != nil { + return x.Coin } return ETHCoin_ETH } -func (m *ETHSignRequest) GetKeypath() []uint32 { - if m != nil { - return m.Keypath +func (x *ETHSignRequest) GetKeypath() []uint32 { + if x != nil { + return x.Keypath } return nil } -func (m *ETHSignRequest) GetNonce() []byte { - if m != nil { - return m.Nonce +func (x *ETHSignRequest) GetNonce() []byte { + if x != nil { + return x.Nonce } return nil } -func (m *ETHSignRequest) GetGasPrice() []byte { - if m != nil { - return m.GasPrice +func (x *ETHSignRequest) GetGasPrice() []byte { + if x != nil { + return x.GasPrice } return nil } -func (m *ETHSignRequest) GetGasLimit() []byte { - if m != nil { - return m.GasLimit +func (x *ETHSignRequest) GetGasLimit() []byte { + if x != nil { + return x.GasLimit } return nil } -func (m *ETHSignRequest) GetRecipient() []byte { - if m != nil { - return m.Recipient +func (x *ETHSignRequest) GetRecipient() []byte { + if x != nil { + return x.Recipient } return nil } -func (m *ETHSignRequest) GetValue() []byte { - if m != nil { - return m.Value +func (x *ETHSignRequest) GetValue() []byte { + if x != nil { + return x.Value } return nil } -func (m *ETHSignRequest) GetData() []byte { - if m != nil { - return m.Data +func (x *ETHSignRequest) GetData() []byte { + if x != nil { + return x.Data } return nil } -func (m *ETHSignRequest) GetHostNonceCommitment() *AntiKleptoHostNonceCommitment { - if m != nil { - return m.HostNonceCommitment +func (x *ETHSignRequest) GetHostNonceCommitment() *AntiKleptoHostNonceCommitment { + if x != nil { + return x.HostNonceCommitment } return nil } -func (m *ETHSignRequest) GetChainId() uint64 { - if m != nil { - return m.ChainId +func (x *ETHSignRequest) GetChainId() uint64 { + if x != nil { + return x.ChainId } return 0 } type ETHSignMessageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Deprecated: use chain_id instead. Coin ETHCoin `protobuf:"varint,1,opt,name=coin,proto3,enum=shiftcrypto.bitbox02.ETHCoin" json:"coin,omitempty"` Keypath []uint32 `protobuf:"varint,2,rep,packed,name=keypath,proto3" json:"keypath,omitempty"` Msg []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` HostNonceCommitment *AntiKleptoHostNonceCommitment `protobuf:"bytes,4,opt,name=host_nonce_commitment,json=hostNonceCommitment,proto3" json:"host_nonce_commitment,omitempty"` // If non-zero, `coin` is ignored and `chain_id` is used to identify the network. - ChainId uint64 `protobuf:"varint,5,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ChainId uint64 `protobuf:"varint,5,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` } -func (m *ETHSignMessageRequest) Reset() { *m = ETHSignMessageRequest{} } -func (m *ETHSignMessageRequest) String() string { return proto.CompactTextString(m) } -func (*ETHSignMessageRequest) ProtoMessage() {} -func (*ETHSignMessageRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d980f775760351f6, []int{2} +func (x *ETHSignMessageRequest) Reset() { + *x = ETHSignMessageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_eth_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ETHSignMessageRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ETHSignMessageRequest.Unmarshal(m, b) -} -func (m *ETHSignMessageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ETHSignMessageRequest.Marshal(b, m, deterministic) -} -func (m *ETHSignMessageRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ETHSignMessageRequest.Merge(m, src) -} -func (m *ETHSignMessageRequest) XXX_Size() int { - return xxx_messageInfo_ETHSignMessageRequest.Size(m) +func (x *ETHSignMessageRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ETHSignMessageRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ETHSignMessageRequest.DiscardUnknown(m) + +func (*ETHSignMessageRequest) ProtoMessage() {} + +func (x *ETHSignMessageRequest) ProtoReflect() protoreflect.Message { + mi := &file_eth_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) } -var xxx_messageInfo_ETHSignMessageRequest proto.InternalMessageInfo +// Deprecated: Use ETHSignMessageRequest.ProtoReflect.Descriptor instead. +func (*ETHSignMessageRequest) Descriptor() ([]byte, []int) { + return file_eth_proto_rawDescGZIP(), []int{2} +} -func (m *ETHSignMessageRequest) GetCoin() ETHCoin { - if m != nil { - return m.Coin +func (x *ETHSignMessageRequest) GetCoin() ETHCoin { + if x != nil { + return x.Coin } return ETHCoin_ETH } -func (m *ETHSignMessageRequest) GetKeypath() []uint32 { - if m != nil { - return m.Keypath +func (x *ETHSignMessageRequest) GetKeypath() []uint32 { + if x != nil { + return x.Keypath } return nil } -func (m *ETHSignMessageRequest) GetMsg() []byte { - if m != nil { - return m.Msg +func (x *ETHSignMessageRequest) GetMsg() []byte { + if x != nil { + return x.Msg } return nil } -func (m *ETHSignMessageRequest) GetHostNonceCommitment() *AntiKleptoHostNonceCommitment { - if m != nil { - return m.HostNonceCommitment +func (x *ETHSignMessageRequest) GetHostNonceCommitment() *AntiKleptoHostNonceCommitment { + if x != nil { + return x.HostNonceCommitment } return nil } -func (m *ETHSignMessageRequest) GetChainId() uint64 { - if m != nil { - return m.ChainId +func (x *ETHSignMessageRequest) GetChainId() uint64 { + if x != nil { + return x.ChainId } return 0 } type ETHSignResponse struct { - Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ETHSignResponse) Reset() { *m = ETHSignResponse{} } -func (m *ETHSignResponse) String() string { return proto.CompactTextString(m) } -func (*ETHSignResponse) ProtoMessage() {} -func (*ETHSignResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d980f775760351f6, []int{3} + Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` // 65 bytes, last byte is the recid } -func (m *ETHSignResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ETHSignResponse.Unmarshal(m, b) -} -func (m *ETHSignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ETHSignResponse.Marshal(b, m, deterministic) -} -func (m *ETHSignResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ETHSignResponse.Merge(m, src) +func (x *ETHSignResponse) Reset() { + *x = ETHSignResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_eth_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ETHSignResponse) XXX_Size() int { - return xxx_messageInfo_ETHSignResponse.Size(m) + +func (x *ETHSignResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ETHSignResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ETHSignResponse.DiscardUnknown(m) + +func (*ETHSignResponse) ProtoMessage() {} + +func (x *ETHSignResponse) ProtoReflect() protoreflect.Message { + mi := &file_eth_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) } -var xxx_messageInfo_ETHSignResponse proto.InternalMessageInfo +// Deprecated: Use ETHSignResponse.ProtoReflect.Descriptor instead. +func (*ETHSignResponse) Descriptor() ([]byte, []int) { + return file_eth_proto_rawDescGZIP(), []int{3} +} -func (m *ETHSignResponse) GetSignature() []byte { - if m != nil { - return m.Signature +func (x *ETHSignResponse) GetSignature() []byte { + if x != nil { + return x.Signature } return nil } type ETHSignTypedMessageRequest struct { - ChainId uint64 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - Keypath []uint32 `protobuf:"varint,2,rep,packed,name=keypath,proto3" json:"keypath,omitempty"` - Types []*ETHSignTypedMessageRequest_StructType `protobuf:"bytes,3,rep,name=types,proto3" json:"types,omitempty"` - PrimaryType string `protobuf:"bytes,4,opt,name=primary_type,json=primaryType,proto3" json:"primary_type,omitempty"` - HostNonceCommitment *AntiKleptoHostNonceCommitment `protobuf:"bytes,5,opt,name=host_nonce_commitment,json=hostNonceCommitment,proto3" json:"host_nonce_commitment,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ETHSignTypedMessageRequest) Reset() { *m = ETHSignTypedMessageRequest{} } -func (m *ETHSignTypedMessageRequest) String() string { return proto.CompactTextString(m) } -func (*ETHSignTypedMessageRequest) ProtoMessage() {} -func (*ETHSignTypedMessageRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d980f775760351f6, []int{4} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ChainId uint64 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + Keypath []uint32 `protobuf:"varint,2,rep,packed,name=keypath,proto3" json:"keypath,omitempty"` + Types []*ETHSignTypedMessageRequest_StructType `protobuf:"bytes,3,rep,name=types,proto3" json:"types,omitempty"` + PrimaryType string `protobuf:"bytes,4,opt,name=primary_type,json=primaryType,proto3" json:"primary_type,omitempty"` + HostNonceCommitment *AntiKleptoHostNonceCommitment `protobuf:"bytes,5,opt,name=host_nonce_commitment,json=hostNonceCommitment,proto3" json:"host_nonce_commitment,omitempty"` +} + +func (x *ETHSignTypedMessageRequest) Reset() { + *x = ETHSignTypedMessageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_eth_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ETHSignTypedMessageRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ETHSignTypedMessageRequest.Unmarshal(m, b) -} -func (m *ETHSignTypedMessageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ETHSignTypedMessageRequest.Marshal(b, m, deterministic) -} -func (m *ETHSignTypedMessageRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ETHSignTypedMessageRequest.Merge(m, src) +func (x *ETHSignTypedMessageRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ETHSignTypedMessageRequest) XXX_Size() int { - return xxx_messageInfo_ETHSignTypedMessageRequest.Size(m) -} -func (m *ETHSignTypedMessageRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ETHSignTypedMessageRequest.DiscardUnknown(m) + +func (*ETHSignTypedMessageRequest) ProtoMessage() {} + +func (x *ETHSignTypedMessageRequest) ProtoReflect() protoreflect.Message { + mi := &file_eth_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) } -var xxx_messageInfo_ETHSignTypedMessageRequest proto.InternalMessageInfo +// Deprecated: Use ETHSignTypedMessageRequest.ProtoReflect.Descriptor instead. +func (*ETHSignTypedMessageRequest) Descriptor() ([]byte, []int) { + return file_eth_proto_rawDescGZIP(), []int{4} +} -func (m *ETHSignTypedMessageRequest) GetChainId() uint64 { - if m != nil { - return m.ChainId +func (x *ETHSignTypedMessageRequest) GetChainId() uint64 { + if x != nil { + return x.ChainId } return 0 } -func (m *ETHSignTypedMessageRequest) GetKeypath() []uint32 { - if m != nil { - return m.Keypath +func (x *ETHSignTypedMessageRequest) GetKeypath() []uint32 { + if x != nil { + return x.Keypath } return nil } -func (m *ETHSignTypedMessageRequest) GetTypes() []*ETHSignTypedMessageRequest_StructType { - if m != nil { - return m.Types +func (x *ETHSignTypedMessageRequest) GetTypes() []*ETHSignTypedMessageRequest_StructType { + if x != nil { + return x.Types } return nil } -func (m *ETHSignTypedMessageRequest) GetPrimaryType() string { - if m != nil { - return m.PrimaryType +func (x *ETHSignTypedMessageRequest) GetPrimaryType() string { + if x != nil { + return x.PrimaryType } return "" } -func (m *ETHSignTypedMessageRequest) GetHostNonceCommitment() *AntiKleptoHostNonceCommitment { - if m != nil { - return m.HostNonceCommitment +func (x *ETHSignTypedMessageRequest) GetHostNonceCommitment() *AntiKleptoHostNonceCommitment { + if x != nil { + return x.HostNonceCommitment } return nil } -type ETHSignTypedMessageRequest_MemberType struct { - Type ETHSignTypedMessageRequest_DataType `protobuf:"varint,1,opt,name=type,proto3,enum=shiftcrypto.bitbox02.ETHSignTypedMessageRequest_DataType" json:"type,omitempty"` - Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` - StructName string `protobuf:"bytes,3,opt,name=struct_name,json=structName,proto3" json:"struct_name,omitempty"` - ArrayType *ETHSignTypedMessageRequest_MemberType `protobuf:"bytes,4,opt,name=array_type,json=arrayType,proto3" json:"array_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ETHSignTypedMessageRequest_MemberType) Reset() { *m = ETHSignTypedMessageRequest_MemberType{} } -func (m *ETHSignTypedMessageRequest_MemberType) String() string { return proto.CompactTextString(m) } -func (*ETHSignTypedMessageRequest_MemberType) ProtoMessage() {} -func (*ETHSignTypedMessageRequest_MemberType) Descriptor() ([]byte, []int) { - return fileDescriptor_d980f775760351f6, []int{4, 0} -} +type ETHTypedMessageValueResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ETHSignTypedMessageRequest_MemberType) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ETHSignTypedMessageRequest_MemberType.Unmarshal(m, b) + RootObject ETHTypedMessageValueResponse_RootObject `protobuf:"varint,1,opt,name=root_object,json=rootObject,proto3,enum=shiftcrypto.bitbox02.ETHTypedMessageValueResponse_RootObject" json:"root_object,omitempty"` + Path []uint32 `protobuf:"varint,2,rep,packed,name=path,proto3" json:"path,omitempty"` } -func (m *ETHSignTypedMessageRequest_MemberType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ETHSignTypedMessageRequest_MemberType.Marshal(b, m, deterministic) -} -func (m *ETHSignTypedMessageRequest_MemberType) XXX_Merge(src proto.Message) { - xxx_messageInfo_ETHSignTypedMessageRequest_MemberType.Merge(m, src) -} -func (m *ETHSignTypedMessageRequest_MemberType) XXX_Size() int { - return xxx_messageInfo_ETHSignTypedMessageRequest_MemberType.Size(m) + +func (x *ETHTypedMessageValueResponse) Reset() { + *x = ETHTypedMessageValueResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_eth_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ETHSignTypedMessageRequest_MemberType) XXX_DiscardUnknown() { - xxx_messageInfo_ETHSignTypedMessageRequest_MemberType.DiscardUnknown(m) + +func (x *ETHTypedMessageValueResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ETHSignTypedMessageRequest_MemberType proto.InternalMessageInfo +func (*ETHTypedMessageValueResponse) ProtoMessage() {} -func (m *ETHSignTypedMessageRequest_MemberType) GetType() ETHSignTypedMessageRequest_DataType { - if m != nil { - return m.Type +func (x *ETHTypedMessageValueResponse) ProtoReflect() protoreflect.Message { + mi := &file_eth_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 ETHSignTypedMessageRequest_UNKNOWN + return mi.MessageOf(x) } -func (m *ETHSignTypedMessageRequest_MemberType) GetSize() uint32 { - if m != nil { - return m.Size - } - return 0 +// Deprecated: Use ETHTypedMessageValueResponse.ProtoReflect.Descriptor instead. +func (*ETHTypedMessageValueResponse) Descriptor() ([]byte, []int) { + return file_eth_proto_rawDescGZIP(), []int{5} } -func (m *ETHSignTypedMessageRequest_MemberType) GetStructName() string { - if m != nil { - return m.StructName +func (x *ETHTypedMessageValueResponse) GetRootObject() ETHTypedMessageValueResponse_RootObject { + if x != nil { + return x.RootObject } - return "" + return ETHTypedMessageValueResponse_UNKNOWN } -func (m *ETHSignTypedMessageRequest_MemberType) GetArrayType() *ETHSignTypedMessageRequest_MemberType { - if m != nil { - return m.ArrayType +func (x *ETHTypedMessageValueResponse) GetPath() []uint32 { + if x != nil { + return x.Path } return nil } -type ETHSignTypedMessageRequest_Member struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Type *ETHSignTypedMessageRequest_MemberType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +type ETHTypedMessageValueRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ETHSignTypedMessageRequest_Member) Reset() { *m = ETHSignTypedMessageRequest_Member{} } -func (m *ETHSignTypedMessageRequest_Member) String() string { return proto.CompactTextString(m) } -func (*ETHSignTypedMessageRequest_Member) ProtoMessage() {} -func (*ETHSignTypedMessageRequest_Member) Descriptor() ([]byte, []int) { - return fileDescriptor_d980f775760351f6, []int{4, 1} + Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` } -func (m *ETHSignTypedMessageRequest_Member) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ETHSignTypedMessageRequest_Member.Unmarshal(m, b) -} -func (m *ETHSignTypedMessageRequest_Member) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ETHSignTypedMessageRequest_Member.Marshal(b, m, deterministic) -} -func (m *ETHSignTypedMessageRequest_Member) XXX_Merge(src proto.Message) { - xxx_messageInfo_ETHSignTypedMessageRequest_Member.Merge(m, src) -} -func (m *ETHSignTypedMessageRequest_Member) XXX_Size() int { - return xxx_messageInfo_ETHSignTypedMessageRequest_Member.Size(m) +func (x *ETHTypedMessageValueRequest) Reset() { + *x = ETHTypedMessageValueRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_eth_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ETHSignTypedMessageRequest_Member) XXX_DiscardUnknown() { - xxx_messageInfo_ETHSignTypedMessageRequest_Member.DiscardUnknown(m) + +func (x *ETHTypedMessageValueRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ETHSignTypedMessageRequest_Member proto.InternalMessageInfo +func (*ETHTypedMessageValueRequest) ProtoMessage() {} -func (m *ETHSignTypedMessageRequest_Member) GetName() string { - if m != nil { - return m.Name +func (x *ETHTypedMessageValueRequest) ProtoReflect() protoreflect.Message { + mi := &file_eth_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 "" + return mi.MessageOf(x) } -func (m *ETHSignTypedMessageRequest_Member) GetType() *ETHSignTypedMessageRequest_MemberType { - if m != nil { - return m.Type - } - return nil +// Deprecated: Use ETHTypedMessageValueRequest.ProtoReflect.Descriptor instead. +func (*ETHTypedMessageValueRequest) Descriptor() ([]byte, []int) { + return file_eth_proto_rawDescGZIP(), []int{6} } -type ETHSignTypedMessageRequest_StructType struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Members []*ETHSignTypedMessageRequest_Member `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ETHTypedMessageValueRequest) GetValue() []byte { + if x != nil { + return x.Value + } + return nil } -func (m *ETHSignTypedMessageRequest_StructType) Reset() { *m = ETHSignTypedMessageRequest_StructType{} } -func (m *ETHSignTypedMessageRequest_StructType) String() string { return proto.CompactTextString(m) } -func (*ETHSignTypedMessageRequest_StructType) ProtoMessage() {} -func (*ETHSignTypedMessageRequest_StructType) Descriptor() ([]byte, []int) { - return fileDescriptor_d980f775760351f6, []int{4, 2} -} +type ETHRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ETHSignTypedMessageRequest_StructType) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ETHSignTypedMessageRequest_StructType.Unmarshal(m, b) -} -func (m *ETHSignTypedMessageRequest_StructType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ETHSignTypedMessageRequest_StructType.Marshal(b, m, deterministic) -} -func (m *ETHSignTypedMessageRequest_StructType) XXX_Merge(src proto.Message) { - xxx_messageInfo_ETHSignTypedMessageRequest_StructType.Merge(m, src) -} -func (m *ETHSignTypedMessageRequest_StructType) XXX_Size() int { - return xxx_messageInfo_ETHSignTypedMessageRequest_StructType.Size(m) -} -func (m *ETHSignTypedMessageRequest_StructType) XXX_DiscardUnknown() { - xxx_messageInfo_ETHSignTypedMessageRequest_StructType.DiscardUnknown(m) + // Types that are assignable to Request: + // *ETHRequest_Pub + // *ETHRequest_Sign + // *ETHRequest_SignMsg + // *ETHRequest_AntikleptoSignature + // *ETHRequest_SignTypedMsg + // *ETHRequest_TypedMsgValue + Request isETHRequest_Request `protobuf_oneof:"request"` } -var xxx_messageInfo_ETHSignTypedMessageRequest_StructType proto.InternalMessageInfo - -func (m *ETHSignTypedMessageRequest_StructType) GetName() string { - if m != nil { - return m.Name +func (x *ETHRequest) Reset() { + *x = ETHRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_eth_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func (m *ETHSignTypedMessageRequest_StructType) GetMembers() []*ETHSignTypedMessageRequest_Member { - if m != nil { - return m.Members - } - return nil +func (x *ETHRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type ETHTypedMessageValueResponse struct { - RootObject ETHTypedMessageValueResponse_RootObject `protobuf:"varint,1,opt,name=root_object,json=rootObject,proto3,enum=shiftcrypto.bitbox02.ETHTypedMessageValueResponse_RootObject" json:"root_object,omitempty"` - Path []uint32 `protobuf:"varint,2,rep,packed,name=path,proto3" json:"path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*ETHRequest) ProtoMessage() {} -func (m *ETHTypedMessageValueResponse) Reset() { *m = ETHTypedMessageValueResponse{} } -func (m *ETHTypedMessageValueResponse) String() string { return proto.CompactTextString(m) } -func (*ETHTypedMessageValueResponse) ProtoMessage() {} -func (*ETHTypedMessageValueResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d980f775760351f6, []int{5} +func (x *ETHRequest) ProtoReflect() protoreflect.Message { + mi := &file_eth_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) } -func (m *ETHTypedMessageValueResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ETHTypedMessageValueResponse.Unmarshal(m, b) -} -func (m *ETHTypedMessageValueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ETHTypedMessageValueResponse.Marshal(b, m, deterministic) -} -func (m *ETHTypedMessageValueResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ETHTypedMessageValueResponse.Merge(m, src) -} -func (m *ETHTypedMessageValueResponse) XXX_Size() int { - return xxx_messageInfo_ETHTypedMessageValueResponse.Size(m) -} -func (m *ETHTypedMessageValueResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ETHTypedMessageValueResponse.DiscardUnknown(m) +// Deprecated: Use ETHRequest.ProtoReflect.Descriptor instead. +func (*ETHRequest) Descriptor() ([]byte, []int) { + return file_eth_proto_rawDescGZIP(), []int{7} } -var xxx_messageInfo_ETHTypedMessageValueResponse proto.InternalMessageInfo - -func (m *ETHTypedMessageValueResponse) GetRootObject() ETHTypedMessageValueResponse_RootObject { +func (m *ETHRequest) GetRequest() isETHRequest_Request { if m != nil { - return m.RootObject + return m.Request } - return ETHTypedMessageValueResponse_UNKNOWN + return nil } -func (m *ETHTypedMessageValueResponse) GetPath() []uint32 { - if m != nil { - return m.Path +func (x *ETHRequest) GetPub() *ETHPubRequest { + if x, ok := x.GetRequest().(*ETHRequest_Pub); ok { + return x.Pub } return nil } -type ETHTypedMessageValueRequest struct { - Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ETHTypedMessageValueRequest) Reset() { *m = ETHTypedMessageValueRequest{} } -func (m *ETHTypedMessageValueRequest) String() string { return proto.CompactTextString(m) } -func (*ETHTypedMessageValueRequest) ProtoMessage() {} -func (*ETHTypedMessageValueRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d980f775760351f6, []int{6} -} - -func (m *ETHTypedMessageValueRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ETHTypedMessageValueRequest.Unmarshal(m, b) -} -func (m *ETHTypedMessageValueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ETHTypedMessageValueRequest.Marshal(b, m, deterministic) -} -func (m *ETHTypedMessageValueRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ETHTypedMessageValueRequest.Merge(m, src) -} -func (m *ETHTypedMessageValueRequest) XXX_Size() int { - return xxx_messageInfo_ETHTypedMessageValueRequest.Size(m) -} -func (m *ETHTypedMessageValueRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ETHTypedMessageValueRequest.DiscardUnknown(m) +func (x *ETHRequest) GetSign() *ETHSignRequest { + if x, ok := x.GetRequest().(*ETHRequest_Sign); ok { + return x.Sign + } + return nil } -var xxx_messageInfo_ETHTypedMessageValueRequest proto.InternalMessageInfo - -func (m *ETHTypedMessageValueRequest) GetValue() []byte { - if m != nil { - return m.Value +func (x *ETHRequest) GetSignMsg() *ETHSignMessageRequest { + if x, ok := x.GetRequest().(*ETHRequest_SignMsg); ok { + return x.SignMsg } return nil } -type ETHRequest struct { - // Types that are valid to be assigned to Request: - // *ETHRequest_Pub - // *ETHRequest_Sign - // *ETHRequest_SignMsg - // *ETHRequest_AntikleptoSignature - // *ETHRequest_SignTypedMsg - // *ETHRequest_TypedMsgValue - Request isETHRequest_Request `protobuf_oneof:"request"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ETHRequest) GetAntikleptoSignature() *AntiKleptoSignatureRequest { + if x, ok := x.GetRequest().(*ETHRequest_AntikleptoSignature); ok { + return x.AntikleptoSignature + } + return nil } -func (m *ETHRequest) Reset() { *m = ETHRequest{} } -func (m *ETHRequest) String() string { return proto.CompactTextString(m) } -func (*ETHRequest) ProtoMessage() {} -func (*ETHRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d980f775760351f6, []int{7} +func (x *ETHRequest) GetSignTypedMsg() *ETHSignTypedMessageRequest { + if x, ok := x.GetRequest().(*ETHRequest_SignTypedMsg); ok { + return x.SignTypedMsg + } + return nil } -func (m *ETHRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ETHRequest.Unmarshal(m, b) -} -func (m *ETHRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ETHRequest.Marshal(b, m, deterministic) -} -func (m *ETHRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ETHRequest.Merge(m, src) -} -func (m *ETHRequest) XXX_Size() int { - return xxx_messageInfo_ETHRequest.Size(m) -} -func (m *ETHRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ETHRequest.DiscardUnknown(m) +func (x *ETHRequest) GetTypedMsgValue() *ETHTypedMessageValueRequest { + if x, ok := x.GetRequest().(*ETHRequest_TypedMsgValue); ok { + return x.TypedMsgValue + } + return nil } -var xxx_messageInfo_ETHRequest proto.InternalMessageInfo - type isETHRequest_Request interface { isETHRequest_Request() } @@ -847,104 +900,86 @@ func (*ETHRequest_SignTypedMsg) isETHRequest_Request() {} func (*ETHRequest_TypedMsgValue) isETHRequest_Request() {} -func (m *ETHRequest) GetRequest() isETHRequest_Request { - if m != nil { - return m.Request - } - return nil +type ETHResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Response: + // *ETHResponse_Pub + // *ETHResponse_Sign + // *ETHResponse_AntikleptoSignerCommitment + // *ETHResponse_TypedMsgValue + Response isETHResponse_Response `protobuf_oneof:"response"` } -func (m *ETHRequest) GetPub() *ETHPubRequest { - if x, ok := m.GetRequest().(*ETHRequest_Pub); ok { - return x.Pub +func (x *ETHResponse) Reset() { + *x = ETHResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_eth_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *ETHRequest) GetSign() *ETHSignRequest { - if x, ok := m.GetRequest().(*ETHRequest_Sign); ok { - return x.Sign - } - return nil +func (x *ETHResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ETHRequest) GetSignMsg() *ETHSignMessageRequest { - if x, ok := m.GetRequest().(*ETHRequest_SignMsg); ok { - return x.SignMsg +func (*ETHResponse) ProtoMessage() {} + +func (x *ETHResponse) ProtoReflect() protoreflect.Message { + mi := &file_eth_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *ETHRequest) GetAntikleptoSignature() *AntiKleptoSignatureRequest { - if x, ok := m.GetRequest().(*ETHRequest_AntikleptoSignature); ok { - return x.AntikleptoSignature - } - return nil +// Deprecated: Use ETHResponse.ProtoReflect.Descriptor instead. +func (*ETHResponse) Descriptor() ([]byte, []int) { + return file_eth_proto_rawDescGZIP(), []int{8} } -func (m *ETHRequest) GetSignTypedMsg() *ETHSignTypedMessageRequest { - if x, ok := m.GetRequest().(*ETHRequest_SignTypedMsg); ok { - return x.SignTypedMsg +func (m *ETHResponse) GetResponse() isETHResponse_Response { + if m != nil { + return m.Response } return nil } -func (m *ETHRequest) GetTypedMsgValue() *ETHTypedMessageValueRequest { - if x, ok := m.GetRequest().(*ETHRequest_TypedMsgValue); ok { - return x.TypedMsgValue +func (x *ETHResponse) GetPub() *PubResponse { + if x, ok := x.GetResponse().(*ETHResponse_Pub); ok { + return x.Pub } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*ETHRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*ETHRequest_Pub)(nil), - (*ETHRequest_Sign)(nil), - (*ETHRequest_SignMsg)(nil), - (*ETHRequest_AntikleptoSignature)(nil), - (*ETHRequest_SignTypedMsg)(nil), - (*ETHRequest_TypedMsgValue)(nil), +func (x *ETHResponse) GetSign() *ETHSignResponse { + if x, ok := x.GetResponse().(*ETHResponse_Sign); ok { + return x.Sign } + return nil } -type ETHResponse struct { - // Types that are valid to be assigned to Response: - // *ETHResponse_Pub - // *ETHResponse_Sign - // *ETHResponse_AntikleptoSignerCommitment - // *ETHResponse_TypedMsgValue - Response isETHResponse_Response `protobuf_oneof:"response"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ETHResponse) Reset() { *m = ETHResponse{} } -func (m *ETHResponse) String() string { return proto.CompactTextString(m) } -func (*ETHResponse) ProtoMessage() {} -func (*ETHResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d980f775760351f6, []int{8} +func (x *ETHResponse) GetAntikleptoSignerCommitment() *AntiKleptoSignerCommitment { + if x, ok := x.GetResponse().(*ETHResponse_AntikleptoSignerCommitment); ok { + return x.AntikleptoSignerCommitment + } + return nil } -func (m *ETHResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ETHResponse.Unmarshal(m, b) -} -func (m *ETHResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ETHResponse.Marshal(b, m, deterministic) -} -func (m *ETHResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ETHResponse.Merge(m, src) -} -func (m *ETHResponse) XXX_Size() int { - return xxx_messageInfo_ETHResponse.Size(m) -} -func (m *ETHResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ETHResponse.DiscardUnknown(m) +func (x *ETHResponse) GetTypedMsgValue() *ETHTypedMessageValueResponse { + if x, ok := x.GetResponse().(*ETHResponse_TypedMsgValue); ok { + return x.TypedMsgValue + } + return nil } -var xxx_messageInfo_ETHResponse proto.InternalMessageInfo - type isETHResponse_Response interface { isETHResponse_Response() } @@ -973,142 +1008,638 @@ func (*ETHResponse_AntikleptoSignerCommitment) isETHResponse_Response() {} func (*ETHResponse_TypedMsgValue) isETHResponse_Response() {} -func (m *ETHResponse) GetResponse() isETHResponse_Response { - if m != nil { - return m.Response +type ETHSignTypedMessageRequest_MemberType struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type ETHSignTypedMessageRequest_DataType `protobuf:"varint,1,opt,name=type,proto3,enum=shiftcrypto.bitbox02.ETHSignTypedMessageRequest_DataType" json:"type,omitempty"` + Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` + StructName string `protobuf:"bytes,3,opt,name=struct_name,json=structName,proto3" json:"struct_name,omitempty"` // if type==STRUCT, name of struct type. + ArrayType *ETHSignTypedMessageRequest_MemberType `protobuf:"bytes,4,opt,name=array_type,json=arrayType,proto3" json:"array_type,omitempty"` // if type==ARRAY, type of elements +} + +func (x *ETHSignTypedMessageRequest_MemberType) Reset() { + *x = ETHSignTypedMessageRequest_MemberType{} + if protoimpl.UnsafeEnabled { + mi := &file_eth_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *ETHResponse) GetPub() *PubResponse { - if x, ok := m.GetResponse().(*ETHResponse_Pub); ok { - return x.Pub +func (x *ETHSignTypedMessageRequest_MemberType) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ETHSignTypedMessageRequest_MemberType) ProtoMessage() {} + +func (x *ETHSignTypedMessageRequest_MemberType) ProtoReflect() protoreflect.Message { + mi := &file_eth_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *ETHResponse) GetSign() *ETHSignResponse { - if x, ok := m.GetResponse().(*ETHResponse_Sign); ok { - return x.Sign +// Deprecated: Use ETHSignTypedMessageRequest_MemberType.ProtoReflect.Descriptor instead. +func (*ETHSignTypedMessageRequest_MemberType) Descriptor() ([]byte, []int) { + return file_eth_proto_rawDescGZIP(), []int{4, 0} +} + +func (x *ETHSignTypedMessageRequest_MemberType) GetType() ETHSignTypedMessageRequest_DataType { + if x != nil { + return x.Type + } + return ETHSignTypedMessageRequest_UNKNOWN +} + +func (x *ETHSignTypedMessageRequest_MemberType) GetSize() uint32 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *ETHSignTypedMessageRequest_MemberType) GetStructName() string { + if x != nil { + return x.StructName + } + return "" +} + +func (x *ETHSignTypedMessageRequest_MemberType) GetArrayType() *ETHSignTypedMessageRequest_MemberType { + if x != nil { + return x.ArrayType } return nil } -func (m *ETHResponse) GetAntikleptoSignerCommitment() *AntiKleptoSignerCommitment { - if x, ok := m.GetResponse().(*ETHResponse_AntikleptoSignerCommitment); ok { - return x.AntikleptoSignerCommitment +type ETHSignTypedMessageRequest_Member struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Type *ETHSignTypedMessageRequest_MemberType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` +} + +func (x *ETHSignTypedMessageRequest_Member) Reset() { + *x = ETHSignTypedMessageRequest_Member{} + if protoimpl.UnsafeEnabled { + mi := &file_eth_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ETHSignTypedMessageRequest_Member) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ETHSignTypedMessageRequest_Member) ProtoMessage() {} + +func (x *ETHSignTypedMessageRequest_Member) ProtoReflect() protoreflect.Message { + mi := &file_eth_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ETHSignTypedMessageRequest_Member.ProtoReflect.Descriptor instead. +func (*ETHSignTypedMessageRequest_Member) Descriptor() ([]byte, []int) { + return file_eth_proto_rawDescGZIP(), []int{4, 1} +} + +func (x *ETHSignTypedMessageRequest_Member) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ETHSignTypedMessageRequest_Member) GetType() *ETHSignTypedMessageRequest_MemberType { + if x != nil { + return x.Type } return nil } -func (m *ETHResponse) GetTypedMsgValue() *ETHTypedMessageValueResponse { - if x, ok := m.GetResponse().(*ETHResponse_TypedMsgValue); ok { - return x.TypedMsgValue +type ETHSignTypedMessageRequest_StructType struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Members []*ETHSignTypedMessageRequest_Member `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"` +} + +func (x *ETHSignTypedMessageRequest_StructType) Reset() { + *x = ETHSignTypedMessageRequest_StructType{} + if protoimpl.UnsafeEnabled { + mi := &file_eth_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ETHSignTypedMessageRequest_StructType) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ETHSignTypedMessageRequest_StructType) ProtoMessage() {} + +func (x *ETHSignTypedMessageRequest_StructType) ProtoReflect() protoreflect.Message { + mi := &file_eth_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ETHSignTypedMessageRequest_StructType.ProtoReflect.Descriptor instead. +func (*ETHSignTypedMessageRequest_StructType) Descriptor() ([]byte, []int) { + return file_eth_proto_rawDescGZIP(), []int{4, 2} +} + +func (x *ETHSignTypedMessageRequest_StructType) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ETHSignTypedMessageRequest_StructType) GetMembers() []*ETHSignTypedMessageRequest_Member { + if x != nil { + return x.Members } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*ETHResponse) XXX_OneofWrappers() []interface{} { - return []interface{}{ +var File_eth_proto protoreflect.FileDescriptor + +var file_eth_proto_rawDesc = []byte{ + 0x0a, 0x09, 0x65, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x73, 0x68, 0x69, + 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, + 0x32, 0x1a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x10, 0x61, 0x6e, 0x74, 0x69, 0x6b, 0x6c, 0x65, 0x70, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0xb2, 0x02, 0x0a, 0x0d, 0x45, 0x54, 0x48, 0x50, 0x75, 0x62, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0d, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x70, 0x61, 0x74, 0x68, 0x12, 0x31, 0x0a, + 0x04, 0x63, 0x6f, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x73, 0x68, + 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, + 0x30, 0x32, 0x2e, 0x45, 0x54, 0x48, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x04, 0x63, 0x6f, 0x69, 0x6e, + 0x12, 0x4f, 0x0a, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x45, 0x54, 0x48, + 0x50, 0x75, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4f, 0x75, 0x74, 0x70, 0x75, + 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x07, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x12, 0x29, 0x0a, 0x10, 0x63, + 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, + 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, + 0x64, 0x22, 0x23, 0x0a, 0x0a, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x0b, 0x0a, 0x07, 0x41, 0x44, 0x44, 0x52, 0x45, 0x53, 0x53, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, + 0x58, 0x50, 0x55, 0x42, 0x10, 0x01, 0x22, 0xf9, 0x02, 0x0a, 0x0e, 0x45, 0x54, 0x48, 0x53, 0x69, + 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x04, 0x63, 0x6f, 0x69, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x45, + 0x54, 0x48, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x04, 0x63, 0x6f, 0x69, 0x6e, 0x12, 0x18, 0x0a, 0x07, + 0x6b, 0x65, 0x79, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x07, 0x6b, + 0x65, 0x79, 0x70, 0x61, 0x74, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, + 0x67, 0x61, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x08, 0x67, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x67, 0x61, 0x73, + 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x67, 0x61, + 0x73, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, + 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x72, 0x65, 0x63, 0x69, 0x70, + 0x69, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, + 0x74, 0x61, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x67, + 0x0a, 0x15, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, + 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, + 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x41, 0x6e, 0x74, 0x69, 0x4b, 0x6c, 0x65, 0x70, 0x74, 0x6f, 0x48, + 0x6f, 0x73, 0x74, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, + 0x6e, 0x74, 0x52, 0x13, 0x68, 0x6f, 0x73, 0x74, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, + 0x5f, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, + 0x49, 0x64, 0x22, 0xfa, 0x01, 0x0a, 0x15, 0x45, 0x54, 0x48, 0x53, 0x69, 0x67, 0x6e, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x04, + 0x63, 0x6f, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x73, 0x68, 0x69, + 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, + 0x32, 0x2e, 0x45, 0x54, 0x48, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x04, 0x63, 0x6f, 0x69, 0x6e, 0x12, + 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0d, + 0x52, 0x07, 0x6b, 0x65, 0x79, 0x70, 0x61, 0x74, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x67, 0x0a, 0x15, 0x68, + 0x6f, 0x73, 0x74, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x73, 0x68, 0x69, + 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, + 0x32, 0x2e, 0x41, 0x6e, 0x74, 0x69, 0x4b, 0x6c, 0x65, 0x70, 0x74, 0x6f, 0x48, 0x6f, 0x73, 0x74, + 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x52, + 0x13, 0x68, 0x6f, 0x73, 0x74, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, + 0x2f, 0x0a, 0x0f, 0x45, 0x54, 0x48, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, + 0x22, 0xf4, 0x06, 0x0a, 0x1a, 0x45, 0x54, 0x48, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x79, 0x70, 0x65, + 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, + 0x79, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x07, 0x6b, 0x65, 0x79, + 0x70, 0x61, 0x74, 0x68, 0x12, 0x51, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x45, 0x54, 0x48, 0x53, 0x69, + 0x67, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x72, 0x69, 0x6d, 0x61, + 0x72, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, + 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x67, 0x0a, 0x15, 0x68, 0x6f, + 0x73, 0x74, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, + 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x73, 0x68, 0x69, 0x66, + 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, + 0x2e, 0x41, 0x6e, 0x74, 0x69, 0x4b, 0x6c, 0x65, 0x70, 0x74, 0x6f, 0x48, 0x6f, 0x73, 0x74, 0x4e, + 0x6f, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x13, + 0x68, 0x6f, 0x73, 0x74, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, + 0x65, 0x6e, 0x74, 0x1a, 0xec, 0x01, 0x0a, 0x0a, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x4d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x39, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, + 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x45, 0x54, 0x48, 0x53, 0x69, 0x67, 0x6e, 0x54, + 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x74, 0x72, 0x75, + 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x5a, 0x0a, 0x0a, 0x61, 0x72, 0x72, 0x61, 0x79, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x73, 0x68, 0x69, + 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, + 0x32, 0x2e, 0x45, 0x54, 0x48, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x65, 0x6d, + 0x62, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x61, 0x72, 0x72, 0x61, 0x79, 0x54, 0x79, + 0x70, 0x65, 0x1a, 0x6d, 0x0a, 0x06, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x4f, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, + 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, + 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x45, 0x54, 0x48, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x79, 0x70, + 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x1a, 0x73, 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x51, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, + 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x45, 0x54, 0x48, 0x53, + 0x69, 0x67, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x07, 0x6d, + 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x22, 0x6f, 0x0a, 0x08, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, + 0x09, 0x0a, 0x05, 0x42, 0x59, 0x54, 0x45, 0x53, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x55, 0x49, + 0x4e, 0x54, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x49, 0x4e, 0x54, 0x10, 0x03, 0x12, 0x08, 0x0a, + 0x04, 0x42, 0x4f, 0x4f, 0x4c, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x41, 0x44, 0x44, 0x52, 0x45, + 0x53, 0x53, 0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x06, + 0x12, 0x09, 0x0a, 0x05, 0x41, 0x52, 0x52, 0x41, 0x59, 0x10, 0x07, 0x12, 0x0a, 0x0a, 0x06, 0x53, + 0x54, 0x52, 0x55, 0x43, 0x54, 0x10, 0x08, 0x22, 0xc6, 0x01, 0x0a, 0x1c, 0x45, 0x54, 0x48, 0x54, + 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x0b, 0x72, 0x6f, 0x6f, 0x74, + 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3d, 0x2e, + 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, + 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x45, 0x54, 0x48, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x0a, 0x72, 0x6f, + 0x6f, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0x32, 0x0a, 0x0a, + 0x52, 0x6f, 0x6f, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, + 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x4f, 0x4d, 0x41, 0x49, + 0x4e, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x02, + 0x22, 0x33, 0x0a, 0x1b, 0x45, 0x54, 0x48, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xf4, 0x03, 0x0a, 0x0a, 0x45, 0x54, 0x48, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x03, 0x70, 0x75, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x23, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, + 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x45, 0x54, 0x48, 0x50, 0x75, 0x62, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x03, 0x70, 0x75, 0x62, 0x12, 0x3a, 0x0a, + 0x04, 0x73, 0x69, 0x67, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x73, 0x68, + 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, + 0x30, 0x32, 0x2e, 0x45, 0x54, 0x48, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x48, 0x00, 0x52, 0x04, 0x73, 0x69, 0x67, 0x6e, 0x12, 0x48, 0x0a, 0x08, 0x73, 0x69, 0x67, + 0x6e, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x73, 0x68, + 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, + 0x30, 0x32, 0x2e, 0x45, 0x54, 0x48, 0x53, 0x69, 0x67, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x07, 0x73, 0x69, 0x67, 0x6e, + 0x4d, 0x73, 0x67, 0x12, 0x65, 0x0a, 0x14, 0x61, 0x6e, 0x74, 0x69, 0x6b, 0x6c, 0x65, 0x70, 0x74, + 0x6f, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, + 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x41, 0x6e, 0x74, 0x69, 0x4b, 0x6c, 0x65, + 0x70, 0x74, 0x6f, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x13, 0x61, 0x6e, 0x74, 0x69, 0x6b, 0x6c, 0x65, 0x70, 0x74, + 0x6f, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x58, 0x0a, 0x0e, 0x73, 0x69, + 0x67, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, + 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x45, 0x54, 0x48, 0x53, 0x69, 0x67, + 0x6e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x69, 0x67, 0x6e, 0x54, 0x79, 0x70, 0x65, + 0x64, 0x4d, 0x73, 0x67, 0x12, 0x5b, 0x0a, 0x0f, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x73, + 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, + 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, + 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x45, 0x54, 0x48, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x48, 0x00, 0x52, 0x0d, 0x74, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x73, 0x67, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xe1, 0x02, 0x0a, + 0x0b, 0x45, 0x54, 0x48, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x03, + 0x70, 0x75, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x73, 0x68, 0x69, 0x66, + 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, + 0x2e, 0x50, 0x75, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x03, + 0x70, 0x75, 0x62, 0x12, 0x3b, 0x0a, 0x04, 0x73, 0x69, 0x67, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x25, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, + 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x45, 0x54, 0x48, 0x53, 0x69, 0x67, 0x6e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x04, 0x73, 0x69, 0x67, 0x6e, + 0x12, 0x74, 0x0a, 0x1c, 0x61, 0x6e, 0x74, 0x69, 0x6b, 0x6c, 0x65, 0x70, 0x74, 0x6f, 0x5f, 0x73, + 0x69, 0x67, 0x6e, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x41, 0x6e, + 0x74, 0x69, 0x4b, 0x6c, 0x65, 0x70, 0x74, 0x6f, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x1a, 0x61, 0x6e, 0x74, 0x69, + 0x6b, 0x6c, 0x65, 0x70, 0x74, 0x6f, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x5c, 0x0a, 0x0f, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, + 0x6d, 0x73, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x32, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, + 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x45, 0x54, 0x48, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x74, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x73, 0x67, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x2a, 0x32, 0x0a, 0x07, 0x45, 0x54, 0x48, 0x43, 0x6f, 0x69, 0x6e, 0x12, 0x07, 0x0a, 0x03, 0x45, + 0x54, 0x48, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x52, 0x6f, 0x70, 0x73, 0x74, 0x65, 0x6e, 0x45, + 0x54, 0x48, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x52, 0x69, 0x6e, 0x6b, 0x65, 0x62, 0x79, 0x45, + 0x54, 0x48, 0x10, 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_eth_proto_rawDescOnce sync.Once + file_eth_proto_rawDescData = file_eth_proto_rawDesc +) + +func file_eth_proto_rawDescGZIP() []byte { + file_eth_proto_rawDescOnce.Do(func() { + file_eth_proto_rawDescData = protoimpl.X.CompressGZIP(file_eth_proto_rawDescData) + }) + return file_eth_proto_rawDescData +} + +var file_eth_proto_enumTypes = make([]protoimpl.EnumInfo, 4) +var file_eth_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_eth_proto_goTypes = []interface{}{ + (ETHCoin)(0), // 0: shiftcrypto.bitbox02.ETHCoin + (ETHPubRequest_OutputType)(0), // 1: shiftcrypto.bitbox02.ETHPubRequest.OutputType + (ETHSignTypedMessageRequest_DataType)(0), // 2: shiftcrypto.bitbox02.ETHSignTypedMessageRequest.DataType + (ETHTypedMessageValueResponse_RootObject)(0), // 3: shiftcrypto.bitbox02.ETHTypedMessageValueResponse.RootObject + (*ETHPubRequest)(nil), // 4: shiftcrypto.bitbox02.ETHPubRequest + (*ETHSignRequest)(nil), // 5: shiftcrypto.bitbox02.ETHSignRequest + (*ETHSignMessageRequest)(nil), // 6: shiftcrypto.bitbox02.ETHSignMessageRequest + (*ETHSignResponse)(nil), // 7: shiftcrypto.bitbox02.ETHSignResponse + (*ETHSignTypedMessageRequest)(nil), // 8: shiftcrypto.bitbox02.ETHSignTypedMessageRequest + (*ETHTypedMessageValueResponse)(nil), // 9: shiftcrypto.bitbox02.ETHTypedMessageValueResponse + (*ETHTypedMessageValueRequest)(nil), // 10: shiftcrypto.bitbox02.ETHTypedMessageValueRequest + (*ETHRequest)(nil), // 11: shiftcrypto.bitbox02.ETHRequest + (*ETHResponse)(nil), // 12: shiftcrypto.bitbox02.ETHResponse + (*ETHSignTypedMessageRequest_MemberType)(nil), // 13: shiftcrypto.bitbox02.ETHSignTypedMessageRequest.MemberType + (*ETHSignTypedMessageRequest_Member)(nil), // 14: shiftcrypto.bitbox02.ETHSignTypedMessageRequest.Member + (*ETHSignTypedMessageRequest_StructType)(nil), // 15: shiftcrypto.bitbox02.ETHSignTypedMessageRequest.StructType + (*AntiKleptoHostNonceCommitment)(nil), // 16: shiftcrypto.bitbox02.AntiKleptoHostNonceCommitment + (*AntiKleptoSignatureRequest)(nil), // 17: shiftcrypto.bitbox02.AntiKleptoSignatureRequest + (*PubResponse)(nil), // 18: shiftcrypto.bitbox02.PubResponse + (*AntiKleptoSignerCommitment)(nil), // 19: shiftcrypto.bitbox02.AntiKleptoSignerCommitment +} +var file_eth_proto_depIdxs = []int32{ + 0, // 0: shiftcrypto.bitbox02.ETHPubRequest.coin:type_name -> shiftcrypto.bitbox02.ETHCoin + 1, // 1: shiftcrypto.bitbox02.ETHPubRequest.output_type:type_name -> shiftcrypto.bitbox02.ETHPubRequest.OutputType + 0, // 2: shiftcrypto.bitbox02.ETHSignRequest.coin:type_name -> shiftcrypto.bitbox02.ETHCoin + 16, // 3: shiftcrypto.bitbox02.ETHSignRequest.host_nonce_commitment:type_name -> shiftcrypto.bitbox02.AntiKleptoHostNonceCommitment + 0, // 4: shiftcrypto.bitbox02.ETHSignMessageRequest.coin:type_name -> shiftcrypto.bitbox02.ETHCoin + 16, // 5: shiftcrypto.bitbox02.ETHSignMessageRequest.host_nonce_commitment:type_name -> shiftcrypto.bitbox02.AntiKleptoHostNonceCommitment + 15, // 6: shiftcrypto.bitbox02.ETHSignTypedMessageRequest.types:type_name -> shiftcrypto.bitbox02.ETHSignTypedMessageRequest.StructType + 16, // 7: shiftcrypto.bitbox02.ETHSignTypedMessageRequest.host_nonce_commitment:type_name -> shiftcrypto.bitbox02.AntiKleptoHostNonceCommitment + 3, // 8: shiftcrypto.bitbox02.ETHTypedMessageValueResponse.root_object:type_name -> shiftcrypto.bitbox02.ETHTypedMessageValueResponse.RootObject + 4, // 9: shiftcrypto.bitbox02.ETHRequest.pub:type_name -> shiftcrypto.bitbox02.ETHPubRequest + 5, // 10: shiftcrypto.bitbox02.ETHRequest.sign:type_name -> shiftcrypto.bitbox02.ETHSignRequest + 6, // 11: shiftcrypto.bitbox02.ETHRequest.sign_msg:type_name -> shiftcrypto.bitbox02.ETHSignMessageRequest + 17, // 12: shiftcrypto.bitbox02.ETHRequest.antiklepto_signature:type_name -> shiftcrypto.bitbox02.AntiKleptoSignatureRequest + 8, // 13: shiftcrypto.bitbox02.ETHRequest.sign_typed_msg:type_name -> shiftcrypto.bitbox02.ETHSignTypedMessageRequest + 10, // 14: shiftcrypto.bitbox02.ETHRequest.typed_msg_value:type_name -> shiftcrypto.bitbox02.ETHTypedMessageValueRequest + 18, // 15: shiftcrypto.bitbox02.ETHResponse.pub:type_name -> shiftcrypto.bitbox02.PubResponse + 7, // 16: shiftcrypto.bitbox02.ETHResponse.sign:type_name -> shiftcrypto.bitbox02.ETHSignResponse + 19, // 17: shiftcrypto.bitbox02.ETHResponse.antiklepto_signer_commitment:type_name -> shiftcrypto.bitbox02.AntiKleptoSignerCommitment + 9, // 18: shiftcrypto.bitbox02.ETHResponse.typed_msg_value:type_name -> shiftcrypto.bitbox02.ETHTypedMessageValueResponse + 2, // 19: shiftcrypto.bitbox02.ETHSignTypedMessageRequest.MemberType.type:type_name -> shiftcrypto.bitbox02.ETHSignTypedMessageRequest.DataType + 13, // 20: shiftcrypto.bitbox02.ETHSignTypedMessageRequest.MemberType.array_type:type_name -> shiftcrypto.bitbox02.ETHSignTypedMessageRequest.MemberType + 13, // 21: shiftcrypto.bitbox02.ETHSignTypedMessageRequest.Member.type:type_name -> shiftcrypto.bitbox02.ETHSignTypedMessageRequest.MemberType + 14, // 22: shiftcrypto.bitbox02.ETHSignTypedMessageRequest.StructType.members:type_name -> shiftcrypto.bitbox02.ETHSignTypedMessageRequest.Member + 23, // [23:23] is the sub-list for method output_type + 23, // [23:23] is the sub-list for method input_type + 23, // [23:23] is the sub-list for extension type_name + 23, // [23:23] is the sub-list for extension extendee + 0, // [0:23] is the sub-list for field type_name +} + +func init() { file_eth_proto_init() } +func file_eth_proto_init() { + if File_eth_proto != nil { + return + } + file_common_proto_init() + file_antiklepto_proto_init() + if !protoimpl.UnsafeEnabled { + file_eth_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ETHPubRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_eth_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ETHSignRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_eth_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ETHSignMessageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_eth_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ETHSignResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_eth_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ETHSignTypedMessageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_eth_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ETHTypedMessageValueResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_eth_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ETHTypedMessageValueRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_eth_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ETHRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_eth_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ETHResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_eth_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ETHSignTypedMessageRequest_MemberType); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_eth_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ETHSignTypedMessageRequest_Member); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_eth_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ETHSignTypedMessageRequest_StructType); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_eth_proto_msgTypes[7].OneofWrappers = []interface{}{ + (*ETHRequest_Pub)(nil), + (*ETHRequest_Sign)(nil), + (*ETHRequest_SignMsg)(nil), + (*ETHRequest_AntikleptoSignature)(nil), + (*ETHRequest_SignTypedMsg)(nil), + (*ETHRequest_TypedMsgValue)(nil), + } + file_eth_proto_msgTypes[8].OneofWrappers = []interface{}{ (*ETHResponse_Pub)(nil), (*ETHResponse_Sign)(nil), (*ETHResponse_AntikleptoSignerCommitment)(nil), (*ETHResponse_TypedMsgValue)(nil), } -} - -func init() { - proto.RegisterEnum("shiftcrypto.bitbox02.ETHCoin", ETHCoin_name, ETHCoin_value) - proto.RegisterEnum("shiftcrypto.bitbox02.ETHPubRequest_OutputType", ETHPubRequest_OutputType_name, ETHPubRequest_OutputType_value) - proto.RegisterEnum("shiftcrypto.bitbox02.ETHSignTypedMessageRequest_DataType", ETHSignTypedMessageRequest_DataType_name, ETHSignTypedMessageRequest_DataType_value) - proto.RegisterEnum("shiftcrypto.bitbox02.ETHTypedMessageValueResponse_RootObject", ETHTypedMessageValueResponse_RootObject_name, ETHTypedMessageValueResponse_RootObject_value) - proto.RegisterType((*ETHPubRequest)(nil), "shiftcrypto.bitbox02.ETHPubRequest") - proto.RegisterType((*ETHSignRequest)(nil), "shiftcrypto.bitbox02.ETHSignRequest") - proto.RegisterType((*ETHSignMessageRequest)(nil), "shiftcrypto.bitbox02.ETHSignMessageRequest") - proto.RegisterType((*ETHSignResponse)(nil), "shiftcrypto.bitbox02.ETHSignResponse") - proto.RegisterType((*ETHSignTypedMessageRequest)(nil), "shiftcrypto.bitbox02.ETHSignTypedMessageRequest") - proto.RegisterType((*ETHSignTypedMessageRequest_MemberType)(nil), "shiftcrypto.bitbox02.ETHSignTypedMessageRequest.MemberType") - proto.RegisterType((*ETHSignTypedMessageRequest_Member)(nil), "shiftcrypto.bitbox02.ETHSignTypedMessageRequest.Member") - proto.RegisterType((*ETHSignTypedMessageRequest_StructType)(nil), "shiftcrypto.bitbox02.ETHSignTypedMessageRequest.StructType") - proto.RegisterType((*ETHTypedMessageValueResponse)(nil), "shiftcrypto.bitbox02.ETHTypedMessageValueResponse") - proto.RegisterType((*ETHTypedMessageValueRequest)(nil), "shiftcrypto.bitbox02.ETHTypedMessageValueRequest") - proto.RegisterType((*ETHRequest)(nil), "shiftcrypto.bitbox02.ETHRequest") - proto.RegisterType((*ETHResponse)(nil), "shiftcrypto.bitbox02.ETHResponse") -} - -func init() { proto.RegisterFile("eth.proto", fileDescriptor_d980f775760351f6) } - -var fileDescriptor_d980f775760351f6 = []byte{ - // 1109 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x5f, 0x8f, 0xdb, 0x44, - 0x10, 0x8f, 0xf3, 0x3f, 0xe3, 0xdc, 0xd5, 0xda, 0x5e, 0xa5, 0x90, 0x1e, 0x22, 0x4d, 0x41, 0x0a, - 0x20, 0x85, 0x36, 0x27, 0x54, 0x41, 0xc5, 0x43, 0xee, 0x2e, 0xaa, 0x4f, 0x6d, 0x92, 0xeb, 0xc6, - 0x07, 0x2d, 0x20, 0x2c, 0xc7, 0x59, 0x92, 0xe5, 0xce, 0x5e, 0xe3, 0xdd, 0x20, 0xc2, 0xc7, 0xe2, - 0x43, 0xf0, 0x3d, 0x78, 0xe7, 0xb1, 0x2f, 0xf0, 0x84, 0x76, 0x6d, 0xc7, 0x49, 0x2f, 0xb9, 0xde, - 0x15, 0xfa, 0xe4, 0x9d, 0xd9, 0x9d, 0x99, 0x9d, 0xdf, 0x6f, 0x66, 0xd6, 0x50, 0x21, 0x62, 0xd6, - 0x0e, 0x42, 0x26, 0x18, 0xda, 0xe3, 0x33, 0xfa, 0xa3, 0x70, 0xc3, 0x45, 0x20, 0x58, 0x7b, 0x4c, - 0xc5, 0x98, 0xfd, 0xfa, 0xa0, 0x53, 0xaf, 0xba, 0xcc, 0xf3, 0x98, 0x1f, 0x9d, 0xa9, 0x1b, 0x8e, - 0x2f, 0xe8, 0xf9, 0x05, 0x91, 0x47, 0x94, 0xa6, 0xf9, 0x7b, 0x16, 0x76, 0x7a, 0x96, 0x79, 0x3a, - 0x1f, 0x63, 0xf2, 0xf3, 0x9c, 0x70, 0x81, 0x6a, 0x50, 0x3a, 0x27, 0x8b, 0xc0, 0x11, 0xb3, 0x9a, - 0xd6, 0xc8, 0xb5, 0x76, 0x70, 0x22, 0xa2, 0x87, 0x90, 0x77, 0x19, 0xf5, 0x6b, 0xd9, 0x86, 0xd6, - 0xda, 0xed, 0xbc, 0xdf, 0xde, 0x14, 0xb0, 0xdd, 0xb3, 0xcc, 0x23, 0x46, 0x7d, 0xac, 0x8e, 0xa2, - 0x21, 0xe8, 0x6c, 0x2e, 0x82, 0xb9, 0xb0, 0xc5, 0x22, 0x20, 0xb5, 0x9c, 0xb2, 0x6c, 0x6f, 0xb5, - 0x4c, 0xaf, 0xd1, 0x1e, 0x2a, 0x33, 0x6b, 0x11, 0x10, 0x0c, 0x6c, 0xb9, 0x96, 0xb7, 0x9b, 0x50, - 0x1e, 0x5c, 0x38, 0x8b, 0x5a, 0xbe, 0xa1, 0xb5, 0xca, 0x38, 0x11, 0xd1, 0xc7, 0x60, 0xb8, 0xcc, - 0x17, 0xa1, 0xe3, 0x0a, 0xdb, 0x99, 0x4c, 0x42, 0xc2, 0x79, 0xad, 0xd0, 0xd0, 0x5a, 0x55, 0x7c, - 0x2b, 0xd1, 0x77, 0x23, 0x35, 0x7a, 0x0f, 0xca, 0xee, 0xcc, 0xa1, 0xbe, 0x4d, 0x27, 0xb5, 0x62, - 0x43, 0x6b, 0xe5, 0x71, 0x49, 0xc9, 0x27, 0x93, 0xe6, 0x7d, 0x80, 0x34, 0x32, 0xd2, 0xa1, 0xd4, - 0x3d, 0x3e, 0xc6, 0xbd, 0xd1, 0xc8, 0xc8, 0xa0, 0x32, 0xe4, 0x5f, 0x9c, 0x9e, 0x1d, 0x1a, 0x5a, - 0xf3, 0xef, 0x2c, 0xec, 0xf6, 0x2c, 0x73, 0x44, 0xa7, 0x7e, 0x82, 0x5a, 0x82, 0x8d, 0x76, 0x7d, - 0x6c, 0x56, 0x80, 0xce, 0xae, 0x03, 0xbd, 0x07, 0x05, 0x9f, 0xf9, 0x6e, 0x84, 0x57, 0x15, 0x47, - 0x02, 0xba, 0x0b, 0x95, 0xa9, 0xc3, 0xed, 0x20, 0xa4, 0x2e, 0x51, 0xc9, 0x57, 0x71, 0x79, 0xea, - 0xf0, 0x53, 0x29, 0x27, 0x9b, 0x17, 0xd4, 0xa3, 0x22, 0x4e, 0x5b, 0x6e, 0x3e, 0x93, 0x32, 0xda, - 0x87, 0x4a, 0x48, 0x5c, 0x1a, 0x50, 0xe2, 0x0b, 0x95, 0x70, 0x15, 0xa7, 0x0a, 0x19, 0xed, 0x17, - 0xe7, 0x62, 0x4e, 0x6a, 0xa5, 0x28, 0x9a, 0x12, 0x10, 0x82, 0xfc, 0xc4, 0x11, 0x4e, 0xad, 0xac, - 0x94, 0x6a, 0x8d, 0xa6, 0x70, 0x67, 0xc6, 0xb8, 0xb0, 0xd5, 0x7d, 0x6c, 0x59, 0x59, 0x54, 0x78, - 0xd2, 0x67, 0xa5, 0xa1, 0xb5, 0xf4, 0xce, 0xc1, 0xe6, 0xac, 0xbb, 0xbe, 0xa0, 0x4f, 0x55, 0xcd, - 0x99, 0x8c, 0x8b, 0x81, 0xb4, 0x3d, 0x5a, 0x9a, 0xe2, 0xdb, 0xb3, 0xcb, 0xca, 0x35, 0x82, 0x60, - 0x9d, 0xa0, 0x7f, 0x34, 0xb8, 0x13, 0x63, 0xdf, 0x27, 0x9c, 0x3b, 0x53, 0xf2, 0x4e, 0x28, 0x30, - 0x20, 0xe7, 0xf1, 0x69, 0x4c, 0x80, 0x5c, 0x6e, 0x4f, 0x3e, 0xff, 0x0e, 0x93, 0x2f, 0xac, 0x27, - 0xff, 0x19, 0xdc, 0x5a, 0xd6, 0x1d, 0x0f, 0x98, 0xcf, 0x89, 0xe4, 0x96, 0xd3, 0xa9, 0xef, 0x88, - 0x79, 0x48, 0x54, 0xea, 0x55, 0x9c, 0x2a, 0x9a, 0xaf, 0x8a, 0x50, 0x8f, 0x2d, 0x64, 0x41, 0x4f, - 0x5e, 0x83, 0x6c, 0x35, 0x94, 0xb6, 0x16, 0xea, 0x0a, 0x68, 0x9e, 0x43, 0x41, 0x36, 0x33, 0xaf, - 0xe5, 0x1a, 0xb9, 0x96, 0xde, 0x79, 0xbc, 0x15, 0xe8, 0x2d, 0x51, 0xdb, 0x23, 0x11, 0xce, 0xdd, - 0xa8, 0xb5, 0x23, 0x4f, 0xe8, 0x1e, 0x54, 0x83, 0x90, 0x7a, 0x4e, 0xb8, 0x88, 0xe6, 0x84, 0x84, - 0xb4, 0x82, 0xf5, 0x58, 0xa7, 0x5a, 0x71, 0x2b, 0xfc, 0x85, 0xff, 0x17, 0xfe, 0xfa, 0x5f, 0x1a, - 0x40, 0x9f, 0x78, 0x63, 0x12, 0xaa, 0xb8, 0x7d, 0xc8, 0xab, 0x2b, 0x45, 0x55, 0xf5, 0xc5, 0x8d, - 0x93, 0x3d, 0x76, 0x84, 0xa3, 0x52, 0x55, 0x6e, 0x64, 0x5b, 0x71, 0xfa, 0x1b, 0x51, 0x33, 0x74, - 0x07, 0xab, 0x35, 0xfa, 0x00, 0x74, 0xae, 0x20, 0xb1, 0x7d, 0xc7, 0x8b, 0x9a, 0xbe, 0x82, 0x21, - 0x52, 0x0d, 0x1c, 0x8f, 0xa0, 0x6f, 0x01, 0x9c, 0x30, 0x74, 0x56, 0xc0, 0x79, 0x1b, 0xd8, 0xd3, - 0xa4, 0x70, 0x45, 0xb9, 0x93, 0xcb, 0xba, 0x07, 0xc5, 0x68, 0x43, 0x5e, 0x4d, 0xc5, 0xd7, 0x54, - 0x7c, 0xb5, 0x46, 0xc3, 0x38, 0xfb, 0xec, 0x7f, 0x8f, 0xa9, 0x1c, 0xd5, 0x39, 0x40, 0x4a, 0xff, - 0xc6, 0x90, 0xcf, 0xa1, 0xe4, 0x29, 0x2b, 0xae, 0x0a, 0x4f, 0xef, 0x3c, 0x7a, 0xcb, 0xa8, 0x38, - 0xf1, 0xd3, 0x64, 0x50, 0x4e, 0x68, 0x90, 0x23, 0xfd, 0x6c, 0xf0, 0x74, 0x30, 0xfc, 0x66, 0x60, - 0x64, 0x50, 0x05, 0x0a, 0x87, 0x2f, 0xad, 0xde, 0xc8, 0xd0, 0xe4, 0x74, 0x3f, 0x3b, 0x19, 0x58, - 0x46, 0x16, 0x95, 0x20, 0x27, 0x17, 0x39, 0xa9, 0x3a, 0x1c, 0x0e, 0x9f, 0x19, 0xf9, 0xd5, 0x77, - 0xa0, 0x80, 0x00, 0x8a, 0x23, 0x0b, 0x9f, 0x0c, 0x9e, 0x18, 0x45, 0xe9, 0xa0, 0x8b, 0x71, 0xf7, - 0xa5, 0x51, 0x8a, 0xd5, 0x67, 0x47, 0x96, 0x51, 0x6e, 0xfe, 0xa1, 0xc1, 0x7e, 0xcf, 0x32, 0x57, - 0xef, 0xf6, 0xb5, 0x9c, 0xaa, 0xcb, 0xae, 0xfd, 0x01, 0xf4, 0x90, 0x31, 0x61, 0xb3, 0xf1, 0x4f, - 0xc4, 0x15, 0x71, 0x71, 0x7d, 0xb5, 0x35, 0xd1, 0xad, 0x8e, 0xda, 0x98, 0x31, 0x31, 0x54, 0x4e, - 0x30, 0x84, 0xcb, 0xb5, 0x04, 0x76, 0xa5, 0x75, 0xd5, 0xba, 0xd9, 0x01, 0x48, 0x4f, 0xaf, 0xe3, - 0x00, 0x50, 0x3c, 0x1e, 0xf6, 0xbb, 0x27, 0x03, 0x43, 0x93, 0x1b, 0xfd, 0xde, 0x68, 0xd4, 0x7d, - 0xd2, 0x33, 0xb2, 0xcd, 0x03, 0xb8, 0xbb, 0x39, 0x7c, 0x34, 0x3f, 0x96, 0x4f, 0x87, 0xb6, 0xf2, - 0x74, 0x34, 0x5f, 0xe5, 0x00, 0x7a, 0x96, 0x99, 0x1c, 0x7a, 0x04, 0xb9, 0x60, 0x3e, 0x56, 0x47, - 0xf4, 0xce, 0xfd, 0x6b, 0xbc, 0xfd, 0x66, 0x06, 0x4b, 0x0b, 0xf4, 0xa5, 0xec, 0x95, 0xa9, 0x1f, - 0x17, 0xdf, 0x87, 0x57, 0x96, 0x41, 0x6a, 0xaa, 0x6c, 0x90, 0x09, 0x65, 0xf9, 0xb5, 0x93, 0x21, - 0xae, 0x77, 0x3e, 0xbd, 0xd2, 0x7e, 0xbd, 0x82, 0xcc, 0x0c, 0x2e, 0x49, 0xf3, 0x3e, 0x9f, 0x22, - 0x02, 0x7b, 0xe9, 0x5f, 0x93, 0x9d, 0xce, 0xda, 0xa8, 0x0d, 0x1f, 0xbc, 0x69, 0xee, 0x8c, 0x12, - 0x83, 0xd4, 0xf5, 0xed, 0xd4, 0xdf, 0x72, 0x17, 0xbd, 0x80, 0x5d, 0x75, 0x61, 0xd9, 0x25, 0x13, - 0x75, 0xed, 0xc2, 0x55, 0x01, 0xb6, 0x57, 0xbf, 0x99, 0xc1, 0x55, 0xbe, 0xdc, 0xe2, 0x53, 0xf4, - 0x1d, 0xdc, 0x5a, 0x3a, 0xb5, 0x23, 0xba, 0x8a, 0xca, 0xf5, 0xc3, 0x9b, 0xd4, 0x5b, 0xe2, 0x7b, - 0x47, 0xc4, 0x7e, 0x95, 0xfe, 0xb0, 0x02, 0xa5, 0x30, 0xda, 0x6b, 0xfe, 0x99, 0x05, 0x5d, 0xd1, - 0x1e, 0xd7, 0xf8, 0xe7, 0xab, 0xbc, 0xdf, 0xdb, 0x1c, 0x4b, 0x91, 0x1e, 0x9d, 0x4f, 0x58, 0x7f, - 0xbc, 0xc6, 0xfa, 0x47, 0x6f, 0x60, 0x7d, 0x69, 0x1b, 0xd1, 0x2e, 0x60, 0xff, 0x35, 0xb2, 0x48, - 0xb8, 0xfa, 0x58, 0xe4, 0xae, 0x4f, 0x1a, 0x09, 0xd3, 0x47, 0xc1, 0xcc, 0xe0, 0xfa, 0x3a, 0x69, - 0xab, 0xbb, 0xe8, 0xfb, 0xcb, 0x08, 0x47, 0xd5, 0xd1, 0xb9, 0x79, 0x47, 0x5f, 0x86, 0x18, 0xa0, - 0x1c, 0xc6, 0x9b, 0x9f, 0x74, 0xa0, 0x14, 0xff, 0xc1, 0xc8, 0x31, 0xd5, 0xb3, 0x4c, 0x23, 0x83, - 0x76, 0x65, 0x5f, 0x07, 0x5c, 0x10, 0x5f, 0xca, 0x9a, 0x92, 0xa9, 0x7f, 0x4e, 0xc6, 0x0b, 0x29, - 0x67, 0xc7, 0x45, 0xf5, 0xa7, 0x7f, 0xf0, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xbf, 0xd4, 0x44, - 0x23, 0x2c, 0x0c, 0x00, 0x00, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_eth_proto_rawDesc, + NumEnums: 4, + NumMessages: 12, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_eth_proto_goTypes, + DependencyIndexes: file_eth_proto_depIdxs, + EnumInfos: file_eth_proto_enumTypes, + MessageInfos: file_eth_proto_msgTypes, + }.Build() + File_eth_proto = out.File + file_eth_proto_rawDesc = nil + file_eth_proto_goTypes = nil + file_eth_proto_depIdxs = nil } diff --git a/api/firmware/messages/generate.sh b/api/firmware/messages/generate.sh new file mode 100755 index 0000000..4085bfc --- /dev/null +++ b/api/firmware/messages/generate.sh @@ -0,0 +1,15 @@ +#!/bin/sh -e + +DIR="$( cd "$( dirname "$0" )" && pwd )" + +FILES=${DIR}/*.proto + +OPTS="" +for f in $FILES +do + OPTS="${OPTS} --go_opt=M$(basename ${f})=github.com/digitalbitbox/bitbox02-api-go/api/firmware/messages" +done +protoc --proto_path=${DIR} \ + ${OPTS} \ + --go_out="paths=source_relative:${DIR}" \ + $FILES diff --git a/api/firmware/messages/hww.pb.go b/api/firmware/messages/hww.pb.go index 4dab347..1f8c0a8 100644 --- a/api/firmware/messages/hww.pb.go +++ b/api/firmware/messages/hww.pb.go @@ -1,105 +1,138 @@ +// Copyright 2019 Shift Cryptosecurity AG +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v3.6.1 // source: hww.proto package messages import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +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) +) type Error struct { - Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { - return fileDescriptor_c12bd9e6412b8a05, []int{0} + Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` } -func (m *Error) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Error.Unmarshal(m, b) -} -func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Error.Marshal(b, m, deterministic) -} -func (m *Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Error.Merge(m, src) +func (x *Error) Reset() { + *x = Error{} + if protoimpl.UnsafeEnabled { + mi := &file_hww_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Error) XXX_Size() int { - return xxx_messageInfo_Error.Size(m) + +func (x *Error) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Error) XXX_DiscardUnknown() { - xxx_messageInfo_Error.DiscardUnknown(m) + +func (*Error) ProtoMessage() {} + +func (x *Error) ProtoReflect() protoreflect.Message { + mi := &file_hww_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) } -var xxx_messageInfo_Error proto.InternalMessageInfo +// Deprecated: Use Error.ProtoReflect.Descriptor instead. +func (*Error) Descriptor() ([]byte, []int) { + return file_hww_proto_rawDescGZIP(), []int{0} +} -func (m *Error) GetCode() int32 { - if m != nil { - return m.Code +func (x *Error) GetCode() int32 { + if x != nil { + return x.Code } return 0 } -func (m *Error) GetMessage() string { - if m != nil { - return m.Message +func (x *Error) GetMessage() string { + if x != nil { + return x.Message } return "" } type Success struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *Success) Reset() { *m = Success{} } -func (m *Success) String() string { return proto.CompactTextString(m) } -func (*Success) ProtoMessage() {} -func (*Success) Descriptor() ([]byte, []int) { - return fileDescriptor_c12bd9e6412b8a05, []int{1} +func (x *Success) Reset() { + *x = Success{} + if protoimpl.UnsafeEnabled { + mi := &file_hww_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Success) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Success.Unmarshal(m, b) -} -func (m *Success) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Success.Marshal(b, m, deterministic) +func (x *Success) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Success) XXX_Merge(src proto.Message) { - xxx_messageInfo_Success.Merge(m, src) -} -func (m *Success) XXX_Size() int { - return xxx_messageInfo_Success.Size(m) -} -func (m *Success) XXX_DiscardUnknown() { - xxx_messageInfo_Success.DiscardUnknown(m) + +func (*Success) ProtoMessage() {} + +func (x *Success) ProtoReflect() protoreflect.Message { + mi := &file_hww_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) } -var xxx_messageInfo_Success proto.InternalMessageInfo +// Deprecated: Use Success.ProtoReflect.Descriptor instead. +func (*Success) Descriptor() ([]byte, []int) { + return file_hww_proto_rawDescGZIP(), []int{1} +} type Request struct { - // Types that are valid to be assigned to Request: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Request: // *Request_DeviceName // *Request_DeviceLanguage // *Request_DeviceInfo @@ -125,42 +158,229 @@ type Request struct { // *Request_Btc // *Request_ElectrumEncryptionKey // *Request_Cardano - Request isRequest_Request `protobuf_oneof:"request"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Request isRequest_Request `protobuf_oneof:"request"` +} + +func (x *Request) Reset() { + *x = Request{} + if protoimpl.UnsafeEnabled { + mi := &file_hww_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Request) Reset() { *m = Request{} } -func (m *Request) String() string { return proto.CompactTextString(m) } -func (*Request) ProtoMessage() {} +func (*Request) ProtoMessage() {} + +func (x *Request) ProtoReflect() protoreflect.Message { + mi := &file_hww_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 Request.ProtoReflect.Descriptor instead. func (*Request) Descriptor() ([]byte, []int) { - return fileDescriptor_c12bd9e6412b8a05, []int{2} + return file_hww_proto_rawDescGZIP(), []int{2} } -func (m *Request) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Request.Unmarshal(m, b) +func (m *Request) GetRequest() isRequest_Request { + if m != nil { + return m.Request + } + return nil } -func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Request.Marshal(b, m, deterministic) + +func (x *Request) GetDeviceName() *SetDeviceNameRequest { + if x, ok := x.GetRequest().(*Request_DeviceName); ok { + return x.DeviceName + } + return nil } -func (m *Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_Request.Merge(m, src) + +func (x *Request) GetDeviceLanguage() *SetDeviceLanguageRequest { + if x, ok := x.GetRequest().(*Request_DeviceLanguage); ok { + return x.DeviceLanguage + } + return nil } -func (m *Request) XXX_Size() int { - return xxx_messageInfo_Request.Size(m) + +func (x *Request) GetDeviceInfo() *DeviceInfoRequest { + if x, ok := x.GetRequest().(*Request_DeviceInfo); ok { + return x.DeviceInfo + } + return nil } -func (m *Request) XXX_DiscardUnknown() { - xxx_messageInfo_Request.DiscardUnknown(m) + +func (x *Request) GetSetPassword() *SetPasswordRequest { + if x, ok := x.GetRequest().(*Request_SetPassword); ok { + return x.SetPassword + } + return nil } -var xxx_messageInfo_Request proto.InternalMessageInfo +func (x *Request) GetCreateBackup() *CreateBackupRequest { + if x, ok := x.GetRequest().(*Request_CreateBackup); ok { + return x.CreateBackup + } + return nil +} + +func (x *Request) GetShowMnemonic() *ShowMnemonicRequest { + if x, ok := x.GetRequest().(*Request_ShowMnemonic); ok { + return x.ShowMnemonic + } + return nil +} + +func (x *Request) GetBtcPub() *BTCPubRequest { + if x, ok := x.GetRequest().(*Request_BtcPub); ok { + return x.BtcPub + } + return nil +} + +func (x *Request) GetBtcSignInit() *BTCSignInitRequest { + if x, ok := x.GetRequest().(*Request_BtcSignInit); ok { + return x.BtcSignInit + } + return nil +} + +func (x *Request) GetBtcSignInput() *BTCSignInputRequest { + if x, ok := x.GetRequest().(*Request_BtcSignInput); ok { + return x.BtcSignInput + } + return nil +} + +func (x *Request) GetBtcSignOutput() *BTCSignOutputRequest { + if x, ok := x.GetRequest().(*Request_BtcSignOutput); ok { + return x.BtcSignOutput + } + return nil +} + +func (x *Request) GetInsertRemoveSdcard() *InsertRemoveSDCardRequest { + if x, ok := x.GetRequest().(*Request_InsertRemoveSdcard); ok { + return x.InsertRemoveSdcard + } + return nil +} + +func (x *Request) GetCheckSdcard() *CheckSDCardRequest { + if x, ok := x.GetRequest().(*Request_CheckSdcard); ok { + return x.CheckSdcard + } + return nil +} + +func (x *Request) GetSetMnemonicPassphraseEnabled() *SetMnemonicPassphraseEnabledRequest { + if x, ok := x.GetRequest().(*Request_SetMnemonicPassphraseEnabled); ok { + return x.SetMnemonicPassphraseEnabled + } + return nil +} + +func (x *Request) GetListBackups() *ListBackupsRequest { + if x, ok := x.GetRequest().(*Request_ListBackups); ok { + return x.ListBackups + } + return nil +} + +func (x *Request) GetRestoreBackup() *RestoreBackupRequest { + if x, ok := x.GetRequest().(*Request_RestoreBackup); ok { + return x.RestoreBackup + } + return nil +} + +func (x *Request) GetPerformAttestation() *PerformAttestationRequest { + if x, ok := x.GetRequest().(*Request_PerformAttestation); ok { + return x.PerformAttestation + } + return nil +} + +func (x *Request) GetReboot() *RebootRequest { + if x, ok := x.GetRequest().(*Request_Reboot); ok { + return x.Reboot + } + return nil +} + +func (x *Request) GetCheckBackup() *CheckBackupRequest { + if x, ok := x.GetRequest().(*Request_CheckBackup); ok { + return x.CheckBackup + } + return nil +} + +func (x *Request) GetEth() *ETHRequest { + if x, ok := x.GetRequest().(*Request_Eth); ok { + return x.Eth + } + return nil +} + +func (x *Request) GetReset_() *ResetRequest { + if x, ok := x.GetRequest().(*Request_Reset_); ok { + return x.Reset_ + } + return nil +} + +func (x *Request) GetRestoreFromMnemonic() *RestoreFromMnemonicRequest { + if x, ok := x.GetRequest().(*Request_RestoreFromMnemonic); ok { + return x.RestoreFromMnemonic + } + return nil +} + +func (x *Request) GetFingerprint() *RootFingerprintRequest { + if x, ok := x.GetRequest().(*Request_Fingerprint); ok { + return x.Fingerprint + } + return nil +} + +func (x *Request) GetBtc() *BTCRequest { + if x, ok := x.GetRequest().(*Request_Btc); ok { + return x.Btc + } + return nil +} + +func (x *Request) GetElectrumEncryptionKey() *ElectrumEncryptionKeyRequest { + if x, ok := x.GetRequest().(*Request_ElectrumEncryptionKey); ok { + return x.ElectrumEncryptionKey + } + return nil +} + +func (x *Request) GetCardano() *CardanoRequest { + if x, ok := x.GetRequest().(*Request_Cardano); ok { + return x.Cardano + } + return nil +} type isRequest_Request interface { isRequest_Request() } type Request_DeviceName struct { + // removed: RandomNumberRequest random_number = 1; DeviceName *SetDeviceNameRequest `protobuf:"bytes,2,opt,name=device_name,json=deviceName,proto3,oneof"` } @@ -245,6 +465,7 @@ type Request_RestoreFromMnemonic struct { } type Request_Fingerprint struct { + // removed: BitBoxBaseRequest bitboxbase = 23; Fingerprint *RootFingerprintRequest `protobuf:"bytes,24,opt,name=fingerprint,proto3,oneof"` } @@ -310,266 +531,166 @@ func (*Request_ElectrumEncryptionKey) isRequest_Request() {} func (*Request_Cardano) isRequest_Request() {} -func (m *Request) GetRequest() isRequest_Request { - if m != nil { - return m.Request - } - return nil -} - -func (m *Request) GetDeviceName() *SetDeviceNameRequest { - if x, ok := m.GetRequest().(*Request_DeviceName); ok { - return x.DeviceName - } - return nil -} +type Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Request) GetDeviceLanguage() *SetDeviceLanguageRequest { - if x, ok := m.GetRequest().(*Request_DeviceLanguage); ok { - return x.DeviceLanguage - } - return nil + // Types that are assignable to Response: + // *Response_Success + // *Response_Error + // *Response_DeviceInfo + // *Response_Pub + // *Response_BtcSignNext + // *Response_ListBackups + // *Response_CheckBackup + // *Response_PerformAttestation + // *Response_CheckSdcard + // *Response_Eth + // *Response_Fingerprint + // *Response_Btc + // *Response_ElectrumEncryptionKey + // *Response_Cardano + Response isResponse_Response `protobuf_oneof:"response"` } -func (m *Request) GetDeviceInfo() *DeviceInfoRequest { - if x, ok := m.GetRequest().(*Request_DeviceInfo); ok { - return x.DeviceInfo +func (x *Response) Reset() { + *x = Response{} + if protoimpl.UnsafeEnabled { + mi := &file_hww_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *Request) GetSetPassword() *SetPasswordRequest { - if x, ok := m.GetRequest().(*Request_SetPassword); ok { - return x.SetPassword - } - return nil +func (x *Response) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Request) GetCreateBackup() *CreateBackupRequest { - if x, ok := m.GetRequest().(*Request_CreateBackup); ok { - return x.CreateBackup - } - return nil -} +func (*Response) ProtoMessage() {} -func (m *Request) GetShowMnemonic() *ShowMnemonicRequest { - if x, ok := m.GetRequest().(*Request_ShowMnemonic); ok { - return x.ShowMnemonic +func (x *Response) ProtoReflect() protoreflect.Message { + mi := &file_hww_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 nil + return mi.MessageOf(x) } -func (m *Request) GetBtcPub() *BTCPubRequest { - if x, ok := m.GetRequest().(*Request_BtcPub); ok { - return x.BtcPub - } - return nil +// Deprecated: Use Response.ProtoReflect.Descriptor instead. +func (*Response) Descriptor() ([]byte, []int) { + return file_hww_proto_rawDescGZIP(), []int{3} } -func (m *Request) GetBtcSignInit() *BTCSignInitRequest { - if x, ok := m.GetRequest().(*Request_BtcSignInit); ok { - return x.BtcSignInit +func (m *Response) GetResponse() isResponse_Response { + if m != nil { + return m.Response } return nil } -func (m *Request) GetBtcSignInput() *BTCSignInputRequest { - if x, ok := m.GetRequest().(*Request_BtcSignInput); ok { - return x.BtcSignInput +func (x *Response) GetSuccess() *Success { + if x, ok := x.GetResponse().(*Response_Success); ok { + return x.Success } return nil } -func (m *Request) GetBtcSignOutput() *BTCSignOutputRequest { - if x, ok := m.GetRequest().(*Request_BtcSignOutput); ok { - return x.BtcSignOutput +func (x *Response) GetError() *Error { + if x, ok := x.GetResponse().(*Response_Error); ok { + return x.Error } return nil } -func (m *Request) GetInsertRemoveSdcard() *InsertRemoveSDCardRequest { - if x, ok := m.GetRequest().(*Request_InsertRemoveSdcard); ok { - return x.InsertRemoveSdcard +func (x *Response) GetDeviceInfo() *DeviceInfoResponse { + if x, ok := x.GetResponse().(*Response_DeviceInfo); ok { + return x.DeviceInfo } return nil } -func (m *Request) GetCheckSdcard() *CheckSDCardRequest { - if x, ok := m.GetRequest().(*Request_CheckSdcard); ok { - return x.CheckSdcard +func (x *Response) GetPub() *PubResponse { + if x, ok := x.GetResponse().(*Response_Pub); ok { + return x.Pub } return nil } -func (m *Request) GetSetMnemonicPassphraseEnabled() *SetMnemonicPassphraseEnabledRequest { - if x, ok := m.GetRequest().(*Request_SetMnemonicPassphraseEnabled); ok { - return x.SetMnemonicPassphraseEnabled +func (x *Response) GetBtcSignNext() *BTCSignNextResponse { + if x, ok := x.GetResponse().(*Response_BtcSignNext); ok { + return x.BtcSignNext } return nil } -func (m *Request) GetListBackups() *ListBackupsRequest { - if x, ok := m.GetRequest().(*Request_ListBackups); ok { +func (x *Response) GetListBackups() *ListBackupsResponse { + if x, ok := x.GetResponse().(*Response_ListBackups); ok { return x.ListBackups } return nil } -func (m *Request) GetRestoreBackup() *RestoreBackupRequest { - if x, ok := m.GetRequest().(*Request_RestoreBackup); ok { - return x.RestoreBackup +func (x *Response) GetCheckBackup() *CheckBackupResponse { + if x, ok := x.GetResponse().(*Response_CheckBackup); ok { + return x.CheckBackup } return nil } -func (m *Request) GetPerformAttestation() *PerformAttestationRequest { - if x, ok := m.GetRequest().(*Request_PerformAttestation); ok { +func (x *Response) GetPerformAttestation() *PerformAttestationResponse { + if x, ok := x.GetResponse().(*Response_PerformAttestation); ok { return x.PerformAttestation } return nil } -func (m *Request) GetReboot() *RebootRequest { - if x, ok := m.GetRequest().(*Request_Reboot); ok { - return x.Reboot - } - return nil -} - -func (m *Request) GetCheckBackup() *CheckBackupRequest { - if x, ok := m.GetRequest().(*Request_CheckBackup); ok { - return x.CheckBackup +func (x *Response) GetCheckSdcard() *CheckSDCardResponse { + if x, ok := x.GetResponse().(*Response_CheckSdcard); ok { + return x.CheckSdcard } return nil } -func (m *Request) GetEth() *ETHRequest { - if x, ok := m.GetRequest().(*Request_Eth); ok { +func (x *Response) GetEth() *ETHResponse { + if x, ok := x.GetResponse().(*Response_Eth); ok { return x.Eth } return nil } -func (m *Request) GetReset_() *ResetRequest { - if x, ok := m.GetRequest().(*Request_Reset_); ok { - return x.Reset_ - } - return nil -} - -func (m *Request) GetRestoreFromMnemonic() *RestoreFromMnemonicRequest { - if x, ok := m.GetRequest().(*Request_RestoreFromMnemonic); ok { - return x.RestoreFromMnemonic - } - return nil -} - -func (m *Request) GetFingerprint() *RootFingerprintRequest { - if x, ok := m.GetRequest().(*Request_Fingerprint); ok { +func (x *Response) GetFingerprint() *RootFingerprintResponse { + if x, ok := x.GetResponse().(*Response_Fingerprint); ok { return x.Fingerprint } return nil } -func (m *Request) GetBtc() *BTCRequest { - if x, ok := m.GetRequest().(*Request_Btc); ok { +func (x *Response) GetBtc() *BTCResponse { + if x, ok := x.GetResponse().(*Response_Btc); ok { return x.Btc } return nil } -func (m *Request) GetElectrumEncryptionKey() *ElectrumEncryptionKeyRequest { - if x, ok := m.GetRequest().(*Request_ElectrumEncryptionKey); ok { +func (x *Response) GetElectrumEncryptionKey() *ElectrumEncryptionKeyResponse { + if x, ok := x.GetResponse().(*Response_ElectrumEncryptionKey); ok { return x.ElectrumEncryptionKey } return nil } -func (m *Request) GetCardano() *CardanoRequest { - if x, ok := m.GetRequest().(*Request_Cardano); ok { +func (x *Response) GetCardano() *CardanoResponse { + if x, ok := x.GetResponse().(*Response_Cardano); ok { return x.Cardano } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Request) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Request_DeviceName)(nil), - (*Request_DeviceLanguage)(nil), - (*Request_DeviceInfo)(nil), - (*Request_SetPassword)(nil), - (*Request_CreateBackup)(nil), - (*Request_ShowMnemonic)(nil), - (*Request_BtcPub)(nil), - (*Request_BtcSignInit)(nil), - (*Request_BtcSignInput)(nil), - (*Request_BtcSignOutput)(nil), - (*Request_InsertRemoveSdcard)(nil), - (*Request_CheckSdcard)(nil), - (*Request_SetMnemonicPassphraseEnabled)(nil), - (*Request_ListBackups)(nil), - (*Request_RestoreBackup)(nil), - (*Request_PerformAttestation)(nil), - (*Request_Reboot)(nil), - (*Request_CheckBackup)(nil), - (*Request_Eth)(nil), - (*Request_Reset_)(nil), - (*Request_RestoreFromMnemonic)(nil), - (*Request_Fingerprint)(nil), - (*Request_Btc)(nil), - (*Request_ElectrumEncryptionKey)(nil), - (*Request_Cardano)(nil), - } -} - -type Response struct { - // Types that are valid to be assigned to Response: - // *Response_Success - // *Response_Error - // *Response_DeviceInfo - // *Response_Pub - // *Response_BtcSignNext - // *Response_ListBackups - // *Response_CheckBackup - // *Response_PerformAttestation - // *Response_CheckSdcard - // *Response_Eth - // *Response_Fingerprint - // *Response_Btc - // *Response_ElectrumEncryptionKey - // *Response_Cardano - Response isResponse_Response `protobuf_oneof:"response"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Response) Reset() { *m = Response{} } -func (m *Response) String() string { return proto.CompactTextString(m) } -func (*Response) ProtoMessage() {} -func (*Response) Descriptor() ([]byte, []int) { - return fileDescriptor_c12bd9e6412b8a05, []int{3} -} - -func (m *Response) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Response.Unmarshal(m, b) -} -func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Response.Marshal(b, m, deterministic) -} -func (m *Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_Response.Merge(m, src) -} -func (m *Response) XXX_Size() int { - return xxx_messageInfo_Response.Size(m) -} -func (m *Response) XXX_DiscardUnknown() { - xxx_messageInfo_Response.DiscardUnknown(m) -} - -var xxx_messageInfo_Response proto.InternalMessageInfo - type isResponse_Response interface { isResponse_Response() } @@ -583,6 +704,7 @@ type Response_Error struct { } type Response_DeviceInfo struct { + // removed: RandomNumberResponse random_number = 3; DeviceInfo *DeviceInfoResponse `protobuf:"bytes,4,opt,name=device_info,json=deviceInfo,proto3,oneof"` } @@ -658,114 +780,422 @@ func (*Response_ElectrumEncryptionKey) isResponse_Response() {} func (*Response_Cardano) isResponse_Response() {} -func (m *Response) GetResponse() isResponse_Response { - if m != nil { - return m.Response - } - return nil -} - -func (m *Response) GetSuccess() *Success { - if x, ok := m.GetResponse().(*Response_Success); ok { - return x.Success - } - return nil -} - -func (m *Response) GetError() *Error { - if x, ok := m.GetResponse().(*Response_Error); ok { - return x.Error - } - return nil -} - -func (m *Response) GetDeviceInfo() *DeviceInfoResponse { - if x, ok := m.GetResponse().(*Response_DeviceInfo); ok { - return x.DeviceInfo - } - return nil -} - -func (m *Response) GetPub() *PubResponse { - if x, ok := m.GetResponse().(*Response_Pub); ok { - return x.Pub - } - return nil -} - -func (m *Response) GetBtcSignNext() *BTCSignNextResponse { - if x, ok := m.GetResponse().(*Response_BtcSignNext); ok { - return x.BtcSignNext - } - return nil -} - -func (m *Response) GetListBackups() *ListBackupsResponse { - if x, ok := m.GetResponse().(*Response_ListBackups); ok { - return x.ListBackups - } - return nil -} - -func (m *Response) GetCheckBackup() *CheckBackupResponse { - if x, ok := m.GetResponse().(*Response_CheckBackup); ok { - return x.CheckBackup - } - return nil -} - -func (m *Response) GetPerformAttestation() *PerformAttestationResponse { - if x, ok := m.GetResponse().(*Response_PerformAttestation); ok { - return x.PerformAttestation - } - return nil -} - -func (m *Response) GetCheckSdcard() *CheckSDCardResponse { - if x, ok := m.GetResponse().(*Response_CheckSdcard); ok { - return x.CheckSdcard - } - return nil -} - -func (m *Response) GetEth() *ETHResponse { - if x, ok := m.GetResponse().(*Response_Eth); ok { - return x.Eth - } - return nil -} +var File_hww_proto protoreflect.FileDescriptor + +var file_hww_proto_rawDesc = []byte{ + 0x0a, 0x09, 0x68, 0x77, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x73, 0x68, 0x69, + 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, + 0x32, 0x1a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x15, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, + 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x09, 0x62, + 0x74, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x63, 0x61, 0x72, 0x64, 0x61, 0x6e, + 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x09, 0x65, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x0e, 0x6b, 0x65, 0x79, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x0e, 0x6d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x0c, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x19, 0x70, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x35, 0x0a, 0x05, 0x45, + 0x72, 0x72, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x22, 0x09, 0x0a, 0x07, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x22, 0xa3, 0x10, + 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4d, 0x0a, 0x0b, 0x64, 0x65, 0x76, + 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, + 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, + 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x53, 0x65, 0x74, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4e, + 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x64, 0x65, + 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x59, 0x0a, 0x0f, 0x64, 0x65, 0x76, 0x69, + 0x63, 0x65, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x2e, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, + 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x53, 0x65, 0x74, 0x44, 0x65, 0x76, 0x69, + 0x63, 0x65, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x48, 0x00, 0x52, 0x0e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x61, 0x6e, 0x67, 0x75, + 0x61, 0x67, 0x65, 0x12, 0x4a, 0x0a, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x6e, + 0x66, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, + 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, + 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x48, 0x00, 0x52, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, + 0x4d, 0x0a, 0x0c, 0x73, 0x65, 0x74, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x53, 0x65, 0x74, + 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, + 0x00, 0x52, 0x0b, 0x73, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x50, + 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x48, 0x00, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, + 0x12, 0x50, 0x0a, 0x0d, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x6d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, + 0x63, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x53, + 0x68, 0x6f, 0x77, 0x4d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x68, 0x6f, 0x77, 0x4d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, + 0x69, 0x63, 0x12, 0x3e, 0x0a, 0x07, 0x62, 0x74, 0x63, 0x5f, 0x70, 0x75, 0x62, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x42, 0x54, 0x43, 0x50, 0x75, + 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x06, 0x62, 0x74, 0x63, 0x50, + 0x75, 0x62, 0x12, 0x4e, 0x0a, 0x0d, 0x62, 0x74, 0x63, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x69, + 0x6e, 0x69, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x73, 0x68, 0x69, 0x66, + 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, + 0x2e, 0x42, 0x54, 0x43, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x62, 0x74, 0x63, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, + 0x69, 0x74, 0x12, 0x51, 0x0a, 0x0e, 0x62, 0x74, 0x63, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x69, + 0x6e, 0x70, 0x75, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, 0x68, 0x69, + 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, + 0x32, 0x2e, 0x42, 0x54, 0x43, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x62, 0x74, 0x63, 0x53, 0x69, 0x67, 0x6e, + 0x49, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x54, 0x0a, 0x0f, 0x62, 0x74, 0x63, 0x5f, 0x73, 0x69, 0x67, + 0x6e, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, + 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, + 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x42, 0x54, 0x43, 0x53, 0x69, 0x67, 0x6e, 0x4f, 0x75, 0x74, + 0x70, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x62, 0x74, + 0x63, 0x53, 0x69, 0x67, 0x6e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x63, 0x0a, 0x14, 0x69, + 0x6e, 0x73, 0x65, 0x72, 0x74, 0x5f, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x73, 0x64, 0x63, + 0x61, 0x72, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x73, 0x68, 0x69, 0x66, + 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, + 0x2e, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x44, 0x43, + 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x12, 0x69, 0x6e, + 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x64, 0x63, 0x61, 0x72, 0x64, + 0x12, 0x4d, 0x0a, 0x0c, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x73, 0x64, 0x63, 0x61, 0x72, 0x64, + 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x43, 0x68, + 0x65, 0x63, 0x6b, 0x53, 0x44, 0x43, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x48, 0x00, 0x52, 0x0b, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x64, 0x63, 0x61, 0x72, 0x64, 0x12, + 0x82, 0x01, 0x0a, 0x1f, 0x73, 0x65, 0x74, 0x5f, 0x6d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, + 0x5f, 0x70, 0x61, 0x73, 0x73, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x5f, 0x65, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x73, 0x68, 0x69, 0x66, + 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, + 0x2e, 0x53, 0x65, 0x74, 0x4d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x50, 0x61, 0x73, 0x73, + 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x1c, 0x73, 0x65, 0x74, 0x4d, 0x6e, 0x65, 0x6d, 0x6f, + 0x6e, 0x69, 0x63, 0x50, 0x61, 0x73, 0x73, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x45, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x64, 0x12, 0x4d, 0x0a, 0x0c, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x62, 0x61, 0x63, + 0x6b, 0x75, 0x70, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x73, 0x68, 0x69, + 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, + 0x32, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x6c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x63, 0x6b, + 0x75, 0x70, 0x73, 0x12, 0x53, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x62, + 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x73, 0x68, + 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, + 0x30, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x74, 0x6f, + 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x62, 0x0a, 0x13, 0x70, 0x65, 0x72, 0x66, + 0x6f, 0x72, 0x6d, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x50, 0x65, 0x72, + 0x66, 0x6f, 0x72, 0x6d, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x12, 0x70, 0x65, 0x72, 0x66, 0x6f, 0x72, + 0x6d, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3d, 0x0a, 0x06, + 0x72, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x73, + 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, + 0x78, 0x30, 0x32, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x48, 0x00, 0x52, 0x06, 0x72, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x12, 0x4d, 0x0a, 0x0c, 0x63, + 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x13, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x28, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, + 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x42, 0x61, + 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x63, + 0x68, 0x65, 0x63, 0x6b, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x34, 0x0a, 0x03, 0x65, 0x74, + 0x68, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x45, + 0x54, 0x48, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x03, 0x65, 0x74, 0x68, + 0x12, 0x3a, 0x0a, 0x05, 0x72, 0x65, 0x73, 0x65, 0x74, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x22, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, + 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x05, 0x72, 0x65, 0x73, 0x65, 0x74, 0x12, 0x66, 0x0a, 0x15, + 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x6d, 0x6e, 0x65, + 0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x68, + 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, + 0x30, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x4d, 0x6e, + 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, + 0x13, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x4d, 0x6e, 0x65, 0x6d, + 0x6f, 0x6e, 0x69, 0x63, 0x12, 0x50, 0x0a, 0x0b, 0x66, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, + 0x69, 0x6e, 0x74, 0x18, 0x18, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x73, 0x68, 0x69, 0x66, + 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, + 0x2e, 0x52, 0x6f, 0x6f, 0x74, 0x46, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x66, 0x69, 0x6e, 0x67, 0x65, + 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x12, 0x34, 0x0a, 0x03, 0x62, 0x74, 0x63, 0x18, 0x19, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x42, 0x54, 0x43, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x03, 0x62, 0x74, 0x63, 0x12, 0x6c, 0x0a, 0x17, + 0x65, 0x6c, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x5f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, + 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, + 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x45, 0x6c, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x45, 0x6e, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x48, 0x00, 0x52, 0x15, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x45, 0x6e, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x40, 0x0a, 0x07, 0x63, 0x61, + 0x72, 0x64, 0x61, 0x6e, 0x6f, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x73, 0x68, + 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, + 0x30, 0x32, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x61, 0x6e, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x48, 0x00, 0x52, 0x07, 0x63, 0x61, 0x72, 0x64, 0x61, 0x6e, 0x6f, 0x42, 0x09, 0x0a, 0x07, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, + 0x17, 0x10, 0x18, 0x22, 0xa9, 0x08, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x39, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, + 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x48, 0x00, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x33, 0x0a, 0x05, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x73, 0x68, 0x69, + 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, + 0x32, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, + 0x12, 0x4b, 0x0a, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x44, 0x65, 0x76, + 0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, + 0x00, 0x52, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x35, 0x0a, + 0x03, 0x70, 0x75, 0x62, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x73, 0x68, 0x69, + 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, + 0x32, 0x2e, 0x50, 0x75, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, + 0x03, 0x70, 0x75, 0x62, 0x12, 0x4f, 0x0a, 0x0d, 0x62, 0x74, 0x63, 0x5f, 0x73, 0x69, 0x67, 0x6e, + 0x5f, 0x6e, 0x65, 0x78, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, 0x68, + 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, + 0x30, 0x32, 0x2e, 0x42, 0x54, 0x43, 0x53, 0x69, 0x67, 0x6e, 0x4e, 0x65, 0x78, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x62, 0x74, 0x63, 0x53, 0x69, 0x67, + 0x6e, 0x4e, 0x65, 0x78, 0x74, 0x12, 0x4e, 0x0a, 0x0c, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x62, 0x61, + 0x63, 0x6b, 0x75, 0x70, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, 0x68, + 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, + 0x30, 0x32, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x6c, 0x69, 0x73, 0x74, 0x42, 0x61, + 0x63, 0x6b, 0x75, 0x70, 0x73, 0x12, 0x4e, 0x0a, 0x0c, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x62, + 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, 0x68, + 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, + 0x30, 0x32, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x42, + 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x63, 0x0a, 0x13, 0x70, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, + 0x5f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, + 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x50, 0x65, 0x72, 0x66, 0x6f, 0x72, + 0x6d, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x12, 0x70, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x41, + 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4e, 0x0a, 0x0c, 0x63, 0x68, + 0x65, 0x63, 0x6b, 0x5f, 0x73, 0x64, 0x63, 0x61, 0x72, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x29, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, + 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x44, 0x43, + 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x63, + 0x68, 0x65, 0x63, 0x6b, 0x53, 0x64, 0x63, 0x61, 0x72, 0x64, 0x12, 0x35, 0x0a, 0x03, 0x65, 0x74, + 0x68, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x45, + 0x54, 0x48, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x03, 0x65, 0x74, + 0x68, 0x12, 0x51, 0x0a, 0x0b, 0x66, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, + 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x52, 0x6f, + 0x6f, 0x74, 0x46, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x66, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, + 0x72, 0x69, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x03, 0x62, 0x74, 0x63, 0x18, 0x0d, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x21, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, + 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x42, 0x54, 0x43, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x03, 0x62, 0x74, 0x63, 0x12, 0x6d, 0x0a, 0x17, 0x65, + 0x6c, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x5f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x73, + 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, + 0x78, 0x30, 0x32, 0x2e, 0x45, 0x6c, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x45, 0x6e, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x48, 0x00, 0x52, 0x15, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x45, 0x6e, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x41, 0x0a, 0x07, 0x63, 0x61, + 0x72, 0x64, 0x61, 0x6e, 0x6f, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x73, 0x68, + 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, + 0x30, 0x32, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x61, 0x6e, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x48, 0x00, 0x52, 0x07, 0x63, 0x61, 0x72, 0x64, 0x61, 0x6e, 0x6f, 0x42, 0x0a, 0x0a, + 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_hww_proto_rawDescOnce sync.Once + file_hww_proto_rawDescData = file_hww_proto_rawDesc +) -func (m *Response) GetFingerprint() *RootFingerprintResponse { - if x, ok := m.GetResponse().(*Response_Fingerprint); ok { - return x.Fingerprint +func file_hww_proto_rawDescGZIP() []byte { + file_hww_proto_rawDescOnce.Do(func() { + file_hww_proto_rawDescData = protoimpl.X.CompressGZIP(file_hww_proto_rawDescData) + }) + return file_hww_proto_rawDescData +} + +var file_hww_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_hww_proto_goTypes = []interface{}{ + (*Error)(nil), // 0: shiftcrypto.bitbox02.Error + (*Success)(nil), // 1: shiftcrypto.bitbox02.Success + (*Request)(nil), // 2: shiftcrypto.bitbox02.Request + (*Response)(nil), // 3: shiftcrypto.bitbox02.Response + (*SetDeviceNameRequest)(nil), // 4: shiftcrypto.bitbox02.SetDeviceNameRequest + (*SetDeviceLanguageRequest)(nil), // 5: shiftcrypto.bitbox02.SetDeviceLanguageRequest + (*DeviceInfoRequest)(nil), // 6: shiftcrypto.bitbox02.DeviceInfoRequest + (*SetPasswordRequest)(nil), // 7: shiftcrypto.bitbox02.SetPasswordRequest + (*CreateBackupRequest)(nil), // 8: shiftcrypto.bitbox02.CreateBackupRequest + (*ShowMnemonicRequest)(nil), // 9: shiftcrypto.bitbox02.ShowMnemonicRequest + (*BTCPubRequest)(nil), // 10: shiftcrypto.bitbox02.BTCPubRequest + (*BTCSignInitRequest)(nil), // 11: shiftcrypto.bitbox02.BTCSignInitRequest + (*BTCSignInputRequest)(nil), // 12: shiftcrypto.bitbox02.BTCSignInputRequest + (*BTCSignOutputRequest)(nil), // 13: shiftcrypto.bitbox02.BTCSignOutputRequest + (*InsertRemoveSDCardRequest)(nil), // 14: shiftcrypto.bitbox02.InsertRemoveSDCardRequest + (*CheckSDCardRequest)(nil), // 15: shiftcrypto.bitbox02.CheckSDCardRequest + (*SetMnemonicPassphraseEnabledRequest)(nil), // 16: shiftcrypto.bitbox02.SetMnemonicPassphraseEnabledRequest + (*ListBackupsRequest)(nil), // 17: shiftcrypto.bitbox02.ListBackupsRequest + (*RestoreBackupRequest)(nil), // 18: shiftcrypto.bitbox02.RestoreBackupRequest + (*PerformAttestationRequest)(nil), // 19: shiftcrypto.bitbox02.PerformAttestationRequest + (*RebootRequest)(nil), // 20: shiftcrypto.bitbox02.RebootRequest + (*CheckBackupRequest)(nil), // 21: shiftcrypto.bitbox02.CheckBackupRequest + (*ETHRequest)(nil), // 22: shiftcrypto.bitbox02.ETHRequest + (*ResetRequest)(nil), // 23: shiftcrypto.bitbox02.ResetRequest + (*RestoreFromMnemonicRequest)(nil), // 24: shiftcrypto.bitbox02.RestoreFromMnemonicRequest + (*RootFingerprintRequest)(nil), // 25: shiftcrypto.bitbox02.RootFingerprintRequest + (*BTCRequest)(nil), // 26: shiftcrypto.bitbox02.BTCRequest + (*ElectrumEncryptionKeyRequest)(nil), // 27: shiftcrypto.bitbox02.ElectrumEncryptionKeyRequest + (*CardanoRequest)(nil), // 28: shiftcrypto.bitbox02.CardanoRequest + (*DeviceInfoResponse)(nil), // 29: shiftcrypto.bitbox02.DeviceInfoResponse + (*PubResponse)(nil), // 30: shiftcrypto.bitbox02.PubResponse + (*BTCSignNextResponse)(nil), // 31: shiftcrypto.bitbox02.BTCSignNextResponse + (*ListBackupsResponse)(nil), // 32: shiftcrypto.bitbox02.ListBackupsResponse + (*CheckBackupResponse)(nil), // 33: shiftcrypto.bitbox02.CheckBackupResponse + (*PerformAttestationResponse)(nil), // 34: shiftcrypto.bitbox02.PerformAttestationResponse + (*CheckSDCardResponse)(nil), // 35: shiftcrypto.bitbox02.CheckSDCardResponse + (*ETHResponse)(nil), // 36: shiftcrypto.bitbox02.ETHResponse + (*RootFingerprintResponse)(nil), // 37: shiftcrypto.bitbox02.RootFingerprintResponse + (*BTCResponse)(nil), // 38: shiftcrypto.bitbox02.BTCResponse + (*ElectrumEncryptionKeyResponse)(nil), // 39: shiftcrypto.bitbox02.ElectrumEncryptionKeyResponse + (*CardanoResponse)(nil), // 40: shiftcrypto.bitbox02.CardanoResponse +} +var file_hww_proto_depIdxs = []int32{ + 4, // 0: shiftcrypto.bitbox02.Request.device_name:type_name -> shiftcrypto.bitbox02.SetDeviceNameRequest + 5, // 1: shiftcrypto.bitbox02.Request.device_language:type_name -> shiftcrypto.bitbox02.SetDeviceLanguageRequest + 6, // 2: shiftcrypto.bitbox02.Request.device_info:type_name -> shiftcrypto.bitbox02.DeviceInfoRequest + 7, // 3: shiftcrypto.bitbox02.Request.set_password:type_name -> shiftcrypto.bitbox02.SetPasswordRequest + 8, // 4: shiftcrypto.bitbox02.Request.create_backup:type_name -> shiftcrypto.bitbox02.CreateBackupRequest + 9, // 5: shiftcrypto.bitbox02.Request.show_mnemonic:type_name -> shiftcrypto.bitbox02.ShowMnemonicRequest + 10, // 6: shiftcrypto.bitbox02.Request.btc_pub:type_name -> shiftcrypto.bitbox02.BTCPubRequest + 11, // 7: shiftcrypto.bitbox02.Request.btc_sign_init:type_name -> shiftcrypto.bitbox02.BTCSignInitRequest + 12, // 8: shiftcrypto.bitbox02.Request.btc_sign_input:type_name -> shiftcrypto.bitbox02.BTCSignInputRequest + 13, // 9: shiftcrypto.bitbox02.Request.btc_sign_output:type_name -> shiftcrypto.bitbox02.BTCSignOutputRequest + 14, // 10: shiftcrypto.bitbox02.Request.insert_remove_sdcard:type_name -> shiftcrypto.bitbox02.InsertRemoveSDCardRequest + 15, // 11: shiftcrypto.bitbox02.Request.check_sdcard:type_name -> shiftcrypto.bitbox02.CheckSDCardRequest + 16, // 12: shiftcrypto.bitbox02.Request.set_mnemonic_passphrase_enabled:type_name -> shiftcrypto.bitbox02.SetMnemonicPassphraseEnabledRequest + 17, // 13: shiftcrypto.bitbox02.Request.list_backups:type_name -> shiftcrypto.bitbox02.ListBackupsRequest + 18, // 14: shiftcrypto.bitbox02.Request.restore_backup:type_name -> shiftcrypto.bitbox02.RestoreBackupRequest + 19, // 15: shiftcrypto.bitbox02.Request.perform_attestation:type_name -> shiftcrypto.bitbox02.PerformAttestationRequest + 20, // 16: shiftcrypto.bitbox02.Request.reboot:type_name -> shiftcrypto.bitbox02.RebootRequest + 21, // 17: shiftcrypto.bitbox02.Request.check_backup:type_name -> shiftcrypto.bitbox02.CheckBackupRequest + 22, // 18: shiftcrypto.bitbox02.Request.eth:type_name -> shiftcrypto.bitbox02.ETHRequest + 23, // 19: shiftcrypto.bitbox02.Request.reset:type_name -> shiftcrypto.bitbox02.ResetRequest + 24, // 20: shiftcrypto.bitbox02.Request.restore_from_mnemonic:type_name -> shiftcrypto.bitbox02.RestoreFromMnemonicRequest + 25, // 21: shiftcrypto.bitbox02.Request.fingerprint:type_name -> shiftcrypto.bitbox02.RootFingerprintRequest + 26, // 22: shiftcrypto.bitbox02.Request.btc:type_name -> shiftcrypto.bitbox02.BTCRequest + 27, // 23: shiftcrypto.bitbox02.Request.electrum_encryption_key:type_name -> shiftcrypto.bitbox02.ElectrumEncryptionKeyRequest + 28, // 24: shiftcrypto.bitbox02.Request.cardano:type_name -> shiftcrypto.bitbox02.CardanoRequest + 1, // 25: shiftcrypto.bitbox02.Response.success:type_name -> shiftcrypto.bitbox02.Success + 0, // 26: shiftcrypto.bitbox02.Response.error:type_name -> shiftcrypto.bitbox02.Error + 29, // 27: shiftcrypto.bitbox02.Response.device_info:type_name -> shiftcrypto.bitbox02.DeviceInfoResponse + 30, // 28: shiftcrypto.bitbox02.Response.pub:type_name -> shiftcrypto.bitbox02.PubResponse + 31, // 29: shiftcrypto.bitbox02.Response.btc_sign_next:type_name -> shiftcrypto.bitbox02.BTCSignNextResponse + 32, // 30: shiftcrypto.bitbox02.Response.list_backups:type_name -> shiftcrypto.bitbox02.ListBackupsResponse + 33, // 31: shiftcrypto.bitbox02.Response.check_backup:type_name -> shiftcrypto.bitbox02.CheckBackupResponse + 34, // 32: shiftcrypto.bitbox02.Response.perform_attestation:type_name -> shiftcrypto.bitbox02.PerformAttestationResponse + 35, // 33: shiftcrypto.bitbox02.Response.check_sdcard:type_name -> shiftcrypto.bitbox02.CheckSDCardResponse + 36, // 34: shiftcrypto.bitbox02.Response.eth:type_name -> shiftcrypto.bitbox02.ETHResponse + 37, // 35: shiftcrypto.bitbox02.Response.fingerprint:type_name -> shiftcrypto.bitbox02.RootFingerprintResponse + 38, // 36: shiftcrypto.bitbox02.Response.btc:type_name -> shiftcrypto.bitbox02.BTCResponse + 39, // 37: shiftcrypto.bitbox02.Response.electrum_encryption_key:type_name -> shiftcrypto.bitbox02.ElectrumEncryptionKeyResponse + 40, // 38: shiftcrypto.bitbox02.Response.cardano:type_name -> shiftcrypto.bitbox02.CardanoResponse + 39, // [39:39] is the sub-list for method output_type + 39, // [39:39] is the sub-list for method input_type + 39, // [39:39] is the sub-list for extension type_name + 39, // [39:39] is the sub-list for extension extendee + 0, // [0:39] is the sub-list for field type_name +} + +func init() { file_hww_proto_init() } +func file_hww_proto_init() { + if File_hww_proto != nil { + return } - return nil -} - -func (m *Response) GetBtc() *BTCResponse { - if x, ok := m.GetResponse().(*Response_Btc); ok { - return x.Btc + file_common_proto_init() + file_backup_commands_proto_init() + file_bitbox02_system_proto_init() + file_btc_proto_init() + file_cardano_proto_init() + file_eth_proto_init() + file_keystore_proto_init() + file_mnemonic_proto_init() + file_system_proto_init() + file_perform_attestation_proto_init() + if !protoimpl.UnsafeEnabled { + file_hww_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Error); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_hww_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Success); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_hww_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_hww_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } - return nil -} - -func (m *Response) GetElectrumEncryptionKey() *ElectrumEncryptionKeyResponse { - if x, ok := m.GetResponse().(*Response_ElectrumEncryptionKey); ok { - return x.ElectrumEncryptionKey - } - return nil -} - -func (m *Response) GetCardano() *CardanoResponse { - if x, ok := m.GetResponse().(*Response_Cardano); ok { - return x.Cardano + file_hww_proto_msgTypes[2].OneofWrappers = []interface{}{ + (*Request_DeviceName)(nil), + (*Request_DeviceLanguage)(nil), + (*Request_DeviceInfo)(nil), + (*Request_SetPassword)(nil), + (*Request_CreateBackup)(nil), + (*Request_ShowMnemonic)(nil), + (*Request_BtcPub)(nil), + (*Request_BtcSignInit)(nil), + (*Request_BtcSignInput)(nil), + (*Request_BtcSignOutput)(nil), + (*Request_InsertRemoveSdcard)(nil), + (*Request_CheckSdcard)(nil), + (*Request_SetMnemonicPassphraseEnabled)(nil), + (*Request_ListBackups)(nil), + (*Request_RestoreBackup)(nil), + (*Request_PerformAttestation)(nil), + (*Request_Reboot)(nil), + (*Request_CheckBackup)(nil), + (*Request_Eth)(nil), + (*Request_Reset_)(nil), + (*Request_RestoreFromMnemonic)(nil), + (*Request_Fingerprint)(nil), + (*Request_Btc)(nil), + (*Request_ElectrumEncryptionKey)(nil), + (*Request_Cardano)(nil), } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Response) XXX_OneofWrappers() []interface{} { - return []interface{}{ + file_hww_proto_msgTypes[3].OneofWrappers = []interface{}{ (*Response_Success)(nil), (*Response_Error)(nil), (*Response_DeviceInfo)(nil), @@ -781,87 +1211,22 @@ func (*Response) XXX_OneofWrappers() []interface{} { (*Response_ElectrumEncryptionKey)(nil), (*Response_Cardano)(nil), } -} - -func init() { - proto.RegisterType((*Error)(nil), "shiftcrypto.bitbox02.Error") - proto.RegisterType((*Success)(nil), "shiftcrypto.bitbox02.Success") - proto.RegisterType((*Request)(nil), "shiftcrypto.bitbox02.Request") - proto.RegisterType((*Response)(nil), "shiftcrypto.bitbox02.Response") -} - -func init() { proto.RegisterFile("hww.proto", fileDescriptor_c12bd9e6412b8a05) } - -var fileDescriptor_c12bd9e6412b8a05 = []byte{ - // 1108 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x97, 0x5d, 0x53, 0xdb, 0x46, - 0x17, 0xc7, 0x1f, 0x82, 0xc1, 0xf6, 0xda, 0x26, 0x3c, 0x0b, 0x34, 0x1b, 0xd2, 0x4e, 0x29, 0x6d, - 0xa7, 0xb4, 0xd3, 0xd2, 0x0c, 0x94, 0x8b, 0x74, 0xa6, 0x9d, 0x06, 0x87, 0x4c, 0x20, 0xc1, 0x71, - 0x6c, 0x6e, 0x7a, 0xa5, 0x91, 0xe4, 0x63, 0xac, 0xc1, 0xd2, 0xaa, 0xbb, 0xab, 0x00, 0xb7, 0xfd, - 0x2a, 0xbd, 0xea, 0xb7, 0xec, 0xec, 0x8b, 0xb4, 0x8b, 0x91, 0x44, 0x7b, 0x27, 0xce, 0xfe, 0xcf, - 0xcf, 0xfb, 0x72, 0xf6, 0x7f, 0x16, 0xd4, 0x9e, 0x5d, 0x5f, 0xef, 0xa7, 0x8c, 0x0a, 0x8a, 0x37, - 0xf9, 0x2c, 0x9a, 0x8a, 0x90, 0xdd, 0xa6, 0x82, 0xee, 0x07, 0x91, 0x08, 0xe8, 0xcd, 0xf3, 0x83, - 0xed, 0x6e, 0x48, 0xe3, 0x98, 0x26, 0x5a, 0xb3, 0xbd, 0x15, 0xf8, 0xe1, 0x55, 0x96, 0x7a, 0x32, - 0xe8, 0x27, 0x13, 0x5e, 0x84, 0x8d, 0xdc, 0xe3, 0xb7, 0x5c, 0x40, 0x6c, 0xc2, 0xed, 0x40, 0x84, - 0xe6, 0xb3, 0x17, 0xfa, 0x6c, 0xe2, 0x27, 0x34, 0x1f, 0x01, 0x31, 0x33, 0x9f, 0x6b, 0x57, 0x70, - 0xcb, 0x05, 0x65, 0x90, 0xff, 0x1d, 0x27, 0x10, 0xd3, 0x24, 0xca, 0x33, 0xbb, 0x77, 0x90, 0x4f, - 0x53, 0x60, 0x53, 0xca, 0x62, 0xcf, 0x17, 0x02, 0xb8, 0xf0, 0x45, 0x94, 0xcf, 0x6d, 0xf7, 0x08, - 0xad, 0x9c, 0x30, 0x46, 0x19, 0xc6, 0xa8, 0x11, 0xd2, 0x09, 0x90, 0xa5, 0x9d, 0xa5, 0xbd, 0x95, - 0x91, 0xfa, 0xc6, 0x04, 0x35, 0x63, 0xe0, 0xdc, 0xbf, 0x04, 0xf2, 0x68, 0x67, 0x69, 0xaf, 0x3d, - 0xca, 0xff, 0xdc, 0x6d, 0xa3, 0xe6, 0x38, 0x0b, 0x43, 0xe0, 0x7c, 0xf7, 0xaf, 0x75, 0xd4, 0x1c, - 0xc1, 0x1f, 0x19, 0x70, 0x81, 0xcf, 0x51, 0x67, 0x02, 0x1f, 0xa3, 0x10, 0xbc, 0xc4, 0x8f, 0x75, - 0x52, 0xe7, 0xe0, 0xbb, 0xfd, 0xb2, 0x3d, 0xda, 0x1f, 0x83, 0x78, 0xa5, 0xb4, 0x03, 0x3f, 0x06, - 0x03, 0x78, 0xf3, 0xbf, 0x11, 0x9a, 0x14, 0x41, 0xfc, 0x3b, 0x7a, 0x6c, 0x70, 0x73, 0x3f, 0xb9, - 0xcc, 0xe4, 0x3c, 0x96, 0x15, 0x72, 0xff, 0x01, 0xe4, 0x3b, 0x23, 0xb7, 0xd8, 0xb5, 0xc9, 0x9d, - 0x01, 0x7c, 0x56, 0xcc, 0x34, 0x4a, 0xa6, 0x94, 0x34, 0x14, 0xf6, 0x9b, 0x72, 0xac, 0x66, 0x9e, - 0x26, 0x53, 0x7a, 0x6f, 0x9a, 0x32, 0x88, 0xcf, 0x51, 0x97, 0x83, 0xf0, 0x52, 0x9f, 0xf3, 0x6b, - 0xca, 0x26, 0x64, 0x45, 0xc1, 0xf6, 0x2a, 0xe7, 0x38, 0x34, 0x42, 0x4b, 0xeb, 0x70, 0x1b, 0xc5, - 0x43, 0xd4, 0x0b, 0x19, 0xf8, 0x02, 0x3c, 0x5d, 0x37, 0x64, 0x55, 0xf1, 0xbe, 0x2d, 0xe7, 0xf5, - 0x95, 0xf4, 0x58, 0x29, 0x2d, 0xb0, 0x1b, 0x3a, 0x61, 0x49, 0xe4, 0x33, 0x7a, 0xed, 0xe5, 0x45, - 0x42, 0x9a, 0x75, 0xc4, 0xf1, 0x8c, 0x5e, 0x9f, 0x1b, 0xa5, 0x43, 0xe4, 0x4e, 0x18, 0xff, 0x8a, - 0x9a, 0x81, 0x08, 0xbd, 0x34, 0x0b, 0x48, 0x4b, 0xb1, 0xbe, 0x2c, 0x67, 0x1d, 0x5f, 0xf4, 0x87, - 0x59, 0x60, 0x29, 0xab, 0x81, 0x08, 0x87, 0x59, 0x80, 0x07, 0xa8, 0x27, 0xf3, 0x79, 0x74, 0x99, - 0x78, 0x51, 0x12, 0x09, 0xd2, 0xae, 0xdb, 0xb3, 0xe3, 0x8b, 0xfe, 0x38, 0xba, 0x4c, 0x4e, 0x93, - 0x48, 0x38, 0x7b, 0x16, 0x88, 0x30, 0x8f, 0xe2, 0x0f, 0x68, 0xcd, 0xe1, 0xa5, 0x99, 0x20, 0xa8, - 0x6e, 0x89, 0x05, 0x30, 0xcd, 0x1c, 0x62, 0xb7, 0x20, 0xa6, 0x99, 0xc0, 0x17, 0xe8, 0x71, 0x81, - 0xa4, 0x99, 0x90, 0xcc, 0x4e, 0x5d, 0x3d, 0x1b, 0xe6, 0x7b, 0x25, 0xb5, 0xd0, 0x9e, 0x81, 0xea, - 0x38, 0x0e, 0xd1, 0x66, 0x94, 0x70, 0x60, 0xc2, 0x63, 0x10, 0xd3, 0x8f, 0xe0, 0xf1, 0x89, 0xbc, - 0xe4, 0xa4, 0xab, 0xd0, 0x3f, 0x96, 0xa3, 0x4f, 0x55, 0xc6, 0x48, 0x25, 0x8c, 0x5f, 0xf5, 0x7d, - 0xb7, 0x74, 0x70, 0xe4, 0x0e, 0x2a, 0x98, 0x2c, 0xc8, 0x70, 0x06, 0xe1, 0x55, 0x0e, 0xef, 0xd5, - 0x6d, 0x6e, 0x5f, 0x2a, 0x17, 0xa9, 0x1d, 0x95, 0x6f, 0x70, 0x7f, 0x2e, 0xa1, 0xcf, 0x65, 0x81, - 0xe7, 0xe5, 0xa3, 0x2a, 0x3d, 0x9d, 0x31, 0x9f, 0x83, 0x07, 0x89, 0x1f, 0xcc, 0x61, 0x42, 0xd6, - 0xd4, 0x4f, 0xbc, 0xa8, 0xac, 0xf9, 0xbc, 0x72, 0x86, 0x45, 0xea, 0x89, 0xce, 0xb4, 0xbf, 0xf9, - 0x29, 0xaf, 0x91, 0xc9, 0x35, 0xcd, 0x23, 0x2e, 0xcc, 0x9d, 0xe0, 0xe4, 0x71, 0xdd, 0x9a, 0xde, - 0x45, 0x5c, 0xe8, 0xda, 0xe7, 0xce, 0x9a, 0xe6, 0x36, 0x8a, 0xc7, 0x68, 0x8d, 0x81, 0x72, 0xd0, - 0xfc, 0x96, 0xad, 0xd7, 0x1d, 0xee, 0x48, 0x6b, 0x17, 0xaf, 0x59, 0x8f, 0xb9, 0x71, 0x1c, 0xa0, - 0x8d, 0x12, 0xa7, 0x25, 0xff, 0xaf, 0x3b, 0xdb, 0xa1, 0x4e, 0x78, 0x69, 0xf5, 0xce, 0xd9, 0xa6, - 0xf7, 0x06, 0xf1, 0x2f, 0x68, 0x95, 0x41, 0x40, 0xa9, 0x20, 0xb8, 0xee, 0xe2, 0x8d, 0x94, 0xc6, - 0xb9, 0x78, 0x3a, 0xc9, 0x96, 0x86, 0x59, 0xf5, 0xc6, 0x83, 0xa5, 0xb1, 0xb8, 0x66, 0x5d, 0x1a, - 0x66, 0xc5, 0x3f, 0xa1, 0x65, 0x10, 0x33, 0xb2, 0xa9, 0x28, 0x3b, 0xe5, 0x94, 0x93, 0x8b, 0x37, - 0x36, 0x5b, 0xca, 0xf1, 0xcf, 0x68, 0x85, 0x01, 0x07, 0x41, 0xb6, 0x54, 0xde, 0x6e, 0xe5, 0x9e, - 0x83, 0xb3, 0x02, 0x9d, 0x82, 0xa7, 0x68, 0x2b, 0x3f, 0xb8, 0x29, 0xa3, 0xb1, 0xf5, 0xb4, 0x4f, - 0x14, 0xeb, 0x79, 0xed, 0xf9, 0xbd, 0x66, 0x34, 0xbe, 0x6f, 0x6d, 0x1b, 0xec, 0xfe, 0x28, 0x1e, - 0xa2, 0xce, 0x34, 0x4a, 0x2e, 0x81, 0xa5, 0x2c, 0x4a, 0x04, 0x21, 0x8a, 0xfe, 0x7d, 0x05, 0x9d, - 0x52, 0xf1, 0xda, 0x8a, 0x9d, 0xbd, 0x72, 0x10, 0x72, 0xaf, 0x02, 0x11, 0x92, 0xa7, 0x75, 0x7b, - 0x75, 0x7c, 0xd1, 0x77, 0xf6, 0x2a, 0x10, 0x21, 0x9e, 0xa3, 0x27, 0x30, 0x87, 0x50, 0xb0, 0x2c, - 0xf6, 0x20, 0x51, 0xfa, 0x88, 0x26, 0xde, 0x15, 0xdc, 0x92, 0x6d, 0x45, 0x3a, 0xa8, 0xd8, 0x75, - 0x93, 0x74, 0x52, 0xe4, 0xbc, 0x85, 0x5b, 0xcb, 0xde, 0x82, 0xb2, 0x71, 0xfc, 0x1b, 0x6a, 0x9a, - 0x37, 0x07, 0x79, 0xa6, 0xe8, 0x5f, 0x55, 0x54, 0x86, 0x16, 0x59, 0x5e, 0x9e, 0x76, 0xdc, 0x46, - 0x4d, 0xa6, 0xa3, 0x67, 0x8d, 0xd6, 0xd2, 0xfa, 0xa3, 0xb3, 0x46, 0xeb, 0xc9, 0x3a, 0xd9, 0xfd, - 0xbb, 0x85, 0x5a, 0x23, 0xe0, 0x29, 0x4d, 0x38, 0xe0, 0x17, 0xa8, 0xc9, 0xf5, 0xeb, 0x41, 0x3d, - 0x37, 0x3a, 0x07, 0x9f, 0x55, 0xf8, 0x86, 0x16, 0x49, 0xbc, 0xd1, 0xe3, 0x43, 0xb4, 0x02, 0xf2, - 0xbd, 0x62, 0xde, 0x16, 0xcf, 0x2a, 0x16, 0x2f, 0x25, 0xb2, 0x66, 0x94, 0x16, 0xbf, 0x2d, 0x6b, - 0xf6, 0x7b, 0x0f, 0x37, 0x7b, 0x3d, 0xdd, 0x85, 0x6e, 0x7f, 0x84, 0x96, 0x65, 0xdb, 0xd3, 0x4d, - 0xfe, 0x8b, 0x8a, 0x4b, 0x2d, 0x7b, 0x5e, 0x91, 0x2d, 0xf5, 0xf8, 0xbd, 0xd3, 0xf1, 0x12, 0xb8, - 0x11, 0xf5, 0x5d, 0xdd, 0x34, 0x93, 0x01, 0xdc, 0x08, 0x07, 0x94, 0xb7, 0x3c, 0x19, 0xc6, 0x83, - 0x05, 0x43, 0xac, 0xed, 0xe9, 0x77, 0x0c, 0xd1, 0xf2, 0x5c, 0x47, 0x1c, 0x2c, 0x38, 0x43, 0xab, - 0xf6, 0xd5, 0xe1, 0x3a, 0x83, 0xe5, 0xb9, 0xd6, 0x10, 0x96, 0x9b, 0x61, 0xbb, 0xee, 0x9a, 0x96, - 0x99, 0x61, 0x41, 0x2f, 0x73, 0xc3, 0xc1, 0x42, 0xa7, 0x43, 0x0f, 0x4e, 0x3a, 0xef, 0x74, 0x0b, - 0x93, 0x36, 0xad, 0xee, 0x48, 0xfb, 0x59, 0xa7, 0xee, 0x70, 0x95, 0x9f, 0xd9, 0xc3, 0x95, 0x86, - 0xf6, 0xe1, 0xae, 0x59, 0xe8, 0x66, 0xfe, 0xc3, 0xbf, 0x34, 0x0b, 0x3b, 0x13, 0xd7, 0x2d, 0x8e, - 0xb4, 0x5b, 0xf4, 0xea, 0x66, 0xa2, 0xdc, 0xc2, 0xce, 0x44, 0xda, 0x45, 0x5c, 0x6d, 0x17, 0xba, - 0x45, 0x1f, 0xfe, 0x27, 0xbb, 0x28, 0xe0, 0x15, 0x7e, 0xf1, 0xd2, 0xfa, 0x85, 0x6e, 0xc8, 0x5f, - 0x3f, 0xe0, 0x17, 0x05, 0xb0, 0x30, 0x0c, 0x84, 0x5a, 0xcc, 0x84, 0xcf, 0x1a, 0xad, 0xe5, 0xf5, - 0x46, 0xb0, 0xaa, 0xfe, 0x35, 0x39, 0xfc, 0x27, 0x00, 0x00, 0xff, 0xff, 0x89, 0xeb, 0xe7, 0x53, - 0x67, 0x0d, 0x00, 0x00, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_hww_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_hww_proto_goTypes, + DependencyIndexes: file_hww_proto_depIdxs, + MessageInfos: file_hww_proto_msgTypes, + }.Build() + File_hww_proto = out.File + file_hww_proto_rawDesc = nil + file_hww_proto_goTypes = nil + file_hww_proto_depIdxs = nil } diff --git a/api/firmware/messages/keystore.pb.go b/api/firmware/messages/keystore.pb.go index 5e2fd2f..40fb928 100644 --- a/api/firmware/messages/keystore.pb.go +++ b/api/firmware/messages/keystore.pb.go @@ -1,119 +1,209 @@ +// This function can be used to get an identifying xpub at the keypath m/4541509'/1112098098'" +// The keypath argument has to be m/4541509'/1112098098' + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v3.6.1 // source: keystore.proto package messages import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +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) +) type ElectrumEncryptionKeyRequest struct { - Keypath []uint32 `protobuf:"varint,1,rep,packed,name=keypath,proto3" json:"keypath,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ElectrumEncryptionKeyRequest) Reset() { *m = ElectrumEncryptionKeyRequest{} } -func (m *ElectrumEncryptionKeyRequest) String() string { return proto.CompactTextString(m) } -func (*ElectrumEncryptionKeyRequest) ProtoMessage() {} -func (*ElectrumEncryptionKeyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ac3dafe49d0dc795, []int{0} + Keypath []uint32 `protobuf:"varint,1,rep,packed,name=keypath,proto3" json:"keypath,omitempty"` } -func (m *ElectrumEncryptionKeyRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ElectrumEncryptionKeyRequest.Unmarshal(m, b) -} -func (m *ElectrumEncryptionKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ElectrumEncryptionKeyRequest.Marshal(b, m, deterministic) -} -func (m *ElectrumEncryptionKeyRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ElectrumEncryptionKeyRequest.Merge(m, src) +func (x *ElectrumEncryptionKeyRequest) Reset() { + *x = ElectrumEncryptionKeyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_keystore_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ElectrumEncryptionKeyRequest) XXX_Size() int { - return xxx_messageInfo_ElectrumEncryptionKeyRequest.Size(m) + +func (x *ElectrumEncryptionKeyRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ElectrumEncryptionKeyRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ElectrumEncryptionKeyRequest.DiscardUnknown(m) + +func (*ElectrumEncryptionKeyRequest) ProtoMessage() {} + +func (x *ElectrumEncryptionKeyRequest) ProtoReflect() protoreflect.Message { + mi := &file_keystore_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) } -var xxx_messageInfo_ElectrumEncryptionKeyRequest proto.InternalMessageInfo +// Deprecated: Use ElectrumEncryptionKeyRequest.ProtoReflect.Descriptor instead. +func (*ElectrumEncryptionKeyRequest) Descriptor() ([]byte, []int) { + return file_keystore_proto_rawDescGZIP(), []int{0} +} -func (m *ElectrumEncryptionKeyRequest) GetKeypath() []uint32 { - if m != nil { - return m.Keypath +func (x *ElectrumEncryptionKeyRequest) GetKeypath() []uint32 { + if x != nil { + return x.Keypath } return nil } type ElectrumEncryptionKeyResponse struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ElectrumEncryptionKeyResponse) Reset() { *m = ElectrumEncryptionKeyResponse{} } -func (m *ElectrumEncryptionKeyResponse) String() string { return proto.CompactTextString(m) } -func (*ElectrumEncryptionKeyResponse) ProtoMessage() {} -func (*ElectrumEncryptionKeyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ac3dafe49d0dc795, []int{1} + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` } -func (m *ElectrumEncryptionKeyResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ElectrumEncryptionKeyResponse.Unmarshal(m, b) -} -func (m *ElectrumEncryptionKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ElectrumEncryptionKeyResponse.Marshal(b, m, deterministic) -} -func (m *ElectrumEncryptionKeyResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ElectrumEncryptionKeyResponse.Merge(m, src) +func (x *ElectrumEncryptionKeyResponse) Reset() { + *x = ElectrumEncryptionKeyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_keystore_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ElectrumEncryptionKeyResponse) XXX_Size() int { - return xxx_messageInfo_ElectrumEncryptionKeyResponse.Size(m) + +func (x *ElectrumEncryptionKeyResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ElectrumEncryptionKeyResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ElectrumEncryptionKeyResponse.DiscardUnknown(m) + +func (*ElectrumEncryptionKeyResponse) ProtoMessage() {} + +func (x *ElectrumEncryptionKeyResponse) ProtoReflect() protoreflect.Message { + mi := &file_keystore_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) } -var xxx_messageInfo_ElectrumEncryptionKeyResponse proto.InternalMessageInfo +// Deprecated: Use ElectrumEncryptionKeyResponse.ProtoReflect.Descriptor instead. +func (*ElectrumEncryptionKeyResponse) Descriptor() ([]byte, []int) { + return file_keystore_proto_rawDescGZIP(), []int{1} +} -func (m *ElectrumEncryptionKeyResponse) GetKey() string { - if m != nil { - return m.Key +func (x *ElectrumEncryptionKeyResponse) GetKey() string { + if x != nil { + return x.Key } return "" } -func init() { - proto.RegisterType((*ElectrumEncryptionKeyRequest)(nil), "shiftcrypto.bitbox02.ElectrumEncryptionKeyRequest") - proto.RegisterType((*ElectrumEncryptionKeyResponse)(nil), "shiftcrypto.bitbox02.ElectrumEncryptionKeyResponse") +var File_keystore_proto protoreflect.FileDescriptor + +var file_keystore_proto_rawDesc = []byte{ + 0x0a, 0x0e, 0x6b, 0x65, 0x79, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x14, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, + 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x22, 0x38, 0x0a, 0x1c, 0x45, 0x6c, 0x65, 0x63, 0x74, 0x72, + 0x75, 0x6d, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x70, 0x61, 0x74, + 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x70, 0x61, 0x74, 0x68, + 0x22, 0x31, 0x0a, 0x1d, 0x45, 0x6c, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x45, 0x6e, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func init() { proto.RegisterFile("keystore.proto", fileDescriptor_ac3dafe49d0dc795) } +var ( + file_keystore_proto_rawDescOnce sync.Once + file_keystore_proto_rawDescData = file_keystore_proto_rawDesc +) + +func file_keystore_proto_rawDescGZIP() []byte { + file_keystore_proto_rawDescOnce.Do(func() { + file_keystore_proto_rawDescData = protoimpl.X.CompressGZIP(file_keystore_proto_rawDescData) + }) + return file_keystore_proto_rawDescData +} + +var file_keystore_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_keystore_proto_goTypes = []interface{}{ + (*ElectrumEncryptionKeyRequest)(nil), // 0: shiftcrypto.bitbox02.ElectrumEncryptionKeyRequest + (*ElectrumEncryptionKeyResponse)(nil), // 1: shiftcrypto.bitbox02.ElectrumEncryptionKeyResponse +} +var file_keystore_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} -var fileDescriptor_ac3dafe49d0dc795 = []byte{ - // 144 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xcb, 0x4e, 0xad, 0x2c, - 0x2e, 0xc9, 0x2f, 0x4a, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x29, 0xce, 0xc8, 0x4c, - 0x2b, 0x49, 0x2e, 0xaa, 0x2c, 0x28, 0xc9, 0xd7, 0x4b, 0xca, 0x2c, 0x49, 0xca, 0xaf, 0x30, 0x30, - 0x52, 0xb2, 0xe0, 0x92, 0x71, 0xcd, 0x49, 0x4d, 0x2e, 0x29, 0x2a, 0xcd, 0x75, 0xcd, 0x03, 0x4b, - 0x66, 0xe6, 0xe7, 0x79, 0xa7, 0x56, 0x06, 0xa5, 0x16, 0x96, 0xa6, 0x16, 0x97, 0x08, 0x49, 0x70, - 0xb1, 0x67, 0xa7, 0x56, 0x16, 0x24, 0x96, 0x64, 0x48, 0x30, 0x2a, 0x30, 0x6b, 0xf0, 0x06, 0xc1, - 0xb8, 0x4a, 0x86, 0x5c, 0xb2, 0x38, 0x74, 0x16, 0x17, 0xe4, 0xe7, 0x15, 0xa7, 0x0a, 0x09, 0x70, - 0x31, 0x67, 0xa7, 0x56, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x81, 0x98, 0x49, 0x6c, 0x60, - 0x97, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xad, 0x32, 0xc2, 0x42, 0x9b, 0x00, 0x00, 0x00, +func init() { file_keystore_proto_init() } +func file_keystore_proto_init() { + if File_keystore_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_keystore_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ElectrumEncryptionKeyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_keystore_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ElectrumEncryptionKeyResponse); 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_keystore_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_keystore_proto_goTypes, + DependencyIndexes: file_keystore_proto_depIdxs, + MessageInfos: file_keystore_proto_msgTypes, + }.Build() + File_keystore_proto = out.File + file_keystore_proto_rawDesc = nil + file_keystore_proto_goTypes = nil + file_keystore_proto_depIdxs = nil } diff --git a/api/firmware/messages/mnemonic.pb.go b/api/firmware/messages/mnemonic.pb.go index c57573c..0f8985c 100644 --- a/api/firmware/messages/mnemonic.pb.go +++ b/api/firmware/messages/mnemonic.pb.go @@ -1,163 +1,284 @@ +// Copyright 2019 Shift Cryptosecurity AG +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v3.6.1 // source: mnemonic.proto package messages import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +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) +) type ShowMnemonicRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ShowMnemonicRequest) Reset() { *m = ShowMnemonicRequest{} } -func (m *ShowMnemonicRequest) String() string { return proto.CompactTextString(m) } -func (*ShowMnemonicRequest) ProtoMessage() {} -func (*ShowMnemonicRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4888928040813ede, []int{0} +func (x *ShowMnemonicRequest) Reset() { + *x = ShowMnemonicRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_mnemonic_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ShowMnemonicRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ShowMnemonicRequest.Unmarshal(m, b) -} -func (m *ShowMnemonicRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ShowMnemonicRequest.Marshal(b, m, deterministic) -} -func (m *ShowMnemonicRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ShowMnemonicRequest.Merge(m, src) -} -func (m *ShowMnemonicRequest) XXX_Size() int { - return xxx_messageInfo_ShowMnemonicRequest.Size(m) -} -func (m *ShowMnemonicRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ShowMnemonicRequest.DiscardUnknown(m) +func (x *ShowMnemonicRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ShowMnemonicRequest proto.InternalMessageInfo +func (*ShowMnemonicRequest) ProtoMessage() {} -type RestoreFromMnemonicRequest struct { - Timestamp uint32 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - TimezoneOffset int32 `protobuf:"varint,2,opt,name=timezone_offset,json=timezoneOffset,proto3" json:"timezone_offset,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ShowMnemonicRequest) ProtoReflect() protoreflect.Message { + mi := &file_mnemonic_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) } -func (m *RestoreFromMnemonicRequest) Reset() { *m = RestoreFromMnemonicRequest{} } -func (m *RestoreFromMnemonicRequest) String() string { return proto.CompactTextString(m) } -func (*RestoreFromMnemonicRequest) ProtoMessage() {} -func (*RestoreFromMnemonicRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4888928040813ede, []int{1} +// Deprecated: Use ShowMnemonicRequest.ProtoReflect.Descriptor instead. +func (*ShowMnemonicRequest) Descriptor() ([]byte, []int) { + return file_mnemonic_proto_rawDescGZIP(), []int{0} } -func (m *RestoreFromMnemonicRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RestoreFromMnemonicRequest.Unmarshal(m, b) -} -func (m *RestoreFromMnemonicRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RestoreFromMnemonicRequest.Marshal(b, m, deterministic) +type RestoreFromMnemonicRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Timestamp uint32 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + TimezoneOffset int32 `protobuf:"varint,2,opt,name=timezone_offset,json=timezoneOffset,proto3" json:"timezone_offset,omitempty"` } -func (m *RestoreFromMnemonicRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RestoreFromMnemonicRequest.Merge(m, src) + +func (x *RestoreFromMnemonicRequest) Reset() { + *x = RestoreFromMnemonicRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_mnemonic_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RestoreFromMnemonicRequest) XXX_Size() int { - return xxx_messageInfo_RestoreFromMnemonicRequest.Size(m) + +func (x *RestoreFromMnemonicRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RestoreFromMnemonicRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RestoreFromMnemonicRequest.DiscardUnknown(m) + +func (*RestoreFromMnemonicRequest) ProtoMessage() {} + +func (x *RestoreFromMnemonicRequest) ProtoReflect() protoreflect.Message { + mi := &file_mnemonic_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) } -var xxx_messageInfo_RestoreFromMnemonicRequest proto.InternalMessageInfo +// Deprecated: Use RestoreFromMnemonicRequest.ProtoReflect.Descriptor instead. +func (*RestoreFromMnemonicRequest) Descriptor() ([]byte, []int) { + return file_mnemonic_proto_rawDescGZIP(), []int{1} +} -func (m *RestoreFromMnemonicRequest) GetTimestamp() uint32 { - if m != nil { - return m.Timestamp +func (x *RestoreFromMnemonicRequest) GetTimestamp() uint32 { + if x != nil { + return x.Timestamp } return 0 } -func (m *RestoreFromMnemonicRequest) GetTimezoneOffset() int32 { - if m != nil { - return m.TimezoneOffset +func (x *RestoreFromMnemonicRequest) GetTimezoneOffset() int32 { + if x != nil { + return x.TimezoneOffset } return 0 } type SetMnemonicPassphraseEnabledRequest struct { - Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` } -func (m *SetMnemonicPassphraseEnabledRequest) Reset() { *m = SetMnemonicPassphraseEnabledRequest{} } -func (m *SetMnemonicPassphraseEnabledRequest) String() string { return proto.CompactTextString(m) } -func (*SetMnemonicPassphraseEnabledRequest) ProtoMessage() {} -func (*SetMnemonicPassphraseEnabledRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4888928040813ede, []int{2} +func (x *SetMnemonicPassphraseEnabledRequest) Reset() { + *x = SetMnemonicPassphraseEnabledRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_mnemonic_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SetMnemonicPassphraseEnabledRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetMnemonicPassphraseEnabledRequest.Unmarshal(m, b) +func (x *SetMnemonicPassphraseEnabledRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SetMnemonicPassphraseEnabledRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetMnemonicPassphraseEnabledRequest.Marshal(b, m, deterministic) + +func (*SetMnemonicPassphraseEnabledRequest) ProtoMessage() {} + +func (x *SetMnemonicPassphraseEnabledRequest) ProtoReflect() protoreflect.Message { + mi := &file_mnemonic_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) } -func (m *SetMnemonicPassphraseEnabledRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetMnemonicPassphraseEnabledRequest.Merge(m, src) + +// Deprecated: Use SetMnemonicPassphraseEnabledRequest.ProtoReflect.Descriptor instead. +func (*SetMnemonicPassphraseEnabledRequest) Descriptor() ([]byte, []int) { + return file_mnemonic_proto_rawDescGZIP(), []int{2} } -func (m *SetMnemonicPassphraseEnabledRequest) XXX_Size() int { - return xxx_messageInfo_SetMnemonicPassphraseEnabledRequest.Size(m) + +func (x *SetMnemonicPassphraseEnabledRequest) GetEnabled() bool { + if x != nil { + return x.Enabled + } + return false } -func (m *SetMnemonicPassphraseEnabledRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SetMnemonicPassphraseEnabledRequest.DiscardUnknown(m) + +var File_mnemonic_proto protoreflect.FileDescriptor + +var file_mnemonic_proto_rawDesc = []byte{ + 0x0a, 0x0e, 0x6d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x14, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, + 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x22, 0x15, 0x0a, 0x13, 0x53, 0x68, 0x6f, 0x77, 0x4d, 0x6e, + 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x63, 0x0a, + 0x1a, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x4d, 0x6e, 0x65, 0x6d, + 0x6f, 0x6e, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, + 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x69, 0x6d, + 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x0e, 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x4f, 0x66, 0x66, 0x73, + 0x65, 0x74, 0x22, 0x3f, 0x0a, 0x23, 0x53, 0x65, 0x74, 0x4d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, + 0x63, 0x50, 0x61, 0x73, 0x73, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x45, 0x6e, 0x61, 0x62, 0x6c, + 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var xxx_messageInfo_SetMnemonicPassphraseEnabledRequest proto.InternalMessageInfo +var ( + file_mnemonic_proto_rawDescOnce sync.Once + file_mnemonic_proto_rawDescData = file_mnemonic_proto_rawDesc +) -func (m *SetMnemonicPassphraseEnabledRequest) GetEnabled() bool { - if m != nil { - return m.Enabled - } - return false +func file_mnemonic_proto_rawDescGZIP() []byte { + file_mnemonic_proto_rawDescOnce.Do(func() { + file_mnemonic_proto_rawDescData = protoimpl.X.CompressGZIP(file_mnemonic_proto_rawDescData) + }) + return file_mnemonic_proto_rawDescData } -func init() { - proto.RegisterType((*ShowMnemonicRequest)(nil), "shiftcrypto.bitbox02.ShowMnemonicRequest") - proto.RegisterType((*RestoreFromMnemonicRequest)(nil), "shiftcrypto.bitbox02.RestoreFromMnemonicRequest") - proto.RegisterType((*SetMnemonicPassphraseEnabledRequest)(nil), "shiftcrypto.bitbox02.SetMnemonicPassphraseEnabledRequest") -} - -func init() { proto.RegisterFile("mnemonic.proto", fileDescriptor_4888928040813ede) } - -var fileDescriptor_4888928040813ede = []byte{ - // 194 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xcb, 0xcd, 0x4b, 0xcd, - 0xcd, 0xcf, 0xcb, 0x4c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x29, 0xce, 0xc8, 0x4c, - 0x2b, 0x49, 0x2e, 0xaa, 0x2c, 0x28, 0xc9, 0xd7, 0x4b, 0xca, 0x2c, 0x49, 0xca, 0xaf, 0x30, 0x30, - 0x52, 0x12, 0xe5, 0x12, 0x0e, 0xce, 0xc8, 0x2f, 0xf7, 0x85, 0xaa, 0x0d, 0x4a, 0x2d, 0x2c, 0x4d, - 0x2d, 0x2e, 0x51, 0x4a, 0xe6, 0x92, 0x0a, 0x4a, 0x2d, 0x2e, 0xc9, 0x2f, 0x4a, 0x75, 0x2b, 0xca, - 0xcf, 0x45, 0x93, 0x15, 0x92, 0xe1, 0xe2, 0x2c, 0xc9, 0xcc, 0x4d, 0x2d, 0x2e, 0x49, 0xcc, 0x2d, - 0x90, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0d, 0x42, 0x08, 0x08, 0xa9, 0x73, 0xf1, 0x83, 0x38, 0x55, - 0xf9, 0x79, 0xa9, 0xf1, 0xf9, 0x69, 0x69, 0xc5, 0xa9, 0x25, 0x12, 0x4c, 0x0a, 0x8c, 0x1a, 0xac, - 0x41, 0x7c, 0x30, 0x61, 0x7f, 0xb0, 0xa8, 0x92, 0x3d, 0x97, 0x72, 0x70, 0x6a, 0x09, 0xcc, 0xf0, - 0x80, 0xc4, 0xe2, 0xe2, 0x82, 0x8c, 0xa2, 0xc4, 0xe2, 0x54, 0xd7, 0xbc, 0xc4, 0xa4, 0x9c, 0xd4, - 0x14, 0x98, 0x6d, 0x12, 0x5c, 0xec, 0xa9, 0x10, 0x11, 0xb0, 0x5d, 0x1c, 0x41, 0x30, 0x6e, 0x12, - 0x1b, 0xd8, 0x67, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xad, 0x44, 0x19, 0xb4, 0xeb, 0x00, - 0x00, 0x00, +var file_mnemonic_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_mnemonic_proto_goTypes = []interface{}{ + (*ShowMnemonicRequest)(nil), // 0: shiftcrypto.bitbox02.ShowMnemonicRequest + (*RestoreFromMnemonicRequest)(nil), // 1: shiftcrypto.bitbox02.RestoreFromMnemonicRequest + (*SetMnemonicPassphraseEnabledRequest)(nil), // 2: shiftcrypto.bitbox02.SetMnemonicPassphraseEnabledRequest +} +var file_mnemonic_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_mnemonic_proto_init() } +func file_mnemonic_proto_init() { + if File_mnemonic_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_mnemonic_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ShowMnemonicRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mnemonic_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RestoreFromMnemonicRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mnemonic_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetMnemonicPassphraseEnabledRequest); 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_mnemonic_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_mnemonic_proto_goTypes, + DependencyIndexes: file_mnemonic_proto_depIdxs, + MessageInfos: file_mnemonic_proto_msgTypes, + }.Build() + File_mnemonic_proto = out.File + file_mnemonic_proto_rawDesc = nil + file_mnemonic_proto_goTypes = nil + file_mnemonic_proto_depIdxs = nil } diff --git a/api/firmware/messages/perform_attestation.pb.go b/api/firmware/messages/perform_attestation.pb.go index cb36108..11c4f75 100644 --- a/api/firmware/messages/perform_attestation.pb.go +++ b/api/firmware/messages/perform_attestation.pb.go @@ -1,161 +1,254 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v3.6.1 // source: perform_attestation.proto package messages import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +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) +) // Deprecated, last used in v1.0.0 type PerformAttestationRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // 32 bytes challenge. - Challenge []byte `protobuf:"bytes,1,opt,name=challenge,proto3" json:"challenge,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Challenge []byte `protobuf:"bytes,1,opt,name=challenge,proto3" json:"challenge,omitempty"` } -func (m *PerformAttestationRequest) Reset() { *m = PerformAttestationRequest{} } -func (m *PerformAttestationRequest) String() string { return proto.CompactTextString(m) } -func (*PerformAttestationRequest) ProtoMessage() {} -func (*PerformAttestationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_174e824e996c9fb5, []int{0} +func (x *PerformAttestationRequest) Reset() { + *x = PerformAttestationRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_perform_attestation_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *PerformAttestationRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PerformAttestationRequest.Unmarshal(m, b) -} -func (m *PerformAttestationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PerformAttestationRequest.Marshal(b, m, deterministic) -} -func (m *PerformAttestationRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PerformAttestationRequest.Merge(m, src) -} -func (m *PerformAttestationRequest) XXX_Size() int { - return xxx_messageInfo_PerformAttestationRequest.Size(m) +func (x *PerformAttestationRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PerformAttestationRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PerformAttestationRequest.DiscardUnknown(m) + +func (*PerformAttestationRequest) ProtoMessage() {} + +func (x *PerformAttestationRequest) ProtoReflect() protoreflect.Message { + mi := &file_perform_attestation_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) } -var xxx_messageInfo_PerformAttestationRequest proto.InternalMessageInfo +// Deprecated: Use PerformAttestationRequest.ProtoReflect.Descriptor instead. +func (*PerformAttestationRequest) Descriptor() ([]byte, []int) { + return file_perform_attestation_proto_rawDescGZIP(), []int{0} +} -func (m *PerformAttestationRequest) GetChallenge() []byte { - if m != nil { - return m.Challenge +func (x *PerformAttestationRequest) GetChallenge() []byte { + if x != nil { + return x.Challenge } return nil } // Deprecated, last used in v1.0.0 type PerformAttestationResponse struct { - BootloaderHash []byte `protobuf:"bytes,1,opt,name=bootloader_hash,json=bootloaderHash,proto3" json:"bootloader_hash,omitempty"` - DevicePubkey []byte `protobuf:"bytes,2,opt,name=device_pubkey,json=devicePubkey,proto3" json:"device_pubkey,omitempty"` - Certificate []byte `protobuf:"bytes,3,opt,name=certificate,proto3" json:"certificate,omitempty"` - RootPubkeyIdentifier []byte `protobuf:"bytes,4,opt,name=root_pubkey_identifier,json=rootPubkeyIdentifier,proto3" json:"root_pubkey_identifier,omitempty"` - ChallengeSignature []byte `protobuf:"bytes,5,opt,name=challenge_signature,json=challengeSignature,proto3" json:"challenge_signature,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PerformAttestationResponse) Reset() { *m = PerformAttestationResponse{} } -func (m *PerformAttestationResponse) String() string { return proto.CompactTextString(m) } -func (*PerformAttestationResponse) ProtoMessage() {} -func (*PerformAttestationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_174e824e996c9fb5, []int{1} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BootloaderHash []byte `protobuf:"bytes,1,opt,name=bootloader_hash,json=bootloaderHash,proto3" json:"bootloader_hash,omitempty"` + DevicePubkey []byte `protobuf:"bytes,2,opt,name=device_pubkey,json=devicePubkey,proto3" json:"device_pubkey,omitempty"` + Certificate []byte `protobuf:"bytes,3,opt,name=certificate,proto3" json:"certificate,omitempty"` + RootPubkeyIdentifier []byte `protobuf:"bytes,4,opt,name=root_pubkey_identifier,json=rootPubkeyIdentifier,proto3" json:"root_pubkey_identifier,omitempty"` + ChallengeSignature []byte `protobuf:"bytes,5,opt,name=challenge_signature,json=challengeSignature,proto3" json:"challenge_signature,omitempty"` +} + +func (x *PerformAttestationResponse) Reset() { + *x = PerformAttestationResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_perform_attestation_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *PerformAttestationResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PerformAttestationResponse.Unmarshal(m, b) -} -func (m *PerformAttestationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PerformAttestationResponse.Marshal(b, m, deterministic) +func (x *PerformAttestationResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PerformAttestationResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PerformAttestationResponse.Merge(m, src) -} -func (m *PerformAttestationResponse) XXX_Size() int { - return xxx_messageInfo_PerformAttestationResponse.Size(m) -} -func (m *PerformAttestationResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PerformAttestationResponse.DiscardUnknown(m) + +func (*PerformAttestationResponse) ProtoMessage() {} + +func (x *PerformAttestationResponse) ProtoReflect() protoreflect.Message { + mi := &file_perform_attestation_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) } -var xxx_messageInfo_PerformAttestationResponse proto.InternalMessageInfo +// Deprecated: Use PerformAttestationResponse.ProtoReflect.Descriptor instead. +func (*PerformAttestationResponse) Descriptor() ([]byte, []int) { + return file_perform_attestation_proto_rawDescGZIP(), []int{1} +} -func (m *PerformAttestationResponse) GetBootloaderHash() []byte { - if m != nil { - return m.BootloaderHash +func (x *PerformAttestationResponse) GetBootloaderHash() []byte { + if x != nil { + return x.BootloaderHash } return nil } -func (m *PerformAttestationResponse) GetDevicePubkey() []byte { - if m != nil { - return m.DevicePubkey +func (x *PerformAttestationResponse) GetDevicePubkey() []byte { + if x != nil { + return x.DevicePubkey } return nil } -func (m *PerformAttestationResponse) GetCertificate() []byte { - if m != nil { - return m.Certificate +func (x *PerformAttestationResponse) GetCertificate() []byte { + if x != nil { + return x.Certificate } return nil } -func (m *PerformAttestationResponse) GetRootPubkeyIdentifier() []byte { - if m != nil { - return m.RootPubkeyIdentifier +func (x *PerformAttestationResponse) GetRootPubkeyIdentifier() []byte { + if x != nil { + return x.RootPubkeyIdentifier } return nil } -func (m *PerformAttestationResponse) GetChallengeSignature() []byte { - if m != nil { - return m.ChallengeSignature +func (x *PerformAttestationResponse) GetChallengeSignature() []byte { + if x != nil { + return x.ChallengeSignature } return nil } -func init() { - proto.RegisterType((*PerformAttestationRequest)(nil), "shiftcrypto.bitbox02.PerformAttestationRequest") - proto.RegisterType((*PerformAttestationResponse)(nil), "shiftcrypto.bitbox02.PerformAttestationResponse") -} - -func init() { proto.RegisterFile("perform_attestation.proto", fileDescriptor_174e824e996c9fb5) } - -var fileDescriptor_174e824e996c9fb5 = []byte{ - // 249 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xbd, 0x4e, 0xc3, 0x30, - 0x14, 0x85, 0x15, 0xfe, 0x24, 0x4c, 0x01, 0xc9, 0x54, 0xc8, 0x45, 0x0c, 0x55, 0x19, 0x60, 0x2a, - 0x08, 0x58, 0x18, 0xd9, 0x60, 0xab, 0xca, 0x03, 0x58, 0xb6, 0x73, 0x53, 0x5b, 0x04, 0x5f, 0x63, - 0xdf, 0x20, 0xfa, 0xdc, 0xbc, 0x00, 0xaa, 0x13, 0x12, 0x86, 0xae, 0xdf, 0x77, 0xce, 0x91, 0xee, - 0x65, 0x93, 0x00, 0xb1, 0xc2, 0xf8, 0x21, 0x15, 0x11, 0x24, 0x52, 0xe4, 0xd0, 0xcf, 0x43, 0x44, - 0x42, 0x3e, 0x4e, 0xd6, 0x55, 0x64, 0xe2, 0x3a, 0x10, 0xce, 0xb5, 0x23, 0x8d, 0xdf, 0x77, 0xf7, - 0xb3, 0x27, 0x36, 0x59, 0xb4, 0x95, 0xe7, 0xa1, 0xb1, 0x84, 0xcf, 0x06, 0x12, 0xf1, 0x4b, 0x76, - 0x68, 0xac, 0xaa, 0x6b, 0xf0, 0x2b, 0x10, 0xc5, 0xb4, 0xb8, 0x19, 0x2d, 0x07, 0x30, 0xfb, 0x29, - 0xd8, 0xc5, 0xb6, 0x6e, 0x0a, 0xe8, 0x13, 0xf0, 0x6b, 0x76, 0xaa, 0x11, 0xa9, 0x46, 0x55, 0x42, - 0x94, 0x56, 0x25, 0xdb, 0x4d, 0x9c, 0x0c, 0xf8, 0x45, 0x25, 0xcb, 0xaf, 0xd8, 0x71, 0x09, 0x5f, - 0xce, 0x80, 0x0c, 0x8d, 0x7e, 0x87, 0xb5, 0xd8, 0xc9, 0xb1, 0x51, 0x0b, 0x17, 0x99, 0xf1, 0x29, - 0x3b, 0x32, 0x10, 0xc9, 0x55, 0xce, 0x28, 0x02, 0xb1, 0x9b, 0x23, 0xff, 0x11, 0x7f, 0x64, 0xe7, - 0x11, 0x91, 0xba, 0x11, 0xe9, 0x4a, 0xf0, 0x1b, 0x07, 0x51, 0xec, 0xe5, 0xf0, 0x78, 0x63, 0xdb, - 0xb5, 0xd7, 0xde, 0xf1, 0x5b, 0x76, 0xd6, 0x5f, 0x24, 0x93, 0x5b, 0x79, 0x45, 0x4d, 0x04, 0xb1, - 0x9f, 0x2b, 0xbc, 0x57, 0x6f, 0x7f, 0x46, 0x1f, 0xe4, 0x6f, 0x3e, 0xfc, 0x06, 0x00, 0x00, 0xff, - 0xff, 0xb8, 0x51, 0x99, 0x2b, 0x6a, 0x01, 0x00, 0x00, +var File_perform_attestation_proto protoreflect.FileDescriptor + +var file_perform_attestation_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x70, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x73, 0x68, 0x69, + 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, + 0x32, 0x22, 0x39, 0x0a, 0x19, 0x50, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x41, 0x74, 0x74, 0x65, + 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, + 0x0a, 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x22, 0xf3, 0x01, 0x0a, + 0x1a, 0x50, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x62, + 0x6f, 0x6f, 0x74, 0x6c, 0x6f, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x62, 0x6f, 0x6f, 0x74, 0x6c, 0x6f, 0x61, 0x64, 0x65, 0x72, + 0x48, 0x61, 0x73, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, + 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x64, 0x65, 0x76, + 0x69, 0x63, 0x65, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x65, 0x72, + 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, + 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x34, 0x0a, 0x16, 0x72, + 0x6f, 0x6f, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x14, 0x72, 0x6f, 0x6f, + 0x74, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x12, 0x2f, 0x0a, 0x13, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x5f, 0x73, + 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x12, + 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, + 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_perform_attestation_proto_rawDescOnce sync.Once + file_perform_attestation_proto_rawDescData = file_perform_attestation_proto_rawDesc +) + +func file_perform_attestation_proto_rawDescGZIP() []byte { + file_perform_attestation_proto_rawDescOnce.Do(func() { + file_perform_attestation_proto_rawDescData = protoimpl.X.CompressGZIP(file_perform_attestation_proto_rawDescData) + }) + return file_perform_attestation_proto_rawDescData +} + +var file_perform_attestation_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_perform_attestation_proto_goTypes = []interface{}{ + (*PerformAttestationRequest)(nil), // 0: shiftcrypto.bitbox02.PerformAttestationRequest + (*PerformAttestationResponse)(nil), // 1: shiftcrypto.bitbox02.PerformAttestationResponse +} +var file_perform_attestation_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_perform_attestation_proto_init() } +func file_perform_attestation_proto_init() { + if File_perform_attestation_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_perform_attestation_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PerformAttestationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_perform_attestation_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PerformAttestationResponse); 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_perform_attestation_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_perform_attestation_proto_goTypes, + DependencyIndexes: file_perform_attestation_proto_depIdxs, + MessageInfos: file_perform_attestation_proto_msgTypes, + }.Build() + File_perform_attestation_proto = out.File + file_perform_attestation_proto_rawDesc = nil + file_perform_attestation_proto_goTypes = nil + file_perform_attestation_proto_depIdxs = nil } diff --git a/api/firmware/messages/system.pb.go b/api/firmware/messages/system.pb.go index 2087a86..e0189d0 100644 --- a/api/firmware/messages/system.pb.go +++ b/api/firmware/messages/system.pb.go @@ -1,24 +1,38 @@ +// Copyright 2019 Shift Cryptosecurity AG +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v3.6.1 // source: system.proto package messages import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +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) +) type RebootRequest_Purpose int32 @@ -27,80 +41,171 @@ const ( RebootRequest_SETTINGS RebootRequest_Purpose = 1 ) -var RebootRequest_Purpose_name = map[int32]string{ - 0: "UPGRADE", - 1: "SETTINGS", -} +// Enum value maps for RebootRequest_Purpose. +var ( + RebootRequest_Purpose_name = map[int32]string{ + 0: "UPGRADE", + 1: "SETTINGS", + } + RebootRequest_Purpose_value = map[string]int32{ + "UPGRADE": 0, + "SETTINGS": 1, + } +) -var RebootRequest_Purpose_value = map[string]int32{ - "UPGRADE": 0, - "SETTINGS": 1, +func (x RebootRequest_Purpose) Enum() *RebootRequest_Purpose { + p := new(RebootRequest_Purpose) + *p = x + return p } func (x RebootRequest_Purpose) String() string { - return proto.EnumName(RebootRequest_Purpose_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (RebootRequest_Purpose) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_86a7260ebdc12f47, []int{0, 0} +func (RebootRequest_Purpose) Descriptor() protoreflect.EnumDescriptor { + return file_system_proto_enumTypes[0].Descriptor() } -type RebootRequest struct { - Purpose RebootRequest_Purpose `protobuf:"varint,1,opt,name=purpose,proto3,enum=shiftcrypto.bitbox02.RebootRequest_Purpose" json:"purpose,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (RebootRequest_Purpose) Type() protoreflect.EnumType { + return &file_system_proto_enumTypes[0] } -func (m *RebootRequest) Reset() { *m = RebootRequest{} } -func (m *RebootRequest) String() string { return proto.CompactTextString(m) } -func (*RebootRequest) ProtoMessage() {} -func (*RebootRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_86a7260ebdc12f47, []int{0} +func (x RebootRequest_Purpose) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *RebootRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RebootRequest.Unmarshal(m, b) +// Deprecated: Use RebootRequest_Purpose.Descriptor instead. +func (RebootRequest_Purpose) EnumDescriptor() ([]byte, []int) { + return file_system_proto_rawDescGZIP(), []int{0, 0} } -func (m *RebootRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RebootRequest.Marshal(b, m, deterministic) + +type RebootRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Purpose RebootRequest_Purpose `protobuf:"varint,1,opt,name=purpose,proto3,enum=shiftcrypto.bitbox02.RebootRequest_Purpose" json:"purpose,omitempty"` } -func (m *RebootRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RebootRequest.Merge(m, src) + +func (x *RebootRequest) Reset() { + *x = RebootRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_system_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RebootRequest) XXX_Size() int { - return xxx_messageInfo_RebootRequest.Size(m) + +func (x *RebootRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RebootRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RebootRequest.DiscardUnknown(m) + +func (*RebootRequest) ProtoMessage() {} + +func (x *RebootRequest) ProtoReflect() protoreflect.Message { + mi := &file_system_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) } -var xxx_messageInfo_RebootRequest proto.InternalMessageInfo +// Deprecated: Use RebootRequest.ProtoReflect.Descriptor instead. +func (*RebootRequest) Descriptor() ([]byte, []int) { + return file_system_proto_rawDescGZIP(), []int{0} +} -func (m *RebootRequest) GetPurpose() RebootRequest_Purpose { - if m != nil { - return m.Purpose +func (x *RebootRequest) GetPurpose() RebootRequest_Purpose { + if x != nil { + return x.Purpose } return RebootRequest_UPGRADE } -func init() { - proto.RegisterEnum("shiftcrypto.bitbox02.RebootRequest_Purpose", RebootRequest_Purpose_name, RebootRequest_Purpose_value) - proto.RegisterType((*RebootRequest)(nil), "shiftcrypto.bitbox02.RebootRequest") +var File_system_proto protoreflect.FileDescriptor + +var file_system_proto_rawDesc = []byte{ + 0x0a, 0x0c, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, + 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, + 0x6f, 0x78, 0x30, 0x32, 0x22, 0x7c, 0x0a, 0x0d, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x45, 0x0a, 0x07, 0x70, 0x75, 0x72, 0x70, 0x6f, 0x73, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x73, 0x68, 0x69, 0x66, 0x74, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x62, 0x69, 0x74, 0x62, 0x6f, 0x78, 0x30, 0x32, 0x2e, 0x52, 0x65, + 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x50, 0x75, 0x72, 0x70, + 0x6f, 0x73, 0x65, 0x52, 0x07, 0x70, 0x75, 0x72, 0x70, 0x6f, 0x73, 0x65, 0x22, 0x24, 0x0a, 0x07, + 0x50, 0x75, 0x72, 0x70, 0x6f, 0x73, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x50, 0x47, 0x52, 0x41, + 0x44, 0x45, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x45, 0x54, 0x54, 0x49, 0x4e, 0x47, 0x53, + 0x10, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func init() { proto.RegisterFile("system.proto", fileDescriptor_86a7260ebdc12f47) } +var ( + file_system_proto_rawDescOnce sync.Once + file_system_proto_rawDescData = file_system_proto_rawDesc +) -var fileDescriptor_86a7260ebdc12f47 = []byte{ - // 148 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x29, 0xae, 0x2c, 0x2e, - 0x49, 0xcd, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x29, 0xce, 0xc8, 0x4c, 0x2b, 0x49, - 0x2e, 0xaa, 0x2c, 0x28, 0xc9, 0xd7, 0x4b, 0xca, 0x2c, 0x49, 0xca, 0xaf, 0x30, 0x30, 0x52, 0xaa, - 0xe1, 0xe2, 0x0d, 0x4a, 0x4d, 0xca, 0xcf, 0x2f, 0x09, 0x4a, 0x2d, 0x2c, 0x4d, 0x2d, 0x2e, 0x11, - 0x72, 0xe5, 0x62, 0x2f, 0x28, 0x2d, 0x2a, 0xc8, 0x2f, 0x4e, 0x95, 0x60, 0x54, 0x60, 0xd4, 0xe0, - 0x33, 0xd2, 0xd6, 0xc3, 0xa6, 0x51, 0x0f, 0x45, 0x97, 0x5e, 0x00, 0x44, 0x4b, 0x10, 0x4c, 0xaf, - 0x92, 0x0a, 0x17, 0x3b, 0x54, 0x4c, 0x88, 0x9b, 0x8b, 0x3d, 0x34, 0xc0, 0x3d, 0xc8, 0xd1, 0xc5, - 0x55, 0x80, 0x41, 0x88, 0x87, 0x8b, 0x23, 0xd8, 0x35, 0x24, 0xc4, 0xd3, 0xcf, 0x3d, 0x58, 0x80, - 0x31, 0x89, 0x0d, 0xec, 0x34, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x55, 0x7e, 0x92, 0xc7, - 0xaa, 0x00, 0x00, 0x00, +func file_system_proto_rawDescGZIP() []byte { + file_system_proto_rawDescOnce.Do(func() { + file_system_proto_rawDescData = protoimpl.X.CompressGZIP(file_system_proto_rawDescData) + }) + return file_system_proto_rawDescData +} + +var file_system_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_system_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_system_proto_goTypes = []interface{}{ + (RebootRequest_Purpose)(0), // 0: shiftcrypto.bitbox02.RebootRequest.Purpose + (*RebootRequest)(nil), // 1: shiftcrypto.bitbox02.RebootRequest +} +var file_system_proto_depIdxs = []int32{ + 0, // 0: shiftcrypto.bitbox02.RebootRequest.purpose:type_name -> shiftcrypto.bitbox02.RebootRequest.Purpose + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_system_proto_init() } +func file_system_proto_init() { + if File_system_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_system_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RebootRequest); 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_system_proto_rawDesc, + NumEnums: 1, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_system_proto_goTypes, + DependencyIndexes: file_system_proto_depIdxs, + EnumInfos: file_system_proto_enumTypes, + MessageInfos: file_system_proto_msgTypes, + }.Build() + File_system_proto = out.File + file_system_proto_rawDesc = nil + file_system_proto_goTypes = nil + file_system_proto_depIdxs = nil } diff --git a/api/firmware/query.go b/api/firmware/query.go index 65871a7..657b032 100644 --- a/api/firmware/query.go +++ b/api/firmware/query.go @@ -20,7 +20,7 @@ import ( "github.com/digitalbitbox/bitbox02-api-go/api/firmware/messages" "github.com/digitalbitbox/bitbox02-api-go/util/errp" "github.com/digitalbitbox/bitbox02-api-go/util/semver" - "github.com/golang/protobuf/proto" + "google.golang.org/protobuf/proto" ) const ( diff --git a/go.mod b/go.mod index e8f9e46..d0ded7b 100644 --- a/go.mod +++ b/go.mod @@ -7,9 +7,9 @@ require ( github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d github.com/davecgh/go-spew v1.1.1 // indirect github.com/flynn/noise v1.0.0 - github.com/golang/protobuf v1.3.2 github.com/karalabe/usb v0.0.0-20191104083709-911d15fe12a9 github.com/pkg/errors v0.8.1 github.com/stretchr/testify v1.4.0 + google.golang.org/protobuf v1.28.1 gopkg.in/yaml.v2 v2.2.5 // indirect ) diff --git a/go.sum b/go.sum index 9ad8ba0..59a757b 100644 --- a/go.sum +++ b/go.sum @@ -17,8 +17,9 @@ github.com/flynn/noise v1.0.0 h1:DlTHqmzmvcEiKj+4RYo/imoswx/4r6iBlCMfVtrMXpQ= github.com/flynn/noise v1.0.0/go.mod h1:xbMo+0i6+IGbYdJhF31t2eR1BIU0CYc12+BNAKwUTag= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2 h1:6nsPYzhq5kReh6QImI3k5qWzO4PEbvbIW2cwSfR/6xs= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jrick/logrotate v1.0.0/go.mod h1:LNinyqDIJnpAur+b8yyulnQw/wDuN1+BYKlTRt3OuAQ= @@ -53,6 +54,11 @@ golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9sn golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w= +google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=