Updated the extapi changelog and addded indications in the README

This commit is contained in:
Paul Berg 2018-09-29 17:52:05 +03:00 committed by Martin Holst Swende
parent 5584a3423e
commit a1b23c427a
No known key found for this signature in database
GPG key ID: 683B438C05A5DDF0
2 changed files with 19 additions and 5 deletions

View file

@ -347,12 +347,13 @@ Bash example:
``` ```
### account_sign ### account_signData
#### Sign data #### Sign data
Signs a chunk of data and returns the calculated signature. Signs a chunk of data and returns the calculated signature.
#### Arguments #### Arguments
- content type [string]: type of data to sign
- account [address]: account to sign with - account [address]: account to sign with
- data [data]: data to sign - data [data]: data to sign
@ -364,8 +365,9 @@ Bash example:
{ {
"id": 3, "id": 3,
"jsonrpc": "2.0", "jsonrpc": "2.0",
"method": "account_sign", "method": "account_signData",
"params": [ "params": [
"data/plain",
"0x1923f626bb8dc025849e00f99c25fe2b2f7fb0db", "0x1923f626bb8dc025849e00f99c25fe2b2f7fb0db",
"0xaabbccdd" "0xaabbccdd"
] ]
@ -383,10 +385,11 @@ Response
### account_ecRecover ### account_ecRecover
#### Recover address #### Sign data
Derive the address from the account that was used to sign data from the data and signature. Derive the address from the account that was used to sign data from the data and signature.
#### Arguments #### Arguments
- content type [string]: type of signed data
- data [data]: data that was signed - data [data]: data that was signed
- signature [data]: the signature to verify - signature [data]: the signature to verify
@ -400,6 +403,7 @@ Response
"jsonrpc": "2.0", "jsonrpc": "2.0",
"method": "account_ecRecover", "method": "account_ecRecover",
"params": [ "params": [
"data/plain",
"0xaabbccdd", "0xaabbccdd",
"0x5b6693f153b48ec1c706ba4169960386dbaa6903e249cc79a8e6ddc434451d417e1e57327872c7f538beeb323c300afa9999a3d4a5de6caf3be0d5ef832b67ef1c" "0x5b6693f153b48ec1c706ba4169960386dbaa6903e249cc79a8e6ddc434451d417e1e57327872c7f538beeb323c300afa9999a3d4a5de6caf3be0d5ef832b67ef1c"
] ]
@ -413,7 +417,6 @@ Response
"jsonrpc": "2.0", "jsonrpc": "2.0",
"result": "0x1923f626bb8dc025849e00f99c25fe2b2f7fb0db" "result": "0x1923f626bb8dc025849e00f99c25fe2b2f7fb0db"
} }
``` ```
### account_import ### account_import

View file

@ -1,10 +1,21 @@
### Changelog for external API ### Changelog for external API
#### 5.0.0
* The external `account_EcRecover`-method was added again.
* The external method `accounts_Sign(address, data)` was replaced with `accounts_signData(contentType, address, data)`.
The addition of `contentType` makes it possible to use the method for different types of objects, such as:
* signing data with an intended validator (not yet implemented)
* signing clique headers,
* signing plain personal messages,
* signing structured data adhering to [EIP-712](https://eips.ethereum.org/EIPS/eip-712) (not yet implemented)
#### 4.0.0 #### 4.0.0
* The external `account_Ecrecover`-method was removed. * The external `account_Ecrecover`-method was removed.
* The external `account_Import`-method was removed. * The external `account_Import`-method was removed.
#### 3.0.0 #### 3.0.0
* The external `account_List`-method was changed to not expose `url`, which contained info about the local filesystem. It now returns only a list of addresses. * The external `account_List`-method was changed to not expose `url`, which contained info about the local filesystem. It now returns only a list of addresses.