# Packages
No description provided by the author
# Functions
Clone creates a new Message which carries a copy of the payload.
ConvBool converts a Safe into a bool.
ConvI converts a Safe into an int.
ConvI16 converts a Safe into an int16.
ConvI32 converts a Safe into an int32.
ConvI64 converts a Safe into an int64.
ConvI8 converts a Safe into an int8.
ConvStr converts a Safe into a string.
ConvU converts a Safe into a uint.
ConvU16 converts a Safe into a uint16.
ConvU32 converts a Safe into a uint32.
ConvU64 converts a Safe into a uint64.
ConvU8 converts a Safe into a uint8.
EmptyNewBlock is used primarily to initialize the NewBlock, since empty newblocks should not be propagated externally.
GenVotes randomly generates a slice of StepVotes with the indicated length.
Marshal a Message into a buffer.
MarshalAggrAgreement marshal the AggrAgreement into a Buffer.
MarshalAgreement marshals an Agreement event into a buffer.
MarshalBlock marshals a block into a binary buffer.
MarshalCertificate marshals a certificate.
MarshalHashable marshals the hashable part of the block into a binary buffer.
MarshalHeader marshals the header of a block into a binary buffer.
MarshalNewBlock the buffer into a committee Event.
MarshalReduction a Reduction event into a buffer.
MarshalStepVotes marshals the aggregated form of the BLS PublicKey and Signature for an ordered set of votes.
MarshalVotes marshals an array of StepVotes.
MarshalVoteSet marshals a slice of Reduction events to a buffer.
MockAgreement returns a mocked Agreement Event, to be used for testing purposes.
MockCommitteeVoteSet mocks a VoteSet.
MockNewBlock mocks a NewBlock and returns it.
MockReduction mocks a Reduction event and returns it.
MockVotes mocks a slice of Reduction events and returns it.
MockVoteSet mocks a slice of Reduction events for two adjacent steps, and returns it.
New creates a new Message.
NewAggrAgreement creates an AggrAgreement message with the given fields.
NewAgreement returns an empty Agreement event.
NewNewBlock creates a new Score from a proposal.
NewReduction returns and empty Reduction event.
NewStepVotes returns a new StepVotes structure for a given round, step and block hash.
NewStepVotesMsg creates a StepVotesMsg.
NewWithMetadata creates a new Message with non-nil metadata.
SignAgreement signs an aggregated agreement event.
Unmarshal mutates the buffer by extracting the topic.
UnmarshalAddrMessage into a SerializableMessage.
UnmarshalAggrAgreement unmarshals the buffer into an AggrAgreement.
UnmarshalAggrAgreementMessage unmarshal a network inbound AggrAgreement.
UnmarshalAgreement unmarshals the buffer into an Agreement.
UnmarshalAgreementMessage unmarshal a network inbound Agreement.
UnmarshalBlock unmarshals a block from a binary buffer.
UnmarshalBlockMessage unmarshals a block from a binary buffer into a SerializableMessage.
UnmarshalCertificate unmarshals a certificate.
UnmarshalChallengeMessage into a SerializableMessage.
UnmarshalGetBlocksMessage unmarshals a GetBlocks message into a SerializableMessage.
UnmarshalGetCandidateMessage into a SerializableMessage.
UnmarshalHeader unmarshal a block header from a binary buffer.
UnmarshalInvMessage into a SerializableMessage.
UnmarshalNewBlock unmarshals the buffer into a NewBlock Event.
UnmarshalNewBlockMessage unmarshal a NewBlockMessage from a buffer.
UnmarshalReduction unmarshals the buffer into a Reduction event.
UnmarshalReductionMessage unmarshals a serialization from a buffer.
UnmarshalResponseMessage into a SerializableMessage.
UnmarshalStepVotes unmarshals a single StepVote.
UnmarshalTxMessage unmarshals a Message carrying a tx from a buffer.
UnmarshalVotes unmarshals the array of StepVotes for a single Agreement.
UnmarshalVoteSet unmarshals a Reduction slice from a buffer.
# Constants
EMPTY represents a empty message, used by the StopConsensus call.
# Variables
InvTypeBlock is the inventory type for confirmed Txs.
InvTypeMempoolTx is the inventory type for unconfirmed Txs.
# Structs
Addr contains a network address of a peer.
AggrAgreement stores an agreement (with the provisioners) and the bitset representing those who voted in favor.
No description provided by the author
Challenge represents a challenge sent by a voucher seeder on connection.
GetBlocks defines a getblocks message on the Dusk wire protocol.
GetCandidate is used to request certain candidates from peers.
Inv contains a list of Inventory vector.
InvVect represents a request of sort for Inventory data.
Metadata is a struct containing messages metadata.
NewBlock extends the ScoreProposal with additional fields related to the candidate it pairs up with.
No description provided by the author
Response to a voucher seeder challenge.
SafeBuffer is a byte.Buffer wrapper that let the Buffer implement Safe.
No description provided by the author
No description provided by the author
# Interfaces
Message is the core of the message-oriented architecture of the node.
Serializable allows to set a payload.
SerializableMessage is a Serializable and a Message.
# Type aliases
InvType is a byte describing the Inventory type.