I am very keen to work with defender and use the multisig option (with gnosis safe) but not over the admin website of defender. In the typical workflow you initiate a multisig transaction over the defender admin website and then sign it via metamask and then execute the function. I do not want to manually to this.
What I want to accomplish:
A custom function in my smart contract should require two signatures before it can be executed.
I would like to either sign the transaction (two times) by myself (through controlling the private key) or sign it using a relayer (component of defender). These two signings/transactions should be initiated from two different servers. I would like to automate this process as well. I want to do this to increase security (to tamper/ attack this transaction you would have to have control over two servers/private keys).
- Is it possible to initiate a multisig transaction from a nodejs service (ethers.js/ web3.js).
- Is it possible to sign one multisig transaction from a nodejs service.
- Is it possible to subscribe to the first signing (event, log) and right after that sign the second part of the transaction in the nodejs service.
- Is it possible to propagate the transaction (now signed by two private keys) to the blockchain.
How can I accomplish this.
If it is not possible and/or you have a better idea to accomplish this goal (besides from implementing such a logic by myself into my smart contract) I woud also be happy to hear about it.
Thanks a lot in advance.
Kind regards Tim