mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
d447bb6458
* implement keymanager proto * utilize proto message and properly comment * add in godoc * doc * add in doc * sign implementation done * add documentation for direct keymanager and add lock to signing * sign method tests * update godoc * concrete sign * fix build * proper iface
91 lines
3.2 KiB
Go
Executable File
Generated
91 lines
3.2 KiB
Go
Executable File
Generated
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: proto/validator/accounts/v2/keymanager.proto
|
|
|
|
package ethereum_validator_accounts_v2
|
|
|
|
import (
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
math "math"
|
|
)
|
|
|
|
// 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
|
|
|
|
type SignRequest struct {
|
|
PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
|
|
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *SignRequest) Reset() { *m = SignRequest{} }
|
|
func (m *SignRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*SignRequest) ProtoMessage() {}
|
|
func (*SignRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_795e98bd0a473d79, []int{0}
|
|
}
|
|
|
|
func (m *SignRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_SignRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *SignRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_SignRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *SignRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SignRequest.Merge(m, src)
|
|
}
|
|
func (m *SignRequest) XXX_Size() int {
|
|
return xxx_messageInfo_SignRequest.Size(m)
|
|
}
|
|
func (m *SignRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SignRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SignRequest proto.InternalMessageInfo
|
|
|
|
func (m *SignRequest) GetPublicKey() []byte {
|
|
if m != nil {
|
|
return m.PublicKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *SignRequest) GetData() []byte {
|
|
if m != nil {
|
|
return m.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*SignRequest)(nil), "ethereum.validator.accounts.v2.SignRequest")
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("proto/validator/accounts/v2/keymanager.proto", fileDescriptor_795e98bd0a473d79)
|
|
}
|
|
|
|
var fileDescriptor_795e98bd0a473d79 = []byte{
|
|
// 147 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x29, 0x28, 0xca, 0x2f,
|
|
0xc9, 0xd7, 0x2f, 0x4b, 0xcc, 0xc9, 0x4c, 0x49, 0x2c, 0xc9, 0x2f, 0xd2, 0x4f, 0x4c, 0x4e, 0xce,
|
|
0x2f, 0xcd, 0x2b, 0x29, 0xd6, 0x2f, 0x33, 0xd2, 0xcf, 0x4e, 0xad, 0xcc, 0x4d, 0xcc, 0x4b, 0x4c,
|
|
0x4f, 0x2d, 0xd2, 0x03, 0x2b, 0x13, 0x92, 0x4b, 0x2d, 0xc9, 0x48, 0x2d, 0x4a, 0x2d, 0xcd, 0xd5,
|
|
0x83, 0x6b, 0xd0, 0x83, 0x69, 0xd0, 0x2b, 0x33, 0x52, 0x72, 0xe0, 0xe2, 0x0e, 0xce, 0x4c, 0xcf,
|
|
0x0b, 0x4a, 0x2d, 0x2c, 0x4d, 0x2d, 0x2e, 0x11, 0x92, 0xe5, 0xe2, 0x2a, 0x28, 0x4d, 0xca, 0xc9,
|
|
0x4c, 0x8e, 0xcf, 0x4e, 0xad, 0x94, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x09, 0xe2, 0x84, 0x88, 0x78,
|
|
0xa7, 0x56, 0x0a, 0x09, 0x71, 0xb1, 0xa4, 0x24, 0x96, 0x24, 0x4a, 0x30, 0x81, 0x25, 0xc0, 0xec,
|
|
0x24, 0x36, 0xb0, 0x45, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xec, 0x94, 0x24, 0x3b, 0x98,
|
|
0x00, 0x00, 0x00,
|
|
}
|