From a96f40ee125681a0b0fe3c44e98894280d8d2993 Mon Sep 17 00:00:00 2001 From: Marius C Date: Mon, 27 Nov 2023 17:12:00 +0200 Subject: [PATCH] FEAT: Add aggregated and leader signature --- data/sovereign/outGoingBridgeData.pb.go | 60 ++++++++++++++++--------- data/sovereign/outGoingBridgeData.proto | 4 +- 2 files changed, 42 insertions(+), 22 deletions(-) diff --git a/data/sovereign/outGoingBridgeData.pb.go b/data/sovereign/outGoingBridgeData.pb.go index 90a7eed8..9bc15fa2 100644 --- a/data/sovereign/outGoingBridgeData.pb.go +++ b/data/sovereign/outGoingBridgeData.pb.go @@ -62,6 +62,8 @@ func (m *BridgeOperations) GetData() []*BridgeOutGoingData { type BridgeOutGoingData struct { Hash []byte `protobuf:"bytes,1,opt,name=Hash,proto3" json:"Hash,omitempty"` OutGoingOperations map[string][]byte `protobuf:"bytes,2,rep,name=OutGoingOperations,proto3" json:"OutGoingOperations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + AggregatedSignature []byte `protobuf:"bytes,3,opt,name=AggregatedSignature,proto3" json:"AggregatedSignature,omitempty"` + LeaderSignature []byte `protobuf:"bytes,4,opt,name=LeaderSignature,proto3" json:"LeaderSignature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -106,6 +108,20 @@ func (m *BridgeOutGoingData) GetOutGoingOperations() map[string][]byte { return nil } +func (m *BridgeOutGoingData) GetAggregatedSignature() []byte { + if m != nil { + return m.AggregatedSignature + } + return nil +} + +func (m *BridgeOutGoingData) GetLeaderSignature() []byte { + if m != nil { + return m.LeaderSignature + } + return nil +} + type BridgeOperationsResponse struct { TxHashes [][]byte `protobuf:"bytes,1,rep,name=TxHashes,proto3" json:"TxHashes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -157,25 +173,27 @@ func init() { } var fileDescriptor_62fb23e431426efc = []byte{ - // 307 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xd1, 0x4b, 0x02, 0x41, - 0x10, 0xc6, 0x3b, 0xb5, 0xc8, 0x49, 0x42, 0x86, 0xa0, 0xc5, 0x08, 0xe4, 0x7a, 0xf1, 0xc5, 0x3b, - 0x32, 0x8a, 0xa8, 0x87, 0x48, 0x92, 0xa2, 0x97, 0x60, 0xf3, 0x29, 0x7a, 0x59, 0x75, 0x38, 0x97, - 0x74, 0x57, 0x76, 0xf7, 0xe4, 0xfc, 0x47, 0xfb, 0x7b, 0xe2, 0x56, 0x3d, 0x21, 0xcb, 0xb7, 0x6f, - 0x99, 0xdf, 0xcc, 0xf7, 0xcd, 0xb0, 0xc0, 0x74, 0xea, 0x9e, 0xb5, 0x54, 0x49, 0xd7, 0xc8, 0x51, - 0x42, 0x4f, 0xc2, 0x89, 0x68, 0x66, 0xb4, 0xd3, 0x58, 0xb5, 0x7a, 0x4e, 0x86, 0x64, 0xa2, 0xc2, - 0x1e, 0xd4, 0x97, 0xe5, 0xb7, 0x19, 0x19, 0xe1, 0xa4, 0x56, 0x16, 0x2f, 0xa1, 0x92, 0xc3, 0x2c, - 0x68, 0x96, 0x5b, 0x47, 0x9d, 0xf3, 0xa8, 0xa0, 0xa3, 0x15, 0xba, 0x9a, 0x9b, 0x43, 0xdc, 0xa3, - 0xe1, 0x77, 0x00, 0xb8, 0x5d, 0x44, 0x84, 0xca, 0x8b, 0xb0, 0x63, 0x16, 0x34, 0x83, 0x56, 0x8d, - 0x7b, 0x8d, 0x04, 0xb8, 0x66, 0x36, 0x9e, 0xac, 0xe4, 0xbd, 0xae, 0x77, 0x7a, 0x45, 0xdb, 0x7d, - 0x3d, 0xe5, 0xcc, 0x82, 0xff, 0x31, 0xb0, 0xd1, 0x83, 0xd3, 0x7f, 0x70, 0xac, 0x43, 0xf9, 0x8b, - 0x16, 0x3e, 0x54, 0x95, 0xe7, 0x12, 0x4f, 0x60, 0x7f, 0x2e, 0x26, 0x29, 0xb1, 0x92, 0x0f, 0xba, - 0x7c, 0xdc, 0x95, 0x6e, 0x83, 0xf0, 0x06, 0xd8, 0xef, 0xfb, 0x70, 0xb2, 0x33, 0xad, 0x2c, 0x61, - 0x03, 0x0e, 0xfb, 0x59, 0xbe, 0x13, 0x59, 0x7f, 0xab, 0x1a, 0x2f, 0xde, 0x9d, 0x4f, 0x38, 0x5e, - 0xf6, 0xf5, 0xb3, 0x77, 0x52, 0x23, 0x32, 0xf8, 0x0a, 0x95, 0x5c, 0xe1, 0xd9, 0xf6, 0x8e, 0x9b, - 0xd4, 0x17, 0x3b, 0x8a, 0x6b, 0xdf, 0x70, 0xaf, 0xfb, 0xf8, 0xf1, 0x90, 0x48, 0x37, 0x4e, 0x07, - 0xd1, 0x50, 0x4f, 0xe3, 0x69, 0x3a, 0x71, 0x72, 0x4e, 0xc6, 0x66, 0xf1, 0x34, 0x6b, 0x0f, 0xc7, - 0x42, 0xaa, 0xf6, 0x50, 0x1b, 0x6a, 0x27, 0x3a, 0x1e, 0x09, 0x27, 0xe2, 0x62, 0xe6, 0x7d, 0xa1, - 0x06, 0x07, 0xfe, 0x2b, 0x5c, 0xfd, 0x04, 0x00, 0x00, 0xff, 0xff, 0x4d, 0x78, 0xca, 0xd6, 0x26, - 0x02, 0x00, 0x00, + // 347 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xd1, 0x4b, 0x2a, 0x41, + 0x14, 0xc6, 0xef, 0xae, 0x7b, 0x2f, 0xd7, 0x93, 0x94, 0x4c, 0x41, 0x8b, 0x11, 0xc8, 0xf6, 0xe2, + 0x8b, 0xbb, 0x65, 0x14, 0x51, 0x0f, 0xa1, 0x24, 0x45, 0x04, 0xc1, 0xea, 0x53, 0xf4, 0x32, 0xba, + 0x87, 0x71, 0x48,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d, 0x13, 0xdc, 0x82, 0xbf, 0xb9, + 0xfb, 0x18, 0xf5, 0x54, 0x0a, 0x8d, 0xa4, 0x06, 0xff, 0xfb, 0x59, 0xbe, 0x2f, 0xd4, 0xf6, 0x3b, + 0x54, 0xe2, 0xe2, 0xdc, 0xfa, 0x84, 0xc3, 0xc5, 0xbd, 0x7e, 0xd6, 0x43, 0x91, 0xa0, 0x22, 0xaf, + 0xe0, 0xe5, 0x8a, 0x9c, 0x6d, 0xef, 0xaf, 0x88, 0xae, 0x5d, 0xec, 0x31, 0x57, 0xbd, 0xc1, 0x9f, + 0x4e, 0xfb, 0xe3, 0x91, 0x71, 0x33, 0x4a, 0x07, 0xe1, 0x50, 0x4e, 0xa2, 0x49, 0x3a, 0x36, 0x7c, + 0x86, 0x4a, 0x67, 0xd1, 0x24, 0x6b, 0x0e, 0x47, 0x94, 0x8b, 0xe6, 0x50, 0x2a, 0x6c, 0x32, 0x19, + 0x25, 0xd4, 0xd0, 0xa8, 0xc8, 0x7c, 0x28, 0xd4, 0xe0, 0x9f, 0xfd, 0xcd, 0xae, 0x7f, 0x02, 0x00, + 0x00, 0xff, 0xff, 0x0f, 0xac, 0xf3, 0xaf, 0x82, 0x02, 0x00, 0x00, } diff --git a/data/sovereign/outGoingBridgeData.proto b/data/sovereign/outGoingBridgeData.proto index 434d5418..9dadce6b 100644 --- a/data/sovereign/outGoingBridgeData.proto +++ b/data/sovereign/outGoingBridgeData.proto @@ -8,8 +8,10 @@ message BridgeOperations { } message BridgeOutGoingData { - bytes Hash = 1; + bytes Hash = 1; map OutGoingOperations = 2; + bytes AggregatedSignature = 3; + bytes LeaderSignature = 4; } message BridgeOperationsResponse {