github.com/devwanda/aphelion-staking@v0.33.9/proto/crypto/keys/types.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: proto/crypto/keys/types.proto
     3  
     4  package keys
     5  
     6  import (
     7  	bytes "bytes"
     8  	fmt "fmt"
     9  	_ "github.com/gogo/protobuf/gogoproto"
    10  	proto "github.com/gogo/protobuf/proto"
    11  	math "math"
    12  )
    13  
    14  // Reference imports to suppress errors if they are not otherwise used.
    15  var _ = proto.Marshal
    16  var _ = fmt.Errorf
    17  var _ = math.Inf
    18  
    19  // This is a compile-time assertion to ensure that this generated file
    20  // is compatible with the proto package it is being compiled against.
    21  // A compilation error at this line likely means your copy of the
    22  // proto package needs to be updated.
    23  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    24  
    25  // PublicKey defines the keys available for use with Tendermint Validators
    26  type PublicKey struct {
    27  	// Types that are valid to be assigned to Sum:
    28  	//	*PublicKey_Ed25519
    29  	Sum                  isPublicKey_Sum `protobuf_oneof:"sum"`
    30  	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
    31  	XXX_unrecognized     []byte          `json:"-"`
    32  	XXX_sizecache        int32           `json:"-"`
    33  }
    34  
    35  func (m *PublicKey) Reset()         { *m = PublicKey{} }
    36  func (m *PublicKey) String() string { return proto.CompactTextString(m) }
    37  func (*PublicKey) ProtoMessage()    {}
    38  func (*PublicKey) Descriptor() ([]byte, []int) {
    39  	return fileDescriptor_943d79b57ec0188f, []int{0}
    40  }
    41  func (m *PublicKey) XXX_Unmarshal(b []byte) error {
    42  	return xxx_messageInfo_PublicKey.Unmarshal(m, b)
    43  }
    44  func (m *PublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    45  	return xxx_messageInfo_PublicKey.Marshal(b, m, deterministic)
    46  }
    47  func (m *PublicKey) XXX_Merge(src proto.Message) {
    48  	xxx_messageInfo_PublicKey.Merge(m, src)
    49  }
    50  func (m *PublicKey) XXX_Size() int {
    51  	return xxx_messageInfo_PublicKey.Size(m)
    52  }
    53  func (m *PublicKey) XXX_DiscardUnknown() {
    54  	xxx_messageInfo_PublicKey.DiscardUnknown(m)
    55  }
    56  
    57  var xxx_messageInfo_PublicKey proto.InternalMessageInfo
    58  
    59  type isPublicKey_Sum interface {
    60  	isPublicKey_Sum()
    61  	Equal(interface{}) bool
    62  	Compare(interface{}) int
    63  }
    64  
    65  type PublicKey_Ed25519 struct {
    66  	Ed25519 []byte `protobuf:"bytes,1,opt,name=ed25519,proto3,oneof" json:"ed25519,omitempty"`
    67  }
    68  
    69  func (*PublicKey_Ed25519) isPublicKey_Sum() {}
    70  
    71  func (m *PublicKey) GetSum() isPublicKey_Sum {
    72  	if m != nil {
    73  		return m.Sum
    74  	}
    75  	return nil
    76  }
    77  
    78  func (m *PublicKey) GetEd25519() []byte {
    79  	if x, ok := m.GetSum().(*PublicKey_Ed25519); ok {
    80  		return x.Ed25519
    81  	}
    82  	return nil
    83  }
    84  
    85  // XXX_OneofWrappers is for the internal use of the proto package.
    86  func (*PublicKey) XXX_OneofWrappers() []interface{} {
    87  	return []interface{}{
    88  		(*PublicKey_Ed25519)(nil),
    89  	}
    90  }
    91  
    92  // PrivateKey defines the keys available for use with Tendermint Validators
    93  // WARNING PrivateKey is used for internal purposes only
    94  type PrivateKey struct {
    95  	// Types that are valid to be assigned to Sum:
    96  	//	*PrivateKey_Ed25519
    97  	Sum                  isPrivateKey_Sum `protobuf_oneof:"sum"`
    98  	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
    99  	XXX_unrecognized     []byte           `json:"-"`
   100  	XXX_sizecache        int32            `json:"-"`
   101  }
   102  
   103  func (m *PrivateKey) Reset()         { *m = PrivateKey{} }
   104  func (m *PrivateKey) String() string { return proto.CompactTextString(m) }
   105  func (*PrivateKey) ProtoMessage()    {}
   106  func (*PrivateKey) Descriptor() ([]byte, []int) {
   107  	return fileDescriptor_943d79b57ec0188f, []int{1}
   108  }
   109  func (m *PrivateKey) XXX_Unmarshal(b []byte) error {
   110  	return xxx_messageInfo_PrivateKey.Unmarshal(m, b)
   111  }
   112  func (m *PrivateKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   113  	return xxx_messageInfo_PrivateKey.Marshal(b, m, deterministic)
   114  }
   115  func (m *PrivateKey) XXX_Merge(src proto.Message) {
   116  	xxx_messageInfo_PrivateKey.Merge(m, src)
   117  }
   118  func (m *PrivateKey) XXX_Size() int {
   119  	return xxx_messageInfo_PrivateKey.Size(m)
   120  }
   121  func (m *PrivateKey) XXX_DiscardUnknown() {
   122  	xxx_messageInfo_PrivateKey.DiscardUnknown(m)
   123  }
   124  
   125  var xxx_messageInfo_PrivateKey proto.InternalMessageInfo
   126  
   127  type isPrivateKey_Sum interface {
   128  	isPrivateKey_Sum()
   129  }
   130  
   131  type PrivateKey_Ed25519 struct {
   132  	Ed25519 []byte `protobuf:"bytes,1,opt,name=ed25519,proto3,oneof" json:"ed25519,omitempty"`
   133  }
   134  
   135  func (*PrivateKey_Ed25519) isPrivateKey_Sum() {}
   136  
   137  func (m *PrivateKey) GetSum() isPrivateKey_Sum {
   138  	if m != nil {
   139  		return m.Sum
   140  	}
   141  	return nil
   142  }
   143  
   144  func (m *PrivateKey) GetEd25519() []byte {
   145  	if x, ok := m.GetSum().(*PrivateKey_Ed25519); ok {
   146  		return x.Ed25519
   147  	}
   148  	return nil
   149  }
   150  
   151  // XXX_OneofWrappers is for the internal use of the proto package.
   152  func (*PrivateKey) XXX_OneofWrappers() []interface{} {
   153  	return []interface{}{
   154  		(*PrivateKey_Ed25519)(nil),
   155  	}
   156  }
   157  
   158  func init() {
   159  	proto.RegisterType((*PublicKey)(nil), "tendermint.proto.crypto.keys.PublicKey")
   160  	proto.RegisterType((*PrivateKey)(nil), "tendermint.proto.crypto.keys.PrivateKey")
   161  }
   162  
   163  func init() { proto.RegisterFile("proto/crypto/keys/types.proto", fileDescriptor_943d79b57ec0188f) }
   164  
   165  var fileDescriptor_943d79b57ec0188f = []byte{
   166  	// 190 bytes of a gzipped FileDescriptorProto
   167  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2d, 0x28, 0xca, 0x2f,
   168  	0xc9, 0xd7, 0x4f, 0x2e, 0xaa, 0x2c, 0x28, 0xc9, 0xd7, 0xcf, 0x4e, 0xad, 0x2c, 0xd6, 0x2f, 0xa9,
   169  	0x2c, 0x48, 0x2d, 0xd6, 0x03, 0x8b, 0x0b, 0xc9, 0x94, 0xa4, 0xe6, 0xa5, 0xa4, 0x16, 0xe5, 0x66,
   170  	0xe6, 0x95, 0x40, 0x44, 0xf4, 0x20, 0x2a, 0xf5, 0x40, 0x2a, 0xa5, 0xd4, 0x4a, 0x32, 0x32, 0x8b,
   171  	0x52, 0xe2, 0x0b, 0x12, 0x8b, 0x4a, 0x2a, 0xf5, 0x21, 0x06, 0xa5, 0xe7, 0xa7, 0xe7, 0x23, 0x58,
   172  	0x10, 0x3d, 0x4a, 0x16, 0x5c, 0x9c, 0x01, 0xa5, 0x49, 0x39, 0x99, 0xc9, 0xde, 0xa9, 0x95, 0x42,
   173  	0x52, 0x5c, 0xec, 0xa9, 0x29, 0x46, 0xa6, 0xa6, 0x86, 0x96, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x3c,
   174  	0x1e, 0x0c, 0x41, 0x30, 0x01, 0x2b, 0x8e, 0x17, 0x0b, 0xe4, 0x19, 0x5f, 0x2c, 0x94, 0x67, 0x74,
   175  	0x62, 0xe5, 0x62, 0x2e, 0x2e, 0xcd, 0x55, 0xd2, 0xe7, 0xe2, 0x0a, 0x28, 0xca, 0x2c, 0x4b, 0x2c,
   176  	0x49, 0x25, 0xa0, 0x15, 0xaa, 0xc1, 0xc9, 0x24, 0xca, 0x28, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49,
   177  	0x2f, 0x39, 0x3f, 0x57, 0x1f, 0xe1, 0x7a, 0x64, 0x26, 0x86, 0x97, 0x93, 0xd8, 0xc0, 0x42, 0xc6,
   178  	0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x51, 0xcf, 0x02, 0x32, 0x0e, 0x01, 0x00, 0x00,
   179  }
   180  
   181  func (this *PublicKey) Compare(that interface{}) int {
   182  	if that == nil {
   183  		if this == nil {
   184  			return 0
   185  		}
   186  		return 1
   187  	}
   188  
   189  	that1, ok := that.(*PublicKey)
   190  	if !ok {
   191  		that2, ok := that.(PublicKey)
   192  		if ok {
   193  			that1 = &that2
   194  		} else {
   195  			return 1
   196  		}
   197  	}
   198  	if that1 == nil {
   199  		if this == nil {
   200  			return 0
   201  		}
   202  		return 1
   203  	} else if this == nil {
   204  		return -1
   205  	}
   206  	if that1.Sum == nil {
   207  		if this.Sum != nil {
   208  			return 1
   209  		}
   210  	} else if this.Sum == nil {
   211  		return -1
   212  	} else {
   213  		thisType := -1
   214  		switch this.Sum.(type) {
   215  		case *PublicKey_Ed25519:
   216  			thisType = 0
   217  		default:
   218  			panic(fmt.Sprintf("compare: unexpected type %T in oneof", this.Sum))
   219  		}
   220  		that1Type := -1
   221  		switch that1.Sum.(type) {
   222  		case *PublicKey_Ed25519:
   223  			that1Type = 0
   224  		default:
   225  			panic(fmt.Sprintf("compare: unexpected type %T in oneof", that1.Sum))
   226  		}
   227  		if thisType == that1Type {
   228  			if c := this.Sum.Compare(that1.Sum); c != 0 {
   229  				return c
   230  			}
   231  		} else if thisType < that1Type {
   232  			return -1
   233  		} else if thisType > that1Type {
   234  			return 1
   235  		}
   236  	}
   237  	if c := bytes.Compare(this.XXX_unrecognized, that1.XXX_unrecognized); c != 0 {
   238  		return c
   239  	}
   240  	return 0
   241  }
   242  func (this *PublicKey_Ed25519) Compare(that interface{}) int {
   243  	if that == nil {
   244  		if this == nil {
   245  			return 0
   246  		}
   247  		return 1
   248  	}
   249  
   250  	that1, ok := that.(*PublicKey_Ed25519)
   251  	if !ok {
   252  		that2, ok := that.(PublicKey_Ed25519)
   253  		if ok {
   254  			that1 = &that2
   255  		} else {
   256  			return 1
   257  		}
   258  	}
   259  	if that1 == nil {
   260  		if this == nil {
   261  			return 0
   262  		}
   263  		return 1
   264  	} else if this == nil {
   265  		return -1
   266  	}
   267  	if c := bytes.Compare(this.Ed25519, that1.Ed25519); c != 0 {
   268  		return c
   269  	}
   270  	return 0
   271  }
   272  func (this *PublicKey) Equal(that interface{}) bool {
   273  	if that == nil {
   274  		return this == nil
   275  	}
   276  
   277  	that1, ok := that.(*PublicKey)
   278  	if !ok {
   279  		that2, ok := that.(PublicKey)
   280  		if ok {
   281  			that1 = &that2
   282  		} else {
   283  			return false
   284  		}
   285  	}
   286  	if that1 == nil {
   287  		return this == nil
   288  	} else if this == nil {
   289  		return false
   290  	}
   291  	if that1.Sum == nil {
   292  		if this.Sum != nil {
   293  			return false
   294  		}
   295  	} else if this.Sum == nil {
   296  		return false
   297  	} else if !this.Sum.Equal(that1.Sum) {
   298  		return false
   299  	}
   300  	if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
   301  		return false
   302  	}
   303  	return true
   304  }
   305  func (this *PublicKey_Ed25519) Equal(that interface{}) bool {
   306  	if that == nil {
   307  		return this == nil
   308  	}
   309  
   310  	that1, ok := that.(*PublicKey_Ed25519)
   311  	if !ok {
   312  		that2, ok := that.(PublicKey_Ed25519)
   313  		if ok {
   314  			that1 = &that2
   315  		} else {
   316  			return false
   317  		}
   318  	}
   319  	if that1 == nil {
   320  		return this == nil
   321  	} else if this == nil {
   322  		return false
   323  	}
   324  	if !bytes.Equal(this.Ed25519, that1.Ed25519) {
   325  		return false
   326  	}
   327  	return true
   328  }