aboutsummaryrefslogtreecommitdiffstats
path: root/common/hexutil/hexutil.go
Commit message (Collapse)AuthorAgeFilesLines
* common: all golint warnings removed (#16852)kiel barry2018-06-141-0/+1
| | | | | | * common: all golint warnings removed * common: fixups
* build: enable unconvert linter (#15456)ferhat elmas2017-11-111-3/+1
| | | | | | | | | * build: enable unconvert linter - fixes #15453 - update code base for failing cases * cmd/puppeth: replace syscall.Stdin with os.Stdin.Fd() for unconvert linter
* common/hexutil: wrap errors in json.UnmarshalTypeErrorFelix Lange2017-06-271-10/+15
| | | | | | | This adds type and struct field context to error messages. Instead of "hex string of odd length" users will now see "json: cannot unmarshal hex string of odd length into Go struct field SendTxArgs.from of type common.Address".
* common/hexutil: ensure negative big.Int is encoded sensiblyFelix Lange2017-03-021-1/+1
| | | | Restricting encoding is silly.
* common/hexutil: don't leak encoding/hex errors in DecodeFelix Lange2017-03-021-1/+5
| | | | | All other functions return errors from package hexutil, ensure that Decode does too.
* common/hexutil: reject big integer inputs > 256 bitsFelix Lange2017-03-021-0/+5
| | | | This follows the change to common/math big integer parsing in PR #3699.
* common/hexutil: fix EncodeBig, Big.MarshalJSONFelix Lange2017-01-161-6/+1
| | | | | The code was too clever and failed to include zeros on a big.Word boundary.
* common/hexutil: new package for 0x hex encodingFelix Lange2016-11-281-0/+232
The new package is purpose-built to handle the encoding consumed and produced by the RPC API.