package
2.0.0-alpha+incompatible
Repository: https://github.com/hyperledger-labs/fabric-block-archiving.git
Documentation: pkg.go.dev

# 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 SigningIdentity.
CreateGRPCClient returns a comm.GRPCClient based on toke client config.
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.
GetTLSCertHash computes SHA2-256 on tls certificate.
No description provided by the author
NewClient creates a new Client from token client config It initializes msp crypto, gets SigningIdenity and creates a TxSubmitter.
No description provided by the author
No description provided by the author
No description provided by the author
NewTxSubmitter creates a new TxSubmitter from token client config.
No description provided by the author

# Constants

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
ProverPeer implements Prover interface.
ProverPeerClientImpl implements ProverPeerClient interface.
TxEvent contains information for token transaction commit.
TxSubmitter will submit token transactions to the orderer and create a channel to write/read transaction completion event.

# 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
ProverPeerClient defines an interface that creates a client to communicate with the prover service in a peer.

# Type aliases

No description provided by the author