Commit graph

10485 commits

Author SHA1 Message Date
Paul Berg
d983b87f09
Fixed bugs in 'data/typed' signs 2019-01-10 13:07:09 +01:00
Paul Berg
4a1145aada
Changed the property type required by signData from bytes to interface{} 2019-01-10 13:07:06 +01:00
Paul Berg
9f9033710b
Solved stringified address encoding issue 2019-01-10 13:05:56 +01:00
Paul Berg
950307bc8a
Drafted text/validator and and rewritten []byte as hexutil.Bytes 2019-01-10 13:05:56 +01:00
Paul Berg
0808627c09
Temporarily switched to using common.Address in tests 2019-01-10 13:05:56 +01:00
Paul Berg
653708e59f
Drafted first version of EIP-712, including tests 2019-01-10 13:05:53 +01:00
Paul Berg
3fc520c443
Ran goimports and gofmt 2019-01-10 13:02:41 +01:00
Paul Berg
1d1c6e3c7a
Drafted recursive encodeData 2019-01-10 13:02:41 +01:00
Paul Berg
d11bc7d913
Polished docstrings, ran goimports and swapped fmt.Errorf with errors.New where possible 2019-01-10 13:02:38 +01:00
Paul Berg
3d0e8d37fe
Changed mimes and implemented the 'encodeType' function for EIP-712 2019-01-10 13:00:36 +01:00
Paul Berg
a849bb1a70
Changed method to signTypedData 2019-01-10 12:59:46 +01:00
Paul Berg
c960cf5df7
Solved the auditlog issue 2019-01-10 12:59:46 +01:00
Paul Berg
f96a12b639
Working on TypedData 2019-01-10 12:59:46 +01:00
Paul Berg
f8d3833884
Implementing UnmarshalJSON() for TypedData 2019-01-10 12:59:44 +01:00
Paul Berg
e7559fbb45
Added tests for 0x45 2019-01-10 12:58:54 +01:00
Paul Berg
ed01db022b
Updated the extapi changelog and addded indications in the README 2019-01-10 12:57:41 +01:00
Paul Berg
6076456d91
Added ecRecover method in the clef api 2019-01-10 12:54:44 +01:00
Paul Berg
8b5d1d163e
Written basic content type functions 2019-01-10 12:53:01 +01:00
Paul Berg
17f4f169af
Named functions and defined a basic EIP191 content type list 2019-01-10 12:51:54 +01:00
Paul Berg
bb427ac784
Added PrettyPrint method 2019-01-10 12:46:40 +01:00
Paul Berg
034a4ce895
Fixed false positive test 2019-01-10 12:46:40 +01:00
Paul Berg
0bf471e3ec
Added pseudo-failing test 2019-01-10 12:46:40 +01:00
Paul Berg
7a535a8a9e
Fixed regexp issues 2019-01-10 12:46:40 +01:00
Paul Berg
161535a57d
Added types to EIP712 output in cliui 2019-01-10 12:46:40 +01:00
Paul Berg
b5ada7ea70
Fixed more new failing tests and deanonymised some functions 2019-01-10 12:46:40 +01:00
Paul Berg
7de3f530b4
Fixed TestMalformedData4 errors and renamed IsValid to Validate 2019-01-10 12:46:40 +01:00
Martin Holst Swende
cb97813e04
signer: more tests for typed data 2019-01-10 12:46:40 +01:00
Paul Berg
346518d442
Added pretty print to data/typed UI 2019-01-10 12:46:40 +01:00
Paul Berg
89348aaf1e
Added alphabetical sorting to type dependencies 2019-01-10 12:46:40 +01:00
Paul Berg
98eb62e625
Solved malformed data panics and also wrote tests 2019-01-10 12:46:40 +01:00
Paul Berg
122df20a7f
Polished and fixed PR 2019-01-10 12:46:40 +01:00
Paul Berg
1a9cbe33bd
Added example RPC calls for account_signData and account_signTypedData 2019-01-10 12:46:40 +01:00
Paul Berg
3be30e7101
Brought legal warning back after temporarily disabling it for development 2019-01-10 12:46:40 +01:00
Paul Berg
2e542c4cba
Fixed bugs in 'data/typed' signs 2019-01-10 12:46:40 +01:00
Paul Berg
9b013d74d6
Changed the property type required by signData from bytes to interface{} 2019-01-10 12:46:40 +01:00
Paul Berg
fe9f45a9e1
Solved stringified address encoding issue 2019-01-10 12:46:40 +01:00
Paul Berg
095d738d52
Drafted text/validator and and rewritten []byte as hexutil.Bytes 2019-01-10 12:46:40 +01:00
Paul Berg
e92a59b875
Temporarily switched to using common.Address in tests 2019-01-10 12:46:40 +01:00
Paul Berg
0484d96325
Drafted first version of EIP-712, including tests 2019-01-10 12:46:40 +01:00
Paul Berg
a618d3706f
Ran goimports and gofmt 2019-01-10 12:46:40 +01:00
Paul Berg
7a90dc7fb0
Drafted recursive encodeData 2019-01-10 12:46:40 +01:00
Paul Berg
e2b4544fa0
Polished docstrings, ran goimports and swapped fmt.Errorf with errors.New where possible 2019-01-10 12:46:40 +01:00
Paul Berg
78ee50d8c1
Changed mimes and implemented the 'encodeType' function for EIP-712 2019-01-10 12:46:40 +01:00
Paul Berg
865e8e9f89
Changed method to signTypedData 2019-01-10 12:46:40 +01:00
Paul Berg
5f8f99a772
Solved the auditlog issue 2019-01-10 12:46:40 +01:00
Paul Berg
1414b3a814
Working on TypedData 2019-01-10 12:46:40 +01:00
Paul Berg
0d20de1a70
Implementing UnmarshalJSON() for TypedData 2019-01-10 12:46:40 +01:00
Paul Berg
a4c20eeacb
Added tests for 0x45 2019-01-10 12:46:00 +01:00
Paul Berg
46746d55f8
Changed the version of the external API 2019-01-10 12:46:00 +01:00
Paul Berg
a1b23c427a
Updated the extapi changelog and addded indications in the README 2019-01-10 12:46:00 +01:00