In sign and defaultSign, added wireFormat argument.