Affinity gateway integration tools.
Located in the js
folder. Available for NodeJS and browser environments.
affinity.GetMaterial().then((response) => {
console.log("your new pin is: " + response.pin);
});
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)
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.