personal_ecRecover

描述:对签名后的 Data 进行还原,返回签名方的地址。

parameter

数据类型 备注
string 需要签名的内容
string 签名后的的字符串
"params": [
        "0xf86d82010e843b9aca00825208948009a7cbd192b3aed4adb983d5284552c16c74518853444835ec580000801ba03d1ef43163599c12bafb773849de8c81834bdda112167db1660e3d842f26b947a02f02871f7ef02e212130b86fe537affc464b7ecb5ef45a14db88aaf95591bf96",
        "0xa1e2f591686ea74bcd9f37a4a7f935f217905394998d70ac774dacf59b557ecb4999aee14ec583ada7e165b73cef1644b18caeadbc32d7322d23a774be9668231c"]

return

数据类型 备注
string 账户地址

example

Request:

curl -X POST \
  http://127.0.0.1:8283 \
  -H 'Content-Type: application/json' \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "personal_ecRecover",
    "params": [
        "0xf86d82010e843b9aca00825208948009a7cbd192b3aed4adb983d5284552c16c74518853444835ec580000801ba03d1ef43163599c12bafb773849de8c81834bdda112167db1660e3d842f26b947a02f02871f7ef02e212130b86fe537affc464b7ecb5ef45a14db88aaf95591bf96",
        "0xa1e2f591686ea74bcd9f37a4a7f935f217905394998d70ac774dacf59b557ecb4999aee14ec583ada7e165b73cef1644b18caeadbc32d7322d23a774be9668231c"
    ]
}'

Response:

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0xa6fb67336fa6678e63b82700eba6b6275b01b6dd"
}