cid

package
v0.0.0-...-95b87ed Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertAttributeValue

func AssertAttributeValue(stub ChaincodeStubInterface, attrName, attrValue string) error

func GetAttributeValue

func GetAttributeValue(stub ChaincodeStubInterface, attrName string) (value string, found bool, err error)

func GetID

func GetID(stub ChaincodeStubInterface) (string, error)

func GetMSPID

func GetMSPID(stub ChaincodeStubInterface) (string, error)

func GetX509Certificate

func GetX509Certificate(stub ChaincodeStubInterface) (*x509.Certificate, error)

Types

type ChaincodeStubInterface

type ChaincodeStubInterface interface {
	GetCreator() ([]byte, error)
}

type ClientIdentity

type ClientIdentity interface {
	GetID() (string, error)

	GetMSPID() (string, error)

	GetAttributeValue(attrName string) (value string, found bool, err error)

	AssertAttributeValue(attrName, attrValue string) error

	GetX509Certificate() (*x509.Certificate, error)
}

Jump to

Keyboard shortcuts

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