casper_sign_deploy
method to request the user to approve or reject the signature of a transaction (aka deploy). The wallet should validate the received deploy object and present the details to the user for his review.
address
. Type: string
. The chain namespace and the public key corresponding to the key pair that signs the transaction are separated with a colon character.deploy
. Type: object
. A Deploy object as per the Casper protocol specification.deploy
. Type: object
. The Deploy object including the newly generated approval item as per the Casper protocol specification.USER_REJECTED
.
casper_sign_message
to request the user to sign a message. It’s recommended to use this method with human-readable text messages. Upon user approval, the wallet must generate a signature for the prefixed message "Casper Message:\n" + message
. The prefix protects the user against misuse of this method, preventing a malicious actor from trying to trick the user into signing arbitrary data, like a network transaction.
address
. Type: string
. The chain namespace and the public key corresponding to the key pair that signs the transaction separated with a colon character.message
. Type: string
. The message to be signed.signature
. Type: string
. The signature of the message.USER_REJECTED
.