aboutsummaryrefslogtreecommitdiffstats
path: root/whisper
Commit message (Collapse)AuthorAgeFilesLines
* 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