Documentation ¶
Overview ¶
Package contract implements the client-side FPC protocol
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContract ¶
GetContract is the factory method for creating FPC Contract objects.
Parameters: network is an initialized Fabric network object chaincodeID is the ID of the target chaincode Returns: The contractImpl object
Types ¶
type Contract ¶
type Contract interface { Name() string EvaluateTransaction(name string, args ...string) ([]byte, error) SubmitTransaction(name string, args ...string) ([]byte, error) CreateTransaction(name string, peerEndpoints ...string) (Transaction, error) }
Contract interface
type Transaction ¶
Transaction interface that is needed by the FPC contract implementation
Click to show internal directories.
Click to hide internal directories.