some multisig stuff for escrow
adapt code from gateway for websocket