def swap.hash
import ezx@1.11.0.0/src/lock/up.bend as Upimport Base
594# the old hash, or "" when it did not change
595def swap.hash(same: Bool, +old: String) -> String:
596 match same:
597 case True{}:
598 ""
599 case False{}:
600 old