Added function to determine private vs. public key (#3), made test class friend function for testing private functions (#2)