build chain for sign