Skip to content
File

Blob: spec/protocol/pow.pb.go

go141 lines
1// Code generated by protoc-gen-go. DO NOT EDIT.
2// versions:
3// protoc-gen-go v1.36.11
4// protoc v7.34.0
5// source: spec/proto/pow.proto
6 
7package protocol
8 
9import (
10 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 reflect "reflect"
13 sync "sync"
14 unsafe "unsafe"
15)
16 
17const (
18 // Verify that this generated code is sufficiently up-to-date.
19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
20 // Verify that runtime/protoimpl is sufficiently up-to-date.
21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
22)
23 
24type ProofOfWork struct {
25 state protoimpl.MessageState `protogen:"open.v1"`
26 PubKey []byte `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
27 Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
28 Solution string `protobuf:"bytes,3,opt,name=solution,proto3" json:"solution,omitempty"`
29 unknownFields protoimpl.UnknownFields
30 sizeCache protoimpl.SizeCache
31}
32 
33func (x *ProofOfWork) Reset() {
34 *x = ProofOfWork{}
35 mi := &file_spec_proto_pow_proto_msgTypes[0]
36 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
37 ms.StoreMessageInfo(mi)
38}
39 
40func (x *ProofOfWork) String() string {
41 return protoimpl.X.MessageStringOf(x)
42}
43 
44func (*ProofOfWork) ProtoMessage() {}
45 
46func (x *ProofOfWork) ProtoReflect() protoreflect.Message {
47 mi := &file_spec_proto_pow_proto_msgTypes[0]
48 if x != nil {
49 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
50 if ms.LoadMessageInfo() == nil {
51 ms.StoreMessageInfo(mi)
52 }
53 return ms
54 }
55 return mi.MessageOf(x)
56}
57 
58// Deprecated: Use ProofOfWork.ProtoReflect.Descriptor instead.
59func (*ProofOfWork) Descriptor() ([]byte, []int) {
60 return file_spec_proto_pow_proto_rawDescGZIP(), []int{0}
61}
62 
63func (x *ProofOfWork) GetPubKey() []byte {
64 if x != nil {
65 return x.PubKey
66 }
67 return nil
68}
69 
70func (x *ProofOfWork) GetSignature() []byte {
71 if x != nil {
72 return x.Signature
73 }
74 return nil
75}
76 
77func (x *ProofOfWork) GetSolution() string {
78 if x != nil {
79 return x.Solution
80 }
81 return ""
82}
83 
84var File_spec_proto_pow_proto protoreflect.FileDescriptor
85 
86const file_spec_proto_pow_proto_rawDesc = "" +
87 "\n" +
88 "\x14spec/proto/pow.proto\x12\bprotocol\"`\n" +
89 "\vProofOfWork\x12\x17\n" +
90 "\apub_key\x18\x01 \x01(\fR\x06pubKey\x12\x1c\n" +
91 "\tsignature\x18\x02 \x01(\fR\tsignature\x12\x1a\n" +
92 "\bsolution\x18\x03 \x01(\tR\bsolutionB+H\x01Z'go.miragespace.co/specter/spec/protocolb\x06proto3"
93 
94var (
95 file_spec_proto_pow_proto_rawDescOnce sync.Once
96 file_spec_proto_pow_proto_rawDescData []byte
97)
98 
99func file_spec_proto_pow_proto_rawDescGZIP() []byte {
100 file_spec_proto_pow_proto_rawDescOnce.Do(func() {
101 file_spec_proto_pow_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_spec_proto_pow_proto_rawDesc), len(file_spec_proto_pow_proto_rawDesc)))
102 })
103 return file_spec_proto_pow_proto_rawDescData
104}
105 
106var file_spec_proto_pow_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
107var file_spec_proto_pow_proto_goTypes = []any{
108 (*ProofOfWork)(nil), // 0: protocol.ProofOfWork
109}
110var file_spec_proto_pow_proto_depIdxs = []int32{
111 0, // [0:0] is the sub-list for method output_type
112 0, // [0:0] is the sub-list for method input_type
113 0, // [0:0] is the sub-list for extension type_name
114 0, // [0:0] is the sub-list for extension extendee
115 0, // [0:0] is the sub-list for field type_name
116}
117 
118func init() { file_spec_proto_pow_proto_init() }
119func file_spec_proto_pow_proto_init() {
120 if File_spec_proto_pow_proto != nil {
121 return
122 }
123 type x struct{}
124 out := protoimpl.TypeBuilder{
125 File: protoimpl.DescBuilder{
126 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
127 RawDescriptor: unsafe.Slice(unsafe.StringData(file_spec_proto_pow_proto_rawDesc), len(file_spec_proto_pow_proto_rawDesc)),
128 NumEnums: 0,
129 NumMessages: 1,
130 NumExtensions: 0,
131 NumServices: 0,
132 },
133 GoTypes: file_spec_proto_pow_proto_goTypes,
134 DependencyIndexes: file_spec_proto_pow_proto_depIdxs,
135 MessageInfos: file_spec_proto_pow_proto_msgTypes,
136 }.Build()
137 File_spec_proto_pow_proto = out.File
138 file_spec_proto_pow_proto_goTypes = nil
139 file_spec_proto_pow_proto_depIdxs = nil
140}