SEC. 30. And be it further enacted, That the mode of proof by oral testimony and examination of witnesses in open court shall be the same in all the courts of the United States, as well in the trial of causes in equity and of admiralty and maritime jurisdiction, as of actions at common law. And when the testimony of any person shall be necessary in any civil cause depending in any district in any court of the United States, who shall live at a greater distance from the place of trial than one hundred miles, or is bound on a voyage to sea, or is about to go out of the United States, or out of such district, and to a greater distance from the place of trial than as aforesaid, before the time of trial, or is ancient or very infirm, the deposition of such person may be taken de bene esse before any justice or judge of any of the courts of the United States, or before any chancellor, justice or judge of a supreme or superior court, mayor or chief magistrate of a city, or judge of a county court or court of common pleas of any of the United States, not being of counsel or attorney to either of the parties, or interested in the event of the cause, provided that a notification from the magistrate before whom the deposition is to be taken to the adverse party, to be present at the taking of the same, and to put interrogatories, if he think fit, be first made out and served on the adverse party or his attorney as either may be nearest, if either is within one hundred miles of the place of such caption, allowing time for their attendance after notified, not less than at the rate of one day, Sundays exclusive, for every twenty miles travel. And in causes of admiralty and maritime jurisdiction, or other cases of seizure when a libel shall be filed, in which an adverse party is not named, and depositions of persons circumstanced as aforesaid shall be taken before a claim be put in, the like notification as aforesaid shall be given to the person having the agency or possession of the property libelled at the time of the capture or seizure of the same, if known to the libellant. And every person deposing as aforesaid shall be carefully examined and cautioned, and sworn or affirmed to testify the whole truth, and shall subscribe the testimony by him or her given after the same shall be reduced to writing, which shall be done only by the magistrate taking the deposition, or by the deponent in his presence. And the depositions so taken shall be retained by such magistrate until he deliver the same with his own hand into the court for which they are taken, or shall , together with a certificate of the reasons as aforesaid of their being taken, and of the notice if any given to the adverse party, be by him the said magistrate sealed up and directed to such court, and remain under his seal until opened in court. And any person may be compelled to appear and depose as aforesaid in the same manner as to appear and testify in court. And in the trial of any cause of admiralty or maritime jurisdiction in a district court, the decree in which may be appealed from, if either party shall suggest to and satisfy the court that probably it will not be in his power to produce the witnesses there testifying before the circuit court should an appeal be had, and shall move that their testimony be taken down in writing, it shall be so done by the clerk of the court. And if an appeal be had, such testimony may be used on the trial of the same, if it shall appear to the satisfaction of the court which shall try the appeal, that the witnesses are then dead or gone out of the United States, or to a greater distance than as aforesaid from the place where the court is sitting, or that by reason of age, sickness, bodily infirmity or imprisonment, they are unable to travel and appear at court, but not otherwise. And unless the same shall be made to appear on the trial of any cause, with respect to witnesses whose depositions may have been taken therein, such depositions shall not be admitted or used in the cause. Provided, That nothing herein shall be construed to prevent any court of the United States from granting a dedimus potestatem to take depositions according to common usage, when it may be necessary to prevent a failure or delay of justice, which power they shall severally possess, nor to extend to depositions taken in perpetuam rei memoriam, which if they relate to matters that may be cognizable in any court of the United States, a circuit court on application thereto made as a court of equity, may, according to the usages in chancery direct to be taken.