From 678ee915f28ce1500fa978ac7ba94598b4bf6cd7 Mon Sep 17 00:00:00 2001 From: Paul Berg Date: Sat, 29 Sep 2018 17:52:05 +0300 Subject: [PATCH] Updated the extapi changelog and addded indications in the README --- cmd/clef/README.md | 6 +++++- cmd/clef/extapi_changelog.md | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/cmd/clef/README.md b/cmd/clef/README.md index 205b183e50..be0e10747e 100644 --- a/cmd/clef/README.md +++ b/cmd/clef/README.md @@ -350,13 +350,15 @@ Bash example: {"jsonrpc":"2.0","id":67,"result":{"raw":"0xf88380018203339407a565b7ed7d7a678680a4c162885bedbb695fe080a44401a6e4000000000000000000000000000000000000000000000000000000000000001226a0223a7c9bcf5531c99be5ea7082183816eb20cfe0bbc322e97cc5c7f71ab8b20ea02aadee6b34b45bb15bc42d9c09de4a6754e7000908da72d48cc7704971491663","tx":{"nonce":"0x0","gasPrice":"0x1","gas":"0x333","to":"0x07a565b7ed7d7a678680a4c162885bedbb695fe0","value":"0x0","input":"0x4401a6e40000000000000000000000000000000000000000000000000000000000000012","v":"0x26","r":"0x223a7c9bcf5531c99be5ea7082183816eb20cfe0bbc322e97cc5c7f71ab8b20e","s":"0x2aadee6b34b45bb15bc42d9c09de4a6754e7000908da72d48cc7704971491663","hash":"0xeba2df809e7a612a0a0d444ccfa5c839624bdc00dd29e3340d46df3870f8a30e"}}} ``` + ### account_signData #### Sign data Signs a chunk of data and returns the calculated signature. #### Arguments - - content type [string]: type of signed data + + - content type [string]: type of data to sign - `text/validator`: hex data with custom validator defined in a contract - `application/clique`: [clique](https://github.com/ethereum/EIPs/issues/225) headers - `text/plain`: simple hex data validated by `account_ecRecover` @@ -489,9 +491,11 @@ Response ### account_ecRecover #### Sign data + Derive the address from the account that was used to sign data with content type `text/plain` and the signature. #### Arguments + - content type [string]: type of signed data - data [data]: data that was signed - signature [data]: the signature to verify diff --git a/cmd/clef/extapi_changelog.md b/cmd/clef/extapi_changelog.md index 7adc339605..4b9ff6192f 100644 --- a/cmd/clef/extapi_changelog.md +++ b/cmd/clef/extapi_changelog.md @@ -2,13 +2,14 @@ #### 5.0.0 -* The external `account_EcRecover`-method was reimplemented. +* The external `account_EcRecover`-method was added again. * The external method `account_sign(address, data)` was replaced with `account_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, * The external method `account_signTypedData` implements [EIP-712](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md) and makes it possible to sign typed data. + * signing structured data adhering to [EIP-712](https://eips.ethereum.org/EIPS/eip-712) (not yet implemented) #### 4.0.0