aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/whisperv5
Commit message (Collapse)AuthorAgeFilesLines
* build: enable unconvert linter (#15456)ferhat elmas2017-11-112-3/+3
| | | | | | | | | * 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/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-085-7/+14
| | | | | | * 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-193/+0
|
* whisperv5: integrate whisper and add whisper RPC simulatorBas van Kervel2017-06-1518-472/+1133
|
* whisper: switching to v5 + minor refactoring (#14387)gluk2562017-04-282-33/+33
|
* whisper: message format refactoring (#14335)gluk2562017-04-2712-215/+316
| | | | | | | | | | | | | | * 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
* whisper: big refactoring (#13852)gluk2562017-04-1011-667/+1202
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-271-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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: expiry refactoring (#3706)gluk2562017-02-245-36/+72
|
* all: blidly swap out glog to our log15, logs need reworkPéter Szilágyi2017-02-236-55/+49
|
* 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-181-2/+3
| | | | | | | | | | | * 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-146-9/+1061
| | | | | | | | | | | | | | | | * 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
* cmd/wnode, whisper: add whisper CLI tool and mail server (#3580)gluk2562017-01-315-24/+56
|
* all: fix ineffectual assignments and remove uses of crypto.Sha3Felix Lange2017-01-093-16/+8
| | | | | 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-073-8/+8
|
* all: gofmt -w -sFelix Lange2017-01-062-2/+2
|
* whisper: refactoring (#3411)gluk2562016-12-2010-66/+228
| | | | | | | | | * 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-0212-524/+349
| | | | | | | | | | * 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-2913-0/+3759
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.