Documentation ¶
Index ¶
Constants ¶
View Source
const TopicLength = 4
TopicLength sets the length of the message topic
Variables ¶
View Source
var ErrIncorrectFlagsFieldLength = errors.New("Incorrect flags field length in message")
ErrIncorrectFlagsFieldLength is returned when the incoming flags field length is incorrect
Functions ¶
This section is empty.
Types ¶
type Flags ¶
type Flags struct { Raw bool // message is flagged as raw or with external encryption Symmetric bool // message is symmetrically encrypted }
Flags represents the possible PSS message flags
type Message ¶
Message encapsulates messages transported over pss.
type Topic ¶
type Topic [TopicLength]byte
Topic is the PSS encapsulation of the Whisper topic type
func NewTopic ¶
NewTopic hashes an arbitrary length byte slice and truncates it to the length of a topic, using only the first bytes of the digest
func (Topic) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface
func (*Topic) UnmarshalJSON ¶
UnmarshalJSON implements the json.Marshaler interface
Click to show internal directories.
Click to hide internal directories.