Commit graph

10558 commits

Author SHA1 Message Date
Paul Berg
7419d513f3 Fixed TestMalformedData4 errors and renamed IsValid to Validate 2019-01-30 00:09:15 +00:00
Martin Holst Swende
1524475baa signer: more tests for typed data 2019-01-30 00:09:15 +00:00
Paul Berg
1b022ec3f0 Added pretty print to data/typed UI 2019-01-30 00:09:15 +00:00
Paul Berg
9364b324d3 Added alphabetical sorting to type dependencies 2019-01-30 00:09:15 +00:00
Paul Berg
bf752cf6e2 Solved malformed data panics and also wrote tests 2019-01-30 00:09:15 +00:00
Paul Berg
f4f4877c3b Polished and fixed PR 2019-01-30 00:09:15 +00:00
Paul Berg
65878a0b84 Added example RPC calls for account_signData and account_signTypedData 2019-01-30 00:09:15 +00:00
Paul Berg
90241ef49e Brought legal warning back after temporarily disabling it for development 2019-01-30 00:09:15 +00:00
Paul Berg
19d9b2a774 Fixed bugs in 'data/typed' signs 2019-01-30 00:09:15 +00:00
Paul Berg
6c68ed1b17 Changed the property type required by signData from bytes to interface{} 2019-01-30 00:09:15 +00:00
Paul Berg
798866bac0 Solved stringified address encoding issue 2019-01-30 00:09:15 +00:00
Paul Berg
2f018cea0d Drafted text/validator and and rewritten []byte as hexutil.Bytes 2019-01-30 00:09:15 +00:00
Paul Berg
e6bca17014 Temporarily switched to using common.Address in tests 2019-01-30 00:09:15 +00:00
Paul Berg
5f23386d76 Drafted first version of EIP-712, including tests 2019-01-30 00:09:15 +00:00
Paul Berg
1a47367adc Ran goimports and gofmt 2019-01-30 00:09:15 +00:00
Paul Berg
fb23ff9d73 Drafted recursive encodeData 2019-01-30 00:09:15 +00:00
Paul Berg
99de6ffc4c Polished docstrings, ran goimports and swapped fmt.Errorf with errors.New where possible 2019-01-30 00:09:15 +00:00
Paul Berg
190530ea77 Changed mimes and implemented the 'encodeType' function for EIP-712 2019-01-30 00:09:15 +00:00
Paul Berg
bd38e0ca9d Changed method to signTypedData 2019-01-30 00:09:15 +00:00
Paul Berg
1478b88947 Solved the auditlog issue 2019-01-30 00:09:15 +00:00
Paul Berg
ed5f7f3b14 Working on TypedData 2019-01-30 00:09:15 +00:00
Paul Berg
adccccbb88 Implementing UnmarshalJSON() for TypedData 2019-01-30 00:09:15 +00:00
Paul Berg
854a94efd4 Added tests for 0x45 2019-01-30 00:09:15 +00:00
Paul Berg
678ee915f2 Updated the extapi changelog and addded indications in the README 2019-01-30 00:09:15 +00:00
Paul Berg
d21570d4cc Added ecRecover method in the clef api 2019-01-30 00:09:15 +00:00
Paul Berg
094da11af9 Written basic content type functions 2019-01-30 00:09:15 +00:00
Paul Berg
43d7760887 Named functions and defined a basic EIP191 content type list 2019-01-30 00:09:15 +00:00
Paul Berg
5faa28ad33 Added PrettyPrint method 2019-01-30 00:09:15 +00:00
Paul Berg
4239277711 Fixed false positive test 2019-01-30 00:09:15 +00:00
Paul Berg
d2bebf415c Added pseudo-failing test 2019-01-30 00:09:15 +00:00
Paul Berg
4659c180ba Fixed regexp issues 2019-01-30 00:09:15 +00:00
Paul Berg
3742cf2380 Added types to EIP712 output in cliui 2019-01-30 00:09:15 +00:00
Paul Berg
955f822f64 Fixed more new failing tests and deanonymised some functions 2019-01-30 00:09:15 +00:00
Paul Berg
2308f12e00 Fixed TestMalformedData4 errors and renamed IsValid to Validate 2019-01-30 00:09:15 +00:00
Martin Holst Swende
eb03047d42 signer: more tests for typed data 2019-01-30 00:09:15 +00:00
Paul Berg
68056e0b00 Added pretty print to data/typed UI 2019-01-30 00:09:15 +00:00
Paul Berg
6d62c33bee Added alphabetical sorting to type dependencies 2019-01-30 00:09:15 +00:00
Paul Berg
f8348a074c Solved malformed data panics and also wrote tests 2019-01-30 00:09:15 +00:00
Paul Berg
51b1addf3d Polished and fixed PR 2019-01-30 00:09:15 +00:00
Paul Berg
cca0a9628f Added example RPC calls for account_signData and account_signTypedData 2019-01-30 00:09:14 +00:00
Paul Berg
3adda3f323 Brought legal warning back after temporarily disabling it for development 2019-01-30 00:09:14 +00:00
Paul Berg
4b893bee79 Fixed bugs in 'data/typed' signs 2019-01-30 00:09:14 +00:00
Paul Berg
05314acf9a Changed the property type required by signData from bytes to interface{} 2019-01-30 00:09:14 +00:00
Paul Berg
61c6704c37 Solved stringified address encoding issue 2019-01-30 00:09:14 +00:00
Paul Berg
6910ba2991 Drafted text/validator and and rewritten []byte as hexutil.Bytes 2019-01-30 00:09:14 +00:00
Paul Berg
be2b37bafb Temporarily switched to using common.Address in tests 2019-01-30 00:09:14 +00:00
Paul Berg
2b222273f7 Drafted first version of EIP-712, including tests 2019-01-30 00:09:14 +00:00
Paul Berg
5cba9e2356 Ran goimports and gofmt 2019-01-30 00:09:14 +00:00
Paul Berg
35b83c1b9f Drafted recursive encodeData 2019-01-30 00:09:14 +00:00
Paul Berg
a7003c7032 Polished docstrings, ran goimports and swapped fmt.Errorf with errors.New where possible 2019-01-30 00:09:14 +00:00