started to build the signature function.  still need to pull in the private key