package
3.0.0+incompatible
Repository: https://github.com/hyperledger/fabric.git
Documentation: pkg.go.dev

# Functions

AliveMessageToString of AliveMessage prints Alive Message, Identity and Timestamp.
DataDigestToString prints nonce, msg_type and digests.
DataRequestToString prints nonce, msg_type and digests.
DataUpdateToString prints Type, items and nonce.
EnvelopeToGossipMessage un-marshals a given envelope and creates a SignedGossipMessage out of it.
GetPullMsgType returns the phase of the pull mechanism this GossipMessage belongs to for example: Hello, Digest, etc.
InternalEndpoint returns the internal endpoint in the secret envelope, or an empty string if a failure occurs.
IsAck returns whether this GossipMessage is an acknowledgement.
IsAliveMsg returns whether this GossipMessage is an AliveMessage.
IsChannelRestricted returns whether this GossipMessage should be routed only in its channel.
IsDataMsg returns whether this GossipMessage is a data message.
IsDataReq returns whether this GossipMessage is a data request message.
IsDataUpdate returns whether this GossipMessage is a data update message.
IsDigestMsg returns whether this GossipMessage is a digest message.
IsHelloMsg returns whether this GossipMessage is a hello message.
IsIdentityMsg returns whether this GossipMessage is an identity message.
IsLeadershipMsg returns whether this GossipMessage is a leadership (leader election) message.
IsOrgRestricted returns whether this GossipMessage should be routed only inside the organization.
IsPrivateDataMsg returns whether this message is related to private data.
IsPullMsg returns whether this GossipMessage is a message that belongs to the pull mechanism.
IsRemoteStateMessage returns whether this GossipMessage is related to state synchronization.
IsStateInfoMsg returns whether this GossipMessage is a stateInfo message.
IsStateInfoPullRequestMsg returns whether this GossipMessage is a stateInfoPullRequest.
IsStateInfoSnapshot returns whether this GossipMessage is a stateInfo snapshot.
IsTagLegal checks the GossipMessage tags and inner type and returns an error if the tag doesn't match the type.
LeadershipMessageToString prints PKI-id, Timestamp and Is Declaration.
MembershipRequestToString prints self information.
MembershipResponseToString of MembershipResponse prints number of Alive and number of Dead.
MemberToString prints Endpoint and PKI-id.
NewGossipMessageComparator creates a MessageReplacingPolicy given a maximum number of blocks to hold.
NoopSign creates a SignedGossipMessage with a nil signature.
PayloadToString prints Block message: Data and seq.
RemovePvtDataResponseToString returns a string representation of this RemotePvtDataResponse.
SignSecret signs the secret payload and creates a secret envelope out of it.
StateInfoPullRequestToString prints Channel MAC.
StateInfoSnapshotToString prints items.
StateInfoToString prints Timestamp and PKI-id.

# Structs

AuthInfo represents the authentication data that was provided by the remote peer at the connection time.
ConnectionInfo represents information about the remote peer that sent a certain ReceivedMessage.
SignedGossipMessage contains a GossipMessage and the Envelope from which it came from.

# Interfaces

ReceivedMessage is a GossipMessage wrapper that enables the user to send a message to the origin from which the ReceivedMessage was sent from.

# Type aliases

Signer signs a message, and returns (signature, nil) on success, and nil and an error on failure.
Verifier receives a peer identity, a signature and a message and returns nil if the signature on the message could be verified using the given identity.