Add sign and verify functions.