aboutsummaryrefslogtreecommitdiffstats
path: root/whisper
Commit message (Collapse)AuthorAgeFilesLines
* Change import go github.com/dexon-foundation/dexonWei-Ning Huang2019-06-1234-103/+103
|
* whisperv6: remove duplicated code (#18015)Corey Lin2018-12-031-16/+1
|
* whisper/mailserver: reduce the max number of opened files (#18142)Guillaume Ballet2018-11-211-1/+11
| | | | | This should reduce the occurences of travis failures on MacOS Also fix some linter warnings
* whisper: log errors on failed tests (#18134)Anton Evangelatov2018-11-202-2/+2
| | | Debug traces to investigate a travis issue on MacOS
* all: new p2p node representation (#17643)Felix Lange2018-09-254-25/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Package p2p/enode provides a generalized representation of p2p nodes which can contain arbitrary information in key/value pairs. It is also the new home for the node database. The "v4" identity scheme is also moved here from p2p/enr to remove the dependency on Ethereum crypto from that package. Record signature handling is changed significantly. The identity scheme registry is removed and acceptable schemes must be passed to any method that needs identity. This means records must now be validated explicitly after decoding. The enode API is designed to make signature handling easy and safe: most APIs around the codebase work with enode.Node, which is a wrapper around a valid record. Going from enr.Record to enode.Node requires a valid signature. * p2p/discover: port to p2p/enode This ports the discovery code to the new node representation in p2p/enode. The wire protocol is unchanged, this can be considered a refactoring change. The Kademlia table can now deal with nodes using an arbitrary identity scheme. This requires a few incompatible API changes: - Table.Lookup is not available anymore. It used to take a public key as argument because v4 protocol requires one. Its replacement is LookupRandom. - Table.Resolve takes *enode.Node instead of NodeID. This is also for v4 protocol compatibility because nodes cannot be looked up by ID alone. - Types Node and NodeID are gone. Further commits in the series will be fixes all over the the codebase to deal with those removals. * p2p: port to p2p/enode and discovery changes This adapts package p2p to the changes in p2p/discover. All uses of discover.Node and discover.NodeID are replaced by their equivalents from p2p/enode. New API is added to retrieve the enode.Node instance of a peer. The behavior of Server.Self with discovery disabled is improved. It now tries much harder to report a working IP address, falling back to 127.0.0.1 if no suitable address can be determined through other means. These changes were needed for tests of other packages later in the series. * p2p/simulations, p2p/testing: port to p2p/enode No surprises here, mostly replacements of discover.Node, discover.NodeID with their new equivalents. The 'interesting' API changes are: - testing.ProtocolSession tracks complete nodes, not just their IDs. - adapters.NodeConfig has a new method to create a complete node. These changes were needed to make swarm tests work. Note that the NodeID change makes the code incompatible with old simulation snapshots. * whisper/whisperv5, whisper/whisperv6: port to p2p/enode This port was easy because whisper uses []byte for node IDs and URL strings in the API. * eth: port to p2p/enode Again, easy to port because eth uses strings for node IDs and doesn't care about node information in any way. * les: port to p2p/enode Apart from replacing discover.NodeID with enode.ID, most changes are in the server pool code. It now deals with complete nodes instead of (Pubkey, IP, Port) triples. The database format is unchanged for now, but we should probably change it to use the node database later. * node: port to p2p/enode This change simply replaces discover.Node and discover.NodeID with their new equivalents. * swarm/network: port to p2p/enode Swarm has its own node address representation, BzzAddr, containing both an overlay address (the hash of a secp256k1 public key) and an underlay address (enode:// URL). There are no changes to the BzzAddr format in this commit, but certain operations such as creating a BzzAddr from a node ID are now impossible because node IDs aren't public keys anymore. Most swarm-related changes in the series remove uses of NewAddrFromNodeID, replacing it with NewAddr which takes a complete node as argument. ToOverlayAddr is removed because we can just use the node ID directly.
* whisper: Fix interpretation of `to` parameter in `shh_requestMessages` (#16996)Pedro Pombeiro2018-09-191-1/+1
| | | The argument is inclusive rather than exclusive, according to docs.
* all: simplify s[:] to s where s is a slice (#17673)Emil2018-09-152-2/+2
|
* whisper: add light mode check to handshake (#16725)b00ris2018-09-055-18/+115
|
* whisper: fix loop in expire() (#17532)Adam Babik2018-08-294-28/+42
|
* all: remove the duplicate 'the' in annotations (#17509)Wenbiao Zheng2018-08-272-2/+2
|
* whisper: fixed broken partial topic filteringEugene Valeyev2018-08-134-58/+5
| | | Changes in #15811 broke partial topic filtering. Re-enable it.
* whisper: remove unused error (#17315)b00ris2018-08-071-7/+0
|
* all: switch out defunct set library to different one (#16873)Ralph Caraveo III2018-07-165-20/+20
| | | | | | * keystore, ethash, eth, miner, rpc, whisperv6: tech debt with now defunct set. * whisperv5: swap out gopkg.in/fatih/set.v0 with supported set
* whisper: Reduce message loop log from Warn to Info (#17055)Adrià Cidre2018-06-262-2/+2
|
* #15685 made peer_test.go more portable by using random free port instead of ↵Armin Braun2018-06-142-48/+35
| | | | | | | | | | hardcoded port 30303 (#15687) Improves test portability by resolving 127.0.0.1:0 to get a random free port instead of the hard coded one. Now the test works if you have a running node on the same interface already. Fixes #15685
* crypto: replace ToECDSAPub with error-checking func UnmarshalPubkey (#16932)Felix Lange2018-06-122-12/+6
| | | | | | ToECDSAPub was unsafe because it returned a non-nil key with nil X, Y in case of invalid input. This change replaces ToECDSAPub with UnmarshalPubkey across the codebase.
* whisper/shhclient: update call to shh_post to expect string instead of bool ↵Andrea Franz2018-05-291-3/+3
| | | | | (#16757) Fixes #16756
* whisper/shhclient: update call to shh_generateSymKeyFromPassword to pass a ↵Andrea Franz2018-05-091-2/+2
| | | | string (#16668)
* whisper/mailserver: pass init error to the caller (#16671)Ivan Daniluk2018-05-042-8/+11
| | | | | | | | * whisper/mailserver: pass init error to the caller * whisper/mailserver: add returns to fmt.Errorf * whisper/mailserver: check err in mailserver init test
* whisper: Golint fixes in whisper packages (#16637)Eli2018-05-028-78/+74
|
* whisper/whisperv6: post returns the hash of sent message (#16495)gluk2562018-04-191-14/+26
|
* build: enable goimports and varcheck linters (#16446)thomasmodeneis2018-04-182-8/+0
|
* whisper: fix issue in topic list copy (#16381)Guillaume Ballet2018-03-272-3/+82
| | | | | | | | - 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.
* whisper: switch all remaining components from v5 to v6Guillaume Ballet2018-03-261-10/+10
|\
| * whisper: some components are still using v5, switch to v6Guillaume Ballet2018-03-221-10/+10
| |
* | ecies: drop randomness parameter from `PrivateKey.Decrypt` (#16374)David Huie2018-03-262-2/+2
|/ | | | | The parameter `rand` is unused in `PrivateKey.Decrypt`. Decryption in the ECIES encryption scheme is deterministic, so randomness isn't needed.
* whisper: final refactoring (#16259)gluk2562018-03-071-0/+8
| | | | whisper: final refactoring
* Merge pull request #16231 from gluk256/303-readergluk2562018-03-031-0/+4
|\ | | | | whisper: filereader mode introduced to wnode
| * whisper: filereader mode introduced to wnodeVlad2018-03-021-0/+4
| |
* | whisper/whisperv6: delete unused function (#16234)gluk2562018-03-031-14/+0
|/
* whisper: topics replaced by bloom filtersVlad2018-03-018-61/+67
|
* Merge pull request #16210 from gluk256/288-filter-optimizationGuillaume Ballet2018-03-014-78/+76
|\ | | | | | | | | whisper: message filtering optimization Only run the message through filters who registered their interest.
| * whisper: style fixesVlad2018-02-282-17/+10
| |
| * whsiper: refactoringVlad2018-02-284-61/+22
| |
| * whisper: message filtering optimizedVlad2018-02-281-11/+55
| |
* | Merge pull request #16214 from b00ris/whisperv6_dataraceGuillaume Ballet2018-02-281-7/+11
|\ \ | | | | | | whisper: fixed dataraces in peer unit tests
| * | whisper: fix typob00ris2018-02-281-2/+2
| | |
| * | whisper: fixed dataraceb00ris2018-02-281-7/+11
| |/
* | whisper: comment updatedVlad2018-02-281-1/+1
| |
* | whisper: test fixedVlad2018-02-271-1/+2
| |
* | whisper: mailserver no longer supports the signature vaidationVlad2018-02-271-2/+4
|/
* whisper: refactoringVlad2018-02-233-51/+3
|
* Merge pull request #16172 from gluk256/244-light-clientgluk2562018-02-232-4/+19
|\ | | | | whisper: light client mode introduced
| * whisper: light client mode introducedVlad2018-02-232-4/+19
| |
* | Merge pull request #16146 from status-im/pombeirp/whisperv6-peer-race-cond-fixGuillaume Ballet2018-02-231-0/+6
|\ \ | |/ |/| Fix race condition in whisperv6/peer.go
| * whisper: Fix race condition in whisperv6/peer.goPedro Pombeiro2018-02-211-0/+6
| |
* | whisper: Support for v2 has long been discontinued, remove it. (#16153)Guillaume Ballet2018-02-2215-2892/+0
|/
* whisper: test timeout extended (#16088)gluk2562018-02-151-25/+74
| | | | | | | | * whisper: timeout extended * whisper: test updated * whisper: test updated
* whisper: get wnode to work with v6 (#16051)Guillaume Ballet2018-02-1010-38/+38
| | | | | | | | | | 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.
* whisper: bloom filter refactoring (#16046)gluk2562018-02-092-16/+21
| | | | | | * whisper: bloom filter refactoring * whisper: fixed full node
* whisper: Seal function fixed (#16048)gluk2562018-02-091-6/+14
|
* whisper: improve a log message to analyze a travis issueGuillaume Ballet2018-02-061-1/+1
|
* whisper: change the whisper message format so as to add the payload size ↵gluk2562018-01-308-183/+193
| | | | | | | | | | | | | | | | | | (#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
* whisper: remove linter warnings (#15972)Guillaume Ballet2018-01-2618-326/+361
| | | | | | | | | | | | | | | | | | | | | | | * 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
* whisper: fix empty topic (#15811)b00ris2018-01-266-16/+92
| | | | | | | | | | | | * whisper: fix empty topic * whisper: add check to matchSingleTopic * whisper: add tests * whisper: fix gosimple * whisper: added lastTopicByte const
* whisper/whisperv6: implement pow/bloom exchange protocol (#15802)gluk2562018-01-127-75/+451
| | | This is the main feature of v6.
* all: regenerate codecs with gencodec commit 90983d99de (#15830)Felix Lange2018-01-086-68/+68
| | | Fixes #15777 because null is now allowed for hexutil.Bytes.
* various: remove redundant parentheses (#15793)Furkan KAMACI2018-01-032-4/+4
|
* whisper/whisper2: fix Go 1.10 vet issues on type mismatches (#15783)Péter Szilágyi2018-01-021-2/+2
|
* whisper/whisperv6: PoW requirement (#15701)gluk2562017-12-215-54/+185
| | | | New Whisper-level message introduced (PoW requirement), corresponding logic added, plus some tests.
* whisper/whisperv6: message bundling (#15666)gluk2562017-12-212-20/+33
| | | | | 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.
* all: use gometalinter.v2, fix new gosimple issues (#15650)Zach2017-12-131-2/+1
|
* whisper: sym encryption message padding includes salt (#15631)Guillaume Ballet2017-12-112-0/+60
| | | | | 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.
* whisper/whisperv6: remove Version from the envelope (#15621)Guillaume Ballet2017-12-085-65/+28
|
* whisper/whisperv6: remove aesnonce (#15578)Guillaume Ballet2017-12-088-73/+168
| | | | As per EIP-627, the salt for symmetric encryption is now part of the payload. This commit does that.
* whisper: rename EnvNonce to Nonce in the v6 Envelope (#15579)Guillaume Ballet2017-12-011-4/+4
|
* build: enable unconvert linter (#15456)ferhat elmas2017-11-114-6/+6
| | | | | | | | | * build: enable unconvert linter - fixes #15453 - update code base for failing cases * cmd/puppeth: replace syscall.Stdin with os.Stdin.Fd() for unconvert linter
* whisper/whisperv6: initial commit (clone of v5) (#15324)gluk2562017-11-0418-0/+5589
|
* whisper/shhclient: fix Version return type (#15306)baizhenxuan2017-10-181-2/+2
|
* whisper/whisperv5: set filter SymKeyHash on creation (#15165)Guillaume Ballet2017-10-065-17/+331
|
* whisper: Fix spelling and grammar in error (#15009)Noman2017-08-211-4/+4
| | | | | | * whisper: Fix spelling and grammar in error * whisper: Fix grammar in comments
* whisper: fix megacheck warnings (#14925)Egon Elbre2017-08-089-20/+18
| | | | | | * whisper: fix megacheck warnings * whisper/whisperv5: regenerate json codec to fix unused override type
* whisper: renamed Info#Message to Info#MessagesBas van Kervel2017-06-231-2/+2
|
* whisper: use hexutil.UnmarshalFixedText for topic parsingBas van Kervel2017-06-212-33/+26
|
* whisper: use syncmap for dynamic configuration optionsBas van Kervel2017-06-211-43/+18
|
* whisper: move flags from whisper package to utilsBas van Kervel2017-06-211-22/+1
|
* whisper: renamed errorsBas van Kervel2017-06-213-25/+25
|
* whisper: fallback to default config if none is specifiedBas van Kervel2017-06-211-0/+4
|
* whisper: remove obsolete api testsBas van Kervel2017-06-211-672/+0
|
* whisper: remove gencodec override for configBas van Kervel2017-06-212-34/+0
|
* whisper: move ShhClient to its own packageBas van Kervel2017-06-211-9/+10
|
* whisperv5: integrate whisper and add whisper RPC simulatorBas van Kervel2017-06-1519-473/+1134
|
* whisper: switching to v5 + minor refactoring (#14387)gluk2562017-04-282-33/+33
|
* whisper: message format refactoring (#14335)gluk2562017-04-2713-218/+326
| | | | | | | | | | | | | | * whisper: salt removed from AES encryption * whisper: padding format updated * whisper: padding test added * whisper: padding refactored, tests fixed * whisper: padding test updated * whisper: wnode bugfix * whisper: send/receive protocol updated * whisper: minor update * whisper: bugfix in test * whisper: updated parameter names and comments * whisper: functions renamed * whisper: minor refactoring
* all: update license informationFelix Lange2017-04-142-16/+16
|
* whisper: big refactoring (#13852)gluk2562017-04-1013-675/+1223
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * whisper: GetMessages fixed; size restriction updated * whisper: made PoW and MaxMsgSize customizable * whisper: test added * whisper: sym key management changed * whisper: identity management refactored * whisper: API refactoring (Post and Filter) * whisper: big refactoring complete * whisper: spelling fix * whisper: variable topic size allowed for a filter * whisper: final update * whisper: formatting * whisper: file exchange introduced in wnode * whisper: bugfix * whisper: API updated + new tests * whisper: statistics updated * whisper: wnode server updated * whisper: allowed filtering for variable topic size * whisper: tests added * whisper: resolving merge conflicts * whisper: refactoring (documenting mostly) * whsiper: tests fixed * whisper: down cased error messages * whisper: documenting the API functions * whisper: logging fixed * whisper: fixed wnode parameters * whisper: logs fixed (typos)
* trie, whisper/whisperv5: use math/rand Read functionFelix Lange2017-03-234-37/+22
|
* common: move big integer math to common/math (#3699)Felix Lange2017-02-272-9/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * common: remove CurrencyToString Move denomination values to params instead. * common: delete dead code * common: move big integer operations to common/math This commit consolidates all big integer operations into common/math and adds tests and documentation. There should be no change in semantics for BigPow, BigMin, BigMax, S256, U256, Exp and their behaviour is now locked in by tests. The BigD, BytesToBig and Bytes2Big functions don't provide additional value, all uses are replaced by new(big.Int).SetBytes(). BigToBytes is now called PaddedBigBytes, its minimum output size parameter is now specified as the number of bytes instead of bits. The single use of this function is in the EVM's MSTORE instruction. Big and String2Big are replaced by ParseBig, which is slightly stricter. It previously accepted leading zeros for hexadecimal inputs but treated decimal inputs as octal if a leading zero digit was present. ParseUint64 is used in places where String2Big was used to decode a uint64. The new functions MustParseBig and MustParseUint64 are now used in many places where parsing errors were previously ignored. * common: delete unused big integer variables * accounts/abi: replace uses of BytesToBig with use of encoding/binary * common: remove BytesToBig * common: remove Bytes2Big * common: remove BigTrue * cmd/utils: add BigFlag and use it for error-checked integer flags While here, remove environment variable processing for DirectoryFlag because we don't use it. * core: add missing error checks in genesis block parser * common: remove String2Big * cmd/evm: use utils.BigFlag * common/math: check for 256 bit overflow in ParseBig This is supposed to prevent silent overflow/truncation of values in the genesis block JSON. Without this check, a genesis block that set a balance larger than 256 bits would lead to weird behaviour in the VM. * cmd/utils: fixup import
* whisper: fixed temporary directory for tests (#3707)gluk2562017-02-241-2/+2
|
* whisper: expiry refactoring (#3706)gluk2562017-02-245-36/+72
|
* cmd, whisper/mailserver: revert to utils.FatalfPéter Szilágyi2017-02-231-4/+5
|
* all: blidly swap out glog to our log15, logs need reworkPéter Szilágyi2017-02-2310-88/+80
|
* Whisper API fixed (#3687)gluk2562017-02-2310-78/+157
| | | | | | | | | | | | | | | | | | | | | | * whisper: wnode updated for tests with geth * whisper: updated processing of incoming messages * whisper: symmetric encryption updated * whisper: filter id type changed to enhance security * whisper: allow filter without topic for asymmetric encryption * whisper: POW updated * whisper: logging updated * whisper: spellchecker update * whisper: error handling changed * whisper: JSON field names fixed
* crypto: add btcec fallback for sign/recover without cgo (#3680)Felix Lange2017-02-183-9/+11
| | | | | | | | | | | * vendor: add github.com/btcsuite/btcd/btcec * crypto: add btcec fallback for sign/recover without cgo This commit adds a non-cgo fallback implementation of secp256k1 operations. * crypto, core/vm: remove wrappers for sha256, ripemd160
* whisper: interface changed to simplify the transition to v5gluk2562017-02-147-86/+91
| | | | | | | | | | | | | | | | * whisper: mailserver test introduced, refactoring * whisper: validation test updated * whisper: max number of peers fixed * whisper: verification bug fixed * whisper: esthetic fix * whisper: interface changed to simplify the transition to v5 * whisper: preparation for version switch
* whisper: add tests for mailserver (#3631)gluk2562017-02-132-8/+211
|
* cmd/wnode, whisper: add whisper CLI tool and mail server (#3580)gluk2562017-01-317-30/+232
|
* all: fix ineffectual assignments and remove uses of crypto.Sha3Felix Lange2017-01-094-17/+9
| | | | | go get github.com/gordonklaus/ineffassign ineffassign .
* all: fix spelling errorsPéter Szilágyi2017-01-071-1/+1
|
* all: fix issues reported by honnef.co/go/simple/cmd/gosimpleFelix Lange2017-01-0710-34/+27
|
* all: gofmt -w -sFelix Lange2017-01-066-31/+31
|
* rpc: remove HexNumber, replace all uses with hexutil typesFelix Lange2016-12-203-41/+39
| | | | | This change couldn't be automated because HexNumber was used for numbers of all sizes.
* rpc: remove HexBytes, replace all uses with hexutil.BytesFelix Lange2016-12-201-5/+6
|
* whisper: refactoring (#3411)gluk2562016-12-2012-66/+253
| | | | | | | | | * whisper: refactored message processing * whisper: final polishing * whisper: logging updated * whisper: moved the check, changed the default PoW * whisper: refactoring of message queuing * whisper: refactored parameters
* whisper/shhapi, whisper/whisperv5: refactoring (#3364)gluk2562016-12-0214-650/+828
| | | | | | | | | | * Filter refactoring * API tests added + bugfix * fixed the error logs * FilterID fixed * test cases fixed * key generation updated * POW updated * got rid of redundant stuff
* whisper: project restructured, version 5 introduced (#3022)gluk2562016-10-2930-14/+4447
| | | | | | | whisper: project restructured, version 5 introduced This commits adds a draft version of the new shh v5 protocol. The new version is not on by default, --shh still selects version 2.
* Merge pull request #2458 from fjl/go-vetFelix Lange2016-04-151-2/+2
|\ | | | | all: fix go vet warnings
| * all: fix go vet warningsFelix Lange2016-04-151-2/+2
| |
* | whisper: deflake Test*MessageExpirationFelix Lange2016-04-152-9/+5
|/ | | | | | These tests have become a common annoyance on CI. Fix them by allowing messages with expiration == now into the cache and delaying the check for expired message handling slightly.
* all: update license informationFelix Lange2016-04-151-7/+7
|
* rpc: various fixes/enhancementsBas van Kervel2016-04-121-2/+2
| | | | | | | | rpc: be less restrictive on the request id rpc: improved documentation console: upgrade web3.js to version 0.16.0 rpc: cache http connections rpc: rename wsDomains parameter to wsOrigins
* all: Rename crypto.Sha3{,Hash}() to crypto.Keccak256{,Hash}()Ricardo Catalinas Jiménez2016-02-223-5/+5
| | | | As we aren't really using the standarized SHA-3
* rpc: migrated the RPC insterface to a new reflection based RPC layerBas van Kervel2016-01-262-2/+2
|
* Merge pull request #2035 from bas-vk/rcp-v2-rebaseFelix Lange2015-12-152-0/+427
|\ | | | | rpc: new RPC implementation with pub/sub support
| * rpc: new RPC implementation with pub/sub supportBas van Kervel2015-12-142-0/+427
| |
* | crypto, crypto/ecies, crypto/secp256k1: libsecp256k1 scalar multGustav Simonsson2015-11-301-4/+5
|/ | | | thanks to Felix Lange (fjl) for help with design & impl
* cmd, common, core, eth, node, rpc, tests, whisper, xeth: use protocol stacksPéter Szilágyi2015-11-273-7/+13
|
* whisper: fixed broadcast raceJeffrey Wilcke2015-11-253-2/+19
| | | | | | | | | | | | | | Whisper's expire and broadcast loops happen in two separate go routines. Whenever an envelope is being expired it's removed from the set of envelopes and it looses all information about the envelope, including the "known hash". After the envelope has been removed it can be re-accepted by a broadcasting peer putting back the envelope in the set of envelopes. Since the envelope broadcast loop is separate of the expire loop expired messages may be broadcast to other peer, resulting in messages **never** being dropped. This PR includes an expire check before adding new messages to the set of envelopes.
* whisper: fix datarace in expiration testPéter Szilágyi2015-11-051-2/+11
|
* all: fix license headers one more timeFelix Lange2015-07-2414-14/+14
| | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a.
* all: update license headers to distiguish GPL/LGPLFelix Lange2015-07-2314-56/+56
| | | | | All code outside of cmd/ is licensed as LGPL. The headers now reflect this by calling the whole work "the go-ethereum library".
* all: update license informationFelix Lange2015-07-0714-0/+224
|
* p2p, whisper: use glog for peer-level loggingFelix Lange2015-05-072-7/+8
|
* whisper: add full filter test suitePéter Szilágyi2015-04-282-2/+51
|
* whisper: fix a small data race duirng peer connectionPéter Szilágyi2015-04-282-14/+12
|
* ui/qt/qwhisper, whisper, xeth: polish topic filter, fix wildcardsPéter Szilágyi2015-04-285-43/+213
|
* rpc, ui/qt/qwhisper, whisper, xeth: introduce complex topic filtersPéter Szilágyi2015-04-285-32/+313
|
* whisper: fix spurious From identity with untargeted messagesPéter Szilágyi2015-04-281-1/+3
|
* whisper: fix payload loss in case of plaintext decryptPéter Szilágyi2015-04-282-4/+109
|
* whisper, xeth/whisper: surface TTL and hash to the APIPéter Szilágyi2015-04-284-5/+18
|
* rpc, whisper, xeth: fix RPC message retrieval data racePéter Szilágyi2015-04-283-2/+41
|
* whisper: fix send timestamp omission during envelope openingPéter Szilágyi2015-04-281-0/+1
|
* rpc, whisper, xeth: polish whisper RPC interfacePéter Szilágyi2015-04-281-10/+3
|
* whisper: fix comment for rlpenvFelix Lange2015-04-171-4/+5
|
* cmd/rlpdump, cmd/utils, eth, p2p, whisper: use rlp input limitFelix Lange2015-04-171-1/+1
|
* whisper: cleanup lefover scopingPéter Szilágyi2015-04-173-4/+4
|
* whisper: hide some internal typesPéter Szilágyi2015-04-171-3/+3
|
* whisper: don't issue signature warning if none presentPéter Szilágyi2015-04-161-0/+5
|
* whisper: track active peers, add peer cache expiry testPéter Szilágyi2015-04-162-22/+86
|
* whisper: remove dead code, rename a few constantsPéter Szilágyi2015-04-166-59/+7
|
* whisper: use async handshakes to handle blocking peersPéter Szilágyi2015-04-153-47/+12
|
* whisper: remove some unneeded testing complexityPéter Szilágyi2015-04-153-32/+5
|
* whisper: global message expiration tests, polishesPéter Szilágyi2015-04-153-16/+49
|
* whisper: mock tests to use simulated peersPéter Szilágyi2015-04-152-71/+55
|
* whisper: add basic tests for the whiper peersPéter Szilágyi2015-04-142-0/+221
|
* whisper: shorten constants to TTL and PoWPéter Szilágyi2015-04-145-15/+15
|
* whisper, xeth/whisper, ui/qt/qwhispe: fix API polish breakagesPéter Szilágyi2015-04-141-16/+15
|
* whisper: add known message expiration to peers, cleanupPéter Szilágyi2015-04-142-95/+145
|
* whisper: general cleanups, documentationPéter Szilágyi2015-04-144-129/+146
|
* whisper: fix anonymous broadcast drop, add broadcast testsPéter Szilágyi2015-04-143-24/+99
|
* whisper: add utility functions for creating topicsPéter Szilágyi2015-04-143-8/+58
|
* whisper: push work in progress for bug reportPéter Szilágyi2015-04-132-6/+19
|
* whisper: start adding integration testsPéter Szilágyi2015-04-131-18/+118
|
* whisper: clean up and integrate topicsPéter Szilágyi2015-04-137-43/+85
|
* whisper: separate out magic number from the codePéter Szilágyi2015-04-134-25/+29
|
* whisper: fix comment entity capitalizationsPéter Szilágyi2015-04-122-7/+7
|
* whisper: polish the Envelope a bit, prep for tests.Péter Szilágyi2015-04-106-65/+75
|
* whisper: polish the messages, fix some bugs, testsPéter Szilágyi2015-04-106-88/+209
| | | | | | Bugs fixed: - Use randomly generated flags as the spec required. - During envelope opening check the first bit only for signature.
* whisper: rename test file according to Go stylePéter Szilágyi2015-04-101-0/+0
|
* whisper: make the test app runnable & do something insidePéter Szilágyi2015-04-101-12/+65
|
* Merge pull request #648 from ↵Jeffrey Wilcke2015-04-081-1/+8
|\ | | | | | | | | Gustav-Simonsson/forward_ecrecover_err_and_remove_dup_checks Forward and log EC recover err and remove dup pubkey len check
| * Use logger.Error instead of 0 with glogGustav Simonsson2015-04-071-1/+2
| |
| * Forward and log EC recover err and remove dup pubkey len checkGustav Simonsson2015-04-071-1/+7
| |
* | Updated loggingobscuren2015-04-071-4/+3
|/
* Moved logging to logger.Coreobscuren2015-04-041-1/+1
|
* Move version to const and expose via Version()Taylor Gerring2015-03-251-3/+8
|
* whisper: use common.HashFelix Lange2015-03-214-41/+34
|
* whisper: use package rlpFelix Lange2015-03-212-37/+24
|
* eth, whisper: adapt for RLP encoder switch in package p2pFelix Lange2015-03-192-8/+3
| | | | | I have rewritten the protocol test to use p2p.MsgPipe because p2p.NewMsg is gone.
* Comment out whisper remove identity stubsTaylor Gerring2015-03-171-8/+8
|
* Initial support to remove Whisper identities per #491Taylor Gerring2015-03-171-0/+9
|
* Moved ethutil => commonobscuren2015-03-161-9/+9
|
* don't log whisper start upsobscuren2015-03-111-2/+2
|
* eth, whisper: fix msg.Payload readsFelix Lange2015-03-041-17/+10
|
* Properly uninstall filters. Mining issue fixed #closes #365obscuren2015-02-231-0/+4
| | | | | | * Added an additional tx state which is used to get the current nonce * Refresh transient state each time a new canonical block is found * Properly uninstall filters. Fixes a possible crash in RPC
* Moved ECIES to repo & added secondary title for webviewobscuren2015-02-142-2/+2
| | | | | * ECIES moved from obscuren to ethereum * Added html META[name=badge] to reflect menuItem.secondaryTitle
* Fixed "to" fieldobscuren2015-02-102-0/+4
|
* API changed to use Pubkey only. Reflected that change in the rest of the apiobscuren2015-02-063-3/+3
|
* Fixed whisper "to" filtering. Closes #283obscuren2015-02-032-3/+3
|
* Added missing whisper timestamp. Closes #284obscuren2015-02-031-0/+1
|
* Fixed whisper pub key bugobscuren2015-01-301-1/+1
| | | | | * Unrecoverable messages would cause segfault when recovering invalid pub key
* UI Updatesobscuren2015-01-221-1/+1
| | | | | * Browser now has tabs * Fixed a callback issue
* Moved `obscuren` secp256k1-goobscuren2015-01-221-1/+1
|
* fixed url bug in browserobscuren2015-01-211-9/+0
|
* Changed public whisper api not to reveal temporary private keysobscuren2015-01-151-9/+10
|
* Fixed whisper messagesobscuren2015-01-133-27/+43
| | | | | | | * Whisper protocol wasn't properly suppling envelope slices * Message history wasn't properly propagated * Added 'Messages' method, filtering any current envelope with the supplied filter.
* Added manual triggering of filtersobscuren2015-01-131-7/+30
|
* mergedobscuren2015-01-091-2/+0
|
* errobscuren2015-01-091-3/+0
|
* just enable by defaultobscuren2015-01-091-0/+3
|
* Fixed some whisper issuesobscuren2015-01-093-2/+4
|
* added nil checkobscuren2015-01-022-3/+3
|
* Added whisper js apiobscuren2014-12-221-1/+1
|
* Whisper watches fixesobscuren2014-12-173-5/+16
|
* doc descobscuren2014-12-161-0/+16
|
* Removed debug messageobscuren2014-12-161-1/+0
|
* During env open check for pub error which indicated unencrypted payload.obscuren2014-12-162-2/+7
|
* Added whisper debug interface + whisper fixesobscuren2014-12-162-22/+5
|
* Merge branch 'develop' into poc8obscuren2014-12-151-0/+27
|\
| * Added topic utility functions to whisperobscuren2014-12-151-0/+27
| |
* | added whisperobscuren2014-12-151-10/+16
|/
* Implemented watching using filter packageobscuren2014-12-136-26/+145
| | | | | * Added filters / watches * Removed event dep
* Updated whisper messages to new crypto api + added testsobscuren2014-12-105-11/+89
|
* Added encryption for messages better API for sealing messagesobscuren2014-12-103-21/+89
|
* Additional checks and debug outputobscuren2014-12-083-2/+14
|
* Proper start/stoping wpeersobscuren2014-12-082-5/+24
|
* First draft of Whisper messages relayingobscuren2014-12-087-0/+472