Commit graph

10574 commits

Author SHA1 Message Date
Martin Holst Swende
b0e872cd21 clef, signer: address some review concerns 2019-01-30 00:10:30 +00:00
Paul Berg
1e8f19db0a Fixed goimports error 2019-01-30 00:09:15 +00:00
Martin Holst Swende
c4f238cd92 signer: use golang/x keccak 2019-01-30 00:09:15 +00:00
Paul Berg
d70a98d4b4 Fixed failing test, formatted files 2019-01-30 00:09:15 +00:00
Martin Holst Swende
6b30617820 signer: more hard types 2019-01-30 00:09:15 +00:00
Paul Berg
33a1ac635c Added extra regexp for reference types 2019-01-30 00:09:15 +00:00
Paul Berg
c096d738c7 Fixed rules_test failing test 2019-01-30 00:09:15 +00:00
Paul Berg
39317d03b4 Fixed breaking changes 2019-01-30 00:09:15 +00:00
Martin Holst Swende
c182e18fb3 signer: make ui use new message format for signing 2019-01-30 00:09:15 +00:00
Martin Holst Swende
5f45cdc9fb signer: refactor formatting and UI 2019-01-30 00:09:15 +00:00
Paul Berg
2763dd41d6 Added PrettyPrint method 2019-01-30 00:09:15 +00:00
Paul Berg
457e86cd93 Fixed false positive test 2019-01-30 00:09:15 +00:00
Paul Berg
e2e97eba50 Added pseudo-failing test 2019-01-30 00:09:15 +00:00
Paul Berg
4d9d28b0d0 Fixed regexp issues 2019-01-30 00:09:15 +00:00
Paul Berg
3965acc13a Added types to EIP712 output in cliui 2019-01-30 00:09:15 +00:00
Paul Berg
9855fdeec8 Fixed more new failing tests and deanonymised some functions 2019-01-30 00:09:15 +00:00
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