|
|
@ -661,6 +661,61 @@ func (*Message) XXX_OneofWrappers() []interface{} { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// AuthSigMessage is duplicated from p2p prior to the P2P refactor.
|
|
|
|
// It is used for the SecretConnection until we migrate privval to gRPC.
|
|
|
|
// https://github.com/tendermint/tendermint/issues/4698
|
|
|
|
type AuthSigMessage struct { |
|
|
|
PubKey crypto.PublicKey `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key"` |
|
|
|
Sig []byte `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"` |
|
|
|
} |
|
|
|
|
|
|
|
func (m *AuthSigMessage) Reset() { *m = AuthSigMessage{} } |
|
|
|
func (m *AuthSigMessage) String() string { return proto.CompactTextString(m) } |
|
|
|
func (*AuthSigMessage) ProtoMessage() {} |
|
|
|
func (*AuthSigMessage) Descriptor() ([]byte, []int) { |
|
|
|
return fileDescriptor_cb4e437a5328cf9c, []int{10} |
|
|
|
} |
|
|
|
func (m *AuthSigMessage) XXX_Unmarshal(b []byte) error { |
|
|
|
return m.Unmarshal(b) |
|
|
|
} |
|
|
|
func (m *AuthSigMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
|
|
|
if deterministic { |
|
|
|
return xxx_messageInfo_AuthSigMessage.Marshal(b, m, deterministic) |
|
|
|
} else { |
|
|
|
b = b[:cap(b)] |
|
|
|
n, err := m.MarshalToSizedBuffer(b) |
|
|
|
if err != nil { |
|
|
|
return nil, err |
|
|
|
} |
|
|
|
return b[:n], nil |
|
|
|
} |
|
|
|
} |
|
|
|
func (m *AuthSigMessage) XXX_Merge(src proto.Message) { |
|
|
|
xxx_messageInfo_AuthSigMessage.Merge(m, src) |
|
|
|
} |
|
|
|
func (m *AuthSigMessage) XXX_Size() int { |
|
|
|
return m.Size() |
|
|
|
} |
|
|
|
func (m *AuthSigMessage) XXX_DiscardUnknown() { |
|
|
|
xxx_messageInfo_AuthSigMessage.DiscardUnknown(m) |
|
|
|
} |
|
|
|
|
|
|
|
var xxx_messageInfo_AuthSigMessage proto.InternalMessageInfo |
|
|
|
|
|
|
|
func (m *AuthSigMessage) GetPubKey() crypto.PublicKey { |
|
|
|
if m != nil { |
|
|
|
return m.PubKey |
|
|
|
} |
|
|
|
return crypto.PublicKey{} |
|
|
|
} |
|
|
|
|
|
|
|
func (m *AuthSigMessage) GetSig() []byte { |
|
|
|
if m != nil { |
|
|
|
return m.Sig |
|
|
|
} |
|
|
|
return nil |
|
|
|
} |
|
|
|
|
|
|
|
func init() { |
|
|
|
proto.RegisterEnum("tendermint.privval.Errors", Errors_name, Errors_value) |
|
|
|
proto.RegisterType((*RemoteSignerError)(nil), "tendermint.privval.RemoteSignerError") |
|
|
@ -673,59 +728,62 @@ func init() { |
|
|
|
proto.RegisterType((*PingRequest)(nil), "tendermint.privval.PingRequest") |
|
|
|
proto.RegisterType((*PingResponse)(nil), "tendermint.privval.PingResponse") |
|
|
|
proto.RegisterType((*Message)(nil), "tendermint.privval.Message") |
|
|
|
proto.RegisterType((*AuthSigMessage)(nil), "tendermint.privval.AuthSigMessage") |
|
|
|
} |
|
|
|
|
|
|
|
func init() { proto.RegisterFile("tendermint/privval/types.proto", fileDescriptor_cb4e437a5328cf9c) } |
|
|
|
|
|
|
|
var fileDescriptor_cb4e437a5328cf9c = []byte{ |
|
|
|
// 750 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0x4d, 0x4f, 0x13, 0x41, |
|
|
|
0x18, 0xde, 0x85, 0x7e, 0xc0, 0x5b, 0x5a, 0xca, 0x80, 0x58, 0x1a, 0x5c, 0x6a, 0x8d, 0x4a, 0x7a, |
|
|
|
0x68, 0x0d, 0x26, 0x26, 0x06, 0x2f, 0x02, 0x1b, 0xdb, 0x34, 0x6c, 0xeb, 0xb4, 0x08, 0x21, 0x31, |
|
|
|
0x9b, 0x7e, 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, 0x3b, 0x2f, |
|
|
|
0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0xa5, 0x2a, 0xe5, 0x4a, 0x46, 0x07, 0x00, 0x00, |
|
|
|
// 779 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0x4b, 0x4f, 0xdb, 0x4a, |
|
|
|
0x14, 0xb6, 0xc9, 0x0b, 0x4e, 0x1e, 0x84, 0x81, 0xcb, 0x0d, 0x11, 0xd7, 0xe4, 0xfa, 0xea, 0xb6, |
|
|
|
0x28, 0x8b, 0xa4, 0xa2, 0x52, 0xa5, 0x8a, 0x6e, 0x78, 0x58, 0x4d, 0x14, 0xe1, 0xa4, 0x93, 0x50, |
|
|
|
0x10, 0x52, 0x65, 0xe5, 0x31, 0x75, 0x2c, 0x88, 0xed, 0x7a, 0x1c, 0xa4, 0xac, 0xbb, 0xeb, 0xaa, |
|
|
|
0x52, 0xff, 0x44, 0xd7, 0xfd, 0x15, 0x2c, 0x59, 0x76, 0x55, 0x55, 0xf0, 0x47, 0xaa, 0x8c, 0x27, |
|
|
|
0x8e, 0xf3, 0x42, 0xad, 0xd8, 0xcd, 0x9c, 0x73, 0xe6, 0x3b, 0xdf, 0x37, 0xf3, 0xd9, 0x07, 0x24, |
|
|
|
0x97, 0x98, 0x1d, 0xe2, 0xf4, 0x0c, 0xd3, 0x2d, 0xda, 0x8e, 0x71, 0x7d, 0xdd, 0xbc, 0x2a, 0xba, |
|
|
|
0x03, 0x9b, 0xd0, 0x82, 0xed, 0x58, 0xae, 0x85, 0xd0, 0x38, 0x5f, 0xe0, 0xf9, 0xec, 0x76, 0xe0, |
|
|
|
0x4c, 0xdb, 0x19, 0xd8, 0xae, 0x55, 0xbc, 0x24, 0x03, 0x7e, 0x62, 0x22, 0xcb, 0x90, 0x82, 0x78, |
|
|
|
0xd9, 0x0d, 0xdd, 0xd2, 0x2d, 0xb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x57, 0xd2, 0x22, 0xca, 0xc0, 0x06, 0xcf, 0xab, 0x55, 0xed, 0xa8, |
|
|
|
0xaa, 0xaa, 0xca, 0x51, 0xa3, 0x5c, 0x55, 0xd3, 0x4b, 0xe8, 0x1f, 0xd8, 0xe2, 0x99, 0x71, 0x58, |
|
|
|
0x6b, 0x94, 0x4f, 0x94, 0xea, 0x69, 0x23, 0x1d, 0x42, 0x7f, 0xc3, 0x3a, 0x4f, 0x63, 0xe5, 0xe0, |
|
|
|
0xd8, 0x4f, 0x84, 0x03, 0x88, 0x67, 0xb8, 0xdc, 0x50, 0xfc, 0x4c, 0xe4, 0xb0, 0x7e, 0x73, 0x27, |
|
|
|
0x89, 0xb7, 0x77, 0x92, 0xf8, 0xf3, 0x4e, 0x12, 0x3f, 0xdf, 0x4b, 0xc2, 0xed, 0xbd, 0x24, 0x7c, |
|
|
|
0xbf, 0x97, 0x84, 0x8b, 0x97, 0xba, 0xe1, 0x76, 0xfb, 0xad, 0x42, 0xdb, 0xea, 0x15, 0x83, 0xc3, |
|
|
|
0x31, 0x38, 0x79, 0x87, 0x03, 0x71, 0x76, 0x14, 0xb7, 0xa2, 0x2c, 0xf3, 0xfc, 0x57, 0x00, 0x00, |
|
|
|
0x00, 0xff, 0xff, 0x46, 0x64, 0xeb, 0xa4, 0xa7, 0x07, 0x00, 0x00, |
|
|
|
} |
|
|
|
|
|
|
|
func (m *RemoteSignerError) Marshal() (dAtA []byte, err error) { |
|
|
@ -1258,6 +1316,46 @@ func (m *Message_PingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
|
|
|
} |
|
|
|
return len(dAtA) - i, nil |
|
|
|
} |
|
|
|
func (m *AuthSigMessage) Marshal() (dAtA []byte, err error) { |
|
|
|
size := m.Size() |
|
|
|
dAtA = make([]byte, size) |
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
|
|
|
if err != nil { |
|
|
|
return nil, err |
|
|
|
} |
|
|
|
return dAtA[:n], nil |
|
|
|
} |
|
|
|
|
|
|
|
func (m *AuthSigMessage) MarshalTo(dAtA []byte) (int, error) { |
|
|
|
size := m.Size() |
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size]) |
|
|
|
} |
|
|
|
|
|
|
|
func (m *AuthSigMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
|
|
|
i := len(dAtA) |
|
|
|
_ = i |
|
|
|
var l int |
|
|
|
_ = l |
|
|
|
if len(m.Sig) > 0 { |
|
|
|
i -= len(m.Sig) |
|
|
|
copy(dAtA[i:], m.Sig) |
|
|
|
i = encodeVarintTypes(dAtA, i, uint64(len(m.Sig))) |
|
|
|
i-- |
|
|
|
dAtA[i] = 0x12 |
|
|
|
} |
|
|
|
{ |
|
|
|
size, err := m.PubKey.MarshalToSizedBuffer(dAtA[:i]) |
|
|
|
if err != nil { |
|
|
|
return 0, err |
|
|
|
} |
|
|
|
i -= size |
|
|
|
i = encodeVarintTypes(dAtA, i, uint64(size)) |
|
|
|
} |
|
|
|
i-- |
|
|
|
dAtA[i] = 0xa |
|
|
|
return len(dAtA) - i, nil |
|
|
|
} |
|
|
|
|
|
|
|
func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { |
|
|
|
offset -= sovTypes(v) |
|
|
|
base := offset |
|
|
@ -1503,6 +1601,20 @@ func (m *Message_PingResponse) Size() (n int) { |
|
|
|
} |
|
|
|
return n |
|
|
|
} |
|
|
|
func (m *AuthSigMessage) Size() (n int) { |
|
|
|
if m == nil { |
|
|
|
return 0 |
|
|
|
} |
|
|
|
var l int |
|
|
|
_ = l |
|
|
|
l = m.PubKey.Size() |
|
|
|
n += 1 + l + sovTypes(uint64(l)) |
|
|
|
l = len(m.Sig) |
|
|
|
if l > 0 { |
|
|
|
n += 1 + l + sovTypes(uint64(l)) |
|
|
|
} |
|
|
|
return n |
|
|
|
} |
|
|
|
|
|
|
|
func sovTypes(x uint64) (n int) { |
|
|
|
return (math_bits.Len64(x|1) + 6) / 7 |
|
|
@ -2746,6 +2858,126 @@ func (m *Message) Unmarshal(dAtA []byte) error { |
|
|
|
} |
|
|
|
return nil |
|
|
|
} |
|
|
|
func (m *AuthSigMessage) Unmarshal(dAtA []byte) error { |
|
|
|
l := len(dAtA) |
|
|
|
iNdEx := 0 |
|
|
|
for iNdEx < l { |
|
|
|
preIndex := iNdEx |
|
|
|
var wire uint64 |
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
if shift >= 64 { |
|
|
|
return ErrIntOverflowTypes |
|
|
|
} |
|
|
|
if iNdEx >= l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
b := dAtA[iNdEx] |
|
|
|
iNdEx++ |
|
|
|
wire |= uint64(b&0x7F) << shift |
|
|
|
if b < 0x80 { |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
fieldNum := int32(wire >> 3) |
|
|
|
wireType := int(wire & 0x7) |
|
|
|
if wireType == 4 { |
|
|
|
return fmt.Errorf("proto: AuthSigMessage: wiretype end group for non-group") |
|
|
|
} |
|
|
|
if fieldNum <= 0 { |
|
|
|
return fmt.Errorf("proto: AuthSigMessage: illegal tag %d (wire type %d)", fieldNum, wire) |
|
|
|
} |
|
|
|
switch fieldNum { |
|
|
|
case 1: |
|
|
|
if wireType != 2 { |
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType) |
|
|
|
} |
|
|
|
var msglen int |
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
if shift >= 64 { |
|
|
|
return ErrIntOverflowTypes |
|
|
|
} |
|
|
|
if iNdEx >= l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
b := dAtA[iNdEx] |
|
|
|
iNdEx++ |
|
|
|
msglen |= int(b&0x7F) << shift |
|
|
|
if b < 0x80 { |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
if msglen < 0 { |
|
|
|
return ErrInvalidLengthTypes |
|
|
|
} |
|
|
|
postIndex := iNdEx + msglen |
|
|
|
if postIndex < 0 { |
|
|
|
return ErrInvalidLengthTypes |
|
|
|
} |
|
|
|
if postIndex > l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
if err := m.PubKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
|
|
|
return err |
|
|
|
} |
|
|
|
iNdEx = postIndex |
|
|
|
case 2: |
|
|
|
if wireType != 2 { |
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Sig", wireType) |
|
|
|
} |
|
|
|
var byteLen int |
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
if shift >= 64 { |
|
|
|
return ErrIntOverflowTypes |
|
|
|
} |
|
|
|
if iNdEx >= l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
b := dAtA[iNdEx] |
|
|
|
iNdEx++ |
|
|
|
byteLen |= int(b&0x7F) << shift |
|
|
|
if b < 0x80 { |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
if byteLen < 0 { |
|
|
|
return ErrInvalidLengthTypes |
|
|
|
} |
|
|
|
postIndex := iNdEx + byteLen |
|
|
|
if postIndex < 0 { |
|
|
|
return ErrInvalidLengthTypes |
|
|
|
} |
|
|
|
if postIndex > l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
m.Sig = append(m.Sig[:0], dAtA[iNdEx:postIndex]...) |
|
|
|
if m.Sig == nil { |
|
|
|
m.Sig = []byte{} |
|
|
|
} |
|
|
|
iNdEx = postIndex |
|
|
|
default: |
|
|
|
iNdEx = preIndex |
|
|
|
skippy, err := skipTypes(dAtA[iNdEx:]) |
|
|
|
if err != nil { |
|
|
|
return err |
|
|
|
} |
|
|
|
if skippy < 0 { |
|
|
|
return ErrInvalidLengthTypes |
|
|
|
} |
|
|
|
if (iNdEx + skippy) < 0 { |
|
|
|
return ErrInvalidLengthTypes |
|
|
|
} |
|
|
|
if (iNdEx + skippy) > l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
iNdEx += skippy |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if iNdEx > l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
return nil |
|
|
|
} |
|
|
|
func skipTypes(dAtA []byte) (n int, err error) { |
|
|
|
l := len(dAtA) |
|
|
|
iNdEx := 0 |
|
|
|