some refactoring + fixed paired Tx bugs
refactor paired Tx sign to use crypto utils