Fix doc comments, add identity type enum.
Start adding cryptographic identities support.