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.
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.
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
gen: Generates public parameters for specific drivers (e.g., fabtoken.v1, zkatdlognogh.v1).update: Updates certificates within existing public parameters.pp print: Inspects and prints human-readable details of a public parameters file.certifier-keygen: Generates key pairs for token certifiers.version: Displays the build version information.Topology-driven artifact generation previously offered as
tokengen artifactsnow lives in a separate binary,artifactgen. Splitting it keepstokengen’s dependency surface small (it no longer links theintegration/nwotest framework).
tokengen gen fabtoken.v1 --auditors ./msp/auditor --issuers ./msp/issuer --output ./params
tokengen pp print --input ./params/fabtokenv1_pp.json
tokengen can also be configured via environment variables prefixed with CORE_. For example, CORE_LOGGING_LEVEL=debug will set the logging level to debug.