add option to create identity from private key