package
10.1.5+incompatible
Repository: https://github.com/coderbradlee/go-ethereum.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
BytesToTopic converts from the byte array representation of a topic into the TopicType type.
BytesToUintBigEndian converts the slice to 64-bit unsigned integer.
GenerateRandomID generates a random string, which is then returned to be used as a key id.
IsPubKeyEqual checks that two public keys are equal.
No description provided by the author
New creates a Whisper client ready to communicate through the Ethereum P2P network.
NewEnvelope wraps a Whisper message with expiration and destination data included into an envelope for network forwarding.
NewFilters returns a newly created filter collection.
NewPublicWhisperAPI create a new RPC whisper service.
NewSentMessage creates and initializes a non-signed, non-encrypted Whisper message.
TopicToBloom converts the topic (4 bytes) to the bloom filter (64 bytes).
ToWhisperMessage converts an internal message into an API version.
ValidatePublicKey checks the format of the given public key.

# Constants

in bytes.
Whisper protocol parameters.
Whisper protocol parameters.
seconds.
seconds.
Whisper protocol parameters.
maximum accepted size of a message.
Whisper protocol parameters.
Nickname of the protocol in geth.
Protocol version number.
The same, as a string.
mask used to extract the size of payload size field from the flags.
in bytes.

# Variables

DefaultConfig represents (shocker!) the default configuration.
List of errors.
List of errors.
List of errors.
List of errors.
List of errors.
List of errors.

# Structs

Config represents the configuration state of a whisper node.
Criteria holds various filter options for inbound messages.
Envelope represents a clear-text data packet to transmit through the Whisper network.
Filter represents a Whisper message filter.
Filters represents a collection of filters.
Info contains diagnostic information.
Message is the RPC representation of a whisper message.
MessageParams specifies the exact way a message should be wrapped into an Envelope.
NewMessage represents a new whisper message that is posted through the RPC.
Peer represents a whisper protocol peer connection.
PublicWhisperAPI provides the whisper RPC service that can be use publicly without security implications.
ReceivedMessage represents a data packet to be received through the Whisper protocol and successfully decrypted.
Statistics holds several message-related counter for analytics purposes.
Whisper represents a dark communication interface through the Ethereum network, using its very own P2P communication layer.

# Interfaces

MailServer represents a mail server, capable of archiving the old messages for subsequent delivery to the peers.

# Type aliases

TopicType represents a cryptographically secure, probabilistic partial classifications of a message, determined as the first (left) 4 bytes of the SHA3 hash of some arbitrary data given by the original author of the message.