package
1.0.0
Repository: https://github.com/hyperledger/fabric-sdk-go.git
Documentation: pkg.go.dev

# Functions

Connect to a gateway defined by a network config file.
NewFileSystemWallet creates an instance of a wallet, held in memory.
NewInMemoryWallet creates an instance of a wallet, held in memory.
NewX509Identity creates an X509 identity for storage in a wallet.
WithConfig configures the gateway from a network config, such as a ccp file.
WithEndorsingPeers is an optional argument to the CreateTransaction method which sets the peers that should be used for endorsement of transaction submitted to the ledger using Submit().
WithIdentity is an optional argument to the Connect method which specifies the identity that is to be used to connect to the network.
WithSDK configures the gateway with the configuration from an existing FabricSDK instance Parameters: sdk is an instance of fabsdk.FabricSDK from which the configuration is extracted Returns: A ConfigOption which can be passed as the first parameter to the Connect() function.
WithTimeout is an optional argument to the Connect method which defines the commit timeout for all transaction submissions for this gateway.
WithTransient is an optional argument to the CreateTransaction method which sets the transient data that will be passed to the transaction function but will not be stored on the ledger.
WithUser is an optional argument to the Connect method which specifies the identity that is to be used to connect to the network.

# Structs

A Contract object represents a smart contract instance in a network.
Gateway is the entry point to a Fabric network.
A Network object represents the set of peers in a Fabric network (channel).
A Transaction represents a specific invocation of a transaction function, and provides flexibility over how that transaction is invoked.
A Wallet stores identity information used to connect to a Hyperledger Fabric network.
X509Identity represents an X509 identity.

# Interfaces

Identity represents a specific identity format.
WalletStore is the interface for implementations that provide backing storage for identities in a wallet.

# Type aliases

ConfigOption specifies the gateway configuration source.
IdentityOption specifies the user identity under which all transactions are performed for this gateway instance.
Option functional arguments can be supplied when connecting to the gateway.
TransactionOption functional arguments can be supplied when creating a transaction object.