Documentation ¶
Index ¶
- type SDK
- func (sdk *SDK) EvaluateTransaction(chaincode, tx string, arguments string) (string, error)
- func (sdk *SDK) GetIdentities() (string, error)
- func (sdk *SDK) IdentityExists(username string) bool
- func (sdk *SDK) InitWallet(path string) error
- func (sdk *SDK) PutX509Identity(username, org, cert, key string) error
- func (sdk *SDK) RemoveIdentity(username string) error
- func (sdk *SDK) SetupConnectionToChannel(configRaw, channel, username string) error
- func (sdk *SDK) SubmitTransaction(chaincode, tx string, arguments string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SDK ¶
SDK defines Fabric SDK client.
func (*SDK) EvaluateTransaction ¶
EvaluateTransaction will evaluate a transaction `tx` with given `arguments` passed as JSON on specified `chaincode`.
func (*SDK) GetIdentities ¶
GetIdentities returns list of signing identities stored in the gateway.Wallet.
func (*SDK) IdentityExists ¶
IdentityExists determines whether the gateway.Wallet holds signing credentials for given `username`.
func (*SDK) InitWallet ¶
InitWallet creates or recovers existing wallet from file system.
func (*SDK) PutX509Identity ¶
PutX509Identity adds signing identity with given `cert` and `key` pair to the gateway.Wallet.
func (*SDK) RemoveIdentity ¶
RemoveIdentity removes signing identity from the gateway.Wallet.
func (*SDK) SetupConnectionToChannel ¶
SetupConnectionToChannel preforms initialization of Fabric gateway.Gateway client with given `config`, and makes connection attempt to gateway.Network on specified `channel`.