move createHeader to sigFactory
refactor createHeader to SignMessage