* Example Code for Message Signing Added
Added an example java script which demonstrates the following
- How to sign a message using Ethereum account
- How to find the address using which the message was signed
* Refactored method encodeWithOffset
Performed refactoring for encodeWithOffset method. Removed code redundancy.
* HTTP Basic Auth, some cleanups
There’s no need for additional dependency `btoa` as `XHR2` already has
the support for Basic Auth.
* remove redundant code
* fix semicolons
* Rewrite Basic Auth to support both sync and async calls.
* semicolon consistency
* HTTP Basic Auth, some cleanups
There’s no need for additional dependency `btoa` as `XHR2` already has
the support for Basic Auth.
* remove redundant code
* buy fix to make synchronous and asynchronous cases compatible (avoid swallowing errors encountered during unpacking)
* removing example comments and whitespace changes
* reworking to avoid catching errors thrown by the callback
* exiting early if there is an error
* Remove extraneous whitespace.
* Fix dynamicOffset calculation when encoding params.
Dynamic types should contribute only one word, not their staticPartLength.
* Fix staticPartLength calculation for multidimensional arrays.
Previously it was accounting for only one of the dimensions.
* Define default behavior for SolidityType.staticPartLength.
The default behavior was defined redundantly for every type.
There was an issue in combination of `solidity.formatters.formatInputInt` and `utils.toTwosComplement` where the value was rounded *after* performing the toTwosComplement. This caused negative floats to round _UP_ instead of rounding _DOWN_. I'm not sure if this is a bug or intentional, but from reading the code it appears to be intended to be rounded down.
Added simple unit test to demonstrate the behavior