mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
Updated the extapi changelog and addded indications in the README
This commit is contained in:
parent
5584a3423e
commit
a1b23c427a
2 changed files with 19 additions and 5 deletions
|
|
@ -347,12 +347,13 @@ Bash example:
|
|||
```
|
||||
|
||||
|
||||
### account_sign
|
||||
### account_signData
|
||||
|
||||
#### Sign data
|
||||
Signs a chunk of data and returns the calculated signature.
|
||||
|
||||
#### Arguments
|
||||
- content type [string]: type of data to sign
|
||||
- account [address]: account to sign with
|
||||
- data [data]: data to sign
|
||||
|
||||
|
|
@ -364,8 +365,9 @@ Bash example:
|
|||
{
|
||||
"id": 3,
|
||||
"jsonrpc": "2.0",
|
||||
"method": "account_sign",
|
||||
"method": "account_signData",
|
||||
"params": [
|
||||
"data/plain",
|
||||
"0x1923f626bb8dc025849e00f99c25fe2b2f7fb0db",
|
||||
"0xaabbccdd"
|
||||
]
|
||||
|
|
@ -383,10 +385,11 @@ Response
|
|||
|
||||
### account_ecRecover
|
||||
|
||||
#### Recover address
|
||||
#### Sign data
|
||||
Derive the address from the account that was used to sign data from the data and signature.
|
||||
|
||||
|
||||
#### Arguments
|
||||
- content type [string]: type of signed data
|
||||
- data [data]: data that was signed
|
||||
- signature [data]: the signature to verify
|
||||
|
||||
|
|
@ -400,6 +403,7 @@ Response
|
|||
"jsonrpc": "2.0",
|
||||
"method": "account_ecRecover",
|
||||
"params": [
|
||||
"data/plain",
|
||||
"0xaabbccdd",
|
||||
"0x5b6693f153b48ec1c706ba4169960386dbaa6903e249cc79a8e6ddc434451d417e1e57327872c7f538beeb323c300afa9999a3d4a5de6caf3be0d5ef832b67ef1c"
|
||||
]
|
||||
|
|
@ -413,7 +417,6 @@ Response
|
|||
"jsonrpc": "2.0",
|
||||
"result": "0x1923f626bb8dc025849e00f99c25fe2b2f7fb0db"
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
### account_import
|
||||
|
|
|
|||
|
|
@ -1,10 +1,21 @@
|
|||
### 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
|
||||
|
||||
* The external `account_Ecrecover`-method was removed.
|
||||
* The external `account_Import`-method was removed.
|
||||
|
||||
|
||||
#### 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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue