Versions in this module Expand all Collapse all v0 v0.1.1 Aug 16, 2021 Changes in this version + func AssertAttributeValue(stub ChaincodeStubInterface, attrName, attrValue string) error + func GetAttributeValue(stub ChaincodeStubInterface, attrName string) (value string, found bool, err error) + func GetID(stub ChaincodeStubInterface) (string, error) + func GetMSPID(stub ChaincodeStubInterface) (string, error) + func GetX509Certificate(stub ChaincodeStubInterface) (*x509.Certificate, error) + func HasOUValue(stub ChaincodeStubInterface, OUValue string) (bool, error) + type ChaincodeStubInterface interface + GetCreator func() ([]byte, error) + type ClientID struct + func New(stub ChaincodeStubInterface) (*ClientID, error) + func (c *ClientID) AssertAttributeValue(attrName, attrValue string) error + func (c *ClientID) GetAttributeValue(attrName string) (value string, found bool, err error) + func (c *ClientID) GetID() (string, error) + func (c *ClientID) GetMSPID() (string, error) + func (c *ClientID) GetX509Certificate() (*x509.Certificate, error) + func (c *ClientID) HasOUValue(OUValue string) (bool, error) + type ClientIdentity interface + AssertAttributeValue func(attrName, attrValue string) error + GetAttributeValue func(attrName string) (value string, found bool, err error) + GetID func() (string, error) + GetMSPID func() (string, error) + GetX509Certificate func() (*x509.Certificate, error)