acl

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	*basetoken.ChaincodeAPI
}

func NewAPI

func NewAPI(channelName string, chaincodeName string, hlfClient *service.HLFClient) (*API, error)

func (*API) AddUser

func (b *API) AddUser(encodedBase58PublicKey string, kycHash string, userID string, isIndustrial string) (*channel.Response, error)

AddUser - add user encodedBase58PublicKey := args[0] kycHash := args[1] userId := args[2] isIndustrial := args[3] == "true"

func (*API) CheckKeys

func (b *API) CheckKeys(publicKeyEncodedBase58 string) (*channel.Response, error)

Jump to

Keyboard shortcuts

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