Identities
On this page
Use identity
command to perform various access key management operations.
USAGE:
metalo identity command [command options] [arguments...]
COMMANDS:
new create new identity and add to the account
import import identity
help, h Shows a list of commands or help for one command
Create New Identity
Use the new
command to generate a new identity.
Options
--type value Identity type (default: pairwise). Allowed values: verinym, persona, pairwise (default: "pairwise")
--name value Full name
--unilocker add unilocker to the new identity (default: false)
Examples
# create new identity
METAPASS=<password> metalo --user <email> identity new
# create new 'persona' identity
METAPASS=<password> metalo --user <email> identity new --type persona
# create new 'persona' identity with the provided name
METAPASS=<password> metalo --user <email> identity new --type persona --name "<full name>"
# create new identity with a single party locker
METAPASS=<password> metalo --user <email> identity new
Output
If successful, new
command returns a comma-separated string in the format:
<did>:<ver-key>
Example:
did:piprate:Ew1oAs467FyEy5dAdzQBsV,8bPubJALCYfNx9iVA46EW3XRbNQ2wbnRJ1XbVWMF46EK
Import Identity From File
Use the import
command to import an existing identity definition from file.
Options
--file value Identity file
Example
METAPASS=<password> metalo --user <email> identity import --file <path-to-file>
Output
If successful, import
command returns a comma-separated string in the format:
<did>:<ver-key>
Example:
did:piprate:Ew1oAs467FyEy5dAdzQBsV,8bPubJALCYfNx9iVA46EW3XRbNQ2wbnRJ1XbVWMF46EK