Documentation ¶
Index ¶
- Variables
- func BuildAndSignCredential(credInputJSON, schemaID, subjectDID string, issuerDoc ledger.DIDDoc, ...) (*credential.VerifiableCredential, error)
- func BuildAndSignPresentationRequest(description string, verifierDoc ledger.DIDDoc, verifierPK ed25519.PrivateKey, ...) (*presentation.CompositeProofRequestInstanceChallenge, error)
- func BuildAndSignSchema(schemaInputJSON ledger.JSONSchemaMap, privateKey ed25519.PrivateKey, ...) (*ledger.Schema, error)
- func BuildCredDef(controller, schemaID string) (*ledger.DIDDoc, ed25519.PrivateKey, error)
- func BuildPresentationResponse(presentationRequest presentation.CompositeProofRequestInstanceChallenge, ...) (*presentation.CompositeProofResponseSubmission, error)
- func CmdErr(cmd *cobra.Command, err error) error
- func Execute()
- func IsJSON(maybeJSON []byte) bool
- func StructPrinter(s interface{})
- func ValidateFlags(cmd ...*cobra.Command)
- type CredDefInfo
- type KeyMaterial
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "credwallet", Short: "credwallet is a command line wallet for Workday Credentials.", Long: `credwallet is a command line wallet to demonstrate the protocols that Workday Credentials is built on.`, SilenceErrors: true, SilenceUsage: true, Run: func(cmd *cobra.Command, args []string) { fmt.Println(cmd.UsageString()) }, }
Functions ¶
func BuildAndSignCredential ¶
func BuildAndSignCredential(credInputJSON, schemaID, subjectDID string, issuerDoc ledger.DIDDoc, issuerPrivateKey ed25519.PrivateKey) (*credential.VerifiableCredential, error)
func BuildAndSignPresentationRequest ¶
func BuildAndSignPresentationRequest( description string, verifierDoc ledger.DIDDoc, verifierPK ed25519.PrivateKey, prID string, url string, criteria []presentation.Criterion, supportingCreds []credential.VerifiableCredential, variables map[string]interface{}) (*presentation.CompositeProofRequestInstanceChallenge, error)
func BuildAndSignSchema ¶
func BuildAndSignSchema(schemaInputJSON ledger.JSONSchemaMap, privateKey ed25519.PrivateKey, authorDIDDoc ledger.DIDDoc) (*ledger.Schema, error)
func BuildCredDef ¶
TODO move to ledger-common
func BuildPresentationResponse ¶
func BuildPresentationResponse(presentationRequest presentation.CompositeProofRequestInstanceChallenge, credentials []credential.VerifiableCredential, holderDID ledger.DIDDoc, holderPK ed25519.PrivateKey) (*presentation.CompositeProofResponseSubmission, error)
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the RootCmd.
func StructPrinter ¶
func StructPrinter(s interface{})
StructPrinter prints a struct as JSON to stdout
func ValidateFlags ¶
Types ¶
type CredDefInfo ¶
func GetCredDefInfo ¶
func GetCredDefInfo(doc ledger.DIDDoc) (*CredDefInfo, error)
type KeyMaterial ¶
Click to show internal directories.
Click to hide internal directories.