envelopes

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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 (*ClientEnvelope) Bytes

func (c *ClientEnvelope) Bytes() ([]byte, error)

func (*ClientEnvelope) Payload

func (c *ClientEnvelope) Payload() interface{}

func (*ClientEnvelope) Proto

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 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 (*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 (*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 (*UnsignedOriginatorEnvelope) TargetTopic added in v0.1.1

func (u *UnsignedOriginatorEnvelope) TargetTopic() topic.Topic

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL