hstx-go-sdk

command module
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

README

Akachain - High Secure Transaction Samples ⌁ hstx-chaincode

Go Report Card

Chaincode (Smart Contract)

Prerequisites

  • OS: Ubuntu 18.04, Mac OS 10.13.6
  • Language: Go 1.13+
  • IDE: Visual Studio Code + Go plugin / IntelliJ GoLand
  • Unit test tool: built-in testing command (go test)

Require

To create SuperAdmin and Approval, the invoking identity must include attribute "hstx.role=SuperAdmin" in it's certificate.

Example create certificate with role SuperAdmin

curl --location --request POST 'http://admin-service-address/registerUser' \
--header 'Content-Type: application/json' \
--data-raw '{
	"orgname": 	"operator",
	"username": "SuperAdmin",
	"maxEnrollments": 1,
	"attrs": [{ "name": "hstx.role", "value": "SuperAdmin", "ecert": true }]
}'

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL