Documentation ¶
Index ¶
- type ClientEnvelope
- func (c *ClientEnvelope) Aad() *envelopesProto.AuthenticatedData
- func (c *ClientEnvelope) Bytes() ([]byte, error)
- func (c *ClientEnvelope) Payload() interface{}
- func (c *ClientEnvelope) Proto() *envelopesProto.ClientEnvelope
- func (c *ClientEnvelope) TargetTopic() topic.Topic
- func (c *ClientEnvelope) TopicMatchesPayload() bool
- type OriginatorEnvelope
- type PayerEnvelope
- type UnsignedOriginatorEnvelope
- func (u *UnsignedOriginatorEnvelope) OriginatorNodeID() uint32
- func (u *UnsignedOriginatorEnvelope) OriginatorNs() int64
- func (u *UnsignedOriginatorEnvelope) OriginatorSequenceID() uint64
- func (u *UnsignedOriginatorEnvelope) Proto() *envelopesProto.UnsignedOriginatorEnvelope
- func (u *UnsignedOriginatorEnvelope) TargetTopic() topic.Topic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientEnvelope ¶
type ClientEnvelope struct {
// contains filtered or unexported fields
}
func NewClientEnvelope ¶
func NewClientEnvelope(proto *envelopesProto.ClientEnvelope) (*ClientEnvelope, error)
func NewClientEnvelopeFromBytes ¶
func NewClientEnvelopeFromBytes(bytes []byte) (*ClientEnvelope, error)
func (*ClientEnvelope) Aad ¶
func (c *ClientEnvelope) Aad() *envelopesProto.AuthenticatedData
func (*ClientEnvelope) Bytes ¶
func (c *ClientEnvelope) Bytes() ([]byte, error)
func (*ClientEnvelope) Payload ¶
func (c *ClientEnvelope) Payload() interface{}
func (*ClientEnvelope) Proto ¶
func (c *ClientEnvelope) Proto() *envelopesProto.ClientEnvelope
func (*ClientEnvelope) TargetTopic ¶
func (c *ClientEnvelope) TargetTopic() topic.Topic
func (*ClientEnvelope) TopicMatchesPayload ¶
func (c *ClientEnvelope) TopicMatchesPayload() bool
type OriginatorEnvelope ¶
type OriginatorEnvelope struct { UnsignedOriginatorEnvelope UnsignedOriginatorEnvelope // contains filtered or unexported fields }
func NewOriginatorEnvelope ¶
func NewOriginatorEnvelope(proto *envelopesProto.OriginatorEnvelope) (*OriginatorEnvelope, error)
func NewOriginatorEnvelopeFromBytes ¶ added in v0.1.1
func NewOriginatorEnvelopeFromBytes(bytes []byte) (*OriginatorEnvelope, error)
func (*OriginatorEnvelope) Bytes ¶
func (o *OriginatorEnvelope) Bytes() ([]byte, error)
func (*OriginatorEnvelope) OriginatorNodeID ¶ added in v0.1.1
func (o *OriginatorEnvelope) OriginatorNodeID() uint32
func (*OriginatorEnvelope) OriginatorSequenceID ¶ added in v0.1.1
func (o *OriginatorEnvelope) OriginatorSequenceID() uint64
func (*OriginatorEnvelope) Proto ¶
func (o *OriginatorEnvelope) Proto() *envelopesProto.OriginatorEnvelope
func (*OriginatorEnvelope) TargetTopic ¶ added in v0.1.1
func (o *OriginatorEnvelope) TargetTopic() topic.Topic
type PayerEnvelope ¶
type PayerEnvelope struct { ClientEnvelope ClientEnvelope // contains filtered or unexported fields }
func NewPayerEnvelope ¶
func NewPayerEnvelope(proto *envelopesProto.PayerEnvelope) (*PayerEnvelope, error)
func (*PayerEnvelope) Bytes ¶
func (p *PayerEnvelope) Bytes() ([]byte, error)
func (*PayerEnvelope) Proto ¶
func (p *PayerEnvelope) Proto() *envelopesProto.PayerEnvelope
func (*PayerEnvelope) RecoverSigner ¶
func (p *PayerEnvelope) RecoverSigner() (*common.Address, error)
func (*PayerEnvelope) TargetTopic ¶ added in v0.1.1
func (p *PayerEnvelope) TargetTopic() topic.Topic
type UnsignedOriginatorEnvelope ¶
type UnsignedOriginatorEnvelope struct { PayerEnvelope PayerEnvelope // contains filtered or unexported fields }
func NewUnsignedOriginatorEnvelope ¶
func NewUnsignedOriginatorEnvelope( proto *envelopesProto.UnsignedOriginatorEnvelope, ) (*UnsignedOriginatorEnvelope, error)
Construct an UnsignedOriginatorEnvelope and perform validations on any child fields. Does not verify signatures
func NewUnsignedOriginatorEnvelopeFromBytes ¶
func NewUnsignedOriginatorEnvelopeFromBytes(bytes []byte) (*UnsignedOriginatorEnvelope, error)
func (*UnsignedOriginatorEnvelope) OriginatorNodeID ¶
func (u *UnsignedOriginatorEnvelope) OriginatorNodeID() uint32
func (*UnsignedOriginatorEnvelope) OriginatorNs ¶
func (u *UnsignedOriginatorEnvelope) OriginatorNs() int64
func (*UnsignedOriginatorEnvelope) OriginatorSequenceID ¶
func (u *UnsignedOriginatorEnvelope) OriginatorSequenceID() uint64
func (*UnsignedOriginatorEnvelope) Proto ¶
func (u *UnsignedOriginatorEnvelope) Proto() *envelopesProto.UnsignedOriginatorEnvelope
func (*UnsignedOriginatorEnvelope) TargetTopic ¶ added in v0.1.1
func (u *UnsignedOriginatorEnvelope) TargetTopic() topic.Topic
Click to show internal directories.
Click to hide internal directories.