made sendpublickey func