gluk256
a16f12ba86
whisper/whisperv6: post returns the hash of sent message ( #16495 )
7 years ago
thomasmodeneis
ba1030b6b8
build: enable goimports and varcheck linters ( #16446 )
7 years ago
Guillaume Ballet
80449719bd
whisper: fix issue in topic list copy ( #16381 )
...
- Fixes #16271 . What was appeneded was a pointer to
an object that changes during the iteration.
- The topic is allocated as a 4-byte array, fill partial topics
with 0s. Partial topics are currently disabled, but would
crash as they rely on the presence of byte number 3.
7 years ago
David Huie
23ac783332
ecies: drop randomness parameter from `PrivateKey.Decrypt` ( #16374 )
...
The parameter `rand` is unused in `PrivateKey.Decrypt`. Decryption in
the ECIES encryption scheme is deterministic, so randomness isn't
needed.
7 years ago
Guillaume Ballet
3d013c1939
whisper: some components are still using v5, switch to v6
7 years ago
gluk256
f1d440a437
whisper: final refactoring ( #16259 )
...
whisper: final refactoring
7 years ago
gluk256
fa375955ad
whisper/whisperv6: delete unused function ( #16234 )
7 years ago
Vlad
6219a33822
whisper: filereader mode introduced to wnode
7 years ago
Vlad
ee75a90ab4
whisper: topics replaced by bloom filters
7 years ago
Vlad
d24d10a764
whisper: style fixes
7 years ago
b00ris
62c239f608
whisper: fix typo
7 years ago
b00ris
cf52d5c91f
whisper: fixed datarace
7 years ago
Vlad
a69cb3b4ff
whisper: comment updated
7 years ago
Vlad
c733792be4
whsiper: refactoring
7 years ago
Vlad
014d8d9837
whisper: message filtering optimized
7 years ago
Vlad
5e30a5f66e
whisper: test fixed
7 years ago
Vlad
dadf4d53ab
whisper: mailserver no longer supports the signature vaidation
7 years ago
Vlad
6919c36432
whisper: refactoring
7 years ago
Vlad
d7b4b40cb6
whisper: light client mode introduced
7 years ago
Guillaume Ballet
bb5349b154
whisper: Support for v2 has long been discontinued, remove it. ( #16153 )
7 years ago
Pedro Pombeiro
34d94e22d9
whisper: Fix race condition in whisperv6/peer.go
7 years ago
gluk256
fac6d9ce77
whisper: test timeout extended ( #16088 )
...
* whisper: timeout extended
* whisper: test updated
* whisper: test updated
7 years ago
Guillaume Ballet
5cf75a30c1
whisper: get wnode to work with v6 ( #16051 )
...
The bulk of the issue was to adapt to the new requirement
that a v6 filter has to either contain a symmertric key or
an asymmetric one.
This commits revert one of the fixes that I made to remove
a linter warning: unexporting NewSentMessage. This is not
really a problem as I have a cleanup in the pipe that will
solve this issue.
7 years ago
gluk256
42628ba7ed
whisper: bloom filter refactoring ( #16046 )
...
* whisper: bloom filter refactoring
* whisper: fixed full node
7 years ago
gluk256
ccf8083537
whisper: Seal function fixed ( #16048 )
7 years ago
Guillaume Ballet
806430a252
whisper: improve a log message to analyze a travis issue
7 years ago
gluk256
a9e4a90d57
whisper: change the whisper message format so as to add the payload size ( #15870 )
...
* whisper: message format changed
* whisper: tests fixed
* whisper: style fixes
* whisper: fixed names, fixed failing tests
* whisper: fix merge issue in #15870
Occured while using the github online merge tool. Lesson learned.
* whisper: fix a gofmt error for #15870
7 years ago
Guillaume Ballet
367c329b88
whisper: remove linter warnings ( #15972 )
...
* whisper: fixes warnings from the code linter
* whisper: more non-API-breaking changes
The remaining lint errors are because of auto-generated
files and one is because an exported function has a non-
exported return type. Changing this would break the API,
and will be part of another commit for easier reversal.
* whisper: un-export NewSentMessage to please the linter
This is an API change, which is why it's in its own commit.
This change was initiated after the linter complained that
the returned type wasn't exported. I chose to un-export
the function instead of exporting the type, because that
type is an implementation detail that I would like to
change in the near future to make the code more
readable and with an increased coverage.
* whisper: update gencodec output after upgrading it to new lint standards
7 years ago
b00ris
2ef3815af4
whisper: fix empty topic ( #15811 )
...
* whisper: fix empty topic
* whisper: add check to matchSingleTopic
* whisper: add tests
* whisper: fix gosimple
* whisper: added lastTopicByte const
7 years ago
gluk256
fd869dc839
whisper/whisperv6: implement pow/bloom exchange protocol ( #15802 )
...
This is the main feature of v6.
7 years ago
Felix Lange
9d06026c19
all: regenerate codecs with gencodec commit 90983d99de ( #15830 )
...
Fixes #15777 because null is now allowed for hexutil.Bytes.
7 years ago
Furkan KAMACI
b8caba9709
various: remove redundant parentheses ( #15793 )
7 years ago
Péter Szilágyi
b98aa3b4f1
whisper/whisper2: fix Go 1.10 vet issues on type mismatches ( #15783 )
7 years ago
gluk256
38b1e8ee20
whisper/whisperv6: PoW requirement ( #15701 )
...
New Whisper-level message introduced (PoW requirement),
corresponding logic added, plus some tests.
7 years ago
gluk256
9f1007e554
whisper/whisperv6: message bundling ( #15666 )
...
Changed the communication protocol for ordinary message,
according to EIP 627. Messages will be send in bundles, i.e.
array of messages will be sent instead of single message.
7 years ago
Zach
3da1bf8ca1
all: use gometalinter.v2, fix new gosimple issues ( #15650 )
7 years ago
Guillaume Ballet
e7610eadfe
whisper: sym encryption message padding includes salt ( #15631 )
...
Now that the AES salt has been moved to the payload, padding must
be adjusted to hide it, lest an attacker guesses that the packet
uses symmetric encryption.
7 years ago
Guillaume Ballet
bf62acf033
whisper/whisperv6: remove Version from the envelope ( #15621 )
7 years ago
Guillaume Ballet
d95962cd5d
whisper/whisperv6: remove aesnonce ( #15578 )
...
As per EIP-627, the salt for symmetric encryption is now
part of the payload. This commit does that.
7 years ago
Guillaume Ballet
20fe928914
whisper: rename EnvNonce to Nonce in the v6 Envelope ( #15579 )
7 years ago
ferhat elmas
86f6568f66
build: enable unconvert linter ( #15456 )
...
* build: enable unconvert linter
- fixes #15453
- update code base for failing cases
* cmd/puppeth: replace syscall.Stdin with os.Stdin.Fd() for unconvert linter
7 years ago
gluk256
9f7cd75682
whisper/whisperv6: initial commit (clone of v5) ( #15324 )
7 years ago
baizhenxuan
eea996e4e1
whisper/shhclient: fix Version return type ( #15306 )
7 years ago
Guillaume Ballet
7a045af05b
whisper/whisperv5: set filter SymKeyHash on creation ( #15165 )
7 years ago
Noman
e311bb520a
whisper: Fix spelling and grammar in error ( #15009 )
...
* whisper: Fix spelling and grammar in error
* whisper: Fix grammar in comments
7 years ago
Egon Elbre
d375193797
whisper: fix megacheck warnings ( #14925 )
...
* whisper: fix megacheck warnings
* whisper/whisperv5: regenerate json codec to fix unused override type
7 years ago
Bas van Kervel
b6e99deee9
whisper: renamed Info#Message to Info#Messages
7 years ago
Bas van Kervel
c62d5422bb
whisper: use hexutil.UnmarshalFixedText for topic parsing
7 years ago
Bas van Kervel
a4e4c76cb3
whisper: use syncmap for dynamic configuration options
7 years ago
Bas van Kervel
7a11e86442
whisper: move flags from whisper package to utils
7 years ago