acl

package
v0.0.0-...-7107d2d Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 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
}

API - acl api struct

func NewAPI

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

NewAPI - create new acl api

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)

CheckKeys - check keys for user

Jump to

Keyboard shortcuts

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