Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultPow = 50 * time.Millisecond
)
View Source
const DefaultTtl = 50 * time.Second
Variables ¶
This section is empty.
Functions ¶
func Topics ¶
Returns a formatted topics byte slice. data: unformatted data (e.g., no hashes needed)
func TopicsFromString ¶
Types ¶
type Envelope ¶
type Hash ¶
type Hash struct {
// contains filtered or unexported fields
}
MOVE ME
var EmptyHash Hash
type Message ¶
func NewMessage ¶
type MessageEvent ¶
type MessageEvent struct { To *ecdsa.PrivateKey From *ecdsa.PublicKey Message *Message }
type Whisper ¶
type Whisper struct {
// contains filtered or unexported fields
}
func (*Whisper) HasIdentity ¶
func (self *Whisper) HasIdentity(key *ecdsa.PrivateKey) bool
func (*Whisper) NewIdentity ¶
func (self *Whisper) NewIdentity() *ecdsa.PrivateKey
Source Files ¶
Click to show internal directories.
Click to hide internal directories.