ยง  779.  Prosecution  of  undertaking  by attorney-general or district
  attorney. If no party is aggrieved by the misconduct of the accused, the
  order must, and, in any case where the court thinks proper so to direct,
  it  may,  direct  the   prosecution   of   the   undertaking,   by   the
  attorney-general,  or by the district attorney of the county in which it
  was given, in the name of the people. In an action, brought pursuant  to
  the  order, the people are entitled to recover the entire sum, specified
  in the undertaking.  Out  of  the  money  collected,  the  court,  which
  directed the prosecution, must direct that the person, at whose instance
  the  warrant  was  issued,  be  paid  such a sum as it thinks proper, to
  satisfy the costs and expenses incurred by him, and  to  compensate  him
  for  any  loss  or injury sustained by him, by reason of the misconduct.
  The residue of the money must be paid into the treasury of the state.
Structure New York Laws
750 - Power of Courts to Punish for Criminal Contempts.
751 - Punishment for Criminal Contempts.
752 - Requisites of Commitment for Criminal Contempt; Review of Certain Mandates.
753 - Power of Courts to Punish for Civil Contempts.
753-A - Contempts in Cases Involving or Growing Out of Labor Disputes.
754 - Special Proceeding to Punish for Contempt Punishable Civilly.
755 - When Punishment May Be Summary.
756 - Application to Punish for Contempt; Procedure.
757 - Application to Punish for Contempt Committed Before Referee.
758 - Notice to Delinquent Officer to Show Cause.
760 - When Application May Be Made.
761 - Notice to Accused; Service.
767 - When Habeas Corpus May Issue.
770 - Final Order Directing Punishment; Exception.
771 - Punishment Upon Return of Habeas Corpus.
772 - Punishment Upon Return of Application.
774 - Length of Imprisonment and Periodic Review of Proceedings.
775 - When Court May Release Offender.
776 - Offender Liable to Indictment.
777 - Proceedings When Accused Does Not Appear.
778 - Prosecution of Undertaking by Person Aggrieved.
779 - Prosecution of Undertaking by Attorney-General or District Attorney.