identity

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2025 License: Apache-2.0, MIT Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL