Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Latest commit

 

History

History
74 lines (55 loc) · 2.23 KB

README.md

File metadata and controls

74 lines (55 loc) · 2.23 KB

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.