The act .by which a court or magistrate requires a person to enter Into a recognizance or furnish bail to appear for trial, to keep the peace, to attend as a witness, etc