How can I implement a custom transaction signer (which will unlock accounts on the fly) and tell parity client to use it?
I don't want to unlock all accounts at startup (and always keep them unlocked. Instead, I want to set some logic for account unlocking on each transaction, say:
if (isDay && accountAddress in [addr1, addr2, addr3])
unlockAccount and signTransaction
else
rejectTransaction
I'm looking into JSONRPC signer module as a possible option, but not able to connect to the Parity Signer UI using websockets
Connect Error: Error: Server responded with a non-101 status: 403
Response Headers Follow:
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
server: Parity/SignerUI
content-length: 524
content-type: text/html
connection: close

--unlockunlocks only listed accounts – Mikko Ohtamaa Apr 24 '17 at 11:13web3.personal.unlockAccount()with a timeout. See https://ethereum.stackexchange.com/a/12188/620 but @5chdn needs to clarify if Parity can unlock the account without the web ui. Geth does, but I am unsure about Parity. – Mikko Ohtamaa Apr 24 '17 at 12:03signer_requestsToConfirm?),signer_confirmRequestorsigner_rejectRequestexecuted automatically. Not sure how to use it tho (updated my answer again). – Edward Ruchevits Apr 24 '17 at 12:24