Add raw hash signing (#5423)

* add sign any

* Add RPC signMessage call to JS API

* Add signMessage to JSON RPC docs

* PostSignTransaction -> EthSignMessage

* fix doc typo

* revert incorect naming
This commit is contained in:
keorn
2017-04-12 11:15:13 +01:00
committed by Gav Wood
parent daf1495c4e
commit 52eae66c72
11 changed files with 81 additions and 18 deletions

View File

@@ -522,6 +522,11 @@ export default class Parity {
.then(outNumber);
}
signMessage (address, password, messageHash) {
return this._transport
.execute('parity_signMessage', inAddress(address), password, inHex(messageHash));
}
testPassword (account, password) {
return this._transport
.execute('parity_testPassword', inAddress(account), password);