panurus

Tokengen

tokengen is a utility for generating Panurus material, such as public parameters, token chaincode packages, and other cryptographic artifacts.

It is primarily used for pre-configuring development and testing environments.

Build

To build tokengen, run the following command from the root of the repository:

make tokengen

The binary will be generated in the $GOROOT/bin directory.

Usage

The tokengen tool uses a command-line interface with several subcommands. You can always use the --help flag to see available options for any command.

tokengen [command] --help

Core Commands

Topology-driven artifact generation previously offered as tokengen artifacts now lives in a separate binary, artifactgen. Splitting it keeps tokengen’s dependency surface small (it no longer links the integration/nwo test framework).

Examples

Generate Public Parameters for FabToken

tokengen gen fabtoken.v1 --auditors ./msp/auditor --issuers ./msp/issuer --output ./params

Inspect Public Parameters

tokengen pp print --input ./params/fabtokenv1_pp.json

Configuration

tokengen can also be configured via environment variables prefixed with CORE_. For example, CORE_LOGGING_LEVEL=debug will set the logging level to debug.