aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/whisper.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-04-13 16:31:51 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-04-13 16:31:51 +0800
commit7b501906db5b4bed0cf9972a1b103cc343d7f2d2 (patch)
tree9336342ec2ee9e090323f6b8f01ea968e8e12b39 /whisper/whisper.go
parent5467e7b312a29f492ce3063686711ea0bea6dbc3 (diff)
downloaddexon-7b501906db5b4bed0cf9972a1b103cc343d7f2d2.tar
dexon-7b501906db5b4bed0cf9972a1b103cc343d7f2d2.tar.gz
dexon-7b501906db5b4bed0cf9972a1b103cc343d7f2d2.tar.bz2
dexon-7b501906db5b4bed0cf9972a1b103cc343d7f2d2.tar.lz
dexon-7b501906db5b4bed0cf9972a1b103cc343d7f2d2.tar.xz
dexon-7b501906db5b4bed0cf9972a1b103cc343d7f2d2.tar.zst
dexon-7b501906db5b4bed0cf9972a1b103cc343d7f2d2.zip
whisper: separate out magic number from the code
Diffstat (limited to 'whisper/whisper.go')
-rw-r--r--whisper/whisper.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/whisper/whisper.go b/whisper/whisper.go
index d803e27d4..ad29fe16a 100644
--- a/whisper/whisper.go
+++ b/whisper/whisper.go
@@ -20,6 +20,9 @@ const (
statusMsg = 0x0
envelopesMsg = 0x01
whisperVersion = 0x02
+
+ signatureFlag = byte(1 << 7)
+ signatureLength = 65
)
type MessageEvent struct {