Service for hlf fabric administration
A utility service that provides simplified access to fabric administrative functions, such as creating channels, installing chaincodes, and updating channels.
The service provides OpenAPI (Swagger) functionality. The list of methods and request formats is available at the link.
# Msp ID of your organization
mspId: testnetMSP
# Logging level
logLevel: debug
# Access token value
accessToken: "my_awesome_token"
# Path to the certificate and private key of your identity
identity:
cert: certs/admin.pem
key: certs/admin_key.pem
# or bccsp config of pkcs11
# bccsp:
# Default: PKCS11
# PKCS11:
# immutable: false
# label: Org_Admin
# library: /usr/lib/softhsm/libsofthsm2.so
# pin: 123321
# hash: SHA2
# security: 256
# Tls credentials for mutual tls connection
tls:
cert: cert.pem
key: key.pem
ca: ca.pem
# List of peers managed by organization
peers:
- host: peer1.ideatestnet.io:7051
- host: peer2.ideatestnet.io:7051
# ports configuration for grpc and http
listen:
http: ":8080"
grpc: ":8081"The service includes a built-in healthcheck mechanism, available without authentication at the path /v1/healthz, returning information in the following format:
{
"status": "SERVING"
}For the generation of tools needed for work, use
make build-toolsTools and their dependencies are described in the tools module. The installation path is $(pwd)/bin by default.
- protodep - protobuf dependency management
- buf - generate and lint protobuf code
To download vendored protobuf dependencies:
bin/protodep upUse go generate in the root path to generate code from .proto and swagger client for tests:
go generate