Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DID = &cobra.Command{ Use: "did", Short: "Work with DIDs", Long: `Generate, view and list DIDs. Stores key material to the key-store.`, Example: "credwallet did", Args: cobra.ExactArgs(0), RunE: func(cmd *cobra.Command, args []string) error { storage, err := bolt.NewStorage() if err != nil { fmt.Printf("Unable to initiate bolt storage: %s\n", err.Error()) return CmdErr(cmd, err) } defer storage.Close() docs, err := storage.ListDIDs() if err != nil { fmt.Printf("Unable to list DIDs: %s\n", err.Error()) return CmdErr(cmd, err) } fmt.Printf("<%d> DID Docs Found\n", len(docs)) for _, doc := range docs { fmt.Println(doc.ID) } return nil }, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.