Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Cmd = &cobra.Command{ Use: "identity", Aliases: []string{"id"}, Short: "identity commands", Long: `This command provides a set of subcommands for working with decentralized identities. Specifically for generating and managing Ed25519 keys used in DID (Decentralized Identifier) systems. - Generate new Ed25519 key pairs encoded in PEM-format - Extract DID from PEM file `, } GenerateCmd = &cobra.Command{ Use: "generate", Aliases: []string{"gen"}, Args: cobra.NoArgs, Short: "generate an identity", Long: `Generate a new PEM-encoded Ed25519 key pair for use with decentralized identities (DIDs). The command will output the key to stdout, which can be redirected to a file. The DID is printed to stderr for convenience. `, Example: "piri identity generate > my-key.pem", RunE: doGenerate, } ParseCmd = &cobra.Command{ Use: "parse", Short: "parse a DID from a PEM file containing an Ed25519 key", Args: cobra.ExactArgs(1), Example: `piri identity parse my-key.pem`, RunE: doParse, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.