Pass in obj instead of just pubKey