If the party injured appears before the court in which the defendant is bound to appear, at any time before trial, and acknowledges in writing that satisfaction has been received for the injury, the court may, on payment of the costs incurred, order the prosecution dismissed and the defendant discharged. The order is a bar to another prosecution for the same crime.
AS 12.45.130