Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrWrongTransientFieldName = errors.New("Field is not present in transient data map") ErrEmptyTransientFieldValue = errors.New("Transient field has empty value") )
Technical pvtdata errors TODO: make errors constant
Functions ¶
func GetTransientDataValue ¶
func GetTransientDataValue(ctx contractapi.TransactionContextInterface, fieldName string) (value []byte, err error)
GetTransientDataValue is a function that obtains the value of a specific field of the private data
func GetTransientDataValueUnmarshaled ¶
func GetTransientDataValueUnmarshaled(ctx contractapi.TransactionContextInterface, fieldName string, v interface{}) (err error)
GetTransientDataValueUnmarshaled is a function that obtains the value of a specific field of the private data that should be a JSON string and unmarshals it
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.