use classes instead of tuples of functions for signing algorithms