Lines Matching defs:Envelope
38 type Envelope struct { struct
39 Version []byte
40 Expiry uint32
41 TTL uint32
42 Topic TopicType
43 AESNonce []byte
44 Data []byte
45 EnvNonce uint64
47 pow float64 // Message-specific PoW as described in the Whisper specification.
48 hash common.Hash // Cached hash of the envelope to avoid rehashing every time.
53 func (e *Envelope) size() int {
58 func (e *Envelope) rlpWithoutNonce() []byte {
85 func (e *Envelope) IsSymmetric() bool {
89 func (e *Envelope) isAsymmetric() bool {
93 func (e *Envelope) Ver() uint64 {
99 func (e *Envelope) Seal(options *MessageParams) error {
138 func (e *Envelope) PoW() float64 {
145 func (e *Envelope) calculatePoW(diff uint32) {
158 func (e *Envelope) powToFirstBit(pow float64) int {
168 func (e *Envelope) Hash() common.Hash {
177 func (e *Envelope) DecodeRLP(s *rlp.Stream) error {
196 func (e *Envelope) OpenAsymmetric(key *ecdsa.PrivateKey) (*ReceivedMessage, error) {
210 func (e *Envelope) OpenSymmetric(key []byte) (msg *ReceivedMessage, err error) {
220 func (e *Envelope) Open(watcher *Filter) (msg *ReceivedMessage) {