affinityctl

module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: BSD-3-Clause

README

Affinityctl

Build Status Version Software License Go Report Card Contributor Covenant

Affinity gateway integration tools.

Javascript

Located in the js folder. Available for NodeJS and browser environments.

affinity.GetMaterial().then((response) => {
  console.log("your new pin is: " + response.pin);
});

GoLang client

Available on the "github.com/aidtechnology/affinityctl/client" package.

sdk, _ := client.New(nil)
pin, _ := sdk.DID.GetMaterial()
log.Printf("your new pin is: %s", pin)

CLI

This repository also provide the CLI-based affinityctl tool to facilitate integration with the existing gateway services.

Usage:
  affinityctl [command]

Available Commands:
  completion  Generate auto-completion scripts for common shells
  create      Create a new DID
  gateway     Start a gateway instance
  help        Help about any command
  info        Display information on a given identifier
  list        List identifiers generated
  resolve     Retrieve the DID document for a given identifier
  vc          Verifiable credential operations
  version     Show version information

The tool also provide basic commands for verifiable credentials operations.

Verifiable credential operations

Usage:
  affinityctl vc [command]

Available Commands:
  issue       Issue a new verifiable credential
  list        Authenticate and list stored credentials
  store       Store an existing VC in the user's wallet
  verify      Verify an existing credential

Flags:
  -h, --help   help for vc

Global Flags:
  --config string   config file

Use "affinityctl vc [command] --help" for more information about a command.

Directories

Path Synopsis
cli
cmd
Package cmd provides a CLI-based application for the project.
Package cmd provides a CLI-based application for the project.
Package client provide an SDK for the Affinity Gateway service.
Package client provide an SDK for the Affinity Gateway service.
proto
v1

Jump to

Keyboard shortcuts

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