A Generic Framework for Accountable Optimistic Fair Exchange Protocol † Article in Symmetry (February 2019)