diff --git a/proto/buf.lock b/proto/buf.lock index 8c415e1af0..a5228b8897 100644 --- a/proto/buf.lock +++ b/proto/buf.lock @@ -1,6 +1,11 @@ # Generated by buf. DO NOT EDIT. version: v1 deps: + - remote: buf.build + owner: celestia + repository: nmt + commit: 686a5caececf476e8b8e26994f837778 + digest: shake256:30dc63aaf2ba645c37e0d369029bdf3a8c97663eb1ef37548a62bfd48dd7904abd3ecd8ef7e92b3c3cae3eba3360ca73c81558c807ff03c1953a944c251c75e9 - remote: buf.build owner: gogo repository: protobuf diff --git a/proto/buf.yaml b/proto/buf.yaml index 816db10f76..aecfcece72 100644 --- a/proto/buf.yaml +++ b/proto/buf.yaml @@ -1,6 +1,7 @@ version: v1 deps: - buf.build/gogo/protobuf + - buf.build/celestia/nmt:v0.22.2 breaking: use: - FILE diff --git a/proto/tendermint/store/types.pb.go b/proto/tendermint/store/types.pb.go index 5383b152b1..224fa314a4 100644 --- a/proto/tendermint/store/types.pb.go +++ b/proto/tendermint/store/types.pb.go @@ -74,7 +74,8 @@ func (m *BlockStoreState) GetHeight() int64 { return 0 } -// TxInfo describes the location of a tx inside a committed block. +// TxInfo describes the location of a tx inside a committed block +// as well as the result of executing the transaction. type TxInfo struct { Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Index uint32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` diff --git a/proto/tendermint/types/types.pb.go b/proto/tendermint/types/types.pb.go index ff6a726e09..6324239697 100644 --- a/proto/tendermint/types/types.pb.go +++ b/proto/tendermint/types/types.pb.go @@ -5,6 +5,7 @@ package types import ( fmt "fmt" + pb "github.com/celestiaorg/nmt/pb" crypto "github.com/cometbft/cometbft/proto/tendermint/crypto" version "github.com/cometbft/cometbft/proto/tendermint/version" _ "github.com/gogo/protobuf/gogoproto" @@ -1260,7 +1261,7 @@ func (m *BlobTx) GetTypeId() string { // Merkle proof that those rows exist in a Merkle tree with a given data root. type ShareProof struct { Data [][]byte `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` - ShareProofs []*NMTProof `protobuf:"bytes,2,rep,name=share_proofs,json=shareProofs,proto3" json:"share_proofs,omitempty"` + ShareProofs []*pb.Proof `protobuf:"bytes,2,rep,name=share_proofs,json=shareProofs,proto3" json:"share_proofs,omitempty"` NamespaceId []byte `protobuf:"bytes,3,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` RowProof *RowProof `protobuf:"bytes,4,opt,name=row_proof,json=rowProof,proto3" json:"row_proof,omitempty"` NamespaceVersion uint32 `protobuf:"varint,5,opt,name=namespace_version,json=namespaceVersion,proto3" json:"namespace_version,omitempty"` @@ -1306,7 +1307,7 @@ func (m *ShareProof) GetData() [][]byte { return nil } -func (m *ShareProof) GetShareProofs() []*NMTProof { +func (m *ShareProof) GetShareProofs() []*pb.Proof { if m != nil { return m.ShareProofs } @@ -1412,89 +1413,6 @@ func (m *RowProof) GetEndRow() uint32 { return 0 } -// NMTProof is a proof of a namespace.ID in an NMT. -// In case this proof proves the absence of a namespace.ID -// in a tree it also contains the leaf hashes of the range -// where that namespace would be. -type NMTProof struct { - // Start index of this proof. - Start int32 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"` - // End index of this proof. - End int32 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"` - // Nodes that together with the corresponding leaf values can be used to - // recompute the root and verify this proof. Nodes should consist of the max - // and min namespaces along with the actual hash, resulting in each being 48 - // bytes each - Nodes [][]byte `protobuf:"bytes,3,rep,name=nodes,proto3" json:"nodes,omitempty"` - // leafHash are nil if the namespace is present in the NMT. In case the - // namespace to be proved is in the min/max range of the tree but absent, this - // will contain the leaf hash necessary to verify the proof of absence. Leaf - // hashes should consist of the namespace along with the actual hash, - // resulting 40 bytes total. - LeafHash []byte `protobuf:"bytes,4,opt,name=leaf_hash,json=leafHash,proto3" json:"leaf_hash,omitempty"` -} - -func (m *NMTProof) Reset() { *m = NMTProof{} } -func (m *NMTProof) String() string { return proto.CompactTextString(m) } -func (*NMTProof) ProtoMessage() {} -func (*NMTProof) Descriptor() ([]byte, []int) { - return fileDescriptor_d3a6e55e2345de56, []int{18} -} -func (m *NMTProof) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NMTProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_NMTProof.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *NMTProof) XXX_Merge(src proto.Message) { - xxx_messageInfo_NMTProof.Merge(m, src) -} -func (m *NMTProof) XXX_Size() int { - return m.Size() -} -func (m *NMTProof) XXX_DiscardUnknown() { - xxx_messageInfo_NMTProof.DiscardUnknown(m) -} - -var xxx_messageInfo_NMTProof proto.InternalMessageInfo - -func (m *NMTProof) GetStart() int32 { - if m != nil { - return m.Start - } - return 0 -} - -func (m *NMTProof) GetEnd() int32 { - if m != nil { - return m.End - } - return 0 -} - -func (m *NMTProof) GetNodes() [][]byte { - if m != nil { - return m.Nodes - } - return nil -} - -func (m *NMTProof) GetLeafHash() []byte { - if m != nil { - return m.LeafHash - } - return nil -} - func init() { proto.RegisterEnum("tendermint.types.BlockIDFlag", BlockIDFlag_name, BlockIDFlag_value) proto.RegisterEnum("tendermint.types.SignedMsgType", SignedMsgType_name, SignedMsgType_value) @@ -1516,117 +1434,114 @@ func init() { proto.RegisterType((*BlobTx)(nil), "tendermint.types.BlobTx") proto.RegisterType((*ShareProof)(nil), "tendermint.types.ShareProof") proto.RegisterType((*RowProof)(nil), "tendermint.types.RowProof") - proto.RegisterType((*NMTProof)(nil), "tendermint.types.NMTProof") } func init() { proto.RegisterFile("tendermint/types/types.proto", fileDescriptor_d3a6e55e2345de56) } var fileDescriptor_d3a6e55e2345de56 = []byte{ - // 1663 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 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f6, 0x5c, 0xb4, 0xa8, 0xd8, 0x29, 0xdd, 0x7d, 0xb5, 0x5d, 0x38, - 0x10, 0xb4, 0xee, 0xa1, 0x55, 0x40, 0x66, 0xd7, 0x35, 0x1f, 0x40, 0x7e, 0x4c, 0xbc, 0xd1, 0x98, - 0x63, 0x58, 0xb2, 0x96, 0x3a, 0x99, 0xbf, 0x00, 0x5d, 0x14, 0x44, 0x4d, 0xc7, 0xbb, 0xeb, 0x6d, - 0x59, 0x2d, 0xed, 0xb8, 0x5a, 0xda, 0xfd, 0xb8, 0x5a, 0x3a, 0x86, 0xb8, 0xf8, 0xb3, 0x7f, 0x6d, - 0x6b, 0x16, 0x4a, 0x98, 0x07, 0x50, 0xf1, 0x1d, 0xc6, 0xed, 0x81, 0x08, 0x9b, 0xb8, 0x3e, 0x87, - 0x2a, 0x1e, 0x2e, 0x06, 0x44, 0x05, 0x56, 0x99, 0x5e, 0x12, 0x52, 0x92, 0xe4, 0x9a, 0x3b, 0x50, - 0x45, 0x25, 0x43, 0x3a, 0x99, 0x78, 0xdc, 0xc6, 0xb8, 0xe7, 0x31, 0xee, 0xeb, 0x82, 0x7e, 0x80, - 0xe4, 0x0f, 0x44, 0x06, 0x1e, 0x41, 0xd1, 0x75, 0xb8, 0x23, 0x21, 0x05, 0x84, 0x18, 0x82, 0x80, - 0xcc, 0x1f, 0xc1, 0x46, 0x52, 0x75, 0x4c, 0x42, 0x0c, 0xa9, 0x65, 0x46, 0x46, 0xe0, 0x13, 0xd8, - 0x0a, 0xc8, 0x35, 0xb7, 0xef, 0xa3, 0x8b, 0x88, 0x36, 0x05, 0xef, 0xc5, 0xbc, 0xc4, 0x0f, 0x60, - 0x7d, 0x18, 0x07, 0x5f, 0x62, 0x01, 0xb1, 0x95, 0x84, 0x8a, 0xb0, 0x87, 0x60, 0x38, 0x61, 0x28, - 0x01, 0x25, 0x04, 0x14, 0x9c, 0x30, 0x44, 0xd6, 0x3b, 0xb0, 0x89, 0x3e, 0x46, 0x84, 0x4d, 0x7d, - 0xae, 0x94, 0x94, 0x11, 0xb3, 0x21, 0x18, 0x96, 0xa4, 0x23, 0xf6, 0xfb, 0x50, 0x21, 0x97, 0x9e, - 0x4b, 0x82, 0x21, 0x91, 0xb8, 0x0a, 0xe2, 0xca, 0x31, 0x11, 0x41, 0x6f, 0x43, 0x35, 0x8c, 0x68, - 0x48, 0x19, 0x89, 0x6c, 0xc7, 0x75, 0x23, 0xc2, 0x58, 0x6d, 0x5d, 0xea, 0x8b, 0xe9, 0xfb, 0x92, - 0xdc, 0xb2, 0x41, 0x3f, 0x74, 0xb8, 0x63, 0x56, 0x21, 0xcb, 0xaf, 0x59, 0x4d, 0x6b, 0x66, 0x77, - 0xca, 0x96, 0xf8, 0x34, 0xb7, 0xa1, 0xc4, 0x7e, 0x37, 0x75, 0x22, 0x62, 0x33, 0xef, 0x53, 0x82, - 0xc9, 0xd3, 0x2d, 0x90, 0xa4, 0x9e, 0xf7, 0x29, 0x49, 0xda, 0x20, 0x3f, 0x6b, 0x83, 0xe7, 0xba, - 0x91, 0xa9, 0x66, 0x9f, 0xeb, 0x46, 0xb6, 0xaa, 0x3f, 0xd7, 0x0d, 0xbd, 0x9a, 0x6b, 0xfd, 0x41, - 0x03, 0xbd, 0xe3, 0xd3, 0x81, 0xf9, 0x3d, 0x28, 0x07, 0xce, 0x84, 0xb0, 0xd0, 0x19, 0x12, 0x51, - 0x0d, 0xb2, 0x7b, 0x4a, 0x09, 0xad, 0xeb, 0x0a, 0x8d, 0x22, 0x63, 0x71, 0x87, 0x8b, 0x6f, 0xe1, - 0x30, 0x1b, 0x0b, 0x2b, 0xe2, 0x26, 0xc8, 0x62, 0x87, 0x97, 0x91, 0xf8, 0x42, 0x15, 0xf9, 0x8f, - 0x61, 0x73, 0xa6, 0x3b, 0x06, 0xea, 0x08, 0xac, 0x26, 0x0c, 0x05, 0x6e, 0x7d, 0x9d, 0x01, 0xfd, - 0x05, 0xe5, 0xc4, 0x7c, 0x0a, 0xba,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 0x00, 0xff, 0xff, 0x5c, 0xda, 0x7c, 0x03, 0x7b, 0x10, 0x00, 0x00, + // 1620 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xcd, 0x6f, 0x1a, 0xd7, + 0x16, 0xf7, 0xc0, 0x00, 0xc3, 0x01, 0xec, 0xf1, 0xc8, 0x49, 0x08, 0x89, 0x31, 0x8f, 0xa7, 0xf7, + 0x9e, 0x93, 0x17, 0xe1, 0x3c, 0xe7, 0xa9, 0x1f, 0x8b, 0x2e, 0x8c, 0xed, 0x24, 0x24, 0xfe, 0x40, + 0x03, 0x71, 0xd4, 0xaa, 0xd2, 0x68, 0x60, 0xae, 0x61, 0x1a, 0x98, 0x3b, 0x9d, 0xb9, 0xd8, 0x38, + 0x7f, 0x41, 0xe5, 0x4d, 0xb3, 0xea, 0xce, 0xab, 0x74, 0xd1, 0x7d, 0xff, 0x81, 0xaa, 0xab, 0x2c, + 0xb3, 0x6b, 0x37, 0x49, 0x2b, 0x47, 0xaa, 0xfa, 0x67, 0x54, 0xf7, 0x63, 0x86, 0xc1, 0x40, 0x1b, + 0x45, 0x51, 0x37, 0x68, 0xee, 0x39, 0xbf, 0x73, 0xee, 0xf9, 0xbc, 0xe7, 0x00, 0xd7, 0x09, 0x72, + 0x2c, 0xe4, 0xf5, 0x6d, 0x87, 0xac, 0x91, 0x13, 0x17, 0xf9, 0xfc, 0xb7, 0xe2, 0x7a, 0x98, 0x60, + 0x4d, 0x1d, 0x71, 0x2b, 0x8c, 0x5e, 0x58, 0xea, 0xe0, 0x0e, 0x66, 0xcc, 0x35, 0xfa, 0xc5, 0x71, + 0x85, 0x95, 0x0e, 0xc6, 0x9d, 0x1e, 0x5a, 0x63, 0xa7, 0xd6, 0xe0, 0x70, 0x8d, 0xd8, 0x7d, 0xe4, + 0x13, 0xb3, 0xef, 0x0a, 0x40, 0xc6, 0xf5, 0x30, 0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PartSetHeader) Marshal() (dAtA []byte, err error) { @@ -2651,55 +2566,6 @@ func (m *RowProof) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *NMTProof) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NMTProof) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NMTProof) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.LeafHash) > 0 { - i -= len(m.LeafHash) - copy(dAtA[i:], m.LeafHash) - i = encodeVarintTypes(dAtA, i, uint64(len(m.LeafHash))) - i-- - dAtA[i] = 0x22 - } - if len(m.Nodes) > 0 { - for iNdEx := len(m.Nodes) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Nodes[iNdEx]) - copy(dAtA[i:], m.Nodes[iNdEx]) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Nodes[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if m.End != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.End)) - i-- - dAtA[i] = 0x10 - } - if m.Start != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.Start)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { offset -= sovTypes(v) base := offset @@ -3154,31 +3020,6 @@ func (m *RowProof) Size() (n int) { return n } -func (m *NMTProof) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Start != 0 { - n += 1 + sovTypes(uint64(m.Start)) - } - if m.End != 0 { - n += 1 + sovTypes(uint64(m.End)) - } - if len(m.Nodes) > 0 { - for _, b := range m.Nodes { - l = len(b) - n += 1 + l + sovTypes(uint64(l)) - } - } - l = len(m.LeafHash) - if l > 0 { - n += 1 + l + sovTypes(uint64(l)) - } - return n -} - func sovTypes(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -6133,7 +5974,7 @@ func (m *ShareProof) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ShareProofs = append(m.ShareProofs, &NMTProof{}) + m.ShareProofs = append(m.ShareProofs, &pb.Proof{}) if err := m.ShareProofs[len(m.ShareProofs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -6436,160 +6277,6 @@ func (m *RowProof) Unmarshal(dAtA []byte) error { } return nil } -func (m *NMTProof) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NMTProof: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NMTProof: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType) - } - m.Start = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Start |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field End", wireType) - } - m.End = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.End |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Nodes", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Nodes = append(m.Nodes, make([]byte, postIndex-iNdEx)) - copy(m.Nodes[len(m.Nodes)-1], dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LeafHash", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LeafHash = append(m.LeafHash[:0], dAtA[iNdEx:postIndex]...) - if m.LeafHash == nil { - m.LeafHash = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func skipTypes(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/proto/tendermint/types/types.proto b/proto/tendermint/types/types.proto index dcd23c01d9..cedf59eb12 100644 --- a/proto/tendermint/types/types.proto +++ b/proto/tendermint/types/types.proto @@ -5,6 +5,7 @@ option go_package = "github.com/cometbft/cometbft/proto/tendermint/types"; import "gogoproto/gogo.proto"; import "google/protobuf/timestamp.proto"; +import "proof.proto"; import "tendermint/crypto/proof.proto"; import "tendermint/version/types.proto"; import "tendermint/types/validator.proto"; @@ -93,7 +94,7 @@ message Data { // field number 2 is reserved for intermediate state roots // field number 3 is reserved for evidence // field number 4 is reserved for blobs - + // SquareSize is the number of rows or columns in the original data square. uint64 square_size = 5; @@ -211,11 +212,11 @@ message BlobTx { // ShareProof is an NMT proof that a set of shares exist in a set of rows and a // Merkle proof that those rows exist in a Merkle tree with a given data root. message ShareProof { - repeated bytes data = 1; - repeated NMTProof share_proofs = 2; - bytes namespace_id = 3; - RowProof row_proof = 4; - uint32 namespace_version = 5; + repeated bytes data = 1; + repeated proof.pb.Proof share_proofs = 2; + bytes namespace_id = 3; + RowProof row_proof = 4; + uint32 namespace_version = 5; } // RowProof is a Merkle proof that a set of rows exist in a Merkle tree with a @@ -227,25 +228,3 @@ message RowProof { uint32 start_row = 4; uint32 end_row = 5; } - -// NMTProof is a proof of a namespace.ID in an NMT. -// In case this proof proves the absence of a namespace.ID -// in a tree it also contains the leaf hashes of the range -// where that namespace would be. -message NMTProof { - // Start index of this proof. - int32 start = 1; - // End index of this proof. - int32 end = 2; - // Nodes that together with the corresponding leaf values can be used to - // recompute the root and verify this proof. Nodes should consist of the max - // and min namespaces along with the actual hash, resulting in each being 48 - // bytes each - repeated bytes nodes = 3; - // leafHash are nil if the namespace is present in the NMT. In case the - // namespace to be proved is in the min/max range of the tree but absent, this - // will contain the leaf hash necessary to verify the proof of absence. Leaf - // hashes should consist of the namespace along with the actual hash, - // resulting 40 bytes total. - bytes leaf_hash = 4; -} diff --git a/types/share_proof.go b/types/share_proof.go index dc5d9a0aad..537341fd52 100644 --- a/types/share_proof.go +++ b/types/share_proof.go @@ -6,6 +6,7 @@ import ( "math" "github.com/celestiaorg/nmt" + "github.com/celestiaorg/nmt/pb" "github.com/cometbft/cometbft/pkg/consts" "github.com/cometbft/cometbft/proto/tendermint/crypto" tmproto "github.com/cometbft/cometbft/proto/tendermint/types" @@ -18,7 +19,7 @@ type ShareProof struct { Data [][]byte `json:"data"` // ShareProofs are NMT proofs that the shares in Data exist in a set of // rows. There will be one ShareProof per row that the shares occupy. - ShareProofs []*tmproto.NMTProof `json:"share_proofs"` + ShareProofs []*pb.Proof `json:"share_proofs"` // NamespaceID is the namespace id of the shares being proven. This // namespace id is used when verifying the proof. If the namespace id doesn't // match the namespace of the shares, the proof will fail verification. @@ -67,7 +68,7 @@ func ShareProofFromProto(pb tmproto.ShareProof) (ShareProof, error) { // If the proof is not correctly constructed, it returns a sensible error. // Note: these proofs are tested on the app side. func (sp ShareProof) Validate() error { - numberOfSharesInProofs := int32(0) + numberOfSharesInProofs := int64(0) for _, proof := range sp.ShareProofs { // the range is not inclusive from the left. numberOfSharesInProofs += proof.End - proof.Start @@ -103,7 +104,7 @@ func (sp ShareProof) VerifyProof(root []byte) bool { if err := sp.Validate(); err != nil { return false } - cursor := int32(0) + cursor := int64(0) for i, proof := range sp.ShareProofs { nmtProof := nmt.NewInclusionProof( int(proof.Start), diff --git a/types/share_proof_test.go b/types/share_proof_test.go index b199b74d41..4756d38d73 100644 --- a/types/share_proof_test.go +++ b/types/share_proof_test.go @@ -3,8 +3,8 @@ package types import ( "testing" + "github.com/celestiaorg/nmt/pb" "github.com/cometbft/cometbft/pkg/consts" - "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/assert" ) @@ -100,7 +100,7 @@ func TestShareProofVerify(t *testing.T) { func mismatchedShareProofs() ShareProof { sp := validShareProof() - sp.ShareProofs = []*types.NMTProof{} + sp.ShareProofs = []*pb.Proof{} return sp } @@ -116,7 +116,7 @@ func mismatchedShares() ShareProof { func validShareProof() ShareProof { return ShareProof{ Data: [][]uint8{{0x0, 0x0, 0x0, 0x0, 0x0, 0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, 0x2, 0x61, 0x23, 0x77, 0x12, 0x82, 0xfc, 0x9, 0x43, 0xfb, 0xd6, 0x38, 0x53, 0xfd, 0x77, 0xe, 0x17, 0xcc, 0x93, 0x5e, 0x4e, 0x60, 0x87, 0xda, 0xbd, 0xfc, 0x86, 0xdd, 0xb1, 0xd6, 0x74, 0x41, 0x71, 0x24, 0xda, 0x1, 0x3f, 0x11, 0x17, 0x9e, 0x54, 0x66, 0xb6, 0xc4, 0x9a, 0xb8, 0x59, 0xb9, 0x13, 0x4e, 0xed, 0x8, 0xe5, 0x99, 0x27, 0xa0, 0x6b, 0x1, 0x6c, 0x8a, 0xbf, 0x20, 0x3d, 0x75, 0xd5, 0x7e, 0xea, 0xe0, 0xef, 0x7f, 0xfe, 0xa8, 0xaf, 0x76, 0xad, 0x30, 0x55, 0x65, 0x9d, 0xbe, 0x30, 0x32, 0x9f, 0x3b, 0xb7, 0xa1, 0x5c, 0x98, 0xef, 0xe1, 0xe4, 0x33, 0x1a, 0x56, 0x5a, 0x22, 0xd1, 0x38, 0x9b, 0xee, 0xfa, 0x11, 0x6f, 0xa7, 0xd7, 0x6, 0x17, 0xdc, 0xc6, 0x4d, 0xbd, 0x3f, 0x3c, 0xe6, 0xac, 0x54, 0x70, 0xda, 0x11, 0xdb, 0x87, 0xe2, 0xc2, 0x26, 0x7e, 0x48, 0x3b, 0xda, 0xf4, 0x98, 0x3c, 0x51}}, - ShareProofs: []*types.NMTProof{ + ShareProofs: []*pb.Proof{ { Start: 0, End: 1,