dwallet-labs / dwallet-network

dWallet Network, a composable modular signature network that is the home of dWallets. A dWallet is a noncollusive and massively decentralized signing mechanism, used as a building block by builders on other networks to add native multi-chain interoperability to any smart contract.
https://docs.dwallet.io
Other
40 stars 35 forks source link

Make sign work with a batch of messages instead of one message #357

Open ItayLevyOfficial opened 4 days ago

ItayLevyOfficial commented 3 days ago
        1. before emitting start sign session for each of the messages, i emit a startBatchSignSession event
        2. when catching this event, I create a new batchSign object in the mpc manager
        3. When receiving a sign output, instead of replacing it with a system TX, i store it in the batched sign session
        4. When the batched sign session is completed, we create the system TX to emit the completed sign batch session event