func (sb *ShardBlockHeader) ToProto() *pb.ShardBlockHeader {
	return &pb.ShardBlockHeader{
		PreviousBlockHash:   sb.PreviousBlockHash[:],
		Slot:                sb.Slot,
		Signature:           sb.Signature[:],
		StateRoot:           sb.StateRoot[:],
		TransactionRoot:     sb.TransactionRoot[:],
		FinalizedBeaconHash: sb.FinalizedBeaconHash[:],
		Validator:           sb.Validator,
		ValidatorProof:      sb.ValidatorProof.ToProto(),
	}
}
// ToProto gets the protobuf representation of the shard block header.
ToProto gets the protobuf representation of the shard block header.
// ToProto gets the protobuf representation of the shard block header .
func (sb *ShardBlockHeader) ToProto() *pb.ShardBlockHeader {
	return &pb.ShardBlockHeader{
		PreviousBlockHash:   sb.PreviousBlockHash[:],
		Slot:                sb.Slot,
		Signature:           sb.Signature[:],
		StateRoot:           sb.StateRoot[:],
		TransactionRoot:     sb.TransactionRoot[:],
		FinalizedBeaconHash: sb.FinalizedBeaconHash[:],
		Validator:           sb.Validator,
		ValidatorProof:      sb.ValidatorProof.ToProto(),
	}
}
func ( sb * ShardBlockHeader ) ToProto ( ) * pb . ShardBlockHeader { return & pb . ShardBlockHeader { PreviousBlockHash : sb . PreviousBlockHash [ : ] , Slot : sb . Slot , Signature : sb . Signature [ : ] , StateRoot : sb . StateRoot [ : ] , TransactionRoot : sb . TransactionRoot [ : ] , FinalizedBeaconHash : sb . FinalizedBeaconHash [ : ] , Validator : sb . Validator , ValidatorProof : sb . ValidatorProof . ToProto ( ) , } }
ToProto gets the protobuf representation of the shard block header.
ToProto gets the protobuf representation of the shard block header .