Refactor sign method to synchronous interface