Versions in this module Expand all Collapse all v5 v5.0.1 Nov 10, 2022 v5.0.0 Nov 10, 2022 Changes in this version + func GetRequestContentsSize(payloadSize int) int + func GetRequestPartContentsSize(externalPayloadSize int) int + func GetRequestPayloadSize(externalPayloadSize, pubKeySize int) int + type Collator struct + func NewCollator(messageCount uint8) *Collator + func (c *Collator) Collate(part Part) ([]byte, bool, error) + type Part interface + GetContents func() []byte + GetNumParts func() uint8 + GetPartNum func() uint8 + type Request struct + func NewRequest(externalPayloadSize, pubKeySize int) Request + func UnmarshalRequest(b []byte, pubKeySize int) (Request, error) + func (m Request) GetPayload() []byte + func (m Request) GetPayloadSize() int + func (m Request) GetPubKey(grp *cyclic.Group) *cyclic.Int + func (m Request) GetPubKeySize() int + func (m Request) Marshal() []byte + func (m Request) SetPayload(payload []byte) + func (m Request) SetPubKey(pubKey *cyclic.Int) + func (m Request) Version() uint8 + type RequestPart struct + func NewRequestPart(externalPayloadSize int) RequestPart + func UnmarshalRequestPart(b []byte) (RequestPart, error) + func (m RequestPart) GetContents() []byte + func (m RequestPart) GetContentsSize() int + func (m RequestPart) GetMaxContentsSize() int + func (m RequestPart) GetNumParts() uint8 + func (m RequestPart) GetPartNum() uint8 + func (m RequestPart) Marshal() []byte + func (m RequestPart) SetContents(contents []byte) + func (m RequestPart) SetPartNum(num uint8) + type RequestPayload struct + func NewRequestPayload(payloadSize int, payload []byte, maxMsgs uint8) RequestPayload + func UnmarshalRequestPayload(b []byte) (RequestPayload, error) + func (mp RequestPayload) GetContents() []byte + func (mp RequestPayload) GetContentsSize() int + func (mp RequestPayload) GetMaxContentsSize() int + func (mp RequestPayload) GetMaxResponseParts() uint8 + func (mp RequestPayload) GetNonce() uint64 + func (mp RequestPayload) GetNumParts() uint8 + func (mp RequestPayload) GetNumRequestParts() uint8 + func (mp RequestPayload) GetPartNum() uint8 + func (mp RequestPayload) GetRecipientID(pubKey *cyclic.Int) *id.ID + func (mp RequestPayload) Marshal() []byte + func (mp RequestPayload) SetContents(contents []byte) + func (mp RequestPayload) SetMaxResponseParts(num uint8) + func (mp RequestPayload) SetNonce(rng io.Reader) error + func (mp RequestPayload) SetNumRequestParts(num uint8) + func (mp RequestPayload) String() string + type ResponsePart struct + func NewResponsePart(externalPayloadSize int) ResponsePart + func UnmarshalResponsePart(data []byte) (ResponsePart, error) + func (m ResponsePart) GetContents() []byte + func (m ResponsePart) GetContentsSize() int + func (m ResponsePart) GetMaxContentsSize() int + func (m ResponsePart) GetNumParts() uint8 + func (m ResponsePart) GetPartNum() uint8 + func (m ResponsePart) Marshal() []byte + func (m ResponsePart) SetContents(contents []byte) + func (m ResponsePart) SetNumParts(max uint8) + func (m ResponsePart) SetPartNum(num uint8) Other modules containing this package gitlab.com/elixxir/client/v4