diff options
author | Guillaume Ballet <gballet@gmail.com> | 2017-12-08 18:40:59 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2017-12-08 18:40:59 +0800 |
commit | d95962cd5d3ea163f8e91d7a9ca2f6303799b2e2 (patch) | |
tree | 7255f029c04eb4e66e07b757c1ef44ecd1edb986 /whisper/whisperv6/doc.go | |
parent | b5874273cec729adce84acf5848536d20fb60f7c (diff) | |
download | go-tangerine-d95962cd5d3ea163f8e91d7a9ca2f6303799b2e2.tar go-tangerine-d95962cd5d3ea163f8e91d7a9ca2f6303799b2e2.tar.gz go-tangerine-d95962cd5d3ea163f8e91d7a9ca2f6303799b2e2.tar.bz2 go-tangerine-d95962cd5d3ea163f8e91d7a9ca2f6303799b2e2.tar.lz go-tangerine-d95962cd5d3ea163f8e91d7a9ca2f6303799b2e2.tar.xz go-tangerine-d95962cd5d3ea163f8e91d7a9ca2f6303799b2e2.tar.zst go-tangerine-d95962cd5d3ea163f8e91d7a9ca2f6303799b2e2.zip |
whisper/whisperv6: remove aesnonce (#15578)
As per EIP-627, the salt for symmetric encryption is now
part of the payload. This commit does that.
Diffstat (limited to 'whisper/whisperv6/doc.go')
-rw-r--r-- | whisper/whisperv6/doc.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/whisper/whisperv6/doc.go b/whisper/whisperv6/doc.go index e64dd2f42..64925ba48 100644 --- a/whisper/whisperv6/doc.go +++ b/whisper/whisperv6/doc.go @@ -36,15 +36,15 @@ import ( const ( EnvelopeVersion = uint64(0) - ProtocolVersion = uint64(5) - ProtocolVersionStr = "5.0" + ProtocolVersion = uint64(6) + ProtocolVersionStr = "6.0" ProtocolName = "shh" statusCode = 0 // used by whisper protocol messagesCode = 1 // normal whisper message p2pCode = 2 // peer-to-peer message (to be consumed by the peer, but not forwarded any further) p2pRequestCode = 3 // peer-to-peer message, used by Dapp protocol - NumberOfMessageCodes = 64 + NumberOfMessageCodes = 128 paddingMask = byte(3) signatureFlag = byte(4) @@ -67,6 +67,8 @@ const ( DefaultTTL = 50 // seconds SynchAllowance = 10 // seconds + + EnvelopeHeaderLength = 20 ) type unknownVersionError uint64 |