mirror of
https://github.com/SwingbyProtocol/tss-lib.git
synced 2026-01-09 13:57:58 -05:00
ECPoint message migration in protobufs
This commit is contained in:
@@ -86,14 +86,107 @@ func (x *ECPoint) GetY() []byte {
|
||||
return nil
|
||||
}
|
||||
|
||||
type ECSignature struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
|
||||
// Ethereum-style recovery byte; only the first byte is relevant
|
||||
SignatureRecovery []byte `protobuf:"bytes,2,opt,name=signature_recovery,json=signatureRecovery,proto3" json:"signature_recovery,omitempty"`
|
||||
// Signature components R, S
|
||||
R []byte `protobuf:"bytes,3,opt,name=r,proto3" json:"r,omitempty"`
|
||||
S []byte `protobuf:"bytes,4,opt,name=s,proto3" json:"s,omitempty"`
|
||||
// M represents the original message digest that was signed M
|
||||
M []byte `protobuf:"bytes,5,opt,name=m,proto3" json:"m,omitempty"`
|
||||
}
|
||||
|
||||
func (x *ECSignature) Reset() {
|
||||
*x = ECSignature{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_protob_shared_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *ECSignature) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ECSignature) ProtoMessage() {}
|
||||
|
||||
func (x *ECSignature) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_protob_shared_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ECSignature.ProtoReflect.Descriptor instead.
|
||||
func (*ECSignature) Descriptor() ([]byte, []int) {
|
||||
return file_protob_shared_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *ECSignature) GetSignature() []byte {
|
||||
if x != nil {
|
||||
return x.Signature
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ECSignature) GetSignatureRecovery() []byte {
|
||||
if x != nil {
|
||||
return x.SignatureRecovery
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ECSignature) GetR() []byte {
|
||||
if x != nil {
|
||||
return x.R
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ECSignature) GetS() []byte {
|
||||
if x != nil {
|
||||
return x.S
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ECSignature) GetM() []byte {
|
||||
if x != nil {
|
||||
return x.M
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_protob_shared_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_protob_shared_proto_rawDesc = []byte{
|
||||
0x0a, 0x13, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x25, 0x0a, 0x07, 0x45, 0x43, 0x50, 0x6f, 0x69, 0x6e, 0x74,
|
||||
0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x01, 0x78, 0x12, 0x0c,
|
||||
0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x01, 0x79, 0x42, 0x0a, 0x5a, 0x08,
|
||||
0x2e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x01, 0x79, 0x22, 0x84, 0x01, 0x0a,
|
||||
0x0b, 0x45, 0x43, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x1c, 0x0a, 0x09,
|
||||
0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52,
|
||||
0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x73, 0x69,
|
||||
0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72,
|
||||
0x65, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x12, 0x0c, 0x0a, 0x01, 0x72, 0x18, 0x03,
|
||||
0x20, 0x01, 0x28, 0x0c, 0x52, 0x01, 0x72, 0x12, 0x0c, 0x0a, 0x01, 0x73, 0x18, 0x04, 0x20, 0x01,
|
||||
0x28, 0x0c, 0x52, 0x01, 0x73, 0x12, 0x0c, 0x0a, 0x01, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c,
|
||||
0x52, 0x01, 0x6d, 0x42, 0x29, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
|
||||
0x6d, 0x2f, 0x62, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f,
|
||||
0x74, 0x73, 0x73, 0x2d, 0x6c, 0x69, 0x62, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -108,9 +201,10 @@ func file_protob_shared_proto_rawDescGZIP() []byte {
|
||||
return file_protob_shared_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_protob_shared_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_protob_shared_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_protob_shared_proto_goTypes = []interface{}{
|
||||
(*ECPoint)(nil), // 0: ECPoint
|
||||
(*ECPoint)(nil), // 0: ECPoint
|
||||
(*ECSignature)(nil), // 1: ECSignature
|
||||
}
|
||||
var file_protob_shared_proto_depIdxs = []int32{
|
||||
0, // [0:0] is the sub-list for method output_type
|
||||
@@ -138,6 +232,18 @@ func file_protob_shared_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_protob_shared_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ECSignature); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
@@ -145,7 +251,7 @@ func file_protob_shared_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_protob_shared_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumMessages: 2,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
|
||||
@@ -302,8 +302,10 @@ var file_protob_ecdsa_keygen_proto_rawDesc = []byte{
|
||||
0x75, 0x6e, 0x64, 0x33, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x70,
|
||||
0x61, 0x69, 0x6c, 0x6c, 0x69, 0x65, 0x72, 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x01, 0x20,
|
||||
0x03, 0x28, 0x0c, 0x52, 0x0d, 0x70, 0x61, 0x69, 0x6c, 0x6c, 0x69, 0x65, 0x72, 0x50, 0x72, 0x6f,
|
||||
0x6f, 0x66, 0x42, 0x0e, 0x5a, 0x0c, 0x65, 0x63, 0x64, 0x73, 0x61, 0x2f, 0x6b, 0x65, 0x79, 0x67,
|
||||
0x65, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x6f, 0x66, 0x42, 0x2f, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
|
||||
0x2f, 0x62, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x74,
|
||||
0x73, 0x73, 0x2d, 0x6c, 0x69, 0x62, 0x2f, 0x65, 0x63, 0x64, 0x73, 0x61, 0x2f, 0x6b, 0x65, 0x79,
|
||||
0x67, 0x65, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
package resharing
|
||||
|
||||
import (
|
||||
common "github.com/binance-chain/tss-lib/common"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
@@ -38,9 +39,8 @@ type DGRound1Message struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
EcdsaPubX []byte `protobuf:"bytes,1,opt,name=ecdsa_pub_x,json=ecdsaPubX,proto3" json:"ecdsa_pub_x,omitempty"`
|
||||
EcdsaPubY []byte `protobuf:"bytes,2,opt,name=ecdsa_pub_y,json=ecdsaPubY,proto3" json:"ecdsa_pub_y,omitempty"`
|
||||
VCommitment []byte `protobuf:"bytes,3,opt,name=v_commitment,json=vCommitment,proto3" json:"v_commitment,omitempty"`
|
||||
EcdsaPub *common.ECPoint `protobuf:"bytes,1,opt,name=ecdsa_pub,json=ecdsaPub,proto3" json:"ecdsa_pub,omitempty"`
|
||||
VCommitment []byte `protobuf:"bytes,2,opt,name=v_commitment,json=vCommitment,proto3" json:"v_commitment,omitempty"`
|
||||
}
|
||||
|
||||
func (x *DGRound1Message) Reset() {
|
||||
@@ -75,16 +75,9 @@ func (*DGRound1Message) Descriptor() ([]byte, []int) {
|
||||
return file_protob_ecdsa_resharing_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *DGRound1Message) GetEcdsaPubX() []byte {
|
||||
func (x *DGRound1Message) GetEcdsaPub() *common.ECPoint {
|
||||
if x != nil {
|
||||
return x.EcdsaPubX
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DGRound1Message) GetEcdsaPubY() []byte {
|
||||
if x != nil {
|
||||
return x.EcdsaPubY
|
||||
return x.EcdsaPub
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -375,38 +368,40 @@ var File_protob_ecdsa_resharing_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_protob_ecdsa_resharing_proto_rawDesc = []byte{
|
||||
0x0a, 0x1c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x2f, 0x65, 0x63, 0x64, 0x73, 0x61, 0x2d, 0x72,
|
||||
0x65, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x74,
|
||||
0x0a, 0x0f, 0x44, 0x47, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x31, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
||||
0x65, 0x12, 0x1e, 0x0a, 0x0b, 0x65, 0x63, 0x64, 0x73, 0x61, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x78,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x65, 0x63, 0x64, 0x73, 0x61, 0x50, 0x75, 0x62,
|
||||
0x58, 0x12, 0x1e, 0x0a, 0x0b, 0x65, 0x63, 0x64, 0x73, 0x61, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x79,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x65, 0x63, 0x64, 0x73, 0x61, 0x50, 0x75, 0x62,
|
||||
0x59, 0x12, 0x21, 0x0a, 0x0c, 0x76, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e,
|
||||
0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x76, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74,
|
||||
0x6d, 0x65, 0x6e, 0x74, 0x22, 0xcf, 0x01, 0x0a, 0x10, 0x44, 0x47, 0x52, 0x6f, 0x75, 0x6e, 0x64,
|
||||
0x32, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x69,
|
||||
0x6c, 0x6c, 0x69, 0x65, 0x72, 0x5f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70,
|
||||
0x61, 0x69, 0x6c, 0x6c, 0x69, 0x65, 0x72, 0x4e, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x61, 0x69, 0x6c,
|
||||
0x6c, 0x69, 0x65, 0x72, 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c,
|
||||
0x52, 0x0d, 0x70, 0x61, 0x69, 0x6c, 0x6c, 0x69, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12,
|
||||
0x17, 0x0a, 0x07, 0x6e, 0x5f, 0x74, 0x69, 0x6c, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c,
|
||||
0x52, 0x06, 0x6e, 0x54, 0x69, 0x6c, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x68, 0x31, 0x18, 0x04,
|
||||
0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x68, 0x31, 0x12, 0x0e, 0x0a, 0x02, 0x68, 0x32, 0x18, 0x05,
|
||||
0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x68, 0x32, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x6c, 0x6e, 0x70,
|
||||
0x72, 0x6f, 0x6f, 0x66, 0x5f, 0x31, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x09, 0x64, 0x6c,
|
||||
0x6e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x31, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x6c, 0x6e, 0x70, 0x72,
|
||||
0x6f, 0x6f, 0x66, 0x5f, 0x32, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x09, 0x64, 0x6c, 0x6e,
|
||||
0x70, 0x72, 0x6f, 0x6f, 0x66, 0x32, 0x22, 0x12, 0x0a, 0x10, 0x44, 0x47, 0x52, 0x6f, 0x75, 0x6e,
|
||||
0x64, 0x32, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x22, 0x28, 0x0a, 0x10, 0x44, 0x47,
|
||||
0x52, 0x6f, 0x75, 0x6e, 0x64, 0x33, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x12, 0x14,
|
||||
0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x73,
|
||||
0x68, 0x61, 0x72, 0x65, 0x22, 0x39, 0x0a, 0x10, 0x44, 0x47, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x33,
|
||||
0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x12, 0x25, 0x0a, 0x0e, 0x76, 0x5f, 0x64, 0x65,
|
||||
0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c,
|
||||
0x52, 0x0d, 0x76, 0x44, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x22,
|
||||
0x11, 0x0a, 0x0f, 0x44, 0x47, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x34, 0x4d, 0x65, 0x73, 0x73, 0x61,
|
||||
0x67, 0x65, 0x42, 0x11, 0x5a, 0x0f, 0x65, 0x63, 0x64, 0x73, 0x61, 0x2f, 0x72, 0x65, 0x73, 0x68,
|
||||
0x61, 0x72, 0x69, 0x6e, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x65, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x22, 0x5b, 0x0a, 0x0f, 0x44, 0x47, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x31, 0x4d,
|
||||
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x0a, 0x09, 0x65, 0x63, 0x64, 0x73, 0x61, 0x5f,
|
||||
0x70, 0x75, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x45, 0x43, 0x50, 0x6f,
|
||||
0x69, 0x6e, 0x74, 0x52, 0x08, 0x65, 0x63, 0x64, 0x73, 0x61, 0x50, 0x75, 0x62, 0x12, 0x21, 0x0a,
|
||||
0x0c, 0x76, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20,
|
||||
0x01, 0x28, 0x0c, 0x52, 0x0b, 0x76, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74,
|
||||
0x22, 0xcf, 0x01, 0x0a, 0x10, 0x44, 0x47, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x32, 0x4d, 0x65, 0x73,
|
||||
0x73, 0x61, 0x67, 0x65, 0x31, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x69, 0x6c, 0x6c, 0x69, 0x65,
|
||||
0x72, 0x5f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x61, 0x69, 0x6c, 0x6c,
|
||||
0x69, 0x65, 0x72, 0x4e, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x61, 0x69, 0x6c, 0x6c, 0x69, 0x65, 0x72,
|
||||
0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0d, 0x70, 0x61,
|
||||
0x69, 0x6c, 0x6c, 0x69, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x17, 0x0a, 0x07, 0x6e,
|
||||
0x5f, 0x74, 0x69, 0x6c, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6e, 0x54,
|
||||
0x69, 0x6c, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x68, 0x31, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c,
|
||||
0x52, 0x02, 0x68, 0x31, 0x12, 0x0e, 0x0a, 0x02, 0x68, 0x32, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c,
|
||||
0x52, 0x02, 0x68, 0x32, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x6c, 0x6e, 0x70, 0x72, 0x6f, 0x6f, 0x66,
|
||||
0x5f, 0x31, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x09, 0x64, 0x6c, 0x6e, 0x70, 0x72, 0x6f,
|
||||
0x6f, 0x66, 0x31, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x6c, 0x6e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f,
|
||||
0x32, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x09, 0x64, 0x6c, 0x6e, 0x70, 0x72, 0x6f, 0x6f,
|
||||
0x66, 0x32, 0x22, 0x12, 0x0a, 0x10, 0x44, 0x47, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x32, 0x4d, 0x65,
|
||||
0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x22, 0x28, 0x0a, 0x10, 0x44, 0x47, 0x52, 0x6f, 0x75, 0x6e,
|
||||
0x64, 0x33, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68,
|
||||
0x61, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65,
|
||||
0x22, 0x39, 0x0a, 0x10, 0x44, 0x47, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x33, 0x4d, 0x65, 0x73, 0x73,
|
||||
0x61, 0x67, 0x65, 0x32, 0x12, 0x25, 0x0a, 0x0e, 0x76, 0x5f, 0x64, 0x65, 0x63, 0x6f, 0x6d, 0x6d,
|
||||
0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0d, 0x76, 0x44,
|
||||
0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x11, 0x0a, 0x0f, 0x44,
|
||||
0x47, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x34, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x32,
|
||||
0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x69, 0x6e,
|
||||
0x61, 0x6e, 0x63, 0x65, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x74, 0x73, 0x73, 0x2d, 0x6c,
|
||||
0x69, 0x62, 0x2f, 0x65, 0x63, 0x64, 0x73, 0x61, 0x2f, 0x72, 0x65, 0x73, 0x68, 0x61, 0x72, 0x69,
|
||||
0x6e, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -429,13 +424,15 @@ var file_protob_ecdsa_resharing_proto_goTypes = []interface{}{
|
||||
(*DGRound3Message1)(nil), // 3: DGRound3Message1
|
||||
(*DGRound3Message2)(nil), // 4: DGRound3Message2
|
||||
(*DGRound4Message)(nil), // 5: DGRound4Message
|
||||
(*common.ECPoint)(nil), // 6: ECPoint
|
||||
}
|
||||
var file_protob_ecdsa_resharing_proto_depIdxs = []int32{
|
||||
0, // [0:0] is the sub-list for method output_type
|
||||
0, // [0:0] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
6, // 0: DGRound1Message.ecdsa_pub:type_name -> ECPoint
|
||||
1, // [1:1] is the sub-list for method output_type
|
||||
1, // [1:1] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
1, // [1:1] is the sub-list for extension extendee
|
||||
0, // [0:1] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_protob_ecdsa_resharing_proto_init() }
|
||||
|
||||
311
ecdsa/signing/ecdsa-signature.pb.go
Normal file
311
ecdsa/signing/ecdsa-signature.pb.go
Normal file
@@ -0,0 +1,311 @@
|
||||
// Copyright © 2019 Binance
|
||||
//
|
||||
// This file is part of Binance. The full Binance copyright notice, including
|
||||
// terms governing use, modification, and redistribution, is contained in the
|
||||
// file LICENSE at the root of the source code distribution tree.
|
||||
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.24.0
|
||||
// protoc v3.12.3
|
||||
// source: protob/ecdsa-signature.proto
|
||||
|
||||
package signing
|
||||
|
||||
import (
|
||||
common "github.com/binance-chain/tss-lib/common"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
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)
|
||||
)
|
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
//
|
||||
// State object for signatures, either partial (for offline/async "one round" signing) or full (contains the final ECDSA signature).
|
||||
type SignatureData struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Signature *common.ECSignature `protobuf:"bytes,10,opt,name=signature,proto3" json:"signature,omitempty"`
|
||||
OneRoundData *SignatureData_OneRoundData `protobuf:"bytes,11,opt,name=one_round_data,json=oneRoundData,proto3" json:"one_round_data,omitempty"`
|
||||
}
|
||||
|
||||
func (x *SignatureData) Reset() {
|
||||
*x = SignatureData{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_protob_ecdsa_signature_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *SignatureData) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SignatureData) ProtoMessage() {}
|
||||
|
||||
func (x *SignatureData) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_protob_ecdsa_signature_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SignatureData.ProtoReflect.Descriptor instead.
|
||||
func (*SignatureData) Descriptor() ([]byte, []int) {
|
||||
return file_protob_ecdsa_signature_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *SignatureData) GetSignature() *common.ECSignature {
|
||||
if x != nil {
|
||||
return x.Signature
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SignatureData) GetOneRoundData() *SignatureData_OneRoundData {
|
||||
if x != nil {
|
||||
return x.OneRoundData
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type SignatureData_OneRoundData struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// Sanity check in FinalizeGetAndVerifyFinalSig
|
||||
T int32 `protobuf:"varint,1,opt,name=t,proto3" json:"t,omitempty"`
|
||||
// Components to produce s = sum(s_i)
|
||||
KI []byte `protobuf:"bytes,2,opt,name=k_i,json=kI,proto3" json:"k_i,omitempty"`
|
||||
RSigmaI []byte `protobuf:"bytes,3,opt,name=r_sigma_i,json=rSigmaI,proto3" json:"r_sigma_i,omitempty"`
|
||||
BigR *common.ECPoint `protobuf:"bytes,4,opt,name=big_r,json=bigR,proto3" json:"big_r,omitempty"`
|
||||
// Components for identifiable aborts during the final phase
|
||||
BigRBarJ map[string]*common.ECPoint `protobuf:"bytes,5,rep,name=big_r_bar_j,json=bigRBarJ,proto3" json:"big_r_bar_j,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
BigSJ map[string]*common.ECPoint `protobuf:"bytes,6,rep,name=big_s_j,json=bigSJ,proto3" json:"big_s_j,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
}
|
||||
|
||||
func (x *SignatureData_OneRoundData) Reset() {
|
||||
*x = SignatureData_OneRoundData{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_protob_ecdsa_signature_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *SignatureData_OneRoundData) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SignatureData_OneRoundData) ProtoMessage() {}
|
||||
|
||||
func (x *SignatureData_OneRoundData) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_protob_ecdsa_signature_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SignatureData_OneRoundData.ProtoReflect.Descriptor instead.
|
||||
func (*SignatureData_OneRoundData) Descriptor() ([]byte, []int) {
|
||||
return file_protob_ecdsa_signature_proto_rawDescGZIP(), []int{0, 0}
|
||||
}
|
||||
|
||||
func (x *SignatureData_OneRoundData) GetT() int32 {
|
||||
if x != nil {
|
||||
return x.T
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *SignatureData_OneRoundData) GetKI() []byte {
|
||||
if x != nil {
|
||||
return x.KI
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SignatureData_OneRoundData) GetRSigmaI() []byte {
|
||||
if x != nil {
|
||||
return x.RSigmaI
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SignatureData_OneRoundData) GetBigR() *common.ECPoint {
|
||||
if x != nil {
|
||||
return x.BigR
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SignatureData_OneRoundData) GetBigRBarJ() map[string]*common.ECPoint {
|
||||
if x != nil {
|
||||
return x.BigRBarJ
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SignatureData_OneRoundData) GetBigSJ() map[string]*common.ECPoint {
|
||||
if x != nil {
|
||||
return x.BigSJ
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_protob_ecdsa_signature_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_protob_ecdsa_signature_proto_rawDesc = []byte{
|
||||
0x0a, 0x1c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x2f, 0x65, 0x63, 0x64, 0x73, 0x61, 0x2d, 0x73,
|
||||
0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x22, 0xfe, 0x03, 0x0a, 0x0d, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72,
|
||||
0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x2a, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75,
|
||||
0x72, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x45, 0x43, 0x53, 0x69, 0x67,
|
||||
0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72,
|
||||
0x65, 0x12, 0x41, 0x0a, 0x0e, 0x6f, 0x6e, 0x65, 0x5f, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x64,
|
||||
0x61, 0x74, 0x61, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x53, 0x69, 0x67, 0x6e,
|
||||
0x61, 0x74, 0x75, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x4f, 0x6e, 0x65, 0x52, 0x6f, 0x75,
|
||||
0x6e, 0x64, 0x44, 0x61, 0x74, 0x61, 0x52, 0x0c, 0x6f, 0x6e, 0x65, 0x52, 0x6f, 0x75, 0x6e, 0x64,
|
||||
0x44, 0x61, 0x74, 0x61, 0x1a, 0xfd, 0x02, 0x0a, 0x0c, 0x4f, 0x6e, 0x65, 0x52, 0x6f, 0x75, 0x6e,
|
||||
0x64, 0x44, 0x61, 0x74, 0x61, 0x12, 0x0c, 0x0a, 0x01, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
|
||||
0x52, 0x01, 0x74, 0x12, 0x0f, 0x0a, 0x03, 0x6b, 0x5f, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c,
|
||||
0x52, 0x02, 0x6b, 0x49, 0x12, 0x1a, 0x0a, 0x09, 0x72, 0x5f, 0x73, 0x69, 0x67, 0x6d, 0x61, 0x5f,
|
||||
0x69, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x72, 0x53, 0x69, 0x67, 0x6d, 0x61, 0x49,
|
||||
0x12, 0x1d, 0x0a, 0x05, 0x62, 0x69, 0x67, 0x5f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||
0x08, 0x2e, 0x45, 0x43, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x04, 0x62, 0x69, 0x67, 0x52, 0x12,
|
||||
0x48, 0x0a, 0x0b, 0x62, 0x69, 0x67, 0x5f, 0x72, 0x5f, 0x62, 0x61, 0x72, 0x5f, 0x6a, 0x18, 0x05,
|
||||
0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65,
|
||||
0x44, 0x61, 0x74, 0x61, 0x2e, 0x4f, 0x6e, 0x65, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x44, 0x61, 0x74,
|
||||
0x61, 0x2e, 0x42, 0x69, 0x67, 0x52, 0x42, 0x61, 0x72, 0x4a, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
|
||||
0x08, 0x62, 0x69, 0x67, 0x52, 0x42, 0x61, 0x72, 0x4a, 0x12, 0x3e, 0x0a, 0x07, 0x62, 0x69, 0x67,
|
||||
0x5f, 0x73, 0x5f, 0x6a, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x53, 0x69, 0x67,
|
||||
0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x4f, 0x6e, 0x65, 0x52, 0x6f,
|
||||
0x75, 0x6e, 0x64, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x42, 0x69, 0x67, 0x53, 0x4a, 0x45, 0x6e, 0x74,
|
||||
0x72, 0x79, 0x52, 0x05, 0x62, 0x69, 0x67, 0x53, 0x4a, 0x1a, 0x45, 0x0a, 0x0d, 0x42, 0x69, 0x67,
|
||||
0x52, 0x42, 0x61, 0x72, 0x4a, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,
|
||||
0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1e, 0x0a, 0x05,
|
||||
0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x45, 0x43,
|
||||
0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01,
|
||||
0x1a, 0x42, 0x0a, 0x0a, 0x42, 0x69, 0x67, 0x53, 0x4a, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10,
|
||||
0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79,
|
||||
0x12, 0x1e, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||
0x08, 0x2e, 0x45, 0x43, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
|
||||
0x3a, 0x02, 0x38, 0x01, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
|
||||
0x6f, 0x6d, 0x2f, 0x62, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e,
|
||||
0x2f, 0x74, 0x73, 0x73, 0x2d, 0x6c, 0x69, 0x62, 0x2f, 0x65, 0x63, 0x64, 0x73, 0x61, 0x2f, 0x73,
|
||||
0x69, 0x67, 0x6e, 0x69, 0x6e, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_protob_ecdsa_signature_proto_rawDescOnce sync.Once
|
||||
file_protob_ecdsa_signature_proto_rawDescData = file_protob_ecdsa_signature_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_protob_ecdsa_signature_proto_rawDescGZIP() []byte {
|
||||
file_protob_ecdsa_signature_proto_rawDescOnce.Do(func() {
|
||||
file_protob_ecdsa_signature_proto_rawDescData = protoimpl.X.CompressGZIP(file_protob_ecdsa_signature_proto_rawDescData)
|
||||
})
|
||||
return file_protob_ecdsa_signature_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_protob_ecdsa_signature_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_protob_ecdsa_signature_proto_goTypes = []interface{}{
|
||||
(*SignatureData)(nil), // 0: SignatureData
|
||||
(*SignatureData_OneRoundData)(nil), // 1: SignatureData.OneRoundData
|
||||
nil, // 2: SignatureData.OneRoundData.BigRBarJEntry
|
||||
nil, // 3: SignatureData.OneRoundData.BigSJEntry
|
||||
(*common.ECSignature)(nil), // 4: ECSignature
|
||||
(*common.ECPoint)(nil), // 5: ECPoint
|
||||
}
|
||||
var file_protob_ecdsa_signature_proto_depIdxs = []int32{
|
||||
4, // 0: SignatureData.signature:type_name -> ECSignature
|
||||
1, // 1: SignatureData.one_round_data:type_name -> SignatureData.OneRoundData
|
||||
5, // 2: SignatureData.OneRoundData.big_r:type_name -> ECPoint
|
||||
2, // 3: SignatureData.OneRoundData.big_r_bar_j:type_name -> SignatureData.OneRoundData.BigRBarJEntry
|
||||
3, // 4: SignatureData.OneRoundData.big_s_j:type_name -> SignatureData.OneRoundData.BigSJEntry
|
||||
5, // 5: SignatureData.OneRoundData.BigRBarJEntry.value:type_name -> ECPoint
|
||||
5, // 6: SignatureData.OneRoundData.BigSJEntry.value:type_name -> ECPoint
|
||||
7, // [7:7] is the sub-list for method output_type
|
||||
7, // [7:7] 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_protob_ecdsa_signature_proto_init() }
|
||||
func file_protob_ecdsa_signature_proto_init() {
|
||||
if File_protob_ecdsa_signature_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_protob_ecdsa_signature_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*SignatureData); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_protob_ecdsa_signature_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*SignatureData_OneRoundData); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_protob_ecdsa_signature_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 4,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_protob_ecdsa_signature_proto_goTypes,
|
||||
DependencyIndexes: file_protob_ecdsa_signature_proto_depIdxs,
|
||||
MessageInfos: file_protob_ecdsa_signature_proto_msgTypes,
|
||||
}.Build()
|
||||
File_protob_ecdsa_signature_proto = out.File
|
||||
file_protob_ecdsa_signature_proto_rawDesc = nil
|
||||
file_protob_ecdsa_signature_proto_goTypes = nil
|
||||
file_protob_ecdsa_signature_proto_depIdxs = nil
|
||||
}
|
||||
@@ -13,6 +13,7 @@
|
||||
package signing
|
||||
|
||||
import (
|
||||
common "github.com/binance-chain/tss-lib/common"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
@@ -217,13 +218,11 @@ type SignRound3Message struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
DeltaI []byte `protobuf:"bytes,1,opt,name=delta_i,json=deltaI,proto3" json:"delta_i,omitempty"`
|
||||
TIX []byte `protobuf:"bytes,2,opt,name=t_i_x,json=tIX,proto3" json:"t_i_x,omitempty"`
|
||||
TIY []byte `protobuf:"bytes,3,opt,name=t_i_y,json=tIY,proto3" json:"t_i_y,omitempty"`
|
||||
TProofAlphaX []byte `protobuf:"bytes,4,opt,name=t_proof_alpha_x,json=tProofAlphaX,proto3" json:"t_proof_alpha_x,omitempty"`
|
||||
TProofAlphaY []byte `protobuf:"bytes,5,opt,name=t_proof_alpha_y,json=tProofAlphaY,proto3" json:"t_proof_alpha_y,omitempty"`
|
||||
TProofT []byte `protobuf:"bytes,6,opt,name=t_proof_t,json=tProofT,proto3" json:"t_proof_t,omitempty"`
|
||||
TProofU []byte `protobuf:"bytes,7,opt,name=t_proof_u,json=tProofU,proto3" json:"t_proof_u,omitempty"`
|
||||
DeltaI []byte `protobuf:"bytes,1,opt,name=delta_i,json=deltaI,proto3" json:"delta_i,omitempty"`
|
||||
TI *common.ECPoint `protobuf:"bytes,2,opt,name=t_i,json=tI,proto3" json:"t_i,omitempty"`
|
||||
TProofAlpha *common.ECPoint `protobuf:"bytes,3,opt,name=t_proof_alpha,json=tProofAlpha,proto3" json:"t_proof_alpha,omitempty"`
|
||||
TProofT []byte `protobuf:"bytes,4,opt,name=t_proof_t,json=tProofT,proto3" json:"t_proof_t,omitempty"`
|
||||
TProofU []byte `protobuf:"bytes,5,opt,name=t_proof_u,json=tProofU,proto3" json:"t_proof_u,omitempty"`
|
||||
}
|
||||
|
||||
func (x *SignRound3Message) Reset() {
|
||||
@@ -265,30 +264,16 @@ func (x *SignRound3Message) GetDeltaI() []byte {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SignRound3Message) GetTIX() []byte {
|
||||
func (x *SignRound3Message) GetTI() *common.ECPoint {
|
||||
if x != nil {
|
||||
return x.TIX
|
||||
return x.TI
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SignRound3Message) GetTIY() []byte {
|
||||
func (x *SignRound3Message) GetTProofAlpha() *common.ECPoint {
|
||||
if x != nil {
|
||||
return x.TIY
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SignRound3Message) GetTProofAlphaX() []byte {
|
||||
if x != nil {
|
||||
return x.TProofAlphaX
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SignRound3Message) GetTProofAlphaY() []byte {
|
||||
if x != nil {
|
||||
return x.TProofAlphaY
|
||||
return x.TProofAlpha
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -363,9 +348,8 @@ type SignRound5Message struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
RIX []byte `protobuf:"bytes,1,opt,name=r_i_x,json=rIX,proto3" json:"r_i_x,omitempty"`
|
||||
RIY []byte `protobuf:"bytes,2,opt,name=r_i_y,json=rIY,proto3" json:"r_i_y,omitempty"`
|
||||
ProofPdlWSlack [][]byte `protobuf:"bytes,3,rep,name=proof_pdl_w_slack,json=proofPdlWSlack,proto3" json:"proof_pdl_w_slack,omitempty"`
|
||||
RI *common.ECPoint `protobuf:"bytes,1,opt,name=r_i,json=rI,proto3" json:"r_i,omitempty"`
|
||||
ProofPdlWSlack [][]byte `protobuf:"bytes,2,rep,name=proof_pdl_w_slack,json=proofPdlWSlack,proto3" json:"proof_pdl_w_slack,omitempty"`
|
||||
}
|
||||
|
||||
func (x *SignRound5Message) Reset() {
|
||||
@@ -400,16 +384,9 @@ func (*SignRound5Message) Descriptor() ([]byte, []int) {
|
||||
return file_protob_ecdsa_signing_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *SignRound5Message) GetRIX() []byte {
|
||||
func (x *SignRound5Message) GetRI() *common.ECPoint {
|
||||
if x != nil {
|
||||
return x.RIX
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SignRound5Message) GetRIY() []byte {
|
||||
if x != nil {
|
||||
return x.RIY
|
||||
return x.RI
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -590,14 +567,11 @@ type SignRound6Message_SuccessData struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
SIX []byte `protobuf:"bytes,1,opt,name=s_i_x,json=sIX,proto3" json:"s_i_x,omitempty"`
|
||||
SIY []byte `protobuf:"bytes,2,opt,name=s_i_y,json=sIY,proto3" json:"s_i_y,omitempty"`
|
||||
StProofAlphaX []byte `protobuf:"bytes,3,opt,name=st_proof_alpha_x,json=stProofAlphaX,proto3" json:"st_proof_alpha_x,omitempty"`
|
||||
StProofAlphaY []byte `protobuf:"bytes,4,opt,name=st_proof_alpha_y,json=stProofAlphaY,proto3" json:"st_proof_alpha_y,omitempty"`
|
||||
StProofBetaX []byte `protobuf:"bytes,5,opt,name=st_proof_beta_x,json=stProofBetaX,proto3" json:"st_proof_beta_x,omitempty"`
|
||||
StProofBetaY []byte `protobuf:"bytes,6,opt,name=st_proof_beta_y,json=stProofBetaY,proto3" json:"st_proof_beta_y,omitempty"`
|
||||
StProofT []byte `protobuf:"bytes,7,opt,name=st_proof_t,json=stProofT,proto3" json:"st_proof_t,omitempty"`
|
||||
StProofU []byte `protobuf:"bytes,8,opt,name=st_proof_u,json=stProofU,proto3" json:"st_proof_u,omitempty"`
|
||||
SI *common.ECPoint `protobuf:"bytes,1,opt,name=s_i,json=sI,proto3" json:"s_i,omitempty"`
|
||||
StProofAlpha *common.ECPoint `protobuf:"bytes,2,opt,name=st_proof_alpha,json=stProofAlpha,proto3" json:"st_proof_alpha,omitempty"`
|
||||
StProofBeta *common.ECPoint `protobuf:"bytes,3,opt,name=st_proof_beta,json=stProofBeta,proto3" json:"st_proof_beta,omitempty"`
|
||||
StProofT []byte `protobuf:"bytes,4,opt,name=st_proof_t,json=stProofT,proto3" json:"st_proof_t,omitempty"`
|
||||
StProofU []byte `protobuf:"bytes,5,opt,name=st_proof_u,json=stProofU,proto3" json:"st_proof_u,omitempty"`
|
||||
}
|
||||
|
||||
func (x *SignRound6Message_SuccessData) Reset() {
|
||||
@@ -632,44 +606,23 @@ func (*SignRound6Message_SuccessData) Descriptor() ([]byte, []int) {
|
||||
return file_protob_ecdsa_signing_proto_rawDescGZIP(), []int{6, 0}
|
||||
}
|
||||
|
||||
func (x *SignRound6Message_SuccessData) GetSIX() []byte {
|
||||
func (x *SignRound6Message_SuccessData) GetSI() *common.ECPoint {
|
||||
if x != nil {
|
||||
return x.SIX
|
||||
return x.SI
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SignRound6Message_SuccessData) GetSIY() []byte {
|
||||
func (x *SignRound6Message_SuccessData) GetStProofAlpha() *common.ECPoint {
|
||||
if x != nil {
|
||||
return x.SIY
|
||||
return x.StProofAlpha
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SignRound6Message_SuccessData) GetStProofAlphaX() []byte {
|
||||
func (x *SignRound6Message_SuccessData) GetStProofBeta() *common.ECPoint {
|
||||
if x != nil {
|
||||
return x.StProofAlphaX
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SignRound6Message_SuccessData) GetStProofAlphaY() []byte {
|
||||
if x != nil {
|
||||
return x.StProofAlphaY
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SignRound6Message_SuccessData) GetStProofBetaX() []byte {
|
||||
if x != nil {
|
||||
return x.StProofBetaX
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SignRound6Message_SuccessData) GetStProofBetaY() []byte {
|
||||
if x != nil {
|
||||
return x.StProofBetaY
|
||||
return x.StProofBeta
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -772,7 +725,8 @@ type SignRound7Message_AbortData struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
VJI [][]byte `protobuf:"bytes,1,rep,name=v_j_i,json=vJI,proto3" json:"v_j_i,omitempty"`
|
||||
VJI [][]byte `protobuf:"bytes,1,rep,name=v_j_i,json=vJI,proto3" json:"v_j_i,omitempty"`
|
||||
VRandJI [][]byte `protobuf:"bytes,2,rep,name=v_rand_j_i,json=vRandJI,proto3" json:"v_rand_j_i,omitempty"`
|
||||
}
|
||||
|
||||
func (x *SignRound7Message_AbortData) Reset() {
|
||||
@@ -814,97 +768,100 @@ func (x *SignRound7Message_AbortData) GetVJI() [][]byte {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SignRound7Message_AbortData) GetVRandJI() [][]byte {
|
||||
if x != nil {
|
||||
return x.VRandJI
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_protob_ecdsa_signing_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_protob_ecdsa_signing_proto_rawDesc = []byte{
|
||||
0x0a, 0x1a, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x2f, 0x65, 0x63, 0x64, 0x73, 0x61, 0x2d, 0x73,
|
||||
0x69, 0x67, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4e, 0x0a, 0x12,
|
||||
0x53, 0x69, 0x67, 0x6e, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x31, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
||||
0x65, 0x31, 0x12, 0x0c, 0x0a, 0x01, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x01, 0x63,
|
||||
0x12, 0x2a, 0x0a, 0x11, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f,
|
||||
0x61, 0x6c, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0f, 0x72, 0x61, 0x6e,
|
||||
0x67, 0x65, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x41, 0x6c, 0x69, 0x63, 0x65, 0x22, 0x34, 0x0a, 0x12,
|
||||
0x53, 0x69, 0x67, 0x6e, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x31, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
||||
0x65, 0x32, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65,
|
||||
0x6e, 0x74, 0x22, 0x72, 0x0a, 0x11, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x32,
|
||||
0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x63, 0x31, 0x18, 0x01, 0x20,
|
||||
0x01, 0x28, 0x0c, 0x52, 0x02, 0x63, 0x31, 0x12, 0x0e, 0x0a, 0x02, 0x63, 0x32, 0x18, 0x02, 0x20,
|
||||
0x01, 0x28, 0x0c, 0x52, 0x02, 0x63, 0x32, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x6f, 0x66,
|
||||
0x5f, 0x62, 0x6f, 0x62, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x6f,
|
||||
0x66, 0x42, 0x6f, 0x62, 0x12, 0x20, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f, 0x62, 0x6f,
|
||||
0x62, 0x5f, 0x77, 0x63, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x6f,
|
||||
0x66, 0x42, 0x6f, 0x62, 0x57, 0x63, 0x22, 0xda, 0x01, 0x0a, 0x11, 0x53, 0x69, 0x67, 0x6e, 0x52,
|
||||
0x6f, 0x75, 0x6e, 0x64, 0x33, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x17, 0x0a, 0x07,
|
||||
0x64, 0x65, 0x6c, 0x74, 0x61, 0x5f, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x64,
|
||||
0x65, 0x6c, 0x74, 0x61, 0x49, 0x12, 0x12, 0x0a, 0x05, 0x74, 0x5f, 0x69, 0x5f, 0x78, 0x18, 0x02,
|
||||
0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x74, 0x49, 0x58, 0x12, 0x12, 0x0a, 0x05, 0x74, 0x5f, 0x69,
|
||||
0x5f, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x74, 0x49, 0x59, 0x12, 0x25, 0x0a,
|
||||
0x0f, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x5f, 0x78,
|
||||
0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x41, 0x6c,
|
||||
0x70, 0x68, 0x61, 0x58, 0x12, 0x25, 0x0a, 0x0f, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f,
|
||||
0x61, 0x6c, 0x70, 0x68, 0x61, 0x5f, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x74,
|
||||
0x50, 0x72, 0x6f, 0x6f, 0x66, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x59, 0x12, 0x1a, 0x0a, 0x09, 0x74,
|
||||
0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07,
|
||||
0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x54, 0x12, 0x1a, 0x0a, 0x09, 0x74, 0x5f, 0x70, 0x72, 0x6f,
|
||||
0x6f, 0x66, 0x5f, 0x75, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x74, 0x50, 0x72, 0x6f,
|
||||
0x6f, 0x66, 0x55, 0x22, 0x38, 0x0a, 0x11, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x6f, 0x75, 0x6e, 0x64,
|
||||
0x34, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x65, 0x5f, 0x63,
|
||||
0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52,
|
||||
0x0c, 0x64, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x66, 0x0a,
|
||||
0x11, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x35, 0x4d, 0x65, 0x73, 0x73, 0x61,
|
||||
0x67, 0x65, 0x12, 0x12, 0x0a, 0x05, 0x72, 0x5f, 0x69, 0x5f, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x0c, 0x52, 0x03, 0x72, 0x49, 0x58, 0x12, 0x12, 0x0a, 0x05, 0x72, 0x5f, 0x69, 0x5f, 0x79, 0x18,
|
||||
0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x72, 0x49, 0x59, 0x12, 0x29, 0x0a, 0x11, 0x70, 0x72,
|
||||
0x6f, 0x6f, 0x66, 0x5f, 0x70, 0x64, 0x6c, 0x5f, 0x77, 0x5f, 0x73, 0x6c, 0x61, 0x63, 0x6b, 0x18,
|
||||
0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x50, 0x64, 0x6c, 0x57,
|
||||
0x53, 0x6c, 0x61, 0x63, 0x6b, 0x22, 0xb8, 0x04, 0x0a, 0x11, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x6f,
|
||||
0x75, 0x6e, 0x64, 0x36, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3a, 0x0a, 0x07, 0x73,
|
||||
0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x53,
|
||||
0x69, 0x67, 0x6e, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x36, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
||||
0x2e, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x07,
|
||||
0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x34, 0x0a, 0x05, 0x61, 0x62, 0x6f, 0x72, 0x74,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x6f, 0x75,
|
||||
0x6e, 0x64, 0x36, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x62, 0x6f, 0x72, 0x74,
|
||||
0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x05, 0x61, 0x62, 0x6f, 0x72, 0x74, 0x1a, 0x91, 0x02,
|
||||
0x0a, 0x0b, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x44, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a,
|
||||
0x05, 0x73, 0x5f, 0x69, 0x5f, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x73, 0x49,
|
||||
0x58, 0x12, 0x12, 0x0a, 0x05, 0x73, 0x5f, 0x69, 0x5f, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c,
|
||||
0x52, 0x03, 0x73, 0x49, 0x59, 0x12, 0x27, 0x0a, 0x10, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6f,
|
||||
0x66, 0x5f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x5f, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52,
|
||||
0x0d, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x58, 0x12, 0x27,
|
||||
0x0a, 0x10, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f, 0x61, 0x6c, 0x70, 0x68, 0x61,
|
||||
0x5f, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6f,
|
||||
0x66, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x59, 0x12, 0x25, 0x0a, 0x0f, 0x73, 0x74, 0x5f, 0x70, 0x72,
|
||||
0x6f, 0x6f, 0x66, 0x5f, 0x62, 0x65, 0x74, 0x61, 0x5f, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c,
|
||||
0x52, 0x0c, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x42, 0x65, 0x74, 0x61, 0x58, 0x12, 0x25,
|
||||
0x0a, 0x0f, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f, 0x62, 0x65, 0x74, 0x61, 0x5f,
|
||||
0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66,
|
||||
0x42, 0x65, 0x74, 0x61, 0x59, 0x12, 0x1c, 0x0a, 0x0a, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6f,
|
||||
0x66, 0x5f, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x73, 0x74, 0x50, 0x72, 0x6f,
|
||||
0x6f, 0x66, 0x54, 0x12, 0x1c, 0x0a, 0x0a, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f,
|
||||
0x75, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66,
|
||||
0x55, 0x1a, 0x91, 0x01, 0x0a, 0x09, 0x41, 0x62, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12,
|
||||
0x0f, 0x0a, 0x03, 0x6b, 0x5f, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x6b, 0x49,
|
||||
0x12, 0x24, 0x0a, 0x0e, 0x6b, 0x5f, 0x69, 0x5f, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65,
|
||||
0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x6b, 0x49, 0x52, 0x61, 0x6e, 0x64,
|
||||
0x6f, 0x6d, 0x6e, 0x65, 0x73, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x67, 0x61, 0x6d, 0x6d, 0x61, 0x5f,
|
||||
0x69, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x67, 0x61, 0x6d, 0x6d, 0x61, 0x49, 0x12,
|
||||
0x1a, 0x0a, 0x09, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x5f, 0x69, 0x5f, 0x6a, 0x18, 0x04, 0x20, 0x03,
|
||||
0x28, 0x0c, 0x52, 0x07, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x49, 0x4a, 0x12, 0x18, 0x0a, 0x08, 0x62,
|
||||
0x65, 0x74, 0x61, 0x5f, 0x6a, 0x5f, 0x69, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x62,
|
||||
0x65, 0x74, 0x61, 0x4a, 0x49, 0x42, 0x09, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
|
||||
0x22, 0x88, 0x01, 0x0a, 0x11, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x37, 0x4d,
|
||||
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x11, 0x0a, 0x03, 0x73, 0x5f, 0x69, 0x18, 0x01, 0x20,
|
||||
0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x02, 0x73, 0x49, 0x12, 0x34, 0x0a, 0x05, 0x61, 0x62, 0x6f,
|
||||
0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x52,
|
||||
0x6f, 0x75, 0x6e, 0x64, 0x37, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x62, 0x6f,
|
||||
0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x05, 0x61, 0x62, 0x6f, 0x72, 0x74, 0x1a,
|
||||
0x1f, 0x0a, 0x09, 0x41, 0x62, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x05,
|
||||
0x76, 0x5f, 0x6a, 0x5f, 0x69, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x03, 0x76, 0x4a, 0x49,
|
||||
0x42, 0x09, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 0x0f, 0x5a, 0x0d, 0x65,
|
||||
0x63, 0x64, 0x73, 0x61, 0x2f, 0x73, 0x69, 0x67, 0x6e, 0x69, 0x6e, 0x67, 0x62, 0x06, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x33,
|
||||
0x69, 0x67, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x62, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x22, 0x4e, 0x0a, 0x12, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x31, 0x4d,
|
||||
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x12, 0x0c, 0x0a, 0x01, 0x63, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x0c, 0x52, 0x01, 0x63, 0x12, 0x2a, 0x0a, 0x11, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x70,
|
||||
0x72, 0x6f, 0x6f, 0x66, 0x5f, 0x61, 0x6c, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c,
|
||||
0x52, 0x0f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x41, 0x6c, 0x69, 0x63,
|
||||
0x65, 0x22, 0x34, 0x0a, 0x12, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x31, 0x4d,
|
||||
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69,
|
||||
0x74, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x63, 0x6f, 0x6d,
|
||||
0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x72, 0x0a, 0x11, 0x53, 0x69, 0x67, 0x6e, 0x52,
|
||||
0x6f, 0x75, 0x6e, 0x64, 0x32, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02,
|
||||
0x63, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x63, 0x31, 0x12, 0x0e, 0x0a, 0x02,
|
||||
0x63, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x63, 0x32, 0x12, 0x1b, 0x0a, 0x09,
|
||||
0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f, 0x62, 0x6f, 0x62, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52,
|
||||
0x08, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x42, 0x6f, 0x62, 0x12, 0x20, 0x0a, 0x0c, 0x70, 0x72, 0x6f,
|
||||
0x6f, 0x66, 0x5f, 0x62, 0x6f, 0x62, 0x5f, 0x77, 0x63, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0c, 0x52,
|
||||
0x0a, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x42, 0x6f, 0x62, 0x57, 0x63, 0x22, 0xad, 0x01, 0x0a, 0x11,
|
||||
0x53, 0x69, 0x67, 0x6e, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x33, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
||||
0x65, 0x12, 0x17, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x5f, 0x69, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x0c, 0x52, 0x06, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x49, 0x12, 0x19, 0x0a, 0x03, 0x74, 0x5f,
|
||||
0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x45, 0x43, 0x50, 0x6f, 0x69, 0x6e,
|
||||
0x74, 0x52, 0x02, 0x74, 0x49, 0x12, 0x2c, 0x0a, 0x0d, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66,
|
||||
0x5f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x45,
|
||||
0x43, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x0b, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x41, 0x6c,
|
||||
0x70, 0x68, 0x61, 0x12, 0x1a, 0x0a, 0x09, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f, 0x74,
|
||||
0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x54, 0x12,
|
||||
0x1a, 0x0a, 0x09, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f, 0x75, 0x18, 0x05, 0x20, 0x01,
|
||||
0x28, 0x0c, 0x52, 0x07, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x55, 0x22, 0x38, 0x0a, 0x11, 0x53,
|
||||
0x69, 0x67, 0x6e, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x34, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
||||
0x12, 0x23, 0x0a, 0x0d, 0x64, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e,
|
||||
0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0c, 0x64, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69,
|
||||
0x74, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x59, 0x0a, 0x11, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x6f, 0x75,
|
||||
0x6e, 0x64, 0x35, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x19, 0x0a, 0x03, 0x72, 0x5f,
|
||||
0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x45, 0x43, 0x50, 0x6f, 0x69, 0x6e,
|
||||
0x74, 0x52, 0x02, 0x72, 0x49, 0x12, 0x29, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f, 0x70,
|
||||
0x64, 0x6c, 0x5f, 0x77, 0x5f, 0x73, 0x6c, 0x61, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c,
|
||||
0x52, 0x0e, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x50, 0x64, 0x6c, 0x57, 0x53, 0x6c, 0x61, 0x63, 0x6b,
|
||||
0x22, 0xe9, 0x03, 0x0a, 0x11, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x36, 0x4d,
|
||||
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3a, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73,
|
||||
0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x6f,
|
||||
0x75, 0x6e, 0x64, 0x36, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x75, 0x63, 0x63,
|
||||
0x65, 0x73, 0x73, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65,
|
||||
0x73, 0x73, 0x12, 0x34, 0x0a, 0x05, 0x61, 0x62, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 0x1c, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x36, 0x4d, 0x65,
|
||||
0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x62, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x48,
|
||||
0x00, 0x52, 0x05, 0x61, 0x62, 0x6f, 0x72, 0x74, 0x1a, 0xc2, 0x01, 0x0a, 0x0b, 0x53, 0x75, 0x63,
|
||||
0x63, 0x65, 0x73, 0x73, 0x44, 0x61, 0x74, 0x61, 0x12, 0x19, 0x0a, 0x03, 0x73, 0x5f, 0x69, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x45, 0x43, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52,
|
||||
0x02, 0x73, 0x49, 0x12, 0x2e, 0x0a, 0x0e, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f,
|
||||
0x61, 0x6c, 0x70, 0x68, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x45, 0x43,
|
||||
0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x0c, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x41, 0x6c,
|
||||
0x70, 0x68, 0x61, 0x12, 0x2c, 0x0a, 0x0d, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f,
|
||||
0x62, 0x65, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x45, 0x43, 0x50,
|
||||
0x6f, 0x69, 0x6e, 0x74, 0x52, 0x0b, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x42, 0x65, 0x74,
|
||||
0x61, 0x12, 0x1c, 0x0a, 0x0a, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f, 0x74, 0x18,
|
||||
0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x54, 0x12,
|
||||
0x1c, 0x0a, 0x0a, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f, 0x75, 0x18, 0x05, 0x20,
|
||||
0x01, 0x28, 0x0c, 0x52, 0x08, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x55, 0x1a, 0x91, 0x01,
|
||||
0x0a, 0x09, 0x41, 0x62, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x0f, 0x0a, 0x03, 0x6b,
|
||||
0x5f, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x6b, 0x49, 0x12, 0x24, 0x0a, 0x0e,
|
||||
0x6b, 0x5f, 0x69, 0x5f, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x02,
|
||||
0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x6b, 0x49, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65,
|
||||
0x73, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x67, 0x61, 0x6d, 0x6d, 0x61, 0x5f, 0x69, 0x18, 0x03, 0x20,
|
||||
0x01, 0x28, 0x0c, 0x52, 0x06, 0x67, 0x61, 0x6d, 0x6d, 0x61, 0x49, 0x12, 0x1a, 0x0a, 0x09, 0x61,
|
||||
0x6c, 0x70, 0x68, 0x61, 0x5f, 0x69, 0x5f, 0x6a, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x07,
|
||||
0x61, 0x6c, 0x70, 0x68, 0x61, 0x49, 0x4a, 0x12, 0x18, 0x0a, 0x08, 0x62, 0x65, 0x74, 0x61, 0x5f,
|
||||
0x6a, 0x5f, 0x69, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x62, 0x65, 0x74, 0x61, 0x4a,
|
||||
0x49, 0x42, 0x09, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0xa5, 0x01, 0x0a,
|
||||
0x11, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x37, 0x4d, 0x65, 0x73, 0x73, 0x61,
|
||||
0x67, 0x65, 0x12, 0x11, 0x0a, 0x03, 0x73, 0x5f, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x48,
|
||||
0x00, 0x52, 0x02, 0x73, 0x49, 0x12, 0x34, 0x0a, 0x05, 0x61, 0x62, 0x6f, 0x72, 0x74, 0x18, 0x02,
|
||||
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x6f, 0x75, 0x6e, 0x64,
|
||||
0x37, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x62, 0x6f, 0x72, 0x74, 0x44, 0x61,
|
||||
0x74, 0x61, 0x48, 0x00, 0x52, 0x05, 0x61, 0x62, 0x6f, 0x72, 0x74, 0x1a, 0x3c, 0x0a, 0x09, 0x41,
|
||||
0x62, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x05, 0x76, 0x5f, 0x6a, 0x5f,
|
||||
0x69, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x03, 0x76, 0x4a, 0x49, 0x12, 0x1b, 0x0a, 0x0a,
|
||||
0x76, 0x5f, 0x72, 0x61, 0x6e, 0x64, 0x5f, 0x6a, 0x5f, 0x69, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c,
|
||||
0x52, 0x07, 0x76, 0x52, 0x61, 0x6e, 0x64, 0x4a, 0x49, 0x42, 0x09, 0x0a, 0x07, 0x63, 0x6f, 0x6e,
|
||||
0x74, 0x65, 0x6e, 0x74, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
|
||||
0x6f, 0x6d, 0x2f, 0x62, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e,
|
||||
0x2f, 0x74, 0x73, 0x73, 0x2d, 0x6c, 0x69, 0x62, 0x2f, 0x65, 0x63, 0x64, 0x73, 0x61, 0x2f, 0x73,
|
||||
0x69, 0x67, 0x6e, 0x69, 0x6e, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -932,16 +889,23 @@ var file_protob_ecdsa_signing_proto_goTypes = []interface{}{
|
||||
(*SignRound6Message_SuccessData)(nil), // 8: SignRound6Message.SuccessData
|
||||
(*SignRound6Message_AbortData)(nil), // 9: SignRound6Message.AbortData
|
||||
(*SignRound7Message_AbortData)(nil), // 10: SignRound7Message.AbortData
|
||||
(*common.ECPoint)(nil), // 11: ECPoint
|
||||
}
|
||||
var file_protob_ecdsa_signing_proto_depIdxs = []int32{
|
||||
8, // 0: SignRound6Message.success:type_name -> SignRound6Message.SuccessData
|
||||
9, // 1: SignRound6Message.abort:type_name -> SignRound6Message.AbortData
|
||||
10, // 2: SignRound7Message.abort:type_name -> SignRound7Message.AbortData
|
||||
3, // [3:3] is the sub-list for method output_type
|
||||
3, // [3:3] is the sub-list for method input_type
|
||||
3, // [3:3] is the sub-list for extension type_name
|
||||
3, // [3:3] is the sub-list for extension extendee
|
||||
0, // [0:3] is the sub-list for field type_name
|
||||
11, // 0: SignRound3Message.t_i:type_name -> ECPoint
|
||||
11, // 1: SignRound3Message.t_proof_alpha:type_name -> ECPoint
|
||||
11, // 2: SignRound5Message.r_i:type_name -> ECPoint
|
||||
8, // 3: SignRound6Message.success:type_name -> SignRound6Message.SuccessData
|
||||
9, // 4: SignRound6Message.abort:type_name -> SignRound6Message.AbortData
|
||||
10, // 5: SignRound7Message.abort:type_name -> SignRound7Message.AbortData
|
||||
11, // 6: SignRound6Message.SuccessData.s_i:type_name -> ECPoint
|
||||
11, // 7: SignRound6Message.SuccessData.st_proof_alpha:type_name -> ECPoint
|
||||
11, // 8: SignRound6Message.SuccessData.st_proof_beta:type_name -> ECPoint
|
||||
9, // [9:9] is the sub-list for method output_type
|
||||
9, // [9:9] is the sub-list for method input_type
|
||||
9, // [9:9] is the sub-list for extension type_name
|
||||
9, // [9:9] is the sub-list for extension extendee
|
||||
0, // [0:9] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_protob_ecdsa_signing_proto_init() }
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
package keygen
|
||||
|
||||
import (
|
||||
common "github.com/binance-chain/tss-lib/common"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
@@ -136,10 +137,9 @@ type KGRound2Message2 struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
DeCommitment [][]byte `protobuf:"bytes,1,rep,name=de_commitment,json=deCommitment,proto3" json:"de_commitment,omitempty"`
|
||||
ProofAlphaX []byte `protobuf:"bytes,2,opt,name=proof_alpha_x,json=proofAlphaX,proto3" json:"proof_alpha_x,omitempty"`
|
||||
ProofAlphaY []byte `protobuf:"bytes,3,opt,name=proof_alpha_y,json=proofAlphaY,proto3" json:"proof_alpha_y,omitempty"`
|
||||
ProofT []byte `protobuf:"bytes,4,opt,name=proof_t,json=proofT,proto3" json:"proof_t,omitempty"`
|
||||
DeCommitment [][]byte `protobuf:"bytes,1,rep,name=de_commitment,json=deCommitment,proto3" json:"de_commitment,omitempty"`
|
||||
ProofAlpha *common.ECPoint `protobuf:"bytes,2,opt,name=proof_alpha,json=proofAlpha,proto3" json:"proof_alpha,omitempty"`
|
||||
ProofT []byte `protobuf:"bytes,3,opt,name=proof_t,json=proofT,proto3" json:"proof_t,omitempty"`
|
||||
}
|
||||
|
||||
func (x *KGRound2Message2) Reset() {
|
||||
@@ -181,16 +181,9 @@ func (x *KGRound2Message2) GetDeCommitment() [][]byte {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *KGRound2Message2) GetProofAlphaX() []byte {
|
||||
func (x *KGRound2Message2) GetProofAlpha() *common.ECPoint {
|
||||
if x != nil {
|
||||
return x.ProofAlphaX
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *KGRound2Message2) GetProofAlphaY() []byte {
|
||||
if x != nil {
|
||||
return x.ProofAlphaY
|
||||
return x.ProofAlpha
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -206,24 +199,26 @@ var File_protob_eddsa_keygen_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_protob_eddsa_keygen_proto_rawDesc = []byte{
|
||||
0x0a, 0x19, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x2f, 0x65, 0x64, 0x64, 0x73, 0x61, 0x2d, 0x6b,
|
||||
0x65, 0x79, 0x67, 0x65, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x31, 0x0a, 0x0f, 0x4b,
|
||||
0x47, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x31, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1e,
|
||||
0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x0c, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x28,
|
||||
0x0a, 0x10, 0x4b, 0x47, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x32, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
||||
0x65, 0x31, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x0c, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, 0x22, 0x98, 0x01, 0x0a, 0x10, 0x4b, 0x47, 0x52,
|
||||
0x6f, 0x75, 0x6e, 0x64, 0x32, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x12, 0x23, 0x0a,
|
||||
0x0d, 0x64, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01,
|
||||
0x20, 0x03, 0x28, 0x0c, 0x52, 0x0c, 0x64, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65,
|
||||
0x6e, 0x74, 0x12, 0x22, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f, 0x61, 0x6c, 0x70, 0x68,
|
||||
0x61, 0x5f, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x6f, 0x66,
|
||||
0x41, 0x6c, 0x70, 0x68, 0x61, 0x58, 0x12, 0x22, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f,
|
||||
0x61, 0x6c, 0x70, 0x68, 0x61, 0x5f, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x70,
|
||||
0x72, 0x6f, 0x6f, 0x66, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x59, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x72,
|
||||
0x6f, 0x6f, 0x66, 0x5f, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x70, 0x72, 0x6f,
|
||||
0x6f, 0x66, 0x54, 0x42, 0x0e, 0x5a, 0x0c, 0x65, 0x64, 0x64, 0x73, 0x61, 0x2f, 0x6b, 0x65, 0x79,
|
||||
0x67, 0x65, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x65, 0x79, 0x67, 0x65, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x62, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x22, 0x31, 0x0a, 0x0f, 0x4b, 0x47, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x31, 0x4d, 0x65, 0x73, 0x73,
|
||||
0x61, 0x67, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e,
|
||||
0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d,
|
||||
0x65, 0x6e, 0x74, 0x22, 0x28, 0x0a, 0x10, 0x4b, 0x47, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x32, 0x4d,
|
||||
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, 0x22, 0x7b, 0x0a,
|
||||
0x10, 0x4b, 0x47, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x32, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
||||
0x32, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65,
|
||||
0x6e, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0c, 0x64, 0x65, 0x43, 0x6f, 0x6d, 0x6d,
|
||||
0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x29, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f,
|
||||
0x61, 0x6c, 0x70, 0x68, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x45, 0x43,
|
||||
0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x41, 0x6c, 0x70, 0x68,
|
||||
0x61, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f, 0x74, 0x18, 0x03, 0x20, 0x01,
|
||||
0x28, 0x0c, 0x52, 0x06, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x54, 0x42, 0x2f, 0x5a, 0x2d, 0x67, 0x69,
|
||||
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x65,
|
||||
0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x74, 0x73, 0x73, 0x2d, 0x6c, 0x69, 0x62, 0x2f, 0x65,
|
||||
0x64, 0x64, 0x73, 0x61, 0x2f, 0x6b, 0x65, 0x79, 0x67, 0x65, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -243,13 +238,15 @@ var file_protob_eddsa_keygen_proto_goTypes = []interface{}{
|
||||
(*KGRound1Message)(nil), // 0: KGRound1Message
|
||||
(*KGRound2Message1)(nil), // 1: KGRound2Message1
|
||||
(*KGRound2Message2)(nil), // 2: KGRound2Message2
|
||||
(*common.ECPoint)(nil), // 3: ECPoint
|
||||
}
|
||||
var file_protob_eddsa_keygen_proto_depIdxs = []int32{
|
||||
0, // [0:0] is the sub-list for method output_type
|
||||
0, // [0:0] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
3, // 0: KGRound2Message2.proof_alpha:type_name -> ECPoint
|
||||
1, // [1:1] is the sub-list for method output_type
|
||||
1, // [1:1] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
1, // [1:1] is the sub-list for extension extendee
|
||||
0, // [0:1] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_protob_eddsa_keygen_proto_init() }
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
package resharing
|
||||
|
||||
import (
|
||||
common "github.com/binance-chain/tss-lib/common"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
@@ -38,9 +39,8 @@ type DGRound1Message struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
EddsaPubX []byte `protobuf:"bytes,1,opt,name=eddsa_pub_x,json=eddsaPubX,proto3" json:"eddsa_pub_x,omitempty"`
|
||||
EddsaPubY []byte `protobuf:"bytes,2,opt,name=eddsa_pub_y,json=eddsaPubY,proto3" json:"eddsa_pub_y,omitempty"`
|
||||
VCommitment []byte `protobuf:"bytes,3,opt,name=v_commitment,json=vCommitment,proto3" json:"v_commitment,omitempty"`
|
||||
EddsaPub *common.ECPoint `protobuf:"bytes,1,opt,name=eddsa_pub,json=eddsaPub,proto3" json:"eddsa_pub,omitempty"`
|
||||
VCommitment []byte `protobuf:"bytes,2,opt,name=v_commitment,json=vCommitment,proto3" json:"v_commitment,omitempty"`
|
||||
}
|
||||
|
||||
func (x *DGRound1Message) Reset() {
|
||||
@@ -75,16 +75,9 @@ func (*DGRound1Message) Descriptor() ([]byte, []int) {
|
||||
return file_protob_eddsa_resharing_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *DGRound1Message) GetEddsaPubX() []byte {
|
||||
func (x *DGRound1Message) GetEddsaPub() *common.ECPoint {
|
||||
if x != nil {
|
||||
return x.EddsaPubX
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DGRound1Message) GetEddsaPubY() []byte {
|
||||
if x != nil {
|
||||
return x.EddsaPubY
|
||||
return x.EddsaPub
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -278,25 +271,27 @@ var File_protob_eddsa_resharing_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_protob_eddsa_resharing_proto_rawDesc = []byte{
|
||||
0x0a, 0x1c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x2f, 0x65, 0x64, 0x64, 0x73, 0x61, 0x2d, 0x72,
|
||||
0x65, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x74,
|
||||
0x0a, 0x0f, 0x44, 0x47, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x31, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
||||
0x65, 0x12, 0x1e, 0x0a, 0x0b, 0x65, 0x64, 0x64, 0x73, 0x61, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x78,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x65, 0x64, 0x64, 0x73, 0x61, 0x50, 0x75, 0x62,
|
||||
0x58, 0x12, 0x1e, 0x0a, 0x0b, 0x65, 0x64, 0x64, 0x73, 0x61, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x79,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x65, 0x64, 0x64, 0x73, 0x61, 0x50, 0x75, 0x62,
|
||||
0x59, 0x12, 0x21, 0x0a, 0x0c, 0x76, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e,
|
||||
0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x76, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74,
|
||||
0x6d, 0x65, 0x6e, 0x74, 0x22, 0x11, 0x0a, 0x0f, 0x44, 0x47, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x32,
|
||||
0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x28, 0x0a, 0x10, 0x44, 0x47, 0x52, 0x6f, 0x75,
|
||||
0x6e, 0x64, 0x33, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x12, 0x14, 0x0a, 0x05, 0x73,
|
||||
0x68, 0x61, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72,
|
||||
0x65, 0x22, 0x39, 0x0a, 0x10, 0x44, 0x47, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x33, 0x4d, 0x65, 0x73,
|
||||
0x73, 0x61, 0x67, 0x65, 0x32, 0x12, 0x25, 0x0a, 0x0e, 0x76, 0x5f, 0x64, 0x65, 0x63, 0x6f, 0x6d,
|
||||
0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0d, 0x76,
|
||||
0x44, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x11, 0x0a, 0x0f,
|
||||
0x44, 0x47, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x34, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42,
|
||||
0x11, 0x5a, 0x0f, 0x65, 0x64, 0x64, 0x73, 0x61, 0x2f, 0x72, 0x65, 0x73, 0x68, 0x61, 0x72, 0x69,
|
||||
0x6e, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x65, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x22, 0x5b, 0x0a, 0x0f, 0x44, 0x47, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x31, 0x4d,
|
||||
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x0a, 0x09, 0x65, 0x64, 0x64, 0x73, 0x61, 0x5f,
|
||||
0x70, 0x75, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x45, 0x43, 0x50, 0x6f,
|
||||
0x69, 0x6e, 0x74, 0x52, 0x08, 0x65, 0x64, 0x64, 0x73, 0x61, 0x50, 0x75, 0x62, 0x12, 0x21, 0x0a,
|
||||
0x0c, 0x76, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20,
|
||||
0x01, 0x28, 0x0c, 0x52, 0x0b, 0x76, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74,
|
||||
0x22, 0x11, 0x0a, 0x0f, 0x44, 0x47, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x32, 0x4d, 0x65, 0x73, 0x73,
|
||||
0x61, 0x67, 0x65, 0x22, 0x28, 0x0a, 0x10, 0x44, 0x47, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x33, 0x4d,
|
||||
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, 0x22, 0x39, 0x0a,
|
||||
0x10, 0x44, 0x47, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x33, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
||||
0x32, 0x12, 0x25, 0x0a, 0x0e, 0x76, 0x5f, 0x64, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d,
|
||||
0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0d, 0x76, 0x44, 0x65, 0x63, 0x6f,
|
||||
0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x11, 0x0a, 0x0f, 0x44, 0x47, 0x52, 0x6f,
|
||||
0x75, 0x6e, 0x64, 0x34, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x32, 0x5a, 0x30, 0x67,
|
||||
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x69, 0x6e, 0x61, 0x6e, 0x63,
|
||||
0x65, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x74, 0x73, 0x73, 0x2d, 0x6c, 0x69, 0x62, 0x2f,
|
||||
0x65, 0x64, 0x64, 0x73, 0x61, 0x2f, 0x72, 0x65, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x62,
|
||||
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -318,13 +313,15 @@ var file_protob_eddsa_resharing_proto_goTypes = []interface{}{
|
||||
(*DGRound3Message1)(nil), // 2: DGRound3Message1
|
||||
(*DGRound3Message2)(nil), // 3: DGRound3Message2
|
||||
(*DGRound4Message)(nil), // 4: DGRound4Message
|
||||
(*common.ECPoint)(nil), // 5: ECPoint
|
||||
}
|
||||
var file_protob_eddsa_resharing_proto_depIdxs = []int32{
|
||||
0, // [0:0] is the sub-list for method output_type
|
||||
0, // [0:0] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
5, // 0: DGRound1Message.eddsa_pub:type_name -> ECPoint
|
||||
1, // [1:1] is the sub-list for method output_type
|
||||
1, // [1:1] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
1, // [1:1] is the sub-list for extension extendee
|
||||
0, // [0:1] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_protob_eddsa_resharing_proto_init() }
|
||||
|
||||
163
eddsa/signing/eddsa-signature.pb.go
Normal file
163
eddsa/signing/eddsa-signature.pb.go
Normal file
@@ -0,0 +1,163 @@
|
||||
// Copyright © 2019 Binance
|
||||
//
|
||||
// This file is part of Binance. The full Binance copyright notice, including
|
||||
// terms governing use, modification, and redistribution, is contained in the
|
||||
// file LICENSE at the root of the source code distribution tree.
|
||||
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.24.0
|
||||
// protoc v3.12.3
|
||||
// source: protob/eddsa-signature.proto
|
||||
|
||||
package signing
|
||||
|
||||
import (
|
||||
common "github.com/binance-chain/tss-lib/common"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
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)
|
||||
)
|
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
//
|
||||
// State object for signatures, contains the final EdDSA signature.
|
||||
type SignatureData struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Signature *common.ECSignature `protobuf:"bytes,10,opt,name=signature,proto3" json:"signature,omitempty"`
|
||||
}
|
||||
|
||||
func (x *SignatureData) Reset() {
|
||||
*x = SignatureData{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_protob_eddsa_signature_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *SignatureData) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SignatureData) ProtoMessage() {}
|
||||
|
||||
func (x *SignatureData) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_protob_eddsa_signature_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SignatureData.ProtoReflect.Descriptor instead.
|
||||
func (*SignatureData) Descriptor() ([]byte, []int) {
|
||||
return file_protob_eddsa_signature_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *SignatureData) GetSignature() *common.ECSignature {
|
||||
if x != nil {
|
||||
return x.Signature
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_protob_eddsa_signature_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_protob_eddsa_signature_proto_rawDesc = []byte{
|
||||
0x0a, 0x1c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x2f, 0x65, 0x64, 0x64, 0x73, 0x61, 0x2d, 0x73,
|
||||
0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x22, 0x3b, 0x0a, 0x0d, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65,
|
||||
0x44, 0x61, 0x74, 0x61, 0x12, 0x2a, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72,
|
||||
0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x45, 0x43, 0x53, 0x69, 0x67, 0x6e,
|
||||
0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65,
|
||||
0x42, 0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62,
|
||||
0x69, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x74, 0x73, 0x73,
|
||||
0x2d, 0x6c, 0x69, 0x62, 0x2f, 0x65, 0x64, 0x64, 0x73, 0x61, 0x2f, 0x73, 0x69, 0x67, 0x6e, 0x69,
|
||||
0x6e, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_protob_eddsa_signature_proto_rawDescOnce sync.Once
|
||||
file_protob_eddsa_signature_proto_rawDescData = file_protob_eddsa_signature_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_protob_eddsa_signature_proto_rawDescGZIP() []byte {
|
||||
file_protob_eddsa_signature_proto_rawDescOnce.Do(func() {
|
||||
file_protob_eddsa_signature_proto_rawDescData = protoimpl.X.CompressGZIP(file_protob_eddsa_signature_proto_rawDescData)
|
||||
})
|
||||
return file_protob_eddsa_signature_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_protob_eddsa_signature_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_protob_eddsa_signature_proto_goTypes = []interface{}{
|
||||
(*SignatureData)(nil), // 0: SignatureData
|
||||
(*common.ECSignature)(nil), // 1: ECSignature
|
||||
}
|
||||
var file_protob_eddsa_signature_proto_depIdxs = []int32{
|
||||
1, // 0: SignatureData.signature:type_name -> ECSignature
|
||||
1, // [1:1] is the sub-list for method output_type
|
||||
1, // [1:1] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
1, // [1:1] is the sub-list for extension extendee
|
||||
0, // [0:1] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_protob_eddsa_signature_proto_init() }
|
||||
func file_protob_eddsa_signature_proto_init() {
|
||||
if File_protob_eddsa_signature_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_protob_eddsa_signature_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*SignatureData); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_protob_eddsa_signature_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_protob_eddsa_signature_proto_goTypes,
|
||||
DependencyIndexes: file_protob_eddsa_signature_proto_depIdxs,
|
||||
MessageInfos: file_protob_eddsa_signature_proto_msgTypes,
|
||||
}.Build()
|
||||
File_protob_eddsa_signature_proto = out.File
|
||||
file_protob_eddsa_signature_proto_rawDesc = nil
|
||||
file_protob_eddsa_signature_proto_goTypes = nil
|
||||
file_protob_eddsa_signature_proto_depIdxs = nil
|
||||
}
|
||||
@@ -88,9 +88,8 @@ type SignRound2Message struct {
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
DeCommitment [][]byte `protobuf:"bytes,1,rep,name=de_commitment,json=deCommitment,proto3" json:"de_commitment,omitempty"`
|
||||
ProofAlphaX []byte `protobuf:"bytes,2,opt,name=proof_alpha_x,json=proofAlphaX,proto3" json:"proof_alpha_x,omitempty"`
|
||||
ProofAlphaY []byte `protobuf:"bytes,3,opt,name=proof_alpha_y,json=proofAlphaY,proto3" json:"proof_alpha_y,omitempty"`
|
||||
ProofT []byte `protobuf:"bytes,4,opt,name=proof_t,json=proofT,proto3" json:"proof_t,omitempty"`
|
||||
ProofAlpha []byte `protobuf:"bytes,2,opt,name=proof_alpha,json=proofAlpha,proto3" json:"proof_alpha,omitempty"`
|
||||
ProofT []byte `protobuf:"bytes,3,opt,name=proof_t,json=proofT,proto3" json:"proof_t,omitempty"`
|
||||
}
|
||||
|
||||
func (x *SignRound2Message) Reset() {
|
||||
@@ -132,16 +131,9 @@ func (x *SignRound2Message) GetDeCommitment() [][]byte {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SignRound2Message) GetProofAlphaX() []byte {
|
||||
func (x *SignRound2Message) GetProofAlpha() []byte {
|
||||
if x != nil {
|
||||
return x.ProofAlphaX
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SignRound2Message) GetProofAlphaY() []byte {
|
||||
if x != nil {
|
||||
return x.ProofAlphaY
|
||||
return x.ProofAlpha
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -210,20 +202,20 @@ var file_protob_eddsa_signing_proto_rawDesc = []byte{
|
||||
0x53, 0x69, 0x67, 0x6e, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x31, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
||||
0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e,
|
||||
0x74, 0x22, 0x99, 0x01, 0x0a, 0x11, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x32,
|
||||
0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x65, 0x5f, 0x63, 0x6f,
|
||||
0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0c,
|
||||
0x64, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x22, 0x0a, 0x0d,
|
||||
0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x5f, 0x78, 0x18, 0x02, 0x20,
|
||||
0x01, 0x28, 0x0c, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x58,
|
||||
0x12, 0x22, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x5f,
|
||||
0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x41, 0x6c,
|
||||
0x70, 0x68, 0x61, 0x59, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f, 0x74, 0x18,
|
||||
0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x54, 0x22, 0x21, 0x0a,
|
||||
0x11, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x33, 0x4d, 0x65, 0x73, 0x73, 0x61,
|
||||
0x67, 0x65, 0x12, 0x0c, 0x0a, 0x01, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x01, 0x73,
|
||||
0x42, 0x0f, 0x5a, 0x0d, 0x65, 0x64, 0x64, 0x73, 0x61, 0x2f, 0x73, 0x69, 0x67, 0x6e, 0x69, 0x6e,
|
||||
0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x74, 0x22, 0x72, 0x0a, 0x11, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x32, 0x4d,
|
||||
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x65, 0x5f, 0x63, 0x6f, 0x6d,
|
||||
0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0c, 0x64,
|
||||
0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70,
|
||||
0x72, 0x6f, 0x6f, 0x66, 0x5f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c,
|
||||
0x52, 0x0a, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x41, 0x6c, 0x70, 0x68, 0x61, 0x12, 0x17, 0x0a, 0x07,
|
||||
0x70, 0x72, 0x6f, 0x6f, 0x66, 0x5f, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x70,
|
||||
0x72, 0x6f, 0x6f, 0x66, 0x54, 0x22, 0x21, 0x0a, 0x11, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x6f, 0x75,
|
||||
0x6e, 0x64, 0x33, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0c, 0x0a, 0x01, 0x73, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x01, 0x73, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68,
|
||||
0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x2d, 0x63,
|
||||
0x68, 0x61, 0x69, 0x6e, 0x2f, 0x74, 0x73, 0x73, 0x2d, 0x6c, 0x69, 0x62, 0x2f, 0x65, 0x64, 0x64,
|
||||
0x73, 0x61, 0x2f, 0x73, 0x69, 0x67, 0x6e, 0x69, 0x6e, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = "ecdsa/keygen";
|
||||
option go_package = "github.com/binance-chain/tss-lib/ecdsa/keygen";
|
||||
|
||||
/*
|
||||
* Represents a BROADCAST message sent during Round 1 of the ECDSA TSS keygen protocol.
|
||||
|
||||
@@ -6,15 +6,16 @@
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = "ecdsa/resharing";
|
||||
option go_package = "github.com/binance-chain/tss-lib/ecdsa/resharing";
|
||||
|
||||
import "protob/shared.proto";
|
||||
|
||||
/*
|
||||
* The Round 1 data is broadcast to peers of the New Committee in this message.
|
||||
*/
|
||||
message DGRound1Message {
|
||||
bytes ecdsa_pub_x = 1;
|
||||
bytes ecdsa_pub_y = 2;
|
||||
bytes v_commitment = 3;
|
||||
ECPoint ecdsa_pub = 1;
|
||||
bytes v_commitment = 2;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -6,12 +6,12 @@
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = "./common";
|
||||
option go_package = "github.com/binance-chain/tss-lib/ecdsa/signing";
|
||||
|
||||
import "protob/shared.proto";
|
||||
|
||||
/*
|
||||
* State object for signatures, either partial (for offline/async "one round" signing) or full (contains the final signature).
|
||||
* State object for signatures, either partial (for offline/async "one round" signing) or full (contains the final ECDSA signature).
|
||||
*/
|
||||
message SignatureData {
|
||||
message OneRoundData {
|
||||
@@ -27,17 +27,6 @@ message SignatureData {
|
||||
map<string, ECPoint> big_r_bar_j = 5;
|
||||
map<string, ECPoint> big_s_j = 6;
|
||||
}
|
||||
OneRoundData one_round_data = 6;
|
||||
|
||||
bytes signature = 1;
|
||||
|
||||
// Ethereum-style recovery byte; only the first byte is relevant
|
||||
bytes signature_recovery = 2;
|
||||
|
||||
// Signature components R, S
|
||||
bytes r = 3;
|
||||
bytes s = 4;
|
||||
|
||||
// M represents the original message digest that was signed M
|
||||
bytes m = 5;
|
||||
ECSignature signature = 10;
|
||||
OneRoundData one_round_data = 11;
|
||||
}
|
||||
@@ -6,7 +6,9 @@
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = "ecdsa/signing";
|
||||
option go_package = "github.com/binance-chain/tss-lib/ecdsa/signing";
|
||||
|
||||
import "protob/shared.proto";
|
||||
|
||||
/*
|
||||
* Represents a P2P message sent to each party during Phase 1 of the GG20 ECDSA TSS signing protocol.
|
||||
@@ -38,12 +40,10 @@ message SignRound2Message {
|
||||
*/
|
||||
message SignRound3Message {
|
||||
bytes delta_i = 1;
|
||||
bytes t_i_x = 2;
|
||||
bytes t_i_y = 3;
|
||||
bytes t_proof_alpha_x = 4;
|
||||
bytes t_proof_alpha_y = 5;
|
||||
bytes t_proof_t = 6;
|
||||
bytes t_proof_u = 7;
|
||||
ECPoint t_i = 2;
|
||||
ECPoint t_proof_alpha = 3;
|
||||
bytes t_proof_t = 4;
|
||||
bytes t_proof_u = 5;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -57,9 +57,8 @@ message SignRound4Message {
|
||||
* Represents a BROADCAST message sent to all parties during Phase 5 of the GG20 ECDSA TSS signing protocol.
|
||||
*/
|
||||
message SignRound5Message {
|
||||
bytes r_i_x = 1;
|
||||
bytes r_i_y = 2;
|
||||
repeated bytes proof_pdl_w_slack = 3;
|
||||
ECPoint r_i = 1;
|
||||
repeated bytes proof_pdl_w_slack = 2;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -67,14 +66,11 @@ message SignRound5Message {
|
||||
*/
|
||||
message SignRound6Message {
|
||||
message SuccessData {
|
||||
bytes s_i_x = 1;
|
||||
bytes s_i_y = 2;
|
||||
bytes st_proof_alpha_x = 3;
|
||||
bytes st_proof_alpha_y = 4;
|
||||
bytes st_proof_beta_x = 5;
|
||||
bytes st_proof_beta_y = 6;
|
||||
bytes st_proof_t = 7;
|
||||
bytes st_proof_u = 8;
|
||||
ECPoint s_i = 1;
|
||||
ECPoint st_proof_alpha = 2;
|
||||
ECPoint st_proof_beta = 3;
|
||||
bytes st_proof_t = 4;
|
||||
bytes st_proof_u = 5;
|
||||
}
|
||||
message AbortData {
|
||||
bytes k_i = 1;
|
||||
@@ -95,6 +91,7 @@ message SignRound6Message {
|
||||
message SignRound7Message {
|
||||
message AbortData {
|
||||
repeated bytes v_j_i = 1;
|
||||
repeated bytes v_rand_j_i = 2;
|
||||
}
|
||||
oneof content {
|
||||
bytes s_i = 1;
|
||||
|
||||
@@ -6,7 +6,9 @@
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = "eddsa/keygen";
|
||||
option go_package = "github.com/binance-chain/tss-lib/eddsa/keygen";
|
||||
|
||||
import "protob/shared.proto";
|
||||
|
||||
/*
|
||||
* Represents a BROADCAST message sent during Round 1 of the EDDSA TSS keygen protocol.
|
||||
@@ -27,7 +29,6 @@ message KGRound2Message1 {
|
||||
*/
|
||||
message KGRound2Message2 {
|
||||
repeated bytes de_commitment = 1;
|
||||
bytes proof_alpha_x = 2;
|
||||
bytes proof_alpha_y = 3;
|
||||
bytes proof_t = 4;
|
||||
ECPoint proof_alpha = 2;
|
||||
bytes proof_t = 3;
|
||||
}
|
||||
|
||||
@@ -6,15 +6,16 @@
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = "eddsa/resharing";
|
||||
option go_package = "github.com/binance-chain/tss-lib/eddsa/resharing";
|
||||
|
||||
import "protob/shared.proto";
|
||||
|
||||
/*
|
||||
* The Round 1 data is broadcast to peers of the New Committee in this message.
|
||||
*/
|
||||
message DGRound1Message {
|
||||
bytes eddsa_pub_x = 1;
|
||||
bytes eddsa_pub_y = 2;
|
||||
bytes v_commitment = 3;
|
||||
ECPoint eddsa_pub = 1;
|
||||
bytes v_commitment = 2;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
18
protob/eddsa-signature.proto
Normal file
18
protob/eddsa-signature.proto
Normal file
@@ -0,0 +1,18 @@
|
||||
// Copyright © 2019 Binance
|
||||
//
|
||||
// This file is part of Binance. The full Binance copyright notice, including
|
||||
// terms governing use, modification, and redistribution, is contained in the
|
||||
// file LICENSE at the root of the source code distribution tree.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = "github.com/binance-chain/tss-lib/eddsa/signing";
|
||||
|
||||
import "protob/shared.proto";
|
||||
|
||||
/*
|
||||
* State object for signatures, contains the final EdDSA signature.
|
||||
*/
|
||||
message SignatureData {
|
||||
ECSignature signature = 10;
|
||||
}
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = "eddsa/signing";
|
||||
option go_package = "github.com/binance-chain/tss-lib/eddsa/signing";
|
||||
|
||||
/*
|
||||
* Represents a BROADCAST message sent to all parties during Round 1 of the EDDSA TSS signing protocol.
|
||||
@@ -20,9 +20,8 @@ message SignRound1Message {
|
||||
*/
|
||||
message SignRound2Message {
|
||||
repeated bytes de_commitment = 1;
|
||||
bytes proof_alpha_x = 2;
|
||||
bytes proof_alpha_y = 3;
|
||||
bytes proof_t = 4;
|
||||
bytes proof_alpha = 2;
|
||||
bytes proof_t = 3;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = "./tss";
|
||||
option go_package = "github.com/binance-chain/tss-lib/tss";
|
||||
|
||||
import "google/protobuf/any.proto";
|
||||
|
||||
|
||||
@@ -6,9 +6,23 @@
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = "./common";
|
||||
option go_package = "github.com/binance-chain/tss-lib/common";
|
||||
|
||||
message ECPoint {
|
||||
bytes x = 1;
|
||||
bytes y = 2;
|
||||
}
|
||||
|
||||
message ECSignature {
|
||||
bytes signature = 1;
|
||||
|
||||
// Ethereum-style recovery byte; only the first byte is relevant
|
||||
bytes signature_recovery = 2;
|
||||
|
||||
// Signature components R, S
|
||||
bytes r = 3;
|
||||
bytes s = 4;
|
||||
|
||||
// M represents the original message digest that was signed M
|
||||
bytes m = 5;
|
||||
}
|
||||
|
||||
@@ -224,8 +224,10 @@ var file_protob_message_proto_rawDesc = []byte{
|
||||
0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x6f, 0x6e, 0x69, 0x6b, 0x65,
|
||||
0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x6f, 0x6e, 0x69, 0x6b, 0x65, 0x72,
|
||||
0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b,
|
||||
0x65, 0x79, 0x42, 0x07, 0x5a, 0x05, 0x2e, 0x2f, 0x74, 0x73, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x33,
|
||||
0x65, 0x79, 0x42, 0x26, 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
|
||||
0x2f, 0x62, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x74,
|
||||
0x73, 0x73, 0x2d, 0x6c, 0x69, 0x62, 0x2f, 0x74, 0x73, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
|
||||
Reference in New Issue
Block a user