# Packages
Code generated by counterfeiter.
# Functions
broadReceive waits until it receives the response from broadcast stream.
broadcastSend sends transaction envelope to orderer service.
broadcastWaitForResponse reads from response and errs chans until responses chan is closed.
create a signed envelope with SeekPosition_Newest for block.
CreateEnvelope creates a common.Envelope with given tx bytes, header, and Signer.
CreateHeader creates common.Header for a token transaction tlsCertHash is for client TLS cert, only applicable when ClientAuthRequired is true.
No description provided by the author
No description provided by the author
DeliverWaitForResponse waits for either eventChan has value (i.e., response has been received) or ctx is timed out This function assumes that the eventCh is only for the specified txid If an eventCh is shared by multiple transactions, a loop should be used to listen to events from multiple transactions.
No description provided by the author
No description provided by the author
NewTransactionSubmitter creates a new TxSubmitter from token client config.
No description provided by the author
# Structs
Client represents the client struct that calls Prover and TxSubmitter.
ClientConfig will be updated after the CR for token client config is merged, where the config data will be populated based on a config file.
ConnectionConfig contains data required to establish grpc connection to a peer or orderer.
No description provided by the author
TxEvent contains information for token transaction commit If application wants to be notified when a token transaction is committed, do the following: - create a event chan with size 1 or bigger, e.g.
No description provided by the author
# Interfaces
Broadcast defines the interface that abstracts grpc calls to broadcast transactions to orderer.
DeliverClient defines the interface to create a DeliverFiltered client.
DeliverFiltered defines the interface that abstracts deliver filtered grpc calls to commit peer.
No description provided by the author
OrdererClient defines the interface to create a Broadcast.
No description provided by the author
No description provided by the author
SignerIdentity signs messages and serializes its public identity to bytes.
# Type aliases
No description provided by the author