added function to cat pub key