func (bh *BlockHeader) ToProto() *pb.BlockHeader {
	return &pb.BlockHeader{
		SlotNumber:     bh.SlotNumber,
		ValidatorIndex: bh.ValidatorIndex,
		ParentRoot:     bh.ParentRoot[:],
		StateRoot:      bh.StateRoot[:],
		RandaoReveal:   bh.RandaoReveal[:],
		Signature:      bh.Signature[:],
	}
}
// ToProto converts to block header to protobuf form.
ToProto converts to block header to protobuf form.
// ToProto converts to block header to protobuf form .
func (bh *BlockHeader) ToProto() *pb.BlockHeader {
	return &pb.BlockHeader{
		SlotNumber:     bh.SlotNumber,
		ValidatorIndex: bh.ValidatorIndex,
		ParentRoot:     bh.ParentRoot[:],
		StateRoot:      bh.StateRoot[:],
		RandaoReveal:   bh.RandaoReveal[:],
		Signature:      bh.Signature[:],
	}
}
func ( bh * BlockHeader ) ToProto ( ) * pb . BlockHeader { return & pb . BlockHeader { SlotNumber : bh . SlotNumber , ValidatorIndex : bh . ValidatorIndex , ParentRoot : bh . ParentRoot [ : ] , StateRoot : bh . StateRoot [ : ] , RandaoReveal : bh . RandaoReveal [ : ] , Signature : bh . Signature [ : ] , } }
ToProto converts to block header to protobuf form.
ToProto converts to block header to protobuf form .