signMessage
最后更新于
最后更新于
Signs a provided messaged with an account selected by user. A randomized salt prefix is added to the input string before it is signed, and the specific string 010001f0
0000
is added to the hexString before signed. For the complete signing process, please go to Testbed.
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
message: string
The message to sign
isJsonObject?: boolean
Whether message is a json object
publicKey: string
Public key of account that signed message
data: string
Original message signed
salt: string
Salt added to original message as prefix, before signing
message: string
Signed message
type: string
The type of error which has occured
description: string
A description of the error which has occured
data: string
Any raw data associated with the error