Add functionality to send over public key in the calls

change these so that the 2nd arg to the constructors in an object, not just the pubkey.