convert hardcoded variables to constants
added functions Sign() and Verify()