Documentation ¶
Index ¶
- 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)
- type ChaincodeStubInterface
- type ClientIdentity
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 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) }
func New ¶
func New(stub ChaincodeStubInterface) (ClientIdentity, error)
Click to show internal directories.
Click to hide internal directories.