nockchain-grpc/nockchain/service.pb.go
2025-10-08 09:48:11 +07:00

1161 lines
37 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.9
// protoc v3.20.3
// source: service.proto
package nockchain
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
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 KeygenRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *KeygenRequest) Reset() {
*x = KeygenRequest{}
mi := &file_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *KeygenRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*KeygenRequest) ProtoMessage() {}
func (x *KeygenRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use KeygenRequest.ProtoReflect.Descriptor instead.
func (*KeygenRequest) Descriptor() ([]byte, []int) {
return file_service_proto_rawDescGZIP(), []int{0}
}
type KeygenResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
PrivateKey string `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
Seed string `protobuf:"bytes,3,opt,name=seed,proto3" json:"seed,omitempty"`
ChainCode string `protobuf:"bytes,4,opt,name=chain_code,json=chainCode,proto3" json:"chain_code,omitempty"`
ImportPrivateKey string `protobuf:"bytes,5,opt,name=import_private_key,json=importPrivateKey,proto3" json:"import_private_key,omitempty"`
ImportPublicKey string `protobuf:"bytes,6,opt,name=import_public_key,json=importPublicKey,proto3" json:"import_public_key,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *KeygenResponse) Reset() {
*x = KeygenResponse{}
mi := &file_service_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *KeygenResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*KeygenResponse) ProtoMessage() {}
func (x *KeygenResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use KeygenResponse.ProtoReflect.Descriptor instead.
func (*KeygenResponse) Descriptor() ([]byte, []int) {
return file_service_proto_rawDescGZIP(), []int{1}
}
func (x *KeygenResponse) GetPublicKey() string {
if x != nil {
return x.PublicKey
}
return ""
}
func (x *KeygenResponse) GetPrivateKey() string {
if x != nil {
return x.PrivateKey
}
return ""
}
func (x *KeygenResponse) GetSeed() string {
if x != nil {
return x.Seed
}
return ""
}
func (x *KeygenResponse) GetChainCode() string {
if x != nil {
return x.ChainCode
}
return ""
}
func (x *KeygenResponse) GetImportPrivateKey() string {
if x != nil {
return x.ImportPrivateKey
}
return ""
}
func (x *KeygenResponse) GetImportPublicKey() string {
if x != nil {
return x.ImportPublicKey
}
return ""
}
type ImportKeysRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
ImportType ImportType `protobuf:"varint,2,opt,name=import_type,json=importType,proto3,enum=nockchain.public.v1.ImportType" json:"import_type,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ImportKeysRequest) Reset() {
*x = ImportKeysRequest{}
mi := &file_service_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ImportKeysRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ImportKeysRequest) ProtoMessage() {}
func (x *ImportKeysRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ImportKeysRequest.ProtoReflect.Descriptor instead.
func (*ImportKeysRequest) Descriptor() ([]byte, []int) {
return file_service_proto_rawDescGZIP(), []int{2}
}
func (x *ImportKeysRequest) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *ImportKeysRequest) GetImportType() ImportType {
if x != nil {
return x.ImportType
}
return ImportType_UNDEFINED
}
type ImportKeysResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
PrivateKey string `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
Seed string `protobuf:"bytes,3,opt,name=seed,proto3" json:"seed,omitempty"`
ChainCode string `protobuf:"bytes,4,opt,name=chain_code,json=chainCode,proto3" json:"chain_code,omitempty"`
ImportPrivateKey string `protobuf:"bytes,5,opt,name=import_private_key,json=importPrivateKey,proto3" json:"import_private_key,omitempty"`
ImportPublicKey string `protobuf:"bytes,6,opt,name=import_public_key,json=importPublicKey,proto3" json:"import_public_key,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ImportKeysResponse) Reset() {
*x = ImportKeysResponse{}
mi := &file_service_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ImportKeysResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ImportKeysResponse) ProtoMessage() {}
func (x *ImportKeysResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ImportKeysResponse.ProtoReflect.Descriptor instead.
func (*ImportKeysResponse) Descriptor() ([]byte, []int) {
return file_service_proto_rawDescGZIP(), []int{3}
}
func (x *ImportKeysResponse) GetPublicKey() string {
if x != nil {
return x.PublicKey
}
return ""
}
func (x *ImportKeysResponse) GetPrivateKey() string {
if x != nil {
return x.PrivateKey
}
return ""
}
func (x *ImportKeysResponse) GetSeed() string {
if x != nil {
return x.Seed
}
return ""
}
func (x *ImportKeysResponse) GetChainCode() string {
if x != nil {
return x.ChainCode
}
return ""
}
func (x *ImportKeysResponse) GetImportPrivateKey() string {
if x != nil {
return x.ImportPrivateKey
}
return ""
}
func (x *ImportKeysResponse) GetImportPublicKey() string {
if x != nil {
return x.ImportPublicKey
}
return ""
}
type DeriveChildRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
ImportedKey string `protobuf:"bytes,1,opt,name=imported_key,json=importedKey,proto3" json:"imported_key,omitempty"`
Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
Hardened bool `protobuf:"varint,3,opt,name=hardened,proto3" json:"hardened,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeriveChildRequest) Reset() {
*x = DeriveChildRequest{}
mi := &file_service_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeriveChildRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeriveChildRequest) ProtoMessage() {}
func (x *DeriveChildRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeriveChildRequest.ProtoReflect.Descriptor instead.
func (*DeriveChildRequest) Descriptor() ([]byte, []int) {
return file_service_proto_rawDescGZIP(), []int{4}
}
func (x *DeriveChildRequest) GetImportedKey() string {
if x != nil {
return x.ImportedKey
}
return ""
}
func (x *DeriveChildRequest) GetIndex() uint64 {
if x != nil {
return x.Index
}
return 0
}
func (x *DeriveChildRequest) GetHardened() bool {
if x != nil {
return x.Hardened
}
return false
}
type DeriveChildResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
PrivateKey string `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
ChainCode string `protobuf:"bytes,3,opt,name=chain_code,json=chainCode,proto3" json:"chain_code,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeriveChildResponse) Reset() {
*x = DeriveChildResponse{}
mi := &file_service_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeriveChildResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeriveChildResponse) ProtoMessage() {}
func (x *DeriveChildResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeriveChildResponse.ProtoReflect.Descriptor instead.
func (*DeriveChildResponse) Descriptor() ([]byte, []int) {
return file_service_proto_rawDescGZIP(), []int{5}
}
func (x *DeriveChildResponse) GetPublicKey() string {
if x != nil {
return x.PublicKey
}
return ""
}
func (x *DeriveChildResponse) GetPrivateKey() string {
if x != nil {
return x.PrivateKey
}
return ""
}
func (x *DeriveChildResponse) GetChainCode() string {
if x != nil {
return x.ChainCode
}
return ""
}
type CreateTxRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Names string `protobuf:"bytes,1,opt,name=names,proto3" json:"names,omitempty"`
Recipients string `protobuf:"bytes,2,opt,name=recipients,proto3" json:"recipients,omitempty"`
Gifts string `protobuf:"bytes,3,opt,name=gifts,proto3" json:"gifts,omitempty"`
Fee uint64 `protobuf:"varint,4,opt,name=fee,proto3" json:"fee,omitempty"`
IsMasterKey bool `protobuf:"varint,5,opt,name=is_master_key,json=isMasterKey,proto3" json:"is_master_key,omitempty"`
Key string `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty"`
ChainCode string `protobuf:"bytes,7,opt,name=chain_code,json=chainCode,proto3" json:"chain_code,omitempty"`
Index uint64 `protobuf:"varint,8,opt,name=index,proto3" json:"index,omitempty"`
Hardened bool `protobuf:"varint,9,opt,name=hardened,proto3" json:"hardened,omitempty"`
TimelockIntent *TimelockIntent `protobuf:"bytes,10,opt,name=timelock_intent,json=timelockIntent,proto3" json:"timelock_intent,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CreateTxRequest) Reset() {
*x = CreateTxRequest{}
mi := &file_service_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CreateTxRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateTxRequest) ProtoMessage() {}
func (x *CreateTxRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateTxRequest.ProtoReflect.Descriptor instead.
func (*CreateTxRequest) Descriptor() ([]byte, []int) {
return file_service_proto_rawDescGZIP(), []int{6}
}
func (x *CreateTxRequest) GetNames() string {
if x != nil {
return x.Names
}
return ""
}
func (x *CreateTxRequest) GetRecipients() string {
if x != nil {
return x.Recipients
}
return ""
}
func (x *CreateTxRequest) GetGifts() string {
if x != nil {
return x.Gifts
}
return ""
}
func (x *CreateTxRequest) GetFee() uint64 {
if x != nil {
return x.Fee
}
return 0
}
func (x *CreateTxRequest) GetIsMasterKey() bool {
if x != nil {
return x.IsMasterKey
}
return false
}
func (x *CreateTxRequest) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *CreateTxRequest) GetChainCode() string {
if x != nil {
return x.ChainCode
}
return ""
}
func (x *CreateTxRequest) GetIndex() uint64 {
if x != nil {
return x.Index
}
return 0
}
func (x *CreateTxRequest) GetHardened() bool {
if x != nil {
return x.Hardened
}
return false
}
func (x *CreateTxRequest) GetTimelockIntent() *TimelockIntent {
if x != nil {
return x.TimelockIntent
}
return nil
}
type CreateTxResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
RawTx *RawTx `protobuf:"bytes,1,opt,name=rawTx,proto3" json:"rawTx,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CreateTxResponse) Reset() {
*x = CreateTxResponse{}
mi := &file_service_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CreateTxResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateTxResponse) ProtoMessage() {}
func (x *CreateTxResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateTxResponse.ProtoReflect.Descriptor instead.
func (*CreateTxResponse) Descriptor() ([]byte, []int) {
return file_service_proto_rawDescGZIP(), []int{7}
}
func (x *CreateTxResponse) GetRawTx() *RawTx {
if x != nil {
return x.RawTx
}
return nil
}
type SignTxRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
UnsignedTx string `protobuf:"bytes,1,opt,name=unsigned_tx,json=unsignedTx,proto3" json:"unsigned_tx,omitempty"`
Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
Hardened bool `protobuf:"varint,3,opt,name=hardened,proto3" json:"hardened,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SignTxRequest) Reset() {
*x = SignTxRequest{}
mi := &file_service_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SignTxRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SignTxRequest) ProtoMessage() {}
func (x *SignTxRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SignTxRequest.ProtoReflect.Descriptor instead.
func (*SignTxRequest) Descriptor() ([]byte, []int) {
return file_service_proto_rawDescGZIP(), []int{8}
}
func (x *SignTxRequest) GetUnsignedTx() string {
if x != nil {
return x.UnsignedTx
}
return ""
}
func (x *SignTxRequest) GetIndex() uint64 {
if x != nil {
return x.Index
}
return 0
}
func (x *SignTxRequest) GetHardened() bool {
if x != nil {
return x.Hardened
}
return false
}
type SignTxResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
SignedTx string `protobuf:"bytes,1,opt,name=signed_tx,json=signedTx,proto3" json:"signed_tx,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SignTxResponse) Reset() {
*x = SignTxResponse{}
mi := &file_service_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SignTxResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SignTxResponse) ProtoMessage() {}
func (x *SignTxResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SignTxResponse.ProtoReflect.Descriptor instead.
func (*SignTxResponse) Descriptor() ([]byte, []int) {
return file_service_proto_rawDescGZIP(), []int{9}
}
func (x *SignTxResponse) GetSignedTx() string {
if x != nil {
return x.SignedTx
}
return ""
}
func (x *SignTxResponse) GetError() string {
if x != nil {
return x.Error
}
return ""
}
type ScanRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
MasterPubkey string `protobuf:"bytes,1,opt,name=master_pubkey,json=masterPubkey,proto3" json:"master_pubkey,omitempty"`
ChainCode string `protobuf:"bytes,2,opt,name=chain_code,json=chainCode,proto3" json:"chain_code,omitempty"`
SearchDepth uint64 `protobuf:"varint,3,opt,name=search_depth,json=searchDepth,proto3" json:"search_depth,omitempty"`
IncludeTimelocks bool `protobuf:"varint,4,opt,name=include_timelocks,json=includeTimelocks,proto3" json:"include_timelocks,omitempty"`
IncludeMultisig bool `protobuf:"varint,5,opt,name=include_multisig,json=includeMultisig,proto3" json:"include_multisig,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ScanRequest) Reset() {
*x = ScanRequest{}
mi := &file_service_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ScanRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ScanRequest) ProtoMessage() {}
func (x *ScanRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ScanRequest.ProtoReflect.Descriptor instead.
func (*ScanRequest) Descriptor() ([]byte, []int) {
return file_service_proto_rawDescGZIP(), []int{10}
}
func (x *ScanRequest) GetMasterPubkey() string {
if x != nil {
return x.MasterPubkey
}
return ""
}
func (x *ScanRequest) GetChainCode() string {
if x != nil {
return x.ChainCode
}
return ""
}
func (x *ScanRequest) GetSearchDepth() uint64 {
if x != nil {
return x.SearchDepth
}
return 0
}
func (x *ScanRequest) GetIncludeTimelocks() bool {
if x != nil {
return x.IncludeTimelocks
}
return false
}
func (x *ScanRequest) GetIncludeMultisig() bool {
if x != nil {
return x.IncludeMultisig
}
return false
}
type ScanResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
ScanData []*ScanData `protobuf:"bytes,1,rep,name=scan_data,json=scanData,proto3" json:"scan_data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ScanResponse) Reset() {
*x = ScanResponse{}
mi := &file_service_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ScanResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ScanResponse) ProtoMessage() {}
func (x *ScanResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_proto_msgTypes[11]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ScanResponse.ProtoReflect.Descriptor instead.
func (*ScanResponse) Descriptor() ([]byte, []int) {
return file_service_proto_rawDescGZIP(), []int{11}
}
func (x *ScanResponse) GetScanData() []*ScanData {
if x != nil {
return x.ScanData
}
return nil
}
type GetBalanceRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetBalanceRequest) Reset() {
*x = GetBalanceRequest{}
mi := &file_service_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetBalanceRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetBalanceRequest) ProtoMessage() {}
func (x *GetBalanceRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_proto_msgTypes[12]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetBalanceRequest.ProtoReflect.Descriptor instead.
func (*GetBalanceRequest) Descriptor() ([]byte, []int) {
return file_service_proto_rawDescGZIP(), []int{12}
}
func (x *GetBalanceRequest) GetAddress() string {
if x != nil {
return x.Address
}
return ""
}
type GetBalanceResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Data *WalletBalanceData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetBalanceResponse) Reset() {
*x = GetBalanceResponse{}
mi := &file_service_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetBalanceResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetBalanceResponse) ProtoMessage() {}
func (x *GetBalanceResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_proto_msgTypes[13]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetBalanceResponse.ProtoReflect.Descriptor instead.
func (*GetBalanceResponse) Descriptor() ([]byte, []int) {
return file_service_proto_rawDescGZIP(), []int{13}
}
func (x *GetBalanceResponse) GetData() *WalletBalanceData {
if x != nil {
return x.Data
}
return nil
}
type SendTransactionRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
RawTx *RawTx `protobuf:"bytes,1,opt,name=raw_tx,json=rawTx,proto3" json:"raw_tx,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SendTransactionRequest) Reset() {
*x = SendTransactionRequest{}
mi := &file_service_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SendTransactionRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SendTransactionRequest) ProtoMessage() {}
func (x *SendTransactionRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_proto_msgTypes[14]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SendTransactionRequest.ProtoReflect.Descriptor instead.
func (*SendTransactionRequest) Descriptor() ([]byte, []int) {
return file_service_proto_rawDescGZIP(), []int{14}
}
func (x *SendTransactionRequest) GetRawTx() *RawTx {
if x != nil {
return x.RawTx
}
return nil
}
type SendTransactionResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Response *WalletSendTransactionResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SendTransactionResponse) Reset() {
*x = SendTransactionResponse{}
mi := &file_service_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SendTransactionResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SendTransactionResponse) ProtoMessage() {}
func (x *SendTransactionResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_proto_msgTypes[15]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SendTransactionResponse.ProtoReflect.Descriptor instead.
func (*SendTransactionResponse) Descriptor() ([]byte, []int) {
return file_service_proto_rawDescGZIP(), []int{15}
}
func (x *SendTransactionResponse) GetResponse() *WalletSendTransactionResponse {
if x != nil {
return x.Response
}
return nil
}
var File_service_proto protoreflect.FileDescriptor
const file_service_proto_rawDesc = "" +
"\n" +
"\rservice.proto\x12\x13nockchain.public.v1\x1a\vtypes.proto\x1a\x10blockchain.proto\x1a\x0fnockchain.proto\"\x0f\n" +
"\rKeygenRequest\"\xdd\x01\n" +
"\x0eKeygenResponse\x12\x1d\n" +
"\n" +
"public_key\x18\x01 \x01(\tR\tpublicKey\x12\x1f\n" +
"\vprivate_key\x18\x02 \x01(\tR\n" +
"privateKey\x12\x12\n" +
"\x04seed\x18\x03 \x01(\tR\x04seed\x12\x1d\n" +
"\n" +
"chain_code\x18\x04 \x01(\tR\tchainCode\x12,\n" +
"\x12import_private_key\x18\x05 \x01(\tR\x10importPrivateKey\x12*\n" +
"\x11import_public_key\x18\x06 \x01(\tR\x0fimportPublicKey\"g\n" +
"\x11ImportKeysRequest\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12@\n" +
"\vimport_type\x18\x02 \x01(\x0e2\x1f.nockchain.public.v1.ImportTypeR\n" +
"importType\"\xe1\x01\n" +
"\x12ImportKeysResponse\x12\x1d\n" +
"\n" +
"public_key\x18\x01 \x01(\tR\tpublicKey\x12\x1f\n" +
"\vprivate_key\x18\x02 \x01(\tR\n" +
"privateKey\x12\x12\n" +
"\x04seed\x18\x03 \x01(\tR\x04seed\x12\x1d\n" +
"\n" +
"chain_code\x18\x04 \x01(\tR\tchainCode\x12,\n" +
"\x12import_private_key\x18\x05 \x01(\tR\x10importPrivateKey\x12*\n" +
"\x11import_public_key\x18\x06 \x01(\tR\x0fimportPublicKey\"i\n" +
"\x12DeriveChildRequest\x12!\n" +
"\fimported_key\x18\x01 \x01(\tR\vimportedKey\x12\x14\n" +
"\x05index\x18\x02 \x01(\x04R\x05index\x12\x1a\n" +
"\bhardened\x18\x03 \x01(\bR\bhardened\"t\n" +
"\x13DeriveChildResponse\x12\x1d\n" +
"\n" +
"public_key\x18\x01 \x01(\tR\tpublicKey\x12\x1f\n" +
"\vprivate_key\x18\x02 \x01(\tR\n" +
"privateKey\x12\x1d\n" +
"\n" +
"chain_code\x18\x03 \x01(\tR\tchainCode\"\xc4\x02\n" +
"\x0fCreateTxRequest\x12\x14\n" +
"\x05names\x18\x01 \x01(\tR\x05names\x12\x1e\n" +
"\n" +
"recipients\x18\x02 \x01(\tR\n" +
"recipients\x12\x14\n" +
"\x05gifts\x18\x03 \x01(\tR\x05gifts\x12\x10\n" +
"\x03fee\x18\x04 \x01(\x04R\x03fee\x12\"\n" +
"\ris_master_key\x18\x05 \x01(\bR\visMasterKey\x12\x10\n" +
"\x03key\x18\x06 \x01(\tR\x03key\x12\x1d\n" +
"\n" +
"chain_code\x18\a \x01(\tR\tchainCode\x12\x14\n" +
"\x05index\x18\b \x01(\x04R\x05index\x12\x1a\n" +
"\bhardened\x18\t \x01(\bR\bhardened\x12L\n" +
"\x0ftimelock_intent\x18\n" +
" \x01(\v2#.nockchain.public.v1.TimelockIntentR\x0etimelockIntent\"D\n" +
"\x10CreateTxResponse\x120\n" +
"\x05rawTx\x18\x01 \x01(\v2\x1a.nockchain.public.v1.RawTxR\x05rawTx\"b\n" +
"\rSignTxRequest\x12\x1f\n" +
"\vunsigned_tx\x18\x01 \x01(\tR\n" +
"unsignedTx\x12\x14\n" +
"\x05index\x18\x02 \x01(\x04R\x05index\x12\x1a\n" +
"\bhardened\x18\x03 \x01(\bR\bhardened\"C\n" +
"\x0eSignTxResponse\x12\x1b\n" +
"\tsigned_tx\x18\x01 \x01(\tR\bsignedTx\x12\x14\n" +
"\x05error\x18\x02 \x01(\tR\x05error\"\xcc\x01\n" +
"\vScanRequest\x12#\n" +
"\rmaster_pubkey\x18\x01 \x01(\tR\fmasterPubkey\x12\x1d\n" +
"\n" +
"chain_code\x18\x02 \x01(\tR\tchainCode\x12!\n" +
"\fsearch_depth\x18\x03 \x01(\x04R\vsearchDepth\x12+\n" +
"\x11include_timelocks\x18\x04 \x01(\bR\x10includeTimelocks\x12)\n" +
"\x10include_multisig\x18\x05 \x01(\bR\x0fincludeMultisig\"J\n" +
"\fScanResponse\x12:\n" +
"\tscan_data\x18\x01 \x03(\v2\x1d.nockchain.public.v1.ScanDataR\bscanData\"-\n" +
"\x11GetBalanceRequest\x12\x18\n" +
"\aaddress\x18\x01 \x01(\tR\aaddress\"P\n" +
"\x12GetBalanceResponse\x12:\n" +
"\x04data\x18\x01 \x01(\v2&.nockchain.public.v1.WalletBalanceDataR\x04data\"K\n" +
"\x16SendTransactionRequest\x121\n" +
"\x06raw_tx\x18\x01 \x01(\v2\x1a.nockchain.public.v1.RawTxR\x05rawTx\"i\n" +
"\x17SendTransactionResponse\x12N\n" +
"\bresponse\x18\x01 \x01(\v22.nockchain.public.v1.WalletSendTransactionResponseR\bresponse2\xef\x06\n" +
"\rWalletService\x12Q\n" +
"\x06Keygen\x12\".nockchain.public.v1.KeygenRequest\x1a#.nockchain.public.v1.KeygenResponse\x12]\n" +
"\n" +
"ImportKeys\x12&.nockchain.public.v1.ImportKeysRequest\x1a'.nockchain.public.v1.ImportKeysResponse\x12`\n" +
"\vDeriveChild\x12'.nockchain.public.v1.DeriveChildRequest\x1a(.nockchain.public.v1.DeriveChildResponse\x12W\n" +
"\bCreateTx\x12$.nockchain.public.v1.CreateTxRequest\x1a%.nockchain.public.v1.CreateTxResponse\x12Q\n" +
"\x06SignTx\x12\".nockchain.public.v1.SignTxRequest\x1a#.nockchain.public.v1.SignTxResponse\x12K\n" +
"\x04Scan\x12 .nockchain.public.v1.ScanRequest\x1a!.nockchain.public.v1.ScanResponse\x12c\n" +
"\x10WalletGetBalance\x12&.nockchain.public.v1.GetBalanceRequest\x1a'.nockchain.public.v1.GetBalanceResponse\x12r\n" +
"\x15WalletSendTransaction\x12+.nockchain.public.v1.SendTransactionRequest\x1a,.nockchain.public.v1.SendTransactionResponse\x12x\n" +
"\x13TransactionAccepted\x12/.nockchain.public.v1.TransactionAcceptedRequest\x1a0.nockchain.public.v1.TransactionAcceptedResponseB\x0eZ\f./;nockchainb\x06proto3"
var (
file_service_proto_rawDescOnce sync.Once
file_service_proto_rawDescData []byte
)
func file_service_proto_rawDescGZIP() []byte {
file_service_proto_rawDescOnce.Do(func() {
file_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_proto_rawDesc), len(file_service_proto_rawDesc)))
})
return file_service_proto_rawDescData
}
var file_service_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
var file_service_proto_goTypes = []any{
(*KeygenRequest)(nil), // 0: nockchain.public.v1.KeygenRequest
(*KeygenResponse)(nil), // 1: nockchain.public.v1.KeygenResponse
(*ImportKeysRequest)(nil), // 2: nockchain.public.v1.ImportKeysRequest
(*ImportKeysResponse)(nil), // 3: nockchain.public.v1.ImportKeysResponse
(*DeriveChildRequest)(nil), // 4: nockchain.public.v1.DeriveChildRequest
(*DeriveChildResponse)(nil), // 5: nockchain.public.v1.DeriveChildResponse
(*CreateTxRequest)(nil), // 6: nockchain.public.v1.CreateTxRequest
(*CreateTxResponse)(nil), // 7: nockchain.public.v1.CreateTxResponse
(*SignTxRequest)(nil), // 8: nockchain.public.v1.SignTxRequest
(*SignTxResponse)(nil), // 9: nockchain.public.v1.SignTxResponse
(*ScanRequest)(nil), // 10: nockchain.public.v1.ScanRequest
(*ScanResponse)(nil), // 11: nockchain.public.v1.ScanResponse
(*GetBalanceRequest)(nil), // 12: nockchain.public.v1.GetBalanceRequest
(*GetBalanceResponse)(nil), // 13: nockchain.public.v1.GetBalanceResponse
(*SendTransactionRequest)(nil), // 14: nockchain.public.v1.SendTransactionRequest
(*SendTransactionResponse)(nil), // 15: nockchain.public.v1.SendTransactionResponse
(ImportType)(0), // 16: nockchain.public.v1.ImportType
(*TimelockIntent)(nil), // 17: nockchain.public.v1.TimelockIntent
(*RawTx)(nil), // 18: nockchain.public.v1.RawTx
(*ScanData)(nil), // 19: nockchain.public.v1.ScanData
(*WalletBalanceData)(nil), // 20: nockchain.public.v1.WalletBalanceData
(*WalletSendTransactionResponse)(nil), // 21: nockchain.public.v1.WalletSendTransactionResponse
(*TransactionAcceptedRequest)(nil), // 22: nockchain.public.v1.TransactionAcceptedRequest
(*TransactionAcceptedResponse)(nil), // 23: nockchain.public.v1.TransactionAcceptedResponse
}
var file_service_proto_depIdxs = []int32{
16, // 0: nockchain.public.v1.ImportKeysRequest.import_type:type_name -> nockchain.public.v1.ImportType
17, // 1: nockchain.public.v1.CreateTxRequest.timelock_intent:type_name -> nockchain.public.v1.TimelockIntent
18, // 2: nockchain.public.v1.CreateTxResponse.rawTx:type_name -> nockchain.public.v1.RawTx
19, // 3: nockchain.public.v1.ScanResponse.scan_data:type_name -> nockchain.public.v1.ScanData
20, // 4: nockchain.public.v1.GetBalanceResponse.data:type_name -> nockchain.public.v1.WalletBalanceData
18, // 5: nockchain.public.v1.SendTransactionRequest.raw_tx:type_name -> nockchain.public.v1.RawTx
21, // 6: nockchain.public.v1.SendTransactionResponse.response:type_name -> nockchain.public.v1.WalletSendTransactionResponse
0, // 7: nockchain.public.v1.WalletService.Keygen:input_type -> nockchain.public.v1.KeygenRequest
2, // 8: nockchain.public.v1.WalletService.ImportKeys:input_type -> nockchain.public.v1.ImportKeysRequest
4, // 9: nockchain.public.v1.WalletService.DeriveChild:input_type -> nockchain.public.v1.DeriveChildRequest
6, // 10: nockchain.public.v1.WalletService.CreateTx:input_type -> nockchain.public.v1.CreateTxRequest
8, // 11: nockchain.public.v1.WalletService.SignTx:input_type -> nockchain.public.v1.SignTxRequest
10, // 12: nockchain.public.v1.WalletService.Scan:input_type -> nockchain.public.v1.ScanRequest
12, // 13: nockchain.public.v1.WalletService.WalletGetBalance:input_type -> nockchain.public.v1.GetBalanceRequest
14, // 14: nockchain.public.v1.WalletService.WalletSendTransaction:input_type -> nockchain.public.v1.SendTransactionRequest
22, // 15: nockchain.public.v1.WalletService.TransactionAccepted:input_type -> nockchain.public.v1.TransactionAcceptedRequest
1, // 16: nockchain.public.v1.WalletService.Keygen:output_type -> nockchain.public.v1.KeygenResponse
3, // 17: nockchain.public.v1.WalletService.ImportKeys:output_type -> nockchain.public.v1.ImportKeysResponse
5, // 18: nockchain.public.v1.WalletService.DeriveChild:output_type -> nockchain.public.v1.DeriveChildResponse
7, // 19: nockchain.public.v1.WalletService.CreateTx:output_type -> nockchain.public.v1.CreateTxResponse
9, // 20: nockchain.public.v1.WalletService.SignTx:output_type -> nockchain.public.v1.SignTxResponse
11, // 21: nockchain.public.v1.WalletService.Scan:output_type -> nockchain.public.v1.ScanResponse
13, // 22: nockchain.public.v1.WalletService.WalletGetBalance:output_type -> nockchain.public.v1.GetBalanceResponse
15, // 23: nockchain.public.v1.WalletService.WalletSendTransaction:output_type -> nockchain.public.v1.SendTransactionResponse
23, // 24: nockchain.public.v1.WalletService.TransactionAccepted:output_type -> nockchain.public.v1.TransactionAcceptedResponse
16, // [16:25] is the sub-list for method output_type
7, // [7:16] is the sub-list for method input_type
7, // [7:7] is the sub-list for extension type_name
7, // [7:7] is the sub-list for extension extendee
0, // [0:7] is the sub-list for field type_name
}
func init() { file_service_proto_init() }
func file_service_proto_init() {
if File_service_proto != nil {
return
}
file_types_proto_init()
file_blockchain_proto_init()
file_nockchain_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_proto_rawDesc), len(file_service_proto_rawDesc)),
NumEnums: 0,
NumMessages: 16,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_service_proto_goTypes,
DependencyIndexes: file_service_proto_depIdxs,
MessageInfos: file_service_proto_msgTypes,
}.Build()
File_service_proto = out.File
file_service_proto_goTypes = nil
file_service_proto_depIdxs = nil
}